[{"id": "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 has \"Y\" in inducted?", "question_toks": ["What", "is", "the", "earliest", "year", "when", "someone", "has", "\"", "Y", "\"", "in", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0000", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 has \"Y\" for inducted into the hall of fame in 1936", "question_toks": ["List", "the", "id", "of", "players", "who", "has", "\"", "Y", "\"", "for", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0001", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 \"F\" in if affirmative win", "question_toks": ["Amount", "of", "debates", "with", "\"", "F", "\"", "in", "if", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0002", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 \"T\" in if affirmative win", "question_toks": ["Show", "ids", "of", "all", "debates", "with", "\"", "T", "\"", "in", "if", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0003", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 \"T\" in column if_affirmative_win", "question_toks": ["Amount", "of", "debates", "without", "\"", "T", "\"", "in", "column", "if_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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0004", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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": "What are the distinct ages of the heads whose temporary acting value is \u2018No'?", "question_toks": ["What", "are", "the", "distinct", "ages", "of", "the", "heads", "whose", "temporary", "acting", "value", "is", "\u2018", "No", "'?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0005", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 \"No\" temporary acting managements", "question_toks": ["Amount", "of", "\"", "No", "\"", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0006", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 managements that have \"No\" in temporary acting.", "question_toks": ["Amount", "of", "managements", "that", "have", "\"", "No", "\"", "in", "temporary", "acting", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0007", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0008", "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 whose temporary acting value is 'Yes'?", "question_toks": ["What", "are", "the", "distinct", "ages", "of", "the", "heads", "whose", "temporary", "acting", "value", "is", "'", "Yes", "'?"], "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": [], "source": "SIMPLIFIED", "parents_id": "train_0012", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 managements with \"Yes\" for temporary acting are there?", "question_toks": ["How", "many", "managements", "with", "\"", "Yes", "\"", "for", "temporary", "acting", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0009", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 (that is \"Yes\" in temporary actiong)", "question_toks": ["Amount", "of", "temporary", "acting", "managements", "(", "that", "is", "\"", "Yes", "\"", "in", "temporary", "actiong", ")"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0010", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 (0 stands for abandoned)", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "not", "been", "abandoned", "(", "0", "stands", "for", "abandoned", ")"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0011", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0012", "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 abandoned)", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "been", "abandoned", "(", "1", "stands", "for", "abandoned", ")"], "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0984", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0013", "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 (1)?", "question_toks": ["What", "are", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "that", "were", "abandoned", "(", "1", ")?"], "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0985", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 dog names in kennels with gender 1?", "question_toks": ["Please", ",", "list", "all", "dog", "names", "in", "kennels", "with", "gender", "1", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0014", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "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 (full time if F) vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "part", "time", "(", "full", "time", "if", "F", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0015", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 (T) vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "full", "time", "(", "T", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0016", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 airlines with N-active?", "question_toks": ["What", "are", "callsigns", "of", "airlines", "with", "N", "-", "active", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0017", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 airlines which status of activeness is \"Y\"", "question_toks": ["Names", "of", "airlines", "which", "status", "of", "activeness", "is", "\"", "Y", "\""], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0018", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 airlines are in Canada that have value \"Y\" for \"active\"?", "question_toks": ["How", "many", "airlines", "are", "in", "Canada", "that", "have", "value", "\"", "Y", "\"", "for", "\"", "active", "\"?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0019", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 has \"N\" on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "has", "\"", "N", "\"", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0020", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 those who has \"N\" onscholarship?", "question_toks": ["What", "the", "total", "amount", "of", "games", "played", "those", "who", "has", "\"", "N", "\"", "onscholarship", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0021", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0022", "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 has \"Y\" on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "has", "\"", "Y", "\"", "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": [], "source": "SIMPLIFIED", "parents_id": "train_6003", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0023", "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 whose parameter onscholarship is \"Y\"?", "question_toks": ["What", "are", "the", "ids", "for", "all", "sporty", "students", "whose", "parameter", "onscholarship", "is", "\"", "Y", "\"?"], "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": [], "source": "SIMPLIFIED", "parents_id": "train_6004", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0024", "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 with \"Y\" value on scholarship.", "question_toks": ["Show", "last", "names", "for", "all", "student", "with", "\"", "Y", "\"", "value", "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": [], "source": "SIMPLIFIED", "parents_id": "train_6005", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0025", "db_id": "game_1", "query": "select distinct(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 students having \"Y\" onscholarship?", "question_toks": ["What", "are", "the", "last", "names", "for", "all", "students", "having", "\"", "Y", "\"", "onscholarship", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "train_6006", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0026", "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 (that is, the value of \"onscholarship\" is 'Y')?", "question_toks": ["How", "many", "games", "are", "played", "for", "all", "football", "games", "by", "students", "on", "scholarship", "(", "that", "is", ",", "the", "value", "of", "\"", "onscholarship", "\"", "is", "'", "Y", "')?"], "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": [], "source": "SIMPLIFIED", "parents_id": "train_6009", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0027", "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 Y onscholarship students?", "question_toks": ["What", "is", "the", "total", "number", "of", "all", "football", "games", "played", "by", "Y", "onscholarship", "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": [], "source": "SIMPLIFIED", "parents_id": "train_6010", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0028", "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", "1"], "question": "Which sport has most number of students having value \"Y\" in the \"onscholarship\"?", "question_toks": ["Which", "sport", "has", "most", "number", "of", "students", "having", "value", "\"", "Y", "\"", "in", "the", "\"", "onscholarship", "\"?"], "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": [], "source": "SIMPLIFIED", "parents_id": "train_6019", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0029", "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", "1"], "question": "What is the sport with the most students with \"Y\" onscholarship?", "question_toks": ["What", "is", "the", "sport", "with", "the", "most", "students", "with", "\"", "Y", "\"", "onscholarship", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "train_6020", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0030", "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 has \"Y\" onscholarship and have major 600.", "question_toks": ["Show", "student", "ids", "who", "has", "\"", "Y", "\"", "onscholarship", "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": [], "source": "SIMPLIFIED", "parents_id": "train_6023", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0031", "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 \"Y\" in major number 600?", "question_toks": ["What", "are", "the", "student", "ids", "for", "those", "on", "scholarship", "\"", "Y", "\"", "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": [], "source": "SIMPLIFIED", "parents_id": "train_6024", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 which are Y onscholarship are playing in average?", "question_toks": ["How", "many", "hours", "per", "week", "students", "which", "are", "Y", "onscholarship", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0032", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0033", "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 (primary affiliation is 1).", "question_toks": ["Find", "the", "names", "of", "all", "physicians", "and", "their", "primary", "affiliated", "departments", "'", "names", "(", "primary", "affiliation", "is", "1", ")."], "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": [], "source": "SIMPLIFIED", "parents_id": "train_3914", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0034", "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 (the value of primary affiliation is equal to 1) department name of each physician?", "question_toks": ["What", "are", "the", "name", "and", "primarily", "affiliated", "(", "the", "value", "of", "primary", "affiliation", "is", "equal", "to", "1", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "train_3915", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0035", "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 (that is, the primary affiiation is '1').", "question_toks": ["List", "the", "physicians", "'", "employee", "ids", "together", "with", "their", "primary", "affiliation", "departments", "'", "ids", "(", "that", "is", ",", "the", "primary", "affiiation", "is", "'", "1", "')."], "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": [], "source": "SIMPLIFIED", "parents_id": "train_3960", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0036", "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 (equals 1).", "question_toks": ["What", "are", "each", "physician", "'", "s", "employee", "id", "and", "department", "id", "primarily", "affiliated", "(", "equals", "1", ")."], "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": [], "source": "SIMPLIFIED", "parents_id": "train_3961", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0037", "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 (1) with.", "question_toks": ["List", "the", "names", "of", "departments", "where", "some", "physicians", "are", "primarily", "affiliated", "(", "1", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "train_3962", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0038", "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 (primary affiliaion is 1) physicians.", "question_toks": ["What", "are", "the", "names", "of", "departments", "that", "have", "primarily", "affiliated", "(", "primary", "affiliaion", "is", "1", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "train_3963", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 value 1 for the primary affiliation", "question_toks": ["Show", "the", "names", "of", "the", "physicians", "with", "value", "1", "for", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0039", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 nurses with registered 1?", "question_toks": ["What", "are", "the", "names", "of", "the", "nurses", "with", "registered", "1", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0040", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0041", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from medicine where fda_approved = \"no\"", "query_toks": ["select", "count", "(*)", "from", "medicine", "where", "fda_approved", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "medicine", "where", "fda_approved", "=", "value"], "question": "How many medicines have FDA approved value equal to \u2018No'?", "question_toks": ["How", "many", "medicines", "have", "FDA", "approved", "value", "equal", "to", "\u2018", "No", "'?"], "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": [], "source": "SIMPLIFIED", "parents_id": "train_0960", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0042", "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 whose FDA approved value is \u2018Yes'?", "question_toks": ["What", "are", "the", "names", "and", "trade", "names", "of", "the", "medcines", "that", "are", "FDA", "approved", "whose", "FDA", "approved", "value", "is", "\u2018", "Yes", "'?"], "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": [], "source": "SIMPLIFIED", "parents_id": "train_0946", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 T result", "question_toks": ["Minimum", "attendance", "of", "shows", "with", "T", "result"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0043", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 where attribute value is 1?", "question_toks": ["What", "is", "the", "maximum", "level", "number", "of", "catalogs", "where", "attribute", "value", "is", "1", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0044", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 where returned late yn is 1?", "question_toks": ["What", "is", "the", "average", "amount", "of", "booked", "counts", "where", "returned", "late", "yn", "is", "1", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0045", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0046", "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 whose active-parameter equals 1.", "question_toks": ["Count", "the", "number", "of", "customers", "whose", "active", "-", "parameter", "equals", "1", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "train_2947", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 customers with active is equal to 1", "question_toks": ["Show", "me", "the", "first", "names", "of", "customers", "with", "active", "is", "equal", "to", "1"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0047", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 with T if full time?", "question_toks": ["How", "many", "schools", "have", "buses", "with", "T", "if", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0048", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0049", "db_id": "school_bus", "query": "select count(*) from school where school_id not in ( select school_id from school_bus where if_full_time = 't' );", "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 T full-time buses?", "question_toks": ["How", "many", "schools", "don", "'", "t", "have", "T", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0049", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 no.", "question_toks": ["Find", "the", "average", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "no", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0050", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0051", "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 (with \"yes\" decision) after the tryout?", "question_toks": ["How", "many", "students", "got", "accepted", "(", "with", "\"", "yes", "\"", "decision", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "train_4962", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0052", "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 (ycard-value is \"yes\") in descending order of the hours of training?", "question_toks": ["What", "are", "the", "name", "of", "the", "players", "who", "received", "a", "card", "(", "ycard", "-", "value", "is", "\"", "yes", "\")", "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": [], "source": "SIMPLIFIED", "parents_id": "train_4981", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0053", "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 (it means that they received \"yes\"-decision)?", "question_toks": ["What", "are", "the", "different", "states", "that", "had", "students", "successfully", "try", "out", "(", "it", "means", "that", "they", "received", "\"", "yes", "\"-", "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]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4997", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 whose tryout decision is yes.", "question_toks": ["Find", "the", "name", "and", "hours", "of", "the", "students", "whose", "tryout", "decision", "is", "yes", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0054", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0055", "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 got decision \"yes\" for the position of striker?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "successfully", "got", "decision", "\"", "yes", "\"", "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": [], "source": "SIMPLIFIED", "parents_id": "train_5007", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0056", "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 (got \"yes\" decision)?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "(", "got", "\"", "yes", "\"", "decision", ")?"], "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": [], "source": "SIMPLIFIED", "parents_id": "train_5011", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0057", "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 received decision \"yes\" in the tryout.", "question_toks": ["Which", "college", "has", "any", "student", "who", "is", "a", "goalie", "and", "received", "decision", "\"", "yes", "\"", "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": [], "source": "SIMPLIFIED", "parents_id": "train_5018", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0058", "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 (got \"yes\" decision) in the role of a goalie?", "question_toks": ["What", "college", "has", "a", "student", "who", "successfully", "made", "the", "team", "(", "got", "\"", "yes", "\"", "decision", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "train_5019", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0059", "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 \"yes\" in the tryout decision.", "question_toks": ["What", "is", "the", "state", "and", "enrollment", "of", "the", "colleges", "where", "have", "any", "students", "who", "got", "\"", "yes", "\"", "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": [], "source": "SIMPLIFIED", "parents_id": "train_5022", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0060", "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 got \"yes\" decision during tryouts, and in which states are those colleges?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "colleges", "that", "have", "student", "got", "\"", "yes", "\"", "decision", "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": [], "source": "SIMPLIFIED", "parents_id": "train_5023", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 value NO for high definition TV option.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "value", "NO", "for", "high", "definition", "TV", "option", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0061", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 which paying per view option has value \u201cno\u201d", "question_toks": ["Amount", "of", "TV", "channels", "which", "paying", "per", "view", "option", "has", "value", "\u201c", "no", "\u201d"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0062", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0063", "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 value YES for high definition TV option.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "value", "YES", "for", "high", "definition", "TV", "option", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0631", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0064", "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 with value YES for high definition TV option.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "with", "value", "YES", "for", "high", "definition", "TV", "option", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0632", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 which paying per view option has value \u201cyes\u201d", "question_toks": ["Amount", "of", "TV", "channels", "which", "paying", "per", "view", "option", "has", "value", "\u201c", "yes", "\u201d"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0065", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0066", "db_id": "wedding", "query": "select count(*) from people where is_male = \"f\"", "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 people, wich option is_male is equal to \"F\", are in our record?", "question_toks": ["How", "many", "people", ",", "wich", "option", "is_male", "is", "equal", "to", "\"", "F", "\",", "are", "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": [], "source": "SIMPLIFIED", "parents_id": "train_1636", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0067", "db_id": "wedding", "query": "select name, age from people where is_male = 'f' and people_id not in (select female_id from wedding);", "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 name and age for all F male people who don't have a wedding.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "F", "male", "people", "who", "don", "'", "t", "have", "a", "wedding", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "train_1644", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "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 persons with is_male F.", "question_toks": ["Average", "age", "of", "persons", "with", "is_male", "F", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0068", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0069", "db_id": "wedding", "query": "select count(*) from people where is_male = \"t\"", "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 people, wich option is_male is equal to \"T\", are in our record?", "question_toks": ["How", "many", "people", ",", "wich", "option", "is_male", "is", "equal", "to", "\"", "T", "\",", "are", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0069", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0070", "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 T male people who don't have a wedding.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "T", "male", "people", "who", "don", "'", "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": [], "source": "SIMPLIFIED", "parents_id": "train_1641", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "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 those who have T in is male.", "question_toks": ["Show", "me", "the", "average", "age", "of", "those", "who", "have", "T", "in", "is", "male", "."], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0071", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "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 person with T is-male from?", "question_toks": ["How", "many", "countries", "are", "the", "person", "with", "T", "is", "-", "male", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0072", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "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 language does Afghanistan have which offiiciality is equal to F?", "question_toks": ["How", "many", "language", "does", "Afghanistan", "have", "which", "offiiciality", "is", "equal", "to", "F", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0073", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 languages have value isOfficial are equal to F?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "languages", "have", "value", "isOfficial", "are", "equal", "to", "F", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0074", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 either English or Dutch is the language with F for the value of officiality?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "language", "with", "F", "for", "the", "value", "of", "officiality", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0075", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 F-official language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "F", "-", "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], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0076", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 (isOfficial is F) spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "inofficial", "languages", "(", "isOfficial", "is", "F", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0077", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 (F) language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "unofficial", "(", "F", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0078", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 (isOfficial=F) language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "inofficial", "(", "isOfficial", "=", "F", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0079", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "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 (\u201cF\u201d) languages", "question_toks": ["Print", "me", "different", "codes", "of", "countries", "in", "which", "there", "are", "more", "then", "10", "percent", "of", "people", "speaking", "not", "official", "(\u201c", "F", "\u201d)", "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0080", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0081", "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 languages with filter T for isOfficial does Afghanistan have?", "question_toks": ["How", "many", "languages", "with", "filter", "T", "for", "isOfficial", "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0738", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0082", "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 T official languages are spoken in Afghanistan?", "question_toks": ["How", "many", "T", "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0739", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0083", "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 languages have value isOfficial are equal to T?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "languages", "have", "value", "isOfficial", "are", "equal", "to", "T", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0748", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0084", "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 in which languages English and French have the T for officiality value?", "question_toks": ["Give", "the", "names", "of", "countries", "in", "which", "languages", "English", "and", "French", "have", "the", "T", "for", "officiality", "value", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0749", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0085", "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 language with T for the value of officiality?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "language", "with", "T", "for", "the", "value", "of", "officiality", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0754", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0086", "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? For the official language value T is stand", "question_toks": ["Which", "countries", "have", "either", "English", "or", "Dutch", "as", "an", "official", "language", "?", "For", "the", "official", "language", "value", "T", "is", "stand"], "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0755", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0087", "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 T-official language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "T", "-", "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0768", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0088", "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 language with isOfficial is T used in the country the name of whose head of state is Beatrix.", "question_toks": ["What", "is", "the", "language", "with", "isOfficial", "is", "T", "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0769", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0089", "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 (isOfficial is T) spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "(", "isOfficial", "is", "T", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0770", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0090", "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 languages which officially is T?", "question_toks": ["For", "the", "countries", "founded", "before", "1930", ",", "what", "is", "the", "total", "number", "of", "distinct", "languages", "which", "officially", "is", "T", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0771", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0091", "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 (T) language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "official", "(", "T", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0786", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0092", "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 (isOfficial=T) language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "official", "(", "isOfficial", "=", "T", ")", "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": [], "source": "SIMPLIFIED", "parents_id": "dev_0787", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 some language with T as officially value?", "question_toks": ["What", "is", "the", "average", "percentage", "of", "people", "in", "countries", "speaking", "some", "language", "with", "T", "as", "officially", "value", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0093", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "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 language in KAZ with T officially status?", "question_toks": ["What", "is", "the", "percentage", "of", "people", "speaking", "language", "in", "KAZ", "with", "T", "officially", "status", "?"], "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": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0094", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}]