spiderology / testsets /binary /testset_binary.json
k8-dmi3eva's picture
[NEW]: Upload test-sets
cdc1cad verified
[{"id": "train_0012", "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", "the", "distinct", "ages", "of", "the", "heads", "who", "are", "acting", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0984", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "been", "abandoned", "?", "1", "stands", "for", "yes", ",", "and", "0", "stands", "for", "no", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0985", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.", "question_toks": ["What", "are", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "that", "were", "abandoned", "?", "Note", "that", "1", "stands", "for", "yes", ",", "and", "0", "stands", "for", "no", "in", "the", "tables", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6003", "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", "ids", "for", "all", "student", "who", "are", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6004", "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", "the", "ids", "for", "all", "sporty", "students", "who", "are", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6005", "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", "names", "for", "all", "student", "who", "are", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6006", "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", "the", "last", "names", "for", "all", "scholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6009", "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", "games", "are", "played", "for", "all", "football", "games", "by", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6010", "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", "the", "total", "number", "of", "all", "football", "games", "played", "by", "scholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6019", "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", "has", "most", "number", "of", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6020", "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", "the", "sport", "with", "the", "most", "scholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6023", "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", "ids", "who", "are", "on", "scholarship", "and", "have", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6024", "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", "the", "student", "ids", "for", "those", "on", "scholarship", "in", "major", "number", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3914", "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", "the", "names", "of", "all", "physicians", "and", "their", "primary", "affiliated", "departments", "'", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3915", "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", "the", "name", "and", "primarily", "affiliated", "department", "name", "of", "each", "physician", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3960", "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", "the", "physicians", "'", "employee", "ids", "together", "with", "their", "primary", "affiliation", "departments", "'", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3961", "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": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3962", "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", "the", "names", "of", "departments", "where", "some", "physicians", "are", "primarily", "affiliated", "with", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3963", "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", "the", "names", "of", "departments", "that", "have", "primarily", "affiliated", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0960", "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", "medicines", "were", "not", "approved", "by", "the", "FDA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"No\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0946", "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", "the", "names", "and", "trade", "names", "of", "the", "medcines", "that", "are", "FDA", "approved", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2947", "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", "the", "number", "of", "customers", "who", "are", "active", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4962", "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", "students", "got", "accepted", "after", "the", "tryout", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4981", "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", "the", "name", "of", "the", "players", "who", "received", "a", "card", "in", "descending", "order", "of", "the", "hours", "of", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4997", "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", "the", "different", "states", "that", "had", "students", "successfully", "try", "out", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5007", "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", "the", "names", "of", "all", "students", "who", "successfully", "tried", "out", "for", "the", "position", "of", "striker", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"striker\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5011", "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", "the", "average", "and", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5018", "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", "has", "any", "student", "who", "is", "a", "goalie", "and", "succeeded", "in", "the", "tryout", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5019", "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", "has", "a", "student", "who", "successfully", "made", "the", "team", "in", "the", "role", "of", "a", "goalie", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5022", "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", "the", "state", "and", "enrollment", "of", "the", "colleges", "where", "have", "any", "students", "who", "got", "accepted", "in", "the", "tryout", "decision", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5023", "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", "students", "are", "enrolled", "in", "colleges", "that", "have", "student", "accepted", "during", "tryouts", ",", "and", "in", "which", "states", "are", "those", "colleges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0631", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "Find the package choice and series name of the TV channel that has high definition TV.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "high", "definition", "TV", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0632", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "What are the package options and the name of the series for the TV Channel that supports high definition TV?", "question_toks": ["What", "are", "the", "package", "options", "and", "the", "name", "of", "the", "series", "for", "the", "TV", "Channel", "that", "supports", "high", "definition", "TV", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1636", "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": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"F\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1644", "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", "the", "names", "for", "all", "females", "from", "Canada", "having", "a", "wedding", "in", "year", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], 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]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1641", "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", "the", "name", "and", "age", "for", "all", "male", "people", "who", "do", "n't", "have", "a", "wedding", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"T\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0738", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Afghanistan", "''", "AND", "IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many official languages does Afghanistan have?", "question_toks": ["How", "many", "official", "languages", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0739", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Afghanistan", "''", "AND", "IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many official languages are spoken in Afghanistan?", "question_toks": ["How", "many", "official", "languages", "are", "spoken", "in", "Afghanistan", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0748", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and t2.isofficial = \"t\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"french\" and t2.isofficial = \"t\"", "query_toks": ["SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "French", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What are the names of nations where both English and French are official languages?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "are", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"French\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0749", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and t2.isofficial = \"t\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"french\" and t2.isofficial = \"t\"", "query_toks": ["SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "French", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "Give the names of countries with English and French as official languages.", "question_toks": ["Give", "the", "names", "of", "countries", "with", "English", "and", "French", "as", "official", "languages", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"French\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0754", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", "query_toks": ["select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"english\"", "and", "isofficial", "=", "\"t\"", "union", "select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"dutch\"", "and", "isofficial", "=", "\"t\""], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where either English or Dutch is the official language ?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0755", "db_id": "world_1", "query": "select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", "query_toks": ["SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "IsOfficial", "=", "``", "T", "''", "UNION", "SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Dutch", "''", "AND", "IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "Which countries have either English or Dutch as an official language?", "question_toks": ["Which", "countries", "have", "either", "English", "or", "Dutch", "as", "an", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0768", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"beatrix\" and t2.isofficial = \"t\"", "query_toks": ["SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.HeadOfState", "=", "``", "Beatrix", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the official language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "official", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0769", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"beatrix\" and t2.isofficial = \"t\"", "query_toks": ["SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.HeadOfState", "=", "``", "Beatrix", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the official language used in the country the name of whose head of state is Beatrix.", "question_toks": ["What", "is", "the", "official", "language", "used", "in", "the", "country", "the", "name", "of", "whose", "head", "of", "state", "is", "Beatrix", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0770", "db_id": "world_1", "query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where indepyear < 1930 and t2.isofficial = \"t\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "IndepYear", "<", "1930", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0771", "db_id": "world_1", "query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where indepyear < 1930 and t2.isofficial = \"t\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "IndepYear", "<", "1930", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "For the countries founded before 1930, what is the total number of distinct official languages?", "question_toks": ["For", "the", "countries", "founded", "before", "1930", ",", "what", "is", "the", "total", "number", "of", "distinct", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0786", "db_id": "world_1", "query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = \"asia\"", "query_toks": ["select", "distinct", "t3.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "join", "city", "as", "t3", "on", "t1.code", "=", "t3.countrycode", "where", "t2.isofficial", "=", "\"t\"", "and", "t2.language", "=", "\"chinese\"", "and", "t1.continent", "=", "\"asia\""], "query_toks_no_value": ["select", "distinct", "t3", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "join", "city", "as", "t3", "on", "t1", ".", "code", "=", "t3", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the official language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0787", "db_id": "world_1", "query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = \"asia\"", "query_toks": ["SELECT", "DISTINCT", "T3.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "JOIN", "city", "AS", "T3", "ON", "T1.Code", "=", "T3.CountryCode", "WHERE", "T2.IsOfficial", "=", "'T", "'", "AND", "T2.Language", "=", "'Chinese", "'", "AND", "T1.Continent", "=", "``", "Asia", "''"], "query_toks_no_value": ["select", "distinct", "t3", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "join", "city", "as", "t3", "on", "t1", ".", "code", "=", "t3", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the official language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "official", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"T\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0000", "db_id": "baseball_1", "query": "select min(yearid) from hall_of_fame where inducted = \"y\"", "query_toks": ["select", "min", "(", "yearid", ")", "from", "hall_of_fame", "where", "inducted", "=", "``", "y", "''"], "query_toks_no_value": ["select", "min", "(", "yearid", ")", "from", "hall_of_fame", "where", "inducted", "=", "value"], "question": "What is the earliest year when someone was inducted?", "question_toks": ["What", "is", "the", "earliest", "year", "when", "someone", "was", "inducted", "?"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[2, [0, [0, 145, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0001", "db_id": "baseball_1", "query": "select player_id from hall_of_fame where inducted = \"y\" and yearid = 1936 and category = \"player\"", "query_toks": ["select", "player_id", "from", "hall_of_fame", "where", "inducted", "=", "``", "y", "''", "and", "yearid", "=", "1936", "and", "category", "=", "``", "player", "''"], "query_toks_no_value": ["select", "player_id", "from", "hall_of_fame", "where", "inducted", "=", "value", "and", "yearid", "=", "value", "and", "category", "=", "value"], "question": "List the id of players who were inducted into the hall of fame in 1936", "question_toks": ["List", "the", "id", "of", "players", "who", "were", "inducted", "into", "the", "hall", "of", "fame", "in", "1936"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 144, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 145, false], null], 1936.0, null], "and", [false, 2, [0, [0, 151, false], null], "\"player\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0002", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "value"], "question": "Amount of debates with negative win", "question_toks": ["Amount", "of", "debates", "with", "negative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0003", "db_id": "debate", "query": "select debate_id from debate_people where if_affirmative_win = \"t\"", "query_toks": ["select", "debate_id", "from", "debate_people", "where", "if_affirmative_win", "=", "``", "t", "''"], "query_toks_no_value": ["select", "debate_id", "from", "debate_people", "where", "if_affirmative_win", "=", "value"], "question": "Show ids of all debates with affirmative win", "question_toks": ["Show", "ids", "of", "all", "debates", "with", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0004", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "value"], "question": "Amount of debates without affirmative win", "question_toks": ["Amount", "of", "debates", "without", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0005", "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 = \"no\"", "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", "=", "``", "no", "''"], "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": "Amount of debates without affirmative win", "question_toks": ["Amount", "of", "debates", "without", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0006", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "Amount of not temporary acting managements", "question_toks": ["Amount", "of", "not", "temporary", "acting", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0007", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "Amount of regular managements", "question_toks": ["Amount", "of", "regular", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0009", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "How many temporary acting managements are there?", "question_toks": ["How", "many", "temporary", "acting", "managements", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0010", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "Amount of temporary acting managements", "question_toks": ["Amount", "of", "temporary", "acting", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0011", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 0", "query_toks": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "0"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have not been abandoned? 1 stands for yes, and 0 stands for no.", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "not", "been", "abandoned", "?", "1", "stands", "for", "yes", ",", "and", "0", "stands", "for", "no", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 0.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0014", "db_id": "dog_kennels", "query": "select name from dogs where gender = \"1\"", "query_toks": ["select", "name", "from", "dogs", "where", "gender", "=", "``", "1", "''"], "query_toks_no_value": ["select", "name", "from", "dogs", "where", "gender", "=", "value"], "question": "Please, list all female dog names in kennels?", "question_toks": ["Please", ",", "list", "all", "female", "dog", "names", "in", "kennels", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0015", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"f\"", "query_toks": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "value"], "question": "Show ids of all shops with part time vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "part", "time", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0016", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"t\"", "query_toks": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "value"], "question": "Show ids of all shops with full time vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "full", "time", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0017", "db_id": "flight_4", "query": "select callsign from airlines where active = \"n\"", "query_toks": ["select", "callsign", "from", "airlines", "where", "active", "=", "``", "n", "''"], "query_toks_no_value": ["select", "callsign", "from", "airlines", "where", "active", "=", "value"], "question": "What are callsigns of inactive airlines?", "question_toks": ["What", "are", "callsigns", "of", "inactive", "airlines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0018", "db_id": "flight_4", "query": "select name from airlines where active = \"y\"", "query_toks": ["select", "name", "from", "airlines", "where", "active", "=", "``", "y", "''"], "query_toks_no_value": ["select", "name", "from", "airlines", "where", "active", "=", "value"], "question": "Names of active airlines", "question_toks": ["Names", "of", "active", "airlines"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0019", "db_id": "flight_4", "query": "select count(*) from airlines where active = \"y\" and country = \"canada\"", "query_toks": ["select", "count", "(*)", "from", "airlines", "where", "active", "=", "``", "y", "''", "and", "country", "=", "``", "canada", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines", "where", "active", "=", "value", "and", "country", "=", "value"], "question": "How many active airlines are in Canada?", "question_toks": ["How", "many", "active", "airlines", "are", "in", "Canada", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0020", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = \"n\"", "query_toks": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "``", "n", "''"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "List ids for all student who are not on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "are", "not", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0021", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where onscholarship = \"n\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "onscholarship", "=", "``", "n", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "What the total amount of games played not on scholarship?", "question_toks": ["What", "the", "total", "amount", "of", "games", "played", "not", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0032", "db_id": "game_1", "query": "select avg(hoursperweek) from sportsinfo where onscholarship = \"y\"", "query_toks": ["select", "avg", "(", "hoursperweek", ")", "from", "sportsinfo", "where", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "avg", "(", "hoursperweek", ")", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "How many hours per week students on scholarship are playing in average?", "question_toks": ["How", "many", "hours", "per", "week", "students", "on", "scholarship", "are", "playing", "in", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0039", "db_id": "hospital_1", "query": "select name from physician join affiliated_with on physician.employeeid = affiliated_with.physician where affiliated_with.primaryaffiliation = 1", "query_toks": ["select", "name", "from", "physician", "join", "affiliated_with", "on", "physician", ".", "employeeid", "=", "affiliated_with", ".", "physician", "where", "affiliated_with", ".", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "name", "from", "physician", "join", "affiliated_with", "on", "physician", ".", "employeeid", "=", "affiliated_with", ".", "physician", "where", "affiliated_with", ".", "primaryaffiliation", "=", "value"], "question": "Show the names of the physicians with the primary affiliation", "question_toks": ["Show", "the", "names", "of", "the", "physicians", "with", "the", "primary", "affiliation"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0040", "db_id": "hospital_1", "query": "select distinct name from nurse where registered = 1", "query_toks": ["select", "distinct", "name", "from", "nurse", "where", "registered", "=", "1"], "query_toks_no_value": ["select", "distinct", "name", "from", "nurse", "where", "registered", "=", "value"], "question": "What are the names of the registered nurses?", "question_toks": ["What", "are", "the", "names", "of", "the", "registered", "nurses", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0043", "db_id": "orchestra", "query": "select min(attendance) from show where result = \"t\"", "query_toks": ["select", "min", "(", "attendance", ")", "from", "show", "where", "result", "=", "``", "t", "''"], "query_toks_no_value": ["select", "min", "(", "attendance", ")", "from", "show", "where", "result", "=", "value"], "question": "Minimum attendance of shows with results", "question_toks": ["Minimum", "attendance", "of", "shows", "with", "results"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0044", "db_id": "product_catalog", "query": "select max(catalog_level_number) from catalog_contents_additional_attributes where attribute_value = 1", "query_toks": ["select", "max", "(", "catalog_level_number", ")", "from", "catalog_contents_additional_attributes", "where", "attribute_value", "=", "1"], "query_toks_no_value": ["select", "max", "(", "catalog_level_number", ")", "from", "catalog_contents_additional_attributes", "where", "attribute_value", "=", "value"], "question": "What is the maximum level number of catalogs with attribute values?", "question_toks": ["What", "is", "the", "maximum", "level", "number", "of", "catalogs", "with", "attribute", "values", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0045", "db_id": "products_for_hire", "query": "select avg(booked_count) from products_booked where returned_late_yn = 1", "query_toks": ["select", "avg", "(", "booked_count", ")", "from", "products_booked", "where", "returned_late_yn", "=", "1"], "query_toks_no_value": ["select", "avg", "(", "booked_count", ")", "from", "products_booked", "where", "returned_late_yn", "=", "value"], "question": "What is the average amount of booked counts that were returned late?", "question_toks": ["What", "is", "the", "average", "amount", "of", "booked", "counts", "that", "were", "returned", "late", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]]]], "where": [[false, 2, [0, [0, 39, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0047", "db_id": "sakila_1", "query": "select first_name from customer where active = 1", "query_toks": ["select", "first_name", "from", "customer", "where", "active", "=", "1"], "query_toks_no_value": ["select", "first_name", "from", "customer", "where", "active", "=", "value"], "question": "Show me the first names of active customers", "question_toks": ["Show", "me", "the", "first", "names", "of", "active", "customers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0048", "db_id": "school_bus", "query": "select count(distinct school_id) from school_bus where if_full_time = \"t\"", "query_toks": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "value"], "question": "How many schools have buses working full time?", "question_toks": ["How", "many", "schools", "have", "buses", "working", "full", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0049", "db_id": "school_bus", "query": "select count(distinct school_id) from school_bus where if_full_time = \"f\"", "query_toks": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "value"], "question": "How many schools don't have full time buses?", "question_toks": ["How", "many", "schools", "don", "'", "t", "have", "full", "time", "buses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0050", "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 negative.", "question_toks": ["Find", "the", "average", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "negative", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0054", "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 who got positive dicision.", "question_toks": ["Find", "the", "name", "and", "hours", "of", "the", "students", "who", "got", "positive", "dicision", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0061", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"no\"", "query_toks": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "``", "no", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "Find the package choice and series name of the TV channel that has low definition TV.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "low", "definition", "TV", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0062", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"no\"", "query_toks": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "value"], "question": "Amount of TV channels without paying per view", "question_toks": ["Amount", "of", "TV", "channels", "without", "paying", "per", "view"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0065", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "value"], "question": "Amount of TV channels with paying per view", "question_toks": ["Amount", "of", "TV", "channels", "with", "paying", "per", "view"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0068", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"f\"", "query_toks": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "``", "f", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "value"], "question": "Average age of women", "question_toks": ["Average", "age", "of", "women"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0069", "db_id": "wedding", "query": "select count(*) from people where is_male = \"t\" and age > 30", "query_toks": ["select", "count", "(*)", "from", "people", "where", "is_male", "=", "``", "t", "''", "and", "age", ">", "30"], "query_toks_no_value": ["select", "count", "(*)", "from", "people", "where", "is_male", "=", "value", "and", "age", ">", "value"], "question": "How many males are older than 30 in our record?", "question_toks": ["How", "many", "males", "are", "older", "than", "30", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0071", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"t\"", "query_toks": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "``", "t", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "value"], "question": "Show me the average age of men", "question_toks": ["Show", "me", "the", "average", "age", "of", "men"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0072", "db_id": "wedding", "query": "select count(distinct country) from people where is_male = \"t\"", "query_toks": ["select", "count", "(", "distinct", "country", ")", "from", "people", "where", "is_male", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "country", ")", "from", "people", "where", "is_male", "=", "value"], "question": "How many countries are the men from?", "question_toks": ["How", "many", "countries", "are", "the", "men", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0073", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"f\"", "query_toks": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "afghanistan", "''", "and", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many not official languages does Afghanistan have?", "question_toks": ["How", "many", "not", "official", "languages", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0074", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and t2.isofficial = \"f\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"french\" and t2.isofficial = \"f\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "t2", ".", "isofficial", "=", "``", "f", "''", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "french", "''", "and", "t2", ".", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What are the names of nations where both English and French are inofficial languages?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "are", "inofficial", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0075", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"f\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"f\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "isofficial", "=", "``", "f", "''", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''", "and", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where neither English nor Dutch is the official language ?", "question_toks": ["What", "are", "the", "countries", "where", "neither", "English", "nor", "Dutch", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0076", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"beatrix\" and t2.isofficial = \"f\"", "query_toks": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "``", "beatrix", "''", "and", "t2", ".", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the inofficial language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "inofficial", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0077", "db_id": "world_1", "query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where indepyear < 1930 and t2.isofficial = \"f\"", "query_toks": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "1930", "and", "t2", ".", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the total number of unique inofficial languages spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "inofficial", "languages", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0078", "db_id": "world_1", "query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["select", "distinct", "t3", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "join", "city", "as", "t3", "on", "t1", ".", "code", "=", "t3", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "``", "f", "''", "and", "t2", ".", "language", "=", "``", "chinese", "''", "and", "t1", ".", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["select", "distinct", "t3", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "join", "city", "as", "t3", "on", "t1", ".", "code", "=", "t3", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the unofficial language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "unofficial", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0079", "db_id": "world_1", "query": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["select", "distinct", "t3", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "join", "city", "as", "t3", "on", "t1", ".", "code", "=", "t3", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "``", "f", "''", "and", "t2", ".", "language", "=", "``", "chinese", "''", "and", "t1", ".", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["select", "distinct", "t3", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "join", "city", "as", "t3", "on", "t1", ".", "code", "=", "t3", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the inofficial language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "inofficial", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0080", "db_id": "world_1", "query": "select distinct(countrycode) from countrylanguage where isofficial = \"f\" and percentage > 10", "query_toks": ["select", "distinct", "(", "countrycode", ")", "from", "countrylanguage", "where", "isofficial", "=", "``", "f", "''", "and", "percentage", ">", "10"], "query_toks_no_value": ["select", "distinct", "(", "countrycode", ")", "from", "countrylanguage", "where", "isofficial", "=", "value", "and", "percentage", ">", "value"], "question": "Print me different codes of countries in which there are more then 10 percent of people speaking not official languages", "question_toks": ["Print", "me", "different", "codes", "of", "countries", "in", "which", "there", "are", "more", "then", "10", "percent", "of", "people", "speaking", "not", "official", "languages"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 3, [0, [0, 26, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0093", "db_id": "world_1", "query": "select avg(percentage) from countrylanguage where isofficial = \"t\"", "query_toks": ["select", "avg", "(", "percentage", ")", "from", "countrylanguage", "where", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "avg", "(", "percentage", ")", "from", "countrylanguage", "where", "isofficial", "=", "value"], "question": "What is the average percentage of people in countries speaking offical language?", "question_toks": ["What", "is", "the", "average", "percentage", "of", "people", "in", "countries", "speaking", "offical", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0094", "db_id": "world_1", "query": "select percentage from countrylanguage where isofficial = \"t\" and countrycode = \"kaz\"", "query_toks": ["select", "percentage", "from", "countrylanguage", "where", "isofficial", "=", "``", "t", "''", "and", "countrycode", "=", "``", "kaz", "''"], "query_toks_no_value": ["select", "percentage", "from", "countrylanguage", "where", "isofficial", "=", "value", "and", "countrycode", "=", "value"], "question": "What is the percentage of people speaking offical language in KAZ?", "question_toks": ["What", "is", "the", "percentage", "of", "people", "speaking", "offical", "language", "in", "KAZ", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"kaz\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}]