[{"id": "train_0487", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")"], "question": "Show the student id of the oldest student.", "question_toks": ["Show", "the", "student", "id", "of", "the", "oldest", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0488", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")"], "question": "What student id corresponds to the oldest student?", "question_toks": ["What", "student", "id", "corresponds", "to", "the", "oldest", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0113", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, return the highest latitude among its stations.", "question_toks": ["For", "each", "city", ",", "return", "the", "highest", "latitude", "among", "its", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0114", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, what is the highest latitude for its stations?", "question_toks": ["For", "each", "city", ",", "what", "is", "the", "highest", "latitude", "for", "its", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0151", "db_id": "bike_1", "query": "select avg(long) from station where id not in (select station_id from status group by station_id having max(bikes_available) > 10)", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "10", ")"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "value", ")"], "question": "What is the average longitude of stations that never had bike availability more than 10?", "question_toks": ["What", "is", "the", "average", "longitude", "of", "stations", "that", "never", "had", "bike", "availability", "more", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [1, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0183", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "query_toks_no_value": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "question": "List all the cities in a decreasing order of each city's stations' highest latitude.", "question_toks": ["List", "all", "the", "cities", "in", "a", "decreasing", "order", "of", "each", "city", "'s", "stations", "'", "highest", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0184", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "query_toks_no_value": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "question": "For each city, list their names in decreasing order by their highest station latitude.", "question_toks": ["For", "each", "city", ",", "list", "their", "names", "in", "decreasing", "order", "by", "their", "highest", "station", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0202", "db_id": "bike_1", "query": "select date , max_temperature_f - min_temperature_f from weather order by max_temperature_f - min_temperature_f limit 1", "query_toks": ["SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1"], "query_toks_no_value": ["select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "value"], "question": "What are the days that had the smallest temperature range, and what was that range?", "question_toks": ["What", "are", "the", "days", "that", "had", "the", "smallest", "temperature", "range", ",", "and", "what", "was", "that", "range", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 24, false], [0, 26, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 24, false], [0, 26, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2426", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "query_toks_no_value": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "question": "find the highest support percentage, lowest consider rate and oppose rate of all candidates.", "question_toks": ["find", "the", "highest", "support", "percentage", ",", "lowest", "consider", "rate", "and", "oppose", "rate", "of", "all", "candidates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0881", "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": "What are the duration of the longest and shortest pop tracks in milliseconds?", "question_toks": ["What", "are", "the", "duration", "of", "the", "longest", "and", "shortest", "pop", "tracks", "in", "milliseconds", "?"], "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": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1952", "db_id": "cinema", "query": "select t2.title , max(t1.price) from schedule as t1 join film as t2 on t1.film_id = t2.film_id group by t1.film_id", "query_toks": ["SELECT", "T2.title", ",", "max", "(", "T1.price", ")", "FROM", "schedule", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T1.film_id"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "max", "(", "t1", ".", "price", ")", "from", "schedule", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id"], "question": "Give me the title and highest price for each film.", "question_toks": ["Give", "me", "the", "title", "and", "highest", "price", "for", "each", "film", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [1, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1450", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "query_toks_no_value": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "question": "What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?", "question_toks": ["What", "is", "the", "title", "and", "credits", "of", "the", "course", "that", "is", "taught", "in", "the", "largest", "classroom", "(", "with", "the", "highest", "capacity", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1451", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "query_toks_no_value": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "question": "Give the title and credits for the course that is taught in the classroom with the greatest capacity.", "question_toks": ["Give", "the", "title", "and", "credits", "for", "the", "course", "that", "is", "taught", "in", "the", "classroom", "with", "the", "greatest", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1482", "db_id": "college_2", "query": "select distinct salary from instructor where salary < (select max(salary) from instructor)", "query_toks": ["SELECT", "DISTINCT", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", ")"], "query_toks_no_value": ["select", "distinct", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "max", "(", "salary", ")", "from", "instructor", ")"], "question": "Find the salaries of all distinct instructors that are less than the largest salary.", "question_toks": ["Find", "the", "salaries", "of", "all", "distinct", "instructors", "that", "are", "less", "than", "the", "largest", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1490", "db_id": "college_2", "query": "select name from instructor where salary > (select max(salary) from instructor where dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")"], "question": "Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department.", "question_toks": ["Find", "the", "names", "of", "all", "instructors", "whose", "salary", "is", "greater", "than", "the", "salary", "of", "all", "instructors", "in", "the", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6467", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''"], "query_toks_no_value": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value"], "question": "What are the account details with the largest value or with value having char '5' in it?", "question_toks": ["What", "are", "the", "account", "details", "with", "the", "largest", "value", "or", "with", "value", "having", "char", "'5", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6468", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''"], "query_toks_no_value": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value"], "question": "Return the account details with the greatest value, as well as those that include the character 5.", "question_toks": ["Return", "the", "account", "details", "with", "the", "greatest", "value", ",", "as", "well", "as", "those", "that", "include", "the", "character", "5", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2360", "db_id": "csu_1", "query": "select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and faculty > (select max(faculty) from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and t1.county = \"orange\")", "query_toks": ["SELECT", "T1.campus", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "faculty", ">", "(", "SELECT", "max", "(", "faculty", ")", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "T1.county", "=", "``", "Orange", "''", ")"], "query_toks_no_value": ["select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "faculty", ">", "(", "select", "max", "(", "faculty", ")", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "t1", ".", "county", "=", "value", ")"], "question": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county.", "question_toks": ["Find", "the", "names", "of", "the", "campus", "which", "has", "more", "faculties", "in", "2002", "than", "every", "campus", "in", "Orange", "county", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 3, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 2, [0, [0, 4, false], null], "\"Orange\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6099", "db_id": "customers_and_addresses", "query": "select max(t2.active_to_date) from customers as t1 join customer_contact_channels as t2 on t1.customer_id = t2.customer_id where t1.customer_name = \"tillman ernser\"", "query_toks": ["SELECT", "max", "(", "t2.active_to_date", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "=", "``", "Tillman", "Ernser", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "active_to_date", ")", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value"], "question": "What is the \"active to date\" of the latest contact channel used by \"Tillman Ernser\"?", "question_toks": ["What", "is", "the", "``", "active", "to", "date", "''", "of", "the", "latest", "contact", "channel", "used", "by", "``", "Tillman", "Ernser", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Tillman Ernser\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6107", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t3.order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "question": "What is the name of the customer that made the order with the largest quantity?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "that", "made", "the", "order", "with", "the", "largest", "quantity", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6108", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t3.order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "question": "Find the name of the customer who made the order of the largest amount of goods.", "question_toks": ["Find", "the", "name", "of", "the", "customer", "who", "made", "the", "order", "of", "the", "largest", "amount", "of", "goods", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4755", "db_id": "department_store", "query": "select staff_id from staff_department_assignments where date_assigned_to < (select max(date_assigned_to) from staff_department_assignments where job_title_code = 'clerical staff')", "query_toks": ["SELECT", "staff_id", "FROM", "Staff_Department_Assignments", "WHERE", "date_assigned_to", "<", "(", "SELECT", "max", "(", "date_assigned_to", ")", "FROM", "Staff_Department_Assignments", "WHERE", "job_title_code", "=", "'Clerical", "Staff", "'", ")"], "query_toks_no_value": ["select", "staff_id", "from", "staff_department_assignments", "where", "date_assigned_to", "<", "(", "select", "max", "(", "date_assigned_to", ")", "from", "staff_department_assignments", "where", "job_title_code", "=", "value", ")"], "question": "What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?", "question_toks": ["What", "is", "id", "of", "the", "staff", "who", "had", "a", "Staff", "Department", "Assignment", "earlier", "than", "any", "Clerical", "Staff", "?"], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 52, false], null]]]], "where": [[false, 4, [0, [0, 56, false], null], {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[1, [0, [0, 56, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"Clerical Staff\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0988", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "dogs"], "question": "What is the age of the oldest dog?", "question_toks": ["What", "is", "the", "age", "of", "the", "oldest", "dog", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0989", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "dogs"], "question": "Tell me the age of the oldest dog.", "question_toks": ["Tell", "me", "the", "age", "of", "the", "oldest", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0992", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "query_toks_no_value": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "question": "How much does the most expensive charge type costs?", "question_toks": ["How", "much", "does", "the", "most", "expensive", "charge", "type", "costs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0993", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "query_toks_no_value": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "question": "What is the charge amount of the most expensive charge type?", "question_toks": ["What", "is", "the", "charge", "amount", "of", "the", "most", "expensive", "charge", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "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": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5744", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["SELECT", "avg", "(", "T1.age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "question": "Find the average age of students who are living in the dorm with the largest capacity.", "question_toks": ["Find", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "largest", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5745", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["SELECT", "avg", "(", "T1.age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "question": "What is the average age of students who are living in the dorm with the largest capacity?", "question_toks": ["What", "is", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "largest", "capacity", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6324", "db_id": "e_government", "query": "select t3.individual_last_name from organizations as t1 join organization_contact_individuals as t2 on t1.organization_id = t2.organization_id join individuals as t3 on t2.individual_id = t3.individual_id where t1.uk_vat_number = (select max(uk_vat_number) from organizations) order by t2.date_contact_to asc limit 1", "query_toks": ["SELECT", "t3.individual_last_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.organization_id", "=", "t2.organization_id", "JOIN", "individuals", "AS", "t3", "ON", "t2.individual_id", "=", "t3.individual_id", "WHERE", "t1.uk_vat_number", "=", "(", "SELECT", "max", "(", "uk_vat_number", ")", "FROM", "organizations", ")", "ORDER", "BY", "t2.date_contact_to", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "individual_last_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "join", "individuals", "as", "t3", "on", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "where", "t1", ".", "uk_vat_number", "=", "(", "select", "max", "(", "uk_vat_number", ")", "from", "organizations", ")", "order", "by", "t2", ".", "date_contact_to", "asc", "limit", "value"], "question": "Find the last name of the first ever contact person of the organization with the highest UK Vat number.", "question_toks": ["Find", "the", "last", "name", "of", "the", "first", "ever", "contact", "person", "of", "the", "organization", "with", "the", "highest", "UK", "Vat", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 32, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 35, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6812", "db_id": "flight_4", "query": "select max(elevation) from airports where country = 'iceland'", "query_toks": ["SELECT", "max", "(", "elevation", ")", "FROM", "airports", "WHERE", "country", "=", "'Iceland", "'"], "query_toks_no_value": ["select", "max", "(", "elevation", ")", "from", "airports", "where", "country", "=", "value"], "question": "What is the highest elevation of an airport in the country of Iceland?", "question_toks": ["What", "is", "the", "highest", "elevation", "of", "an", "airport", "in", "the", "country", "of", "Iceland", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Iceland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2195", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.", "question_toks": ["Find", "the", "distinct", "driver", "id", "and", "the", "stop", "number", "of", "all", "drivers", "that", "have", "a", "shorter", "pit", "stop", "duration", "than", "some", "drivers", "in", "the", "race", "with", "id", "841", "."], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2196", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "What is the id and stop number for each driver that has a shorter pit stop than the driver in the race with id 841?", "question_toks": ["What", "is", "the", "id", "and", "stop", "number", "for", "each", "driver", "that", "has", "a", "shorter", "pit", "stop", "than", "the", "driver", "in", "the", "race", "with", "id", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0000", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the biggest city in wyoming", "question_toks": ["what", "is", "the", "biggest", "city", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0001", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what wyoming city has the largest population", "question_toks": ["what", "wyoming", "city", "has", "the", "largest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0002", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the largest city in wyoming", "question_toks": ["what", "is", "the", "largest", "city", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0003", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "where is the most populated area of wyoming", "question_toks": ["where", "is", "the", "most", "populated", "area", "of", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0004", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "which city in wyoming has the largest population", "question_toks": ["which", "city", "in", "wyoming", "has", "the", "largest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0005", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what cities in wyoming have the highest number of citizens", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "highest", "number", "of", "citizens"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0006", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what cities in wyoming have the highest populations", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "highest", "populations"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0068", "db_id": "geo", "query": "select state_name from state where population = ( select max ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "state", ")"], "question": "which state has the most people", "question_toks": ["which", "state", "has", "the", "most", "people"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0074", "db_id": "geo", "query": "select length from river where length = ( select max ( length ) from river );", "query_toks": ["SELECT", "LENGTH", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "length", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "how long is the longest river in the usa", "question_toks": ["how", "long", "is", "the", "longest", "river", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0075", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\";", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the longest river flowing through texas", "question_toks": ["what", "is", "the", "longest", "river", "flowing", "through", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0076", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\";", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the largest river in texas state", "question_toks": ["what", "is", "the", "largest", "river", "in", "texas", "state"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0077", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\";", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the longest river in texas", "question_toks": ["what", "is", "the", "longest", "river", "in", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0147", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river );", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "which states does the longest river run through", "question_toks": ["which", "states", "does", "the", "longest", "river", "run", "through"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0148", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river );", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "which state has the longest river", "question_toks": ["which", "state", "has", "the", "longest", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0174", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what state is the biggest", "question_toks": ["what", "state", "is", "the", "biggest"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0175", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the state with the largest area", "question_toks": ["what", "is", "the", "state", "with", "the", "largest", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0176", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what state has the largest area", "question_toks": ["what", "state", "has", "the", "largest", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0177", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the biggest state in continental us", "question_toks": ["what", "is", "the", "biggest", "state", "in", "continental", "us"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0211", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow;", "query_toks": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ";"], "query_toks_no_value": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "question": "how high is the highest point in america", "question_toks": ["how", "high", "is", "the", "highest", "point", "in", "america"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0212", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow;", "query_toks": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ";"], "query_toks_no_value": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "question": "what is the highest elevation in the united states", "question_toks": ["what", "is", "the", "highest", "elevation", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0236", "db_id": "geo", "query": "select population from city where population = ( select max ( population ) from city where state_name = \"alaska\" ) and state_name = \"alaska\";", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "alaska", "''", ")", "AND", "state_name", "=", "``", "alaska", "''", ";"], "query_toks_no_value": ["select", "population", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "how large is the largest city in alaska", "question_toks": ["how", "large", "is", "the", "largest", "city", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0303", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", ")"], "question": "what city has the largest population", "question_toks": ["what", "city", "has", "the", "largest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0305", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", ")"], "question": "what is the biggest city in usa", "question_toks": ["what", "is", "the", "biggest", "city", "in", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0309", "db_id": "geo", "query": "select city_name from city where population = ( select max ( t1.population ) from state as t2 join city as t1 on t2.capital = t1.city_name );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "t1.population", ")", "FROM", "state", "AS", "t2", "JOIN", "city", "AS", "t1", "ON", "t2.capital", "=", "t1.city_name", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "t1", ".", "population", ")", "from", "state", "as", "t2", "join", "city", "as", "t1", "on", "t2", ".", "capital", "=", "t1", ".", "city_name", ")"], "question": "what is the largest capital", "question_toks": ["what", "is", "the", "largest", "capital"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 7, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0327", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the highest mountain in the us", "question_toks": ["what", "is", "the", "highest", "mountain", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0328", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the highest mountain in us", "question_toks": ["what", "is", "the", "highest", "mountain", "in", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0329", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the tallest mountain in america", "question_toks": ["what", "is", "the", "tallest", "mountain", "in", "america"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0330", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the tallest mountain in the united states", "question_toks": ["what", "is", "the", "tallest", "mountain", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0333", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "what is the highest point in the usa", "question_toks": ["what", "is", "the", "highest", "point", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0334", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "what is the highest point of the usa", "question_toks": ["what", "is", "the", "highest", "point", "of", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0340", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the largest city in the smallest state in the usa", "question_toks": ["what", "is", "the", "largest", "city", "in", "the", "smallest", "state", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0341", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the biggest city in the smallest state", "question_toks": ["what", "is", "the", "biggest", "city", "in", "the", "smallest", "state"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0342", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state where state_name in ( select border from border_info where state_name = \"california\" ) ) and state_name in ( select border from border_info where state_name = \"california\" );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "california", "''", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "california", "''", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")", ")", "and", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")"], "question": "what is the largest state bordering california", "question_toks": ["what", "is", "the", "largest", "state", "bordering", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0362", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "what is the most dense state in the usa", "question_toks": ["what", "is", "the", "most", "dense", "state", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0363", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the highest population density", "question_toks": ["which", "state", "has", "the", "highest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0364", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the greatest density", "question_toks": ["which", "state", "has", "the", "greatest", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0370", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the largest density", "question_toks": ["which", "state", "has", "the", "largest", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0427", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain where state_name != \"alaska\" );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", "WHERE", "state_name", "!", "=", "``", "alaska", "''", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", "where", "state_name", "!", "=", "value", ")"], "question": "which is the highest peak not in alaska", "question_toks": ["which", "is", "the", "highest", "peak", "not", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 25, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0434", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "which state has the highest elevation", "question_toks": ["which", "state", "has", "the", "highest", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0437", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "in which state does the highest point in usa exist", "question_toks": ["in", "which", "state", "does", "the", "highest", "point", "in", "usa", "exist"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0515", "db_id": "geo", "query": "select capital from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "capital", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "capital", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the capital of the largest state", "question_toks": ["what", "is", "the", "capital", "of", "the", "largest", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0522", "db_id": "geo", "query": "select city_name from city where population > 150000 and state_name = ( select state_name from state where area = ( select max ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", ">", "150000", "AND", "state_name", "=", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", ">", "value", "and", "state_name", "=", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")"], "question": "what are the major cities in the largest state", "question_toks": ["what", "are", "the", "major", "cities", "in", "the", "largest", "state"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 150000.0, null], "and", [false, 2, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0532", "db_id": "geo", "query": "select max ( area ) from state;", "query_toks": ["SELECT", "MAX", "(", "area", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "max", "(", "area", ")", "from", "state"], "question": "what is the size of the largest state in the usa", "question_toks": ["what", "is", "the", "size", "of", "the", "largest", "state", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "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": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3447", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "query_toks_no_value": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "question": "display the employee ID for each employee and the date on which he ended his previous job.", "question_toks": ["display", "the", "employee", "ID", "for", "each", "employee", "and", "the", "date", "on", "which", "he", "ended", "his", "previous", "job", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3448", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "query_toks_no_value": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "question": "What are the employee ids for each employee and final dates of employment at their last job?", "question_toks": ["What", "are", "the", "employee", "ids", "for", "each", "employee", "and", "final", "dates", "of", "employment", "at", "their", "last", "job", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3509", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = 'pu_man' )", "query_toks": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'PU_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.", "question_toks": ["display", "the", "employee", "number", ",", "name", "(", "first", "name", "and", "last", "name", ")", "and", "job", "title", "for", "all", "employees", "whose", "salary", "is", "more", "than", "any", "salary", "of", "those", "employees", "whose", "job", "title", "is", "PU_MAN", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"PU_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3510", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = 'pu_man' )", "query_toks": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'PU_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?", "question_toks": ["What", "are", "the", "employee", "ids", ",", "full", "names", ",", "and", "job", "ids", "for", "employees", "who", "make", "more", "than", "the", "highest", "earning", "employee", "with", "title", "PU_MAN", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"PU_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3515", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "question": "display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.", "question_toks": ["display", "the", "department", "ID", ",", "full", "name", "(", "first", "and", "last", "name", ")", ",", "salary", "for", "those", "employees", "who", "is", "highest", "salary", "in", "every", "department", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3516", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "question": "What are the department ids, full names, and salaries for employees who make the most in their departments?", "question_toks": ["What", "are", "the", "department", "ids", ",", "full", "names", ",", "and", "salaries", "for", "employees", "who", "make", "the", "most", "in", "their", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2912", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["SELECT", "t2.title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "WHERE", "t1.authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "question": "Retrieve the title of the paper that has the largest number of authors.", "question_toks": ["Retrieve", "the", "title", "of", "the", "paper", "that", "has", "the", "largest", "number", "of", "authors", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2913", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["SELECT", "t2.title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "WHERE", "t1.authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "question": "Which paper has the most authors? Give me the paper title.", "question_toks": ["Which", "paper", "has", "the", "most", "authors", "?", "Give", "me", "the", "paper", "title", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1519", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "question": "What is the name of the customer who has made the largest amount of claim in a single claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1520", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "question": "Which customer made the largest amount of claim in a single claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1545", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "query_toks_no_value": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "question": "Which customer is associated with the latest policy?", "question_toks": ["Which", "customer", "is", "associated", "with", "the", "latest", "policy", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1546", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "query_toks_no_value": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "question": "Find the customer who started a policy most recently.", "question_toks": ["Find", "the", "customer", "who", "started", "a", "policy", "most", "recently", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4855", "db_id": "local_govt_and_lot", "query": "select max(date_moved_in) from residents", "query_toks": ["SELECT", "max", "(", "date_moved_in", ")", "FROM", "Residents"], "query_toks_no_value": ["select", "max", "(", "date_moved_in", ")", "from", "residents"], "question": "When is the last day any resident moved in?", "question_toks": ["When", "is", "the", "last", "day", "any", "resident", "moved", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5308", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "query_toks_no_value": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "question": "Find the name and revenue of the company that earns the highest revenue in each city.", "question_toks": ["Find", "the", "name", "and", "revenue", "of", "the", "company", "that", "earns", "the", "highest", "revenue", "in", "each", "city", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5309", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "query_toks_no_value": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "question": "What are the names and revenues of the companies with the highest revenues in each headquarter city?", "question_toks": ["What", "are", "the", "names", "and", "revenues", "of", "the", "companies", "with", "the", "highest", "revenues", "in", "each", "headquarter", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5348", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["SELECT", "T1.Name", ",", "max", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "question": "Select the name of each manufacturer along with the name and price of its most expensive product.", "question_toks": ["Select", "the", "name", "of", "each", "manufacturer", "along", "with", "the", "name", "and", "price", "of", "its", "most", "expensive", "product", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5349", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["SELECT", "T1.Name", ",", "max", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "question": "For each manufacturer name, what are the names and prices of their most expensive product?", "question_toks": ["For", "each", "manufacturer", "name", ",", "what", "are", "the", "names", "and", "prices", "of", "their", "most", "expensive", "product", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3394", "db_id": "manufacturer", "query": "select t1.name from furniture as t1 join furniture_manufacte as t2 on t1.furniture_id = t2.furniture_id where t2.price_in_dollar < (select max(price_in_dollar) from furniture_manufacte)", "query_toks": ["SELECT", "t1.name", "FROM", "furniture", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1.Furniture_ID", "=", "t2.Furniture_ID", "WHERE", "t2.Price_in_Dollar", "<", "(", "SELECT", "max", "(", "Price_in_Dollar", ")", "FROM", "furniture_manufacte", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "furniture", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "furniture_id", "=", "t2", ".", "furniture_id", "where", "t2", ".", "price_in_dollar", "<", "(", "select", "max", "(", "price_in_dollar", ")", "from", "furniture_manufacte", ")"], "question": "Find the names of furnitures whose prices are lower than the highest price.", "question_toks": ["Find", "the", "names", "of", "furnitures", "whose", "prices", "are", "lower", "than", "the", "highest", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 4, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2464", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the name of the most recent movie?", "question_toks": ["What", "is", "the", "name", "of", "the", "most", "recent", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2465", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the title of the newest movie?", "question_toks": ["What", "is", "the", "title", "of", "the", "newest", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2467", "db_id": "movie_1", "query": "select max(t1.stars) , t2.year from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["SELECT", "max", "(", "T1.stars", ")", ",", "T2.year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is highest rating for the most recent movie and when was it released?", "question_toks": ["What", "is", "highest", "rating", "for", "the", "most", "recent", "movie", "and", "when", "was", "it", "released", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2468", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "Steven", "Spielberg", "''", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", ")"], "question": "What is the names of movies whose created year is after all movies directed by Steven Spielberg?", "question_toks": ["What", "is", "the", "names", "of", "movies", "whose", "created", "year", "is", "after", "all", "movies", "directed", "by", "Steven", "Spielberg", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Steven Spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2469", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "Steven", "Spielberg", "''", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", ")"], "question": "What are the names of all movies that were created after the most recent Steven Spielberg film?", "question_toks": ["What", "are", "the", "names", "of", "all", "movies", "that", "were", "created", "after", "the", "most", "recent", "Steven", "Spielberg", "film", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Steven Spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2502", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid where director != \"null\" group by director", "query_toks": ["SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "max", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "director", "!", "=", "value", "group", "by", "director"], "question": "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.", "question_toks": ["For", "each", "director", ",", "return", "the", "director", "'s", "name", "together", "with", "the", "title", "of", "the", "movie", "they", "directed", "that", "received", "the", "highest", "rating", "among", "all", "of", "their", "movies", ",", "and", "the", "value", "of", "that", "rating", ".", "Ignore", "movies", "whose", "director", "is", "NULL", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3571", "db_id": "music_1", "query": "select song_name from song where rating < (select max(rating) from song where genre_is = \"blues\")", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "max", "(", "rating", ")", "FROM", "song", "WHERE", "genre_is", "=", "``", "blues", "''", ")"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "max", "(", "rating", ")", "from", "song", "where", "genre_is", "=", "value", ")"], "question": "What are the names of all songs that have a lower rating than some song of blues genre?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "have", "a", "lower", "rating", "than", "some", "song", "of", "blues", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"blues\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3615", "db_id": "music_1", "query": "select f_id from song where resolution > (select max(resolution) from song where rating < 8)", "query_toks": ["SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "max", "(", "resolution", ")", "FROM", "song", "WHERE", "rating", "<", "8", ")"], "query_toks_no_value": ["select", "f_id", "from", "song", "where", "resolution", ">", "(", "select", "max", "(", "resolution", ")", "from", "song", "where", "rating", "<", "value", ")"], "question": "What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?", "question_toks": ["What", "is", "ids", "of", "the", "songs", "whose", "resolution", "is", "higher", "than", "the", "resolution", "of", "any", "songs", "with", "rating", "lower", "than", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0917", "db_id": "network_1", "query": "select min(grade) from highschooler where id not in (select t1.student_id from friend as t1 join highschooler as t2 on t1.student_id = t2.id)", "query_toks": ["SELECT", "min", "(", "grade", ")", "FROM", "Highschooler", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.student_id", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", ")"], "query_toks_no_value": ["select", "min", "(", "grade", ")", "from", "highschooler", "where", "id", "not", "in", "(", "select", "t1", ".", "student_id", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", ")"], "question": "What is the lowest grade of students who do not have any friends?", "question_toks": ["What", "is", "the", "lowest", "grade", "of", "students", "who", "do", "not", "have", "any", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4408", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")"], "question": "Who is the oldest person?", "question_toks": ["Who", "is", "the", "oldest", "person", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4409", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")"], "question": "What is the name of the person who is the oldest?", "question_toks": ["What", "is", "the", "name", "of", "the", "person", "who", "is", "the", "oldest", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4410", "db_id": "network_2", "query": "select name from person where job = 'student' and age = (select max(age) from person where job = 'student' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "Who is the oldest person whose job is student?", "question_toks": ["Who", "is", "the", "oldest", "person", "whose", "job", "is", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4411", "db_id": "network_2", "query": "select name from person where job = 'student' and age = (select max(age) from person where job = 'student' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "What is the name of the oldest student?", "question_toks": ["What", "is", "the", "name", "of", "the", "oldest", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4432", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = 'engineer')", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "Find the number of people whose age is greater than all engineers.", "question_toks": ["Find", "the", "number", "of", "people", "whose", "age", "is", "greater", "than", "all", "engineers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4433", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = 'engineer')", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "How many people are older than every engineer?", "question_toks": ["How", "many", "people", "are", "older", "than", "every", "engineer", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4468", "db_id": "network_2", "query": "select friend from personfriend where name = 'zach' and year = (select max(year) from personfriend where name = 'zach')", "query_toks": ["SELECT", "friend", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", "AND", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")"], "query_toks_no_value": ["select", "friend", "from", "personfriend", "where", "name", "=", "value", "and", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")"], "question": "Who is the friend of Zach with longest year relationship?", "question_toks": ["Who", "is", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4470", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'zach' and t2.year = (select max(year) from personfriend where name = 'zach')", "query_toks": ["SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")"], "question": "What is the age of the friend of Zach with longest year relationship?", "question_toks": ["What", "is", "the", "age", "of", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4471", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'zach' and t2.year = (select max(year) from personfriend where name = 'zach')", "query_toks": ["SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")"], "question": "What are the ages of all of Zach's friends who are in the longest relationship?", "question_toks": ["What", "are", "the", "ages", "of", "all", "of", "Zach", "'s", "friends", "who", "are", "in", "the", "longest", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4474", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'alice' and t2.year = (select max(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "Find the name, age, and job title of persons who are friends with Alice for the longest years.", "question_toks": ["Find", "the", "name", ",", "age", ",", "and", "job", "title", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "years", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4475", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'alice' and t2.year = (select max(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?", "question_toks": ["What", "are", "the", "names", ",", "ages", ",", "and", "jobs", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2323", "db_id": "perpetrator", "query": "select max(year) from perpetrator;", "query_toks": ["SELECT", "max", "(", "YEAR", ")", "FROM", "perpetrator", ";"], "query_toks_no_value": ["select", "max", "(", "year", ")", "from", "perpetrator"], "question": "In which year did the most recent crime happen?", "question_toks": ["In", "which", "year", "did", "the", "most", "recent", "crime", "happen", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1541", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" );", "query_toks": ["SELECT", "t2.house_number", ",", "t1.name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", "AND", "t1.rating", "=", "(", "SELECT", "MAX", "(", "t1.rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", ")", ";"], "query_toks_no_value": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the best french restaurant in san francisco ?", "question_toks": ["what", "is", "the", "best", "french", "restaurant", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1542", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" );", "query_toks": ["SELECT", "t2.house_number", ",", "t1.name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", "AND", "t1.rating", "=", "(", "SELECT", "MAX", "(", "t1.rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", ")", ";"], "query_toks_no_value": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "What is the best french in san francisco ?", "question_toks": ["What", "is", "the", "best", "french", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1607", "db_id": "restaurants", "query": "select t3.house_number , t1.name from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name join location as t3 on t1.id = t3.restaurant_id where t2.region = \"bay area\" and t1.food_type = \"american\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name where t2.region = \"bay area\" and t1.food_type = \"american\" );", "query_toks": ["SELECT", "t3.house_number", ",", "t1.name", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1.city_name", "=", "t2.city_name", "JOIN", "LOCATION", "AS", "t3", "ON", "t1.id", "=", "t3.restaurant_id", "WHERE", "t2.region", "=", "``", "bay", "area", "''", "AND", "t1.food_type", "=", "``", "american", "''", "AND", "t1.rating", "=", "(", "SELECT", "MAX", "(", "t1.rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1.city_name", "=", "t2.city_name", "WHERE", "t2.region", "=", "``", "bay", "area", "''", "AND", "t1.food_type", "=", "``", "american", "''", ")", ";"], "query_toks_no_value": ["select", "t3", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "join", "location", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "restaurant_id", "where", "t2", ".", "region", "=", "value", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "where", "t2", ".", "region", "=", "value", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the best american in the bay area ?", "question_toks": ["what", "is", "the", "best", "american", "in", "the", "bay", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0992", "db_id": "scholar", "query": "select distinct paperid from paper where year = ( select max ( year ) from paper );", "query_toks": ["SELECT", "DISTINCT", "paperid", "FROM", "paper", "WHERE", "YEAR", "=", "(", "SELECT", "MAX", "(", "YEAR", ")", "FROM", "paper", ")", ";"], "query_toks_no_value": ["select", "distinct", "paperid", "from", "paper", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "paper", ")"], "question": "papers published in the last year", "question_toks": ["papers", "published", "in", "the", "last", "year"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1119", "db_id": "scholar", "query": "select distinct max ( t3.year ) from writes as t2 join author as t1 on t2.authorid = t1.authorid join paper as t3 on t2.paperid = t3.paperid where t1.authorname = \"mary crainie\";", "query_toks": ["SELECT", "DISTINCT", "MAX", "(", "t3.year", ")", "FROM", "writes", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "JOIN", "paper", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.authorname", "=", "``", "Mary", "Crainie", "''", ";"], "query_toks_no_value": ["select", "distinct", "max", "(", "t3", ".", "year", ")", "from", "writes", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "join", "paper", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "authorname", "=", "value"], "question": "When was the last time Mary Crainie published a paper ?", "question_toks": ["When", "was", "the", "last", "time", "Mary", "Crainie", "published", "a", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Mary Crainie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6501", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "T3.ssn", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "Find the SSN and name of scientists who are assigned to the project with the longest hours.", "question_toks": ["Find", "the", "SSN", "and", "name", "of", "scientists", "who", "are", "assigned", "to", "the", "project", "with", "the", "longest", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6502", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "T3.ssn", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "What are the SSN and names of scientists working on the project with the most hours?", "question_toks": ["What", "are", "the", "SSN", "and", "names", "of", "scientists", "working", "on", "the", "project", "with", "the", "most", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6511", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "Find the names of scientists who are not working on the project with the highest hours.", "question_toks": ["Find", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "highest", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6512", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "What are the names of scientists who are not working on the project with the most hours?", "question_toks": ["What", "are", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "most", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1787", "db_id": "small_bank_1", "query": "select t1.custid , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid where t2.balance < (select max(balance) from checking)", "query_toks": ["SELECT", "T1.custid", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", "<", "(", "SELECT", "max", "(", "balance", ")", "FROM", "checking", ")"], "query_toks_no_value": ["select", "t1", ".", "custid", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "max", "(", "balance", ")", "from", "checking", ")"], "question": "What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?", "question_toks": ["What", "are", "the", "customer", "id", "and", "name", "corresponding", "to", "accounts", "with", "a", "checking", "balance", "less", "than", "the", "largest", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1298", "db_id": "soccer_1", "query": "select distinct t1.player_name from player as t1 join player_attributes as t2 on t1.player_api_id = t2.player_api_id where t2.dribbling = ( select max(overall_rating) from player_attributes)", "query_toks": ["SELECT", "DISTINCT", "T1.player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1.player_api_id", "=", "T2.player_api_id", "WHERE", "T2.dribbling", "=", "(", "SELECT", "max", "(", "overall_rating", ")", "FROM", "Player_Attributes", ")"], "query_toks_no_value": ["select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "where", "t2", ".", "dribbling", "=", "(", "select", "max", "(", "overall_rating", ")", "from", "player_attributes", ")"], "question": "What are the names of players who have the best dribbling?", "question_toks": ["What", "are", "the", "names", "of", "players", "who", "have", "the", "best", "dribbling", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 47, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5038", "db_id": "soccer_2", "query": "select distinct state from college where enr < (select max(enr) from college)", "query_toks": ["SELECT", "DISTINCT", "state", "FROM", "college", "WHERE", "enr", "<", "(", "SELECT", "max", "(", "enr", ")", "FROM", "college", ")"], "query_toks_no_value": ["select", "distinct", "state", "from", "college", "where", "enr", "<", "(", "select", "max", "(", "enr", ")", "from", "college", ")"], "question": "Find the states where have the colleges whose enrollments are less than the largest size.", "question_toks": ["Find", "the", "states", "where", "have", "the", "colleges", "whose", "enrollments", "are", "less", "than", "the", "largest", "size", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3171", "db_id": "station_weather", "query": "select min(low_temperature) , max(wind_speed_mph) from weekly_weather", "query_toks": ["SELECT", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "FROM", "weekly_weather"], "query_toks_no_value": ["select", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "from", "weekly_weather"], "question": "show the lowest low temperature and highest wind speed in miles per hour.", "question_toks": ["show", "the", "lowest", "low", "temperature", "and", "highest", "wind", "speed", "in", "miles", "per", "hour", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]], [1, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6923", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "question": "Find the id of the order which is shipped most recently.", "question_toks": ["Find", "the", "id", "of", "the", "order", "which", "is", "shipped", "most", "recently", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6924", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "question": "Which order has the most recent shipment? Give me the order id.", "question_toks": ["Which", "order", "has", "the", "most", "recent", "shipment", "?", "Give", "me", "the", "order", "id", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0691", "db_id": "voter_1", "query": "select max(created) from votes where state = 'ca'", "query_toks": ["SELECT", "max", "(", "created", ")", "FROM", "votes", "WHERE", "state", "=", "'CA", "'"], "query_toks_no_value": ["select", "max", "(", "created", ")", "from", "votes", "where", "state", "=", "value"], "question": "What is last date created of votes from the state 'CA'?", "question_toks": ["What", "is", "last", "date", "created", "of", "votes", "from", "the", "state", "'CA", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"CA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5451", "db_id": "voter_2", "query": "select max(age) from student", "query_toks": ["SELECT", "max", "(", "Age", ")", "FROM", "STUDENT"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "student"], "question": "What is the oldest age among the students?", "question_toks": ["What", "is", "the", "oldest", "age", "among", "the", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "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": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6585", "db_id": "wine_1", "query": "select name from wine where price > (select max(price) from wine where year = 2006)", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "max", "(", "Price", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2006", ")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "price", ">", "(", "select", "max", "(", "price", ")", "from", "wine", "where", "year", "=", "value", ")"], "question": "What are the names of wines that are more expensive then all wines made in the year 2006?", "question_toks": ["What", "are", "the", "names", "of", "wines", "that", "are", "more", "expensive", "then", "all", "wines", "made", "in", "the", "year", "2006", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2006.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0723", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value"], "question": "How many people live in Asia, and what is the largest GNP among them?", "question_toks": ["How", "many", "people", "live", "in", "Asia", ",", "and", "what", "is", "the", "largest", "GNP", "among", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0774", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select max(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "population", "<", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", ")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")"], "question": "What are the African countries that have a population less than any country in Asia?", "question_toks": ["What", "are", "the", "African", "countries", "that", "have", "a", "population", "less", "than", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0816", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "question": "What is the language spoken by the largest percentage of people in each country?", "question_toks": ["What", "is", "the", "language", "spoken", "by", "the", "largest", "percentage", "of", "people", "in", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0817", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "question": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?", "question_toks": ["What", "are", "the", "country", "codes", "of", "the", "different", "countries", ",", "and", "what", "are", "the", "languages", "spoken", "by", "the", "greatest", "percentage", "of", "people", "for", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0818", "db_id": "world_1", "query": "select count(*) , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", "question_toks": ["What", "is", "the", "total", "number", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0819", "db_id": "world_1", "query": "select count(*) , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "Count the number of countries for which Spanish is the predominantly spoken language.", "question_toks": ["Count", "the", "number", "of", "countries", "for", "which", "Spanish", "is", "the", "predominantly", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0820", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", "question_toks": ["What", "are", "the", "codes", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0821", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "Return the codes of countries for which Spanish is the predominantly spoken language.", "question_toks": ["Return", "the", "codes", "of", "countries", "for", "which", "Spanish", "is", "the", "predominantly", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0027", "db_id": "dog_kennels", "query": "select t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t2.age = ( select max(age) from dogs )", "query_toks": ["select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "(", "select", "max", "(", "age", ")", "from", "dogs", ")"], "query_toks_no_value": ["select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "value", "select", "max", "(", "age", ")", "from", "dogs", ")"], "question": "List the last name of the owner owning the oldest dog.", "question_toks": ["List", "the", "last", "name", "of", "the", "owner", "owning", "the", "oldest", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0028", "db_id": "dog_kennels", "query": "select t1.last_name from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id where t2.age = ( select max(age) from dogs )", "query_toks": ["select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "(", "select", "max", "(", "age", ")", "from", "dogs", ")"], "query_toks_no_value": ["select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "value", "select", "max", "(", "age", ")", "from", "dogs", ")"], "question": "Who owns the oldest dog? Give me his or her last name.", "question_toks": ["Who", "owns", "the", "oldest", "dog", "?", "Give", "me", "his", "or", "her", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0146", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["select", "name", "from", "country", "where", "surfacearea", ">", "(", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "surfacearea", ">", "value", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the countries that have greater surface area than that of any country in Europe?", "question_toks": ["What", "are", "the", "countries", "that", "have", "greater", "surface", "area", "than", "that", "of", "any", "country", "in", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0147", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["select", "name", "from", "country", "where", "surfacearea", ">", "(", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "surfacearea", ">", "value", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "Which countries have greater area than than any country in Europe?", "question_toks": ["Which", "countries", "have", "greater", "area", "than", "than", "any", "country", "in", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0148", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "asia", "''", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "value", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the Asian countries which have a population larger than any country in Africa?", "question_toks": ["What", "are", "the", "Asian", "countries", "which", "have", "a", "population", "larger", "than", "any", "country", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}]