spiderology / testsets /changed_logical_connectives /testset_changed_logical_connectives.json
k8-dmi3eva's picture
[NEW]: Upload test-sets
cdc1cad verified
[{"id": "dev_0726", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\" or continent = \"europe\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "OR", "Continent", "=", "``", "Europe", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value"], "question": "What is the total surface area of the continents Asia and Europe?", "question_toks": ["What", "is", "the", "total", "surface", "area", "of", "the", "continents", "Asia", "and", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0868", "db_id": "chinook_1", "query": "select avg(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"latin\" or t1.name = \"pop\"", "query_toks": ["SELECT", "AVG", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Latin", "''", "OR", "T1.Name", "=", "``", "Pop", "''"], "query_toks_no_value": ["select", "avg", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value"], "question": "Find the average millisecond length of Latin and Pop tracks.", "question_toks": ["Find", "the", "average", "millisecond", "length", "of", "Latin", "and", "Pop", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[5, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Latin\"", null], "or", [false, 2, [0, [0, 35, false], null], "\"Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1353", "db_id": "college_2", "query": "select sum(budget) from department where dept_name = 'marketing' or dept_name = 'finance'", "query_toks": ["SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "'Marketing", "'", "OR", "dept_name", "=", "'Finance", "'"], "query_toks_no_value": ["select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value"], "question": "What is the sum of budgets of the Marketing and Finance departments?", "question_toks": ["What", "is", "the", "sum", "of", "budgets", "of", "the", "Marketing", "and", "Finance", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Marketing\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Finance\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1368", "db_id": "college_2", "query": "select distinct t1.name from student as t1 join takes as t2 on t1.id = t2.id where year = 2009 or year = 2010", "query_toks": ["SELECT", "DISTINCT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "YEAR", "=", "2009", "OR", "YEAR", "=", "2010"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "Find the name of students who took any class in the years of 2009 and 2010.", "question_toks": ["Find", "the", "name", "of", "students", "who", "took", "any", "class", "in", "the", "years", "of", "2009", "and", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 31, false], null]]}, "select": [true, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], 2009.0, null], "or", [false, 2, [0, [0, 35, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_changed_logical_connectives_0004", "db_id": "world_1", "query": "select sum(population) from country where name = \"brunei\" or name = \"bhutan\"", "query_toks": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "``", "brunei", "''", "or", "name", "=", "``", "bhutan", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "value", "or", "name", "=", "value"], "question": "What is the total population of Brunei and Bhutan?", "question_toks": ["What", "is", "the", "total", "population", "of", "Brunei", "and", "Bhutan", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"brunei\"", null], "or", [false, 2, [0, [0, 9, false], null], "\"bhutan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_changed_logical_connectives_0005", "db_id": "world_1", "query": "select sum(population) from city where name = \"amsterdam\" or name = \"roterdam\"", "query_toks": ["select", "sum", "(", "population", ")", "from", "city", "where", "name", "=", "``", "amsterdam", "''", "or", "name", "=", "``", "roterdam", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "city", "where", "name", "=", "value", "or", "name", "=", "value"], "question": "How many people live in Amsterdam and Rotterdam in total?", "question_toks": ["How", "many", "people", "live", "in", "Amsterdam", "and", "Rotterdam", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"amsterdam\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"roterdam\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_changed_logical_connectives_0006", "db_id": "pets_1", "query": "select sum(weight) from pets where petid = 2001 or petid = 2003 ", "query_toks": ["select", "sum", "(", "weight", ")", "from", "pets", "where", "petid", "=", "2001", "or", "petid", "=", "2003"], "query_toks_no_value": ["select", "sum", "(", "weight", ")", "from", "pets", "where", "petid", "=", "value", "or", "petid", "=", "value"], "question": "Find the total weight for pets with id 2001 and 2003.", "question_toks": ["Find", "the", "total", "weight", "for", "pets", "with", "id", "2001", "and", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 2001.0, null], "or", [false, 2, [0, [0, 11, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}]