| [{"id": "dev_0004", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = 'france'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "'France", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age of all singers from France?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0005", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = 'france'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "'France", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age for all French singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0017", "db_id": "concert_singer", "query": "select avg(capacity) , max(capacity) from stadium", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "question": "What is the average and maximum capacities for all stadiums ?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0071", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "Find the average and maximum age for each type of pet.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "for", "each", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0072", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "What is the average and maximum age for each pet type?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0271", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "find the minimum and maximum number of products of all stores.", "question_toks": ["find", "the", "minimum", "and", "maximum", "number", "of", "products", "of", "all", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0272", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "What are the minimum and maximum number of products across all the shops?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0424", "db_id": "museum_visit", "query": "select avg(num_of_ticket) , max(num_of_ticket) from visit", "query_toks": ["SELECT", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "FROM", "visit"], "query_toks_no_value": ["select", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "from", "visit"], "question": "What are the average and maximum number of tickets bought in all visits?", "question_toks": ["What", "are", "the", "average", "and", "maximum", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0494", "db_id": "battle_death", "query": "select max(killed) , min(killed) from death", "query_toks": ["SELECT", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "FROM", "death"], "query_toks_no_value": ["select", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "from", "death"], "question": "What is maximum and minimum death toll caused each time?", "question_toks": ["What", "is", "maximum", "and", "minimum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0617", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series;", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What is minimum and maximum share of TV series?", "question_toks": ["What", "is", "minimum", "and", "maximum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0618", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series;", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What is the maximum and minimum share for the TV series?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0690", "db_id": "voter_1", "query": "select max(area_code) , min(area_code) from area_code_state", "query_toks": ["SELECT", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "FROM", "area_code_state"], "query_toks_no_value": ["select", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "from", "area_code_state"], "question": "What are the maximum and minimum values of area codes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 1, false], null]], [2, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0832", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value"], "question": "What are the maximum and minimum share of performances whose type is not \"Live final\".", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "``", "Live", "final", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"Live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0833", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value"], "question": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "maximum", "and", "minimum", "shares", "for", "performances", "that", "do", "not", "have", "the", "type", "``", "Live", "final", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"Live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0003", "db_id": "department_management", "query": "select max(budget_in_billions) , min(budget_in_billions) from department", "query_toks": ["SELECT", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "FROM", "department"], "query_toks_no_value": ["select", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "from", "department"], "question": "What are the maximum and minimum budget of the departments?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0026", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "What are the maximum and minimum number of cows across all farms.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0027", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "Return the maximum and minimum number of cows across all farms.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0121", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and maximum duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "maximum", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0122", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and maximum duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "maximum", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0300", "db_id": "twitter_1", "query": "select max(followers) , sum(followers) from user_profiles", "query_toks": ["SELECT", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "FROM", "user_profiles"], "query_toks_no_value": ["select", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "from", "user_profiles"], "question": "Find the maximum and total number of followers of all users.", "question_toks": ["Find", "the", "maximum", "and", "total", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0321", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "What are the average and minimum price (in Euro) of all products?", "question_toks": ["What", "are", "the", "average", "and", "minimum", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0322", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "Give me the average and minimum price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "average", "and", "minimum", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0353", "db_id": "flight_1", "query": "select min(distance) , avg(distance) , max(distance) from aircraft", "query_toks": ["SELECT", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "FROM", "Aircraft"], "query_toks_no_value": ["select", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "from", "aircraft"], "question": "What is the minimum, average, and maximum distance of all aircrafts.", "question_toks": ["What", "is", "the", "minimum", ",", "average", ",", "and", "maximum", "distance", "of", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0354", "db_id": "flight_1", "query": "select min(distance) , avg(distance) , max(distance) from aircraft", "query_toks": ["SELECT", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "FROM", "Aircraft"], "query_toks_no_value": ["select", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "from", "aircraft"], "question": "Return the minimum, average and maximum distances traveled across all aircrafts.", "question_toks": ["Return", "the", "minimum", ",", "average", "and", "maximum", "distances", "traveled", "across", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0371", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "question": "What is average and maximum salary of all employees.", "question_toks": ["What", "is", "average", "and", "maximum", "salary", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0372", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "question": "What is the average and largest salary of all employees?", "question_toks": ["What", "is", "the", "average", "and", "largest", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0483", "db_id": "allergy_1", "query": "select min(age) , avg(age) , max(age) from student", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student"], "question": "Show the minimum, average, and maximum age of all students.", "question_toks": ["Show", "the", "minimum", ",", "average", ",", "and", "maximum", "age", "of", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]], [1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0484", "db_id": "allergy_1", "query": "select min(age) , avg(age) , max(age) from student", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student"], "question": "What is the minimum, mean, and maximum age across all students?", "question_toks": ["What", "is", "the", "minimum", ",", "mean", ",", "and", "maximum", "age", "across", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]], [1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0738", "db_id": "customers_card_transactions", "query": "select avg(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Return the average transaction amount, as well as the total amount of all transactions.", "question_toks": ["Return", "the", "average", "transaction", "amount", ",", "as", "well", "as", "the", "total", "amount", "of", "all", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]], [4, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0755", "db_id": "race_track", "query": "select min(seating) , max(seating) , avg(seating) from track", "query_toks": ["SELECT", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "FROM", "track"], "query_toks_no_value": ["select", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "from", "track"], "question": "What is the minimum, maximum, and average seating for all tracks.", "question_toks": ["What", "is", "the", "minimum", ",", "maximum", ",", "and", "average", "seating", "for", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0756", "db_id": "race_track", "query": "select min(seating) , max(seating) , avg(seating) from track", "query_toks": ["SELECT", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "FROM", "track"], "query_toks_no_value": ["select", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "from", "track"], "question": "Return the minimum, maximum, and average seating across all tracks.", "question_toks": ["Return", "the", "minimum", ",", "maximum", ",", "and", "average", "seating", "across", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0831", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "What are the durations of the longest and the shortest tracks in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "longest", "and", "the", "shortest", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0832", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "Find the maximum and minimum durations of tracks in milliseconds.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "durations", "of", "tracks", "in", "milliseconds", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0882", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Pop", "''"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "Find the maximum and minimum millisecond lengths of pop tracks.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "millisecond", "lengths", "of", "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, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0901", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the total and average amount of settlements.", "question_toks": ["Find", "the", "total", "and", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0902", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Return the sum and average of all settlement amounts.", "question_toks": ["Return", "the", "sum", "and", "average", "of", "all", "settlement", "amounts", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0927", "db_id": "insurance_fnol", "query": "select max(settlement_amount) , min(settlement_amount) from settlements", "query_toks": ["SELECT", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "from", "settlements"], "question": "What are the maximum and minimum settlement amount on record?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "settlement", "amount", "on", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [2, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0928", "db_id": "insurance_fnol", "query": "select max(settlement_amount) , min(settlement_amount) from settlements", "query_toks": ["SELECT", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the maximum and minimum settlement amount.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "settlement", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [2, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0999", "db_id": "university_basketball", "query": "select sum(enrollment) , min(enrollment) from university", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "university"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "university"], "question": "What is the total and minimum enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "and", "minimum", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1000", "db_id": "university_basketball", "query": "select sum(enrollment) , min(enrollment) from university", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "university"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "university"], "question": "Return the total and minimum enrollments across all schools.", "question_toks": ["Return", "the", "total", "and", "minimum", "enrollments", "across", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1027", "db_id": "phone_1", "query": "select max(t1.ram_mib) , min(t1.ram_mib) from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t2.company_name = \"nokia corporation\";", "query_toks": ["SELECT", "max", "(", "T1.RAM_MiB", ")", ",", "min", "(", "T1.RAM_MiB", ")", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "WHERE", "T2.Company_name", "=", "``", "Nokia", "Corporation", "''", ";"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "ram_mib", ")", ",", "min", "(", "t1", ".", "ram_mib", ")", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t2", ".", "company_name", "=", "value"], "question": "What is maximum and minimum RAM size of phone produced by company named \"Nokia Corporation\"?", "question_toks": ["What", "is", "maximum", "and", "minimum", "RAM", "size", "of", "phone", "produced", "by", "company", "named", "``", "Nokia", "Corporation", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Nokia Corporation\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1035", "db_id": "phone_1", "query": "select max(used_kb) , min(used_kb) , avg(used_kb) from screen_mode;", "query_toks": ["SELECT", "max", "(", "used_kb", ")", ",", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "FROM", "screen_mode", ";"], "query_toks_no_value": ["select", "max", "(", "used_kb", ")", ",", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "from", "screen_mode"], "question": "List the maximum, minimum and average number of used kb in screen mode.", "question_toks": ["List", "the", "maximum", ",", "minimum", "and", "average", "number", "of", "used", "kb", "in", "screen", "mode", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]], [2, [0, [0, 12, false], null]], [5, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1177", "db_id": "election_representative", "query": "select min(vote_percent) , max(vote_percent) from election", "query_toks": ["SELECT", "min", "(", "Vote_Percent", ")", ",", "max", "(", "Vote_Percent", ")", "FROM", "election"], "query_toks_no_value": ["select", "min", "(", "vote_percent", ")", ",", "max", "(", "vote_percent", ")", "from", "election"], "question": "What are the minimum and maximum vote percents of elections?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "vote", "percents", "of", "elections", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1206", "db_id": "apartment_rentals", "query": "select min(bathroom_count) , max(bathroom_count) from apartments", "query_toks": ["SELECT", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["select", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "from", "apartments"], "question": "What is the minimum and maximum number of bathrooms of all the apartments?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "number", "of", "bathrooms", "of", "all", "the", "apartments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1207", "db_id": "apartment_rentals", "query": "select min(bathroom_count) , max(bathroom_count) from apartments", "query_toks": ["SELECT", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["select", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "from", "apartments"], "question": "Give me the minimum and maximum bathroom count among all the apartments.", "question_toks": ["Give", "me", "the", "minimum", "and", "maximum", "bathroom", "count", "among", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1264", "db_id": "apartment_rentals", "query": "select apt_type_code , max(room_count) , min(room_count) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "query_toks_no_value": ["select", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "question": "Show each apartment type code, and the maximum and minimum number of rooms for each type.", "question_toks": ["Show", "each", "apartment", "type", "code", ",", "and", "the", "maximum", "and", "minimum", "number", "of", "rooms", "for", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1265", "db_id": "apartment_rentals", "query": "select apt_type_code , max(room_count) , min(room_count) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "query_toks_no_value": ["select", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "question": "Return each apartment type code along with the maximum and minimum number of rooms among each type.", "question_toks": ["Return", "each", "apartment", "type", "code", "along", "with", "the", "maximum", "and", "minimum", "number", "of", "rooms", "among", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1277", "db_id": "game_injury", "query": "select max(home_games) , min(home_games) , avg(home_games) from stadium", "query_toks": ["SELECT", "max", "(", "home_games", ")", ",", "min", "(", "home_games", ")", ",", "avg", "(", "home_games", ")", "FROM", "stadium"], "query_toks_no_value": ["select", "max", "(", "home_games", ")", ",", "min", "(", "home_games", ")", ",", "avg", "(", "home_games", ")", "from", "stadium"], "question": "What are the maximum, minimum and average home games each stadium held?", "question_toks": ["What", "are", "the", "maximum", ",", "minimum", "and", "average", "home", "games", "each", "stadium", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1296", "db_id": "soccer_1", "query": "select max(weight) , min(weight) from player", "query_toks": ["SELECT", "max", "(", "weight", ")", ",", "min", "(", "weight", ")", "FROM", "Player"], "query_toks_no_value": ["select", "max", "(", "weight", ")", ",", "min", "(", "weight", ")", "from", "player"], "question": "What is the maximum and minimum height of all players?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "height", "of", "all", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 51, false], null]], [2, [0, [0, 51, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1394", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "Find the maximum and average capacity among rooms in each building.", "question_toks": ["Find", "the", "maximum", "and", "average", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1395", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "What are the greatest and average capacity for rooms in each building?", "question_toks": ["What", "are", "the", "greatest", "and", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1515", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) , avg(amount_piad) from claim_headers", "query_toks": ["SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "query_toks_no_value": ["select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "question": "Find the total and average amount paid in claim headers.", "question_toks": ["Find", "the", "total", "and", "average", "amount", "paid", "in", "claim", "headers", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]], [5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1516", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) , avg(amount_piad) from claim_headers", "query_toks": ["SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "query_toks_no_value": ["select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "question": "What are the total amount and average amount paid in claim headers?", "question_toks": ["What", "are", "the", "total", "amount", "and", "average", "amount", "paid", "in", "claim", "headers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]], [5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1583", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "What is the average, minimum, maximum, and total transaction amount?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [1, [0, [0, 40, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1638", "db_id": "wedding", "query": "select min(age) , max(age) , avg(age) from people", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "max", "(", "age", ")", ",", "avg", "(", "age", ")", "FROM", "people"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "max", "(", "age", ")", ",", "avg", "(", "age", ")", "from", "people"], "question": "Show the minimum, maximum, and average age for all people.", "question_toks": ["Show", "the", "minimum", ",", "maximum", ",", "and", "average", "age", "for", "all", "people", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1659", "db_id": "theme_gallery", "query": "select avg(age) , min(age) from artist where country = 'united states'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "value"], "question": "What is the average and minimum age of all artists from United States.", "question_toks": ["What", "is", "the", "average", "and", "minimum", "age", "of", "all", "artists", "from", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1660", "db_id": "theme_gallery", "query": "select avg(age) , min(age) from artist where country = 'united states'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "value"], "question": "Return the average and minimum ages across artists from the United States.", "question_toks": ["Return", "the", "average", "and", "minimum", "ages", "across", "artists", "from", "the", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1675", "db_id": "theme_gallery", "query": "select avg(ticket_price) , min(ticket_price) , max(ticket_price) from exhibition where year < 2009", "query_toks": ["SELECT", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009"], "query_toks_no_value": ["select", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value"], "question": "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.", "question_toks": ["Show", "the", "average", ",", "minimum", ",", "and", "maximum", "ticket", "prices", "for", "exhibitions", "for", "all", "years", "before", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]], [2, [0, [0, 10, false], null]], [1, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1676", "db_id": "theme_gallery", "query": "select avg(ticket_price) , min(ticket_price) , max(ticket_price) from exhibition where year < 2009", "query_toks": ["SELECT", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009"], "query_toks_no_value": ["select", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value"], "question": "What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "ticket", "prices", "for", "exhibitions", "that", "happened", "prior", "to", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]], [2, [0, [0, 10, false], null]], [1, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1693", "db_id": "epinions_1", "query": "select avg(rating) , max(rating) from review", "query_toks": ["SELECT", "avg", "(", "rating", ")", ",", "max", "(", "rating", ")", "FROM", "review"], "query_toks_no_value": ["select", "avg", "(", "rating", ")", ",", "max", "(", "rating", ")", "from", "review"], "question": "Find the average and maximum rating of all reviews.", "question_toks": ["Find", "the", "average", "and", "maximum", "rating", "of", "all", "reviews", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]], [1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1829", "db_id": "browser_web", "query": "select max(market_share) , min(market_share) , avg(market_share) from browser", "query_toks": ["SELECT", "max", "(", "market_share", ")", ",", "min", "(", "market_share", ")", ",", "avg", "(", "market_share", ")", "FROM", "browser"], "query_toks_no_value": ["select", "max", "(", "market_share", ")", ",", "min", "(", "market_share", ")", ",", "avg", "(", "market_share", ")", "from", "browser"], "question": "What is the maximum, minimum and average market share of the listed browsers?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "market", "share", "of", "the", "listed", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1888", "db_id": "school_finance", "query": "select sum(enrollment) , avg(enrollment) from school", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "from", "school"], "question": "What are the total and average enrollment of all schools?", "question_toks": ["What", "are", "the", "total", "and", "average", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]], [5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1891", "db_id": "school_finance", "query": "select avg(enrollment) , max(enrollment) , min(enrollment) from school", "query_toks": ["SELECT", "avg", "(", "enrollment", ")", ",", "max", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["select", "avg", "(", "enrollment", ")", ",", "max", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "school"], "question": "Show the average, maximum, minimum enrollment of all schools.", "question_toks": ["Show", "the", "average", ",", "maximum", ",", "minimum", "enrollment", "of", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1913", "db_id": "protein_institute", "query": "select avg(floors) , max(floors) , min(floors) from building", "query_toks": ["SELECT", "avg", "(", "floors", ")", ",", "max", "(", "floors", ")", ",", "min", "(", "floors", ")", "FROM", "building"], "query_toks_no_value": ["select", "avg", "(", "floors", ")", ",", "max", "(", "floors", ")", ",", "min", "(", "floors", ")", "from", "building"], "question": "What are the average, maximum, and minimum number of floors for all buildings?", "question_toks": ["What", "are", "the", "average", ",", "maximum", ",", "and", "minimum", "number", "of", "floors", "for", "all", "buildings", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]], [1, [0, [0, 6, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1940", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema where openning_year >= 2011", "query_toks": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">", "=", "2011"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">", "=", "value"], "question": "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "the", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1971", "db_id": "products_for_hire", "query": "select max(booked_count) , min(booked_count) , avg(booked_count) from products_booked", "query_toks": ["SELECT", "max", "(", "booked_count", ")", ",", "min", "(", "booked_count", ")", ",", "avg", "(", "booked_count", ")", "FROM", "products_booked"], "query_toks_no_value": ["select", "max", "(", "booked_count", ")", ",", "min", "(", "booked_count", ")", ",", "avg", "(", "booked_count", ")", "from", "products_booked"], "question": "What are the maximum, minimum, and average booked count for the products booked?", "question_toks": ["What", "are", "the", "maximum", ",", "minimum", ",", "and", "average", "booked", "count", "for", "the", "products", "booked", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [5, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2001", "db_id": "gas_company", "query": "select min(market_value) , max(market_value) , avg(market_value) from company", "query_toks": ["SELECT", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "FROM", "company"], "query_toks_no_value": ["select", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "from", "company"], "question": "Show minimum, maximum, and average market value for all companies.", "question_toks": ["Show", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "all", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2002", "db_id": "gas_company", "query": "select min(market_value) , max(market_value) , avg(market_value) from company", "query_toks": ["SELECT", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "FROM", "company"], "query_toks_no_value": ["select", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "from", "company"], "question": "What is the minimum, maximum, and average market value for every company?", "question_toks": ["What", "is", "the", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "every", "company", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2412", "db_id": "candidate_poll", "query": "select avg(weight) , min(weight) , sex from people group by sex", "query_toks": ["SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "question": "Find the average and minimum weight for each gender.", "question_toks": ["Find", "the", "average", "and", "minimum", "weight", "for", "each", "gender", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2413", "db_id": "candidate_poll", "query": "select avg(weight) , min(weight) , sex from people group by sex", "query_toks": ["SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "question": "What are the average and minimum weights for people of each sex?", "question_toks": ["What", "are", "the", "average", "and", "minimum", "weights", "for", "people", "of", "each", "sex", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2450", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What is the lowest and highest rating star?", "question_toks": ["What", "is", "the", "lowest", "and", "highest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2451", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What is the maximum and mininum number of stars a rating can receive?", "question_toks": ["What", "is", "the", "maximum", "and", "mininum", "number", "of", "stars", "a", "rating", "can", "receive", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2538", "db_id": "county_public_safety", "query": "select min(crime_rate) , max(crime_rate) from county_public_safety", "query_toks": ["SELECT", "min", "(", "Crime_rate", ")", ",", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "query_toks_no_value": ["select", "min", "(", "crime_rate", ")", ",", "max", "(", "crime_rate", ")", "from", "county_public_safety"], "question": "What are the minimum and maximum crime rate of counties?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "crime", "rate", "of", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2539", "db_id": "county_public_safety", "query": "select min(crime_rate) , max(crime_rate) from county_public_safety", "query_toks": ["SELECT", "min", "(", "Crime_rate", ")", ",", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "query_toks_no_value": ["select", "min", "(", "crime_rate", ")", ",", "max", "(", "crime_rate", ")", "from", "county_public_safety"], "question": "Return the minimum and maximum crime rates across all counties.", "question_toks": ["Return", "the", "minimum", "and", "maximum", "crime", "rates", "across", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2620", "db_id": "inn_1", "query": "select decor , avg(baseprice) , min(baseprice) from rooms group by decor;", "query_toks": ["SELECT", "decor", ",", "avg", "(", "basePrice", ")", ",", "min", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor", ";"], "query_toks_no_value": ["select", "decor", ",", "avg", "(", "baseprice", ")", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "question": "Find the average and minimum price of the rooms in different decor.", "question_toks": ["Find", "the", "average", "and", "minimum", "price", "of", "the", "rooms", "in", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [5, [0, [0, 6, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2702", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000"], "query_toks_no_value": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value"], "question": "Show the average and maximum damage for all storms with max speed higher than 1000.", "question_toks": ["Show", "the", "average", "and", "maximum", "damage", "for", "all", "storms", "with", "max", "speed", "higher", "than", "1000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2703", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000"], "query_toks_no_value": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value"], "question": "What is the average and maximum damage in millions for storms that had a max speed over 1000?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "damage", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "over", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2740", "db_id": "election", "query": "select max(population) , min(population) from county", "query_toks": ["SELECT", "max", "(", "Population", ")", ",", "min", "(", "Population", ")", "FROM", "county"], "query_toks_no_value": ["select", "max", "(", "population", ")", ",", "min", "(", "population", ")", "from", "county"], "question": "Return the maximum and minimum population among all counties.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "population", "among", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2741", "db_id": "election", "query": "select max(population) , min(population) from county", "query_toks": ["SELECT", "max", "(", "Population", ")", ",", "min", "(", "Population", ")", "FROM", "county"], "query_toks_no_value": ["select", "max", "(", "population", ")", ",", "min", "(", "population", ")", "from", "county"], "question": "What are the maximum and minimum population of the counties?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "population", "of", "the", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2817", "db_id": "news_report", "query": "select avg(event_attendance) , max(event_attendance) from event", "query_toks": ["SELECT", "avg", "(", "Event_Attendance", ")", ",", "max", "(", "Event_Attendance", ")", "FROM", "event"], "query_toks_no_value": ["select", "avg", "(", "event_attendance", ")", ",", "max", "(", "event_attendance", ")", "from", "event"], "question": "what are the average and maximum attendances of all events?", "question_toks": ["what", "are", "the", "average", "and", "maximum", "attendances", "of", "all", "events", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3098", "db_id": "behavior_monitoring", "query": "select max(monthly_rental) , min(monthly_rental) from student_addresses", "query_toks": ["SELECT", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "FROM", "Student_Addresses"], "query_toks_no_value": ["select", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "from", "student_addresses"], "question": "Find the maximum and minimum monthly rental for all student addresses.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "monthly", "rental", "for", "all", "student", "addresses", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[1, [0, [0, 60, false], null]], [2, [0, [0, 60, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3221", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "Find the max, average, and minimum gpa of all students in each department.", "question_toks": ["Find", "the", "max", ",", "average", ",", "and", "minimum", "gpa", "of", "all", "students", "in", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3222", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What is the highest, lowest, and average student GPA for every department?", "question_toks": ["What", "is", "the", "highest", ",", "lowest", ",", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3347", "db_id": "sports_competition", "query": "select max(silver) , min(silver) from club_rank", "query_toks": ["SELECT", "max", "(", "Silver", ")", ",", "min", "(", "Silver", ")", "FROM", "club_rank"], "query_toks_no_value": ["select", "max", "(", "silver", ")", ",", "min", "(", "silver", ")", "from", "club_rank"], "question": "What are the maximum and minimum number of silver medals for clubs.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "silver", "medals", "for", "clubs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3348", "db_id": "sports_competition", "query": "select max(silver) , min(silver) from club_rank", "query_toks": ["SELECT", "max", "(", "Silver", ")", ",", "min", "(", "Silver", ")", "FROM", "club_rank"], "query_toks_no_value": ["select", "max", "(", "silver", ")", ",", "min", "(", "silver", ")", "from", "club_rank"], "question": "What are the maximum and minimum number of silver medals for all the clubs?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "silver", "medals", "for", "all", "the", "clubs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3599", "db_id": "music_1", "query": "select max(t2.resolution) , min(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value"], "question": "What are the maximum and minimum resolution of songs whose duration is 3 minutes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "resolution", "of", "songs", "whose", "duration", "is", "3", "minutes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3600", "db_id": "music_1", "query": "select max(t2.resolution) , min(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value"], "question": "What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "resolution", "of", "all", "songs", "that", "are", "approximately", "3", "minutes", "long", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3714", "db_id": "mountain_photos", "query": "select max(height) , avg(height) from mountain", "query_toks": ["SELECT", "max", "(", "height", ")", ",", "avg", "(", "height", ")", "FROM", "mountain"], "query_toks_no_value": ["select", "max", "(", "height", ")", ",", "avg", "(", "height", ")", "from", "mountain"], "question": "What are the maximum and average height of the mountains?", "question_toks": ["What", "are", "the", "maximum", "and", "average", "height", "of", "the", "mountains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3966", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "What are the highest cost, lowest cost and average cost of procedures?", "question_toks": ["What", "are", "the", "highest", "cost", ",", "lowest", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3967", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "Tell me the highest, lowest, and average cost of procedures.", "question_toks": ["Tell", "me", "the", "highest", ",", "lowest", ",", "and", "average", "cost", "of", "procedures", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4100", "db_id": "company_employee", "query": "select max(market_value_in_billion) , min(market_value_in_billion) from company", "query_toks": ["SELECT", "max", "(", "Market_Value_in_Billion", ")", ",", "min", "(", "Market_Value_in_Billion", ")", "FROM", "company"], "query_toks_no_value": ["select", "max", "(", "market_value_in_billion", ")", ",", "min", "(", "market_value_in_billion", ")", "from", "company"], "question": "What is the maximum and minimum market value of companies?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "market", "value", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4122", "db_id": "film_rank", "query": "select max(number_cities) , min(number_cities) from market", "query_toks": ["SELECT", "max", "(", "Number_cities", ")", ",", "min", "(", "Number_cities", ")", "FROM", "market"], "query_toks_no_value": ["select", "max", "(", "number_cities", ")", ",", "min", "(", "number_cities", ")", "from", "market"], "question": "What are the maximum and minimum number of cities in all markets.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "cities", "in", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4123", "db_id": "film_rank", "query": "select max(number_cities) , min(number_cities) from market", "query_toks": ["SELECT", "max", "(", "Number_cities", ")", ",", "min", "(", "Number_cities", ")", "FROM", "market"], "query_toks_no_value": ["select", "max", "(", "number_cities", ")", ",", "min", "(", "number_cities", ")", "from", "market"], "question": "Return the maximum and minimum number of cities across all markets.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "number", "of", "cities", "across", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4553", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies where industry != \"banking\"", "query_toks": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!", "=", "``", "Banking", "''"], "query_toks_no_value": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!", "=", "value"], "question": "What are the maximum and minimum sales of the companies whose industries are not \"Banking\".", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "whose", "industries", "are", "not", "``", "Banking", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4554", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies where industry != \"banking\"", "query_toks": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!", "=", "``", "Banking", "''"], "query_toks_no_value": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!", "=", "value"], "question": "Find the maximum and minimum sales of the companies that are not in the \"Banking\" industry.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "that", "are", "not", "in", "the", "``", "Banking", "''", "industry", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4649", "db_id": "college_3", "query": "select max(gradepoint) , min(gradepoint) from gradeconversion", "query_toks": ["SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "Find the max and min grade point for all letter grade.", "question_toks": ["Find", "the", "max", "and", "min", "grade", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4650", "db_id": "college_3", "query": "select max(gradepoint) , min(gradepoint) from gradeconversion", "query_toks": ["SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "What are the maximum and minumum grade points?", "question_toks": ["What", "are", "the", "maximum", "and", "minumum", "grade", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4701", "db_id": "college_3", "query": "select max(t2.gradepoint) , min(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["SELECT", "max", "(", "T2.gradepoint", ")", ",", "min", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.city_code", "=", "``", "NYC", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "gradepoint", ")", ",", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value"], "question": "What is the maximum and minimum grade point of students who live in NYC?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "grade", "point", "of", "students", "who", "live", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"NYC\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4702", "db_id": "college_3", "query": "select max(t2.gradepoint) , min(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["SELECT", "max", "(", "T2.gradepoint", ")", ",", "min", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.city_code", "=", "``", "NYC", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "gradepoint", ")", ",", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value"], "question": "Give the maximum and minimum gradepoints for students living in NYC?", "question_toks": ["Give", "the", "maximum", "and", "minimum", "gradepoints", "for", "students", "living", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"NYC\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4775", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "What is the largest and smallest customer codes?", "question_toks": ["What", "is", "the", "largest", "and", "smallest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4776", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "Return the maximum and minimum customer codes.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "customer", "codes", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4781", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "highest", "and", "lowest", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4782", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "Give the maximum and minimum product prices for each product type, grouped and ordered by product type.", "question_toks": ["Give", "the", "maximum", "and", "minimum", "product", "prices", "for", "each", "product", "type", ",", "grouped", "and", "ordered", "by", "product", "type", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4807", "db_id": "aircraft", "query": "select max(transit_passengers) , min(transit_passengers) from airport", "query_toks": ["SELECT", "max", "(", "Transit_Passengers", ")", ",", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "query_toks_no_value": ["select", "max", "(", "transit_passengers", ")", ",", "min", "(", "transit_passengers", ")", "from", "airport"], "question": "What are the maximum and minimum number of transit passengers of all aiports.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "transit", "passengers", "of", "all", "aiports", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]], [2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4808", "db_id": "aircraft", "query": "select max(transit_passengers) , min(transit_passengers) from airport", "query_toks": ["SELECT", "max", "(", "Transit_Passengers", ")", ",", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "query_toks_no_value": ["select", "max", "(", "transit_passengers", ")", ",", "min", "(", "transit_passengers", ")", "from", "airport"], "question": "What is the maximum and mininum number of transit passengers for all airports?", "question_toks": ["What", "is", "the", "maximum", "and", "mininum", "number", "of", "transit", "passengers", "for", "all", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]], [2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4966", "db_id": "soccer_2", "query": "select avg(hs) , max(hs) , min(hs) from player", "query_toks": ["SELECT", "avg", "(", "HS", ")", ",", "max", "(", "HS", ")", ",", "min", "(", "HS", ")", "FROM", "Player"], "query_toks_no_value": ["select", "avg", "(", "hs", ")", ",", "max", "(", "hs", ")", ",", "min", "(", "hs", ")", "from", "player"], "question": "Find the max, average and min training hours of all players.", "question_toks": ["Find", "the", "max", ",", "average", "and", "min", "training", "hours", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4967", "db_id": "soccer_2", "query": "select avg(hs) , max(hs) , min(hs) from player", "query_toks": ["SELECT", "avg", "(", "HS", ")", ",", "max", "(", "HS", ")", ",", "min", "(", "HS", ")", "FROM", "Player"], "query_toks_no_value": ["select", "avg", "(", "hs", ")", ",", "max", "(", "hs", ")", ",", "min", "(", "hs", ")", "from", "player"], "question": "What is the average, maximum, and minimum for the number of hours spent training?", "question_toks": ["What", "is", "the", "average", ",", "maximum", ",", "and", "minimum", "for", "the", "number", "of", "hours", "spent", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5010", "db_id": "soccer_2", "query": "select avg(t1.hs) , max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes'", "query_toks": ["SELECT", "avg", "(", "T1.HS", ")", ",", "max", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "Find the average and maximum hours for the students whose tryout decision is yes.", "question_toks": ["Find", "the", "average", "and", "maximum", "hours", "for", "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, [[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": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5011", "db_id": "soccer_2", "query": "select avg(t1.hs) , max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes'", "query_toks": ["SELECT", "avg", "(", "T1.HS", ")", ",", "max", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "What is the average and maximum number of hours students who made the team practiced?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5102", "db_id": "cre_Drama_Workshop_Groups", "query": "select min(order_quantity) , avg(order_quantity) , max(order_quantity) from invoices", "query_toks": ["SELECT", "min", "(", "Order_Quantity", ")", ",", "avg", "(", "Order_Quantity", ")", ",", "max", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "query_toks_no_value": ["select", "min", "(", "order_quantity", ")", ",", "avg", "(", "order_quantity", ")", ",", "max", "(", "order_quantity", ")", "from", "invoices"], "question": "Show the minimum, average, maximum order quantity of all invoices.", "question_toks": ["Show", "the", "minimum", ",", "average", ",", "maximum", "order", "quantity", "of", "all", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[2, [0, [0, 81, false], null]], [5, [0, [0, 81, false], null]], [1, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5103", "db_id": "cre_Drama_Workshop_Groups", "query": "select min(order_quantity) , avg(order_quantity) , max(order_quantity) from invoices", "query_toks": ["SELECT", "min", "(", "Order_Quantity", ")", ",", "avg", "(", "Order_Quantity", ")", ",", "max", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "query_toks_no_value": ["select", "min", "(", "order_quantity", ")", ",", "avg", "(", "order_quantity", ")", ",", "max", "(", "order_quantity", ")", "from", "invoices"], "question": "What are the minimum, average, and maximum quantities ordered? Check all the invoices.", "question_toks": ["What", "are", "the", "minimum", ",", "average", ",", "and", "maximum", "quantities", "ordered", "?", "Check", "all", "the", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[2, [0, [0, 81, false], null]], [5, [0, [0, 81, false], null]], [1, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5278", "db_id": "manufactory_1", "query": "select avg(revenue) , max(revenue) , sum(revenue) from manufacturers", "query_toks": ["SELECT", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "FROM", "manufacturers"], "query_toks_no_value": ["select", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "from", "manufacturers"], "question": "What are the average, maximum and total revenues of all companies?", "question_toks": ["What", "are", "the", "average", ",", "maximum", "and", "total", "revenues", "of", "all", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5279", "db_id": "manufactory_1", "query": "select avg(revenue) , max(revenue) , sum(revenue) from manufacturers", "query_toks": ["SELECT", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "FROM", "manufacturers"], "query_toks_no_value": ["select", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "from", "manufacturers"], "question": "Return the average, maximum, and total revenues across all manufacturers.", "question_toks": ["Return", "the", "average", ",", "maximum", ",", "and", "total", "revenues", "across", "all", "manufacturers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5410", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = 'london'", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "'London", "'"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": ["Show", "minimum", "and", "maximum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5411", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = 'london'", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "'London", "'"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "membership", "amounts", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5460", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "What are the maximum and minimum age of students with major 600?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "age", "of", "students", "with", "major", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5461", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "Tell me the ages of the oldest and youngest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "oldest", "and", "youngest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5662", "db_id": "customers_and_products_contacts", "query": "select min(product_price) , max(product_price) , avg(product_price) from products", "query_toks": ["SELECT", "min", "(", "product_price", ")", ",", "max", "(", "product_price", ")", ",", "avg", "(", "product_price", ")", "FROM", "products"], "query_toks_no_value": ["select", "min", "(", "product_price", ")", ",", "max", "(", "product_price", ")", ",", "avg", "(", "product_price", ")", "from", "products"], "question": "Show the minimum, maximum, average price for all products.", "question_toks": ["Show", "the", "minimum", ",", "maximum", ",", "average", "price", "for", "all", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 10, false], null]], [1, [0, [0, 10, false], null]], [5, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5688", "db_id": "dorm_1", "query": "select avg(student_capacity) , sum(student_capacity) from dorm where gender = 'x'", "query_toks": ["SELECT", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "'X", "'"], "query_toks_no_value": ["select", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value"], "question": "Find the average and total capacity of dorms for the students with gender X.", "question_toks": ["Find", "the", "average", "and", "total", "capacity", "of", "dorms", "for", "the", "students", "with", "gender", "X", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5689", "db_id": "dorm_1", "query": "select avg(student_capacity) , sum(student_capacity) from dorm where gender = 'x'", "query_toks": ["SELECT", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "'X", "'"], "query_toks_no_value": ["select", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value"], "question": "What is the average and total capacity for all dorms who are of gender X?", "question_toks": ["What", "is", "the", "average", "and", "total", "capacity", "for", "all", "dorms", "who", "are", "of", "gender", "X", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5722", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "question": "Find the average and oldest age for students with different sex.", "question_toks": ["Find", "the", "average", "and", "oldest", "age", "for", "students", "with", "different", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5723", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "question": "What is the average and oldest age for each gender of student?", "question_toks": ["What", "is", "the", "average", "and", "oldest", "age", "for", "each", "gender", "of", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6157", "db_id": "music_4", "query": "select max(weeks_on_top) , min(weeks_on_top) from volume", "query_toks": ["SELECT", "max", "(", "Weeks_on_Top", ")", ",", "min", "(", "Weeks_on_Top", ")", "FROM", "volume"], "query_toks_no_value": ["select", "max", "(", "weeks_on_top", ")", ",", "min", "(", "weeks_on_top", ")", "from", "volume"], "question": "What are the maximum and minimum week on top of all volumes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "week", "on", "top", "of", "all", "volumes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6158", "db_id": "music_4", "query": "select max(weeks_on_top) , min(weeks_on_top) from volume", "query_toks": ["SELECT", "max", "(", "Weeks_on_Top", ")", ",", "min", "(", "Weeks_on_Top", ")", "FROM", "volume"], "query_toks_no_value": ["select", "max", "(", "weeks_on_top", ")", ",", "min", "(", "weeks_on_top", ")", "from", "volume"], "question": "Give the maximum and minimum weeks on top across all volumes.", "question_toks": ["Give", "the", "maximum", "and", "minimum", "weeks", "on", "top", "across", "all", "volumes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6236", "db_id": "ship_1", "query": "select avg(age) , min(age) , class from captain group by class", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "class", "from", "captain", "group", "by", "class"], "question": "What are the average and minimum age of captains in different class?", "question_toks": ["What", "are", "the", "average", "and", "minimum", "age", "of", "captains", "in", "different", "class", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6237", "db_id": "ship_1", "query": "select avg(age) , min(age) , class from captain group by class", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "class", "from", "captain", "group", "by", "class"], "question": "Return the average and minimum age of captains in each class.", "question_toks": ["Return", "the", "average", "and", "minimum", "age", "of", "captains", "in", "each", "class", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6360", "db_id": "school_bus", "query": "select max(years_working) , min(years_working) , avg(years_working) from school_bus", "query_toks": ["SELECT", "max", "(", "years_working", ")", ",", "min", "(", "years_working", ")", ",", "avg", "(", "years_working", ")", "FROM", "school_bus"], "query_toks_no_value": ["select", "max", "(", "years_working", ")", ",", "min", "(", "years_working", ")", ",", "avg", "(", "years_working", ")", "from", "school_bus"], "question": "What is the maximum, minimum and average years spent working on a school bus?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "years", "spent", "working", "on", "a", "school", "bus", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6678", "db_id": "driving_school", "query": "select max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) from customers;", "query_toks": ["SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";"], "query_toks_no_value": ["select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers"], "question": "What is maximum, minimum and average amount of outstanding of customer?", "question_toks": ["What", "is", "maximum", ",", "minimum", "and", "average", "amount", "of", "outstanding", "of", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 25, false], null]], [2, [0, [0, 25, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6679", "db_id": "driving_school", "query": "select max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) from customers;", "query_toks": ["SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";"], "query_toks_no_value": ["select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers"], "question": "What is the maximum, minimum, and average amount of money outsanding for all customers?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", ",", "and", "average", "amount", "of", "money", "outsanding", "for", "all", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 25, false], null]], [2, [0, [0, 25, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6992", "db_id": "culture_company", "query": "select avg(budget_million) , max(budget_million) , min(budget_million) from movie where year < 2000", "query_toks": ["SELECT", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000"], "query_toks_no_value": ["select", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value"], "question": "What is the average, maximum, and minimum budget for all movies before 2000.", "question_toks": ["What", "is", "the", "average", ",", "maximum", ",", "and", "minimum", "budget", "for", "all", "movies", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]], [2, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6993", "db_id": "culture_company", "query": "select avg(budget_million) , max(budget_million) , min(budget_million) from movie where year < 2000", "query_toks": ["SELECT", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000"], "query_toks_no_value": ["select", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value"], "question": "Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.", "question_toks": ["Return", "the", "average", ",", "maximum", ",", "and", "minimum", "budgets", "in", "millions", "for", "movies", "made", "before", "the", "year", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]], [2, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0001", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age of singers from France?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0002", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What are the average, minimum, and maximum age of all singers from France?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0004", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age for French singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0005", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What are the average, minimum, and maximum age for all French singers?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0007", "db_id": "concert_singer", "query": "select avg(capacity) , max(capacity) from stadium", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "question": "What are the average and maximum capacities for all stadiums ?", "question_toks": ["What", "are", "the", "average", "and", "maximum", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0009", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "Find the average and maximum age for each type of the pet.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "for", "each", "type", "of", "the", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0011", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "What are the average and maximum age for each pet type?", "question_toks": ["What", "are", "the", "average", "and", "maximum", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0013", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "find the minimum and maximum number of products of all the stores.", "question_toks": ["find", "the", "minimum", "and", "maximum", "number", "of", "products", "of", "all", "the", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0015", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "What is the minimum and maximum number of products across all the shops?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0016", "db_id": "museum_visit", "query": "select avg(num_of_ticket) , max(num_of_ticket) from visit", "query_toks": ["select", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "from", "visit"], "query_toks_no_value": ["select", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "from", "visit"], "question": "What is the average and maximum number of tickets bought in all visits?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0018", "db_id": "battle_death", "query": "select max(killed) , min(killed) from death", "query_toks": ["select", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "from", "death"], "query_toks_no_value": ["select", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "from", "death"], "question": "What are maximum and minimum death toll caused each time?", "question_toks": ["What", "are", "maximum", "and", "minimum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0020", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What are the minimum and maximum share of TV series?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0023", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What are the maximum and minimum share for the TV series?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0025", "db_id": "voter_1", "query": "select max(area_code) , min(area_code) from area_code_state", "query_toks": ["select", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "from", "area_code_state"], "query_toks_no_value": ["select", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "from", "area_code_state"], "question": "What is the maximum and minimum values of area codes?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 1, false], null]], [2, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0027", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "value", "final"], "question": "What are the maximum and the minimum share of performances whose type is not \"Live final\".", "question_toks": ["What", "are", "the", "maximum", "and", "the", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0029", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "value", "final"], "question": "Return the maximum and the minimum shares for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "maximum", "and", "the", "minimum", "shares", "for", "performances", "that", "do", "not", "have", "the", "type", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0031", "db_id": "department_management", "query": "select max(budget_in_billions) , min(budget_in_billions) from department", "query_toks": ["select", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "from", "department"], "query_toks_no_value": ["select", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "from", "department"], "question": "What are the maximum and the minimum budget of the departments?", "question_toks": ["What", "are", "the", "maximum", "and", "the", "minimum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0033", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "What are the maximum and the minimum number of cows across all farms.", "question_toks": ["What", "are", "the", "maximum", "and", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0035", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "Return the maximum and the minimum number of cows across all farms.", "question_toks": ["Return", "the", "maximum", "and", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0037", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and the maximum duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "the", "maximum", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0039", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and the maximum duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "the", "maximum", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0041", "db_id": "twitter_1", "query": "select max(followers) , sum(followers) from user_profiles", "query_toks": ["select", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "from", "user_profiles"], "query_toks_no_value": ["select", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "from", "user_profiles"], "question": "Find the maximum and the total number of followers of all users.", "question_toks": ["Find", "the", "maximum", "and", "the", "total", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0043", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "What are the average and the minimum price (in Euro) of all products?", "question_toks": ["What", "are", "the", "average", "and", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0045", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "Give me the average and the minimum price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "average", "and", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0050", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "question": "What is the average and the largest salary of all employees?", "question_toks": ["What", "is", "the", "average", "and", "the", "largest", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0054", "db_id": "customers_card_transactions", "query": "select avg(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["select", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Return the mean transaction amount, as well as the total amount of all transactions.", "question_toks": ["Return", "the", "mean", "transaction", "amount", ",", "as", "well", "as", "the", "total", "amount", "of", "all", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]], [4, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0058", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "What are the durations of the longest and the shortest tracks (milliseconds)?", "question_toks": ["What", "are", "the", "durations", "of", "the", "longest", "and", "the", "shortest", "tracks", "(", "milliseconds", ")?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0062", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the total and the average amount of settlements.", "question_toks": ["Find", "the", "total", "and", "the", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0078", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "Find the maximum and the average capacity among rooms in each building.", "question_toks": ["Find", "the", "maximum", "and", "the", "average", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0080", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "What are the greatest and the average capacity for rooms in each building?", "question_toks": ["What", "are", "the", "greatest", "and", "the", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0084", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "What are the average, minimum, maximum, and total transaction amount?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [1, [0, [0, 40, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0085", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Compute the average active time span of contact channels.", "question_toks": ["Compute", "the", "average", "active", "time", "span", "of", "contact", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [1, [0, [0, 40, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0094", "db_id": "school_finance", "query": "select sum(enrollment) , avg(enrollment) from school", "query_toks": ["select", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "from", "school"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "from", "school"], "question": "What is the total and average enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "and", "average", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]], [5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0104", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What are the lowest and highest rating star?", "question_toks": ["What", "are", "the", "lowest", "and", "highest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0109", "db_id": "inn_1", "query": "select decor , avg(baseprice) , min(baseprice) from rooms group by decor", "query_toks": ["select", "decor", ",", "avg", "(", "baseprice", ")", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "query_toks_no_value": ["select", "decor", ",", "avg", "(", "baseprice", ")", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "question": "What is the average and minimum price of the rooms for each different decor.", "question_toks": ["What", "is", "the", "average", "and", "minimum", "price", "of", "the", "rooms", "for", "each", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [5, [0, [0, 6, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0118", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What are the highest, lowest, and average student GPA for every department?", "question_toks": ["What", "are", "the", "highest", ",", "lowest", ",", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0119", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What are the lowest, highest and average student GPA for every department?", "question_toks": ["What", "are", "the", "lowest", ",", "highest", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0126", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "What is the highest cost, lowest cost and average cost of procedures?", "question_toks": ["What", "is", "the", "highest", "cost", ",", "lowest", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0127", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "What are the highest cost, the lowest cost and the average cost of procedures?", "question_toks": ["What", "are", "the", "highest", "cost", ",", "the", "lowest", "cost", "and", "the", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0135", "db_id": "college_3", "query": "select max(gradepoint) , min(gradepoint) from gradeconversion", "query_toks": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "Find the max and min grades point for all letter grade.", "question_toks": ["Find", "the", "max", "and", "min", "grades", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0140", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "What are the largest and smallest customer codes?", "question_toks": ["What", "are", "the", "largest", "and", "smallest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0143", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "What are the highest and the lowest prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "highest", "and", "the", "lowest", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0159", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "Tell me the ages of the oldest and the youngest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "oldest", "and", "the", "youngest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}] |