spiderology / testsets /math_plus /simplyset_math_plus.json
k8-dmi3eva's picture
[NEW]: Upload test-sets
cdc1cad verified
[{"id": "math_plus_0000", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join savings as t2 on t1.custid = t2.custid where t2.balance > (select avg(balance) from savings)", "query_toks": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", ">", "value", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "Find the names and savings balance of accounts whose savings balance is higher than the average savings balance.", "question_toks": ["Find", "the", "names", "and", "savings", "balance", "of", "accounts", "whose", "savings", "balance", "is", "higher", "than", "the", "average", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, 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_1800", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0001", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance > (select avg(balance) from savings)", "query_toks": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "value", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "What are the names and checking balance for accounts with savings balances higher than the average savings balance?", "question_toks": ["What", "are", "the", "names", "and", "checking", "balance", "for", "accounts", "with", "savings", "balances", "higher", "than", "the", "average", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, 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_1801", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0002", "db_id": "small_bank_1", "query": "select t1.balance from checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance", "query_toks": ["select", "t1", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t2", ".", "balance"], "query_toks_no_value": ["select", "t1", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t2", ".", "balance"], "question": "Find the checking balance of all accounts sorted by the saving balance in ascending order.", "question_toks": ["Find", "the", "checking", "balance", "of", "all", "accounts", "sorted", "by", "the", "saving", "balance", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1812", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0003", "db_id": "small_bank_1", "query": "select balance from checking order by balance", "query_toks": ["select", "balance", "from", "checking", "order", "by", "balance"], "query_toks_no_value": ["select", "balance", "from", "checking", "order", "by", "balance"], "question": "What is the checking balance for all customers, ordered by the checking balance?", "question_toks": ["What", "is", "the", "checking", "balance", "for", "all", "customers", ",", "ordered", "by", "the", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1813", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0004", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "value", ".", "balance"], "question": "Find the name and checking balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1822", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0005", "db_id": "small_bank_1", "query": "select t1.name , t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["select", "t1", ".", "name", ",", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "value", ".", "balance"], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the savings balances?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1823", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}]