File size: 127,529 Bytes
cdc1cad
1
[{"id": "train_0133", "db_id": "bike_1", "query": "select start_station_name ,  start_station_id from trip where start_date like \"8/%\" group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "value", "group", "by", "start_station_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which start station had the most trips starting from August? Give me the name and id of the station.", "question_toks": ["Which", "start", "station", "had", "the", "most", "trips", "starting", "from", "August", "?", "Give", "me", "the", "name", "and", "id", "of", "the", "station", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"8/%\"", null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0134", "db_id": "bike_1", "query": "select start_station_name ,  start_station_id from trip where start_date like \"8/%\" group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "value", "group", "by", "start_station_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the start station's name and id for the one that had the most start trips in August?", "question_toks": ["What", "are", "the", "start", "station", "'s", "name", "and", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "in", "August", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"8/%\"", null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1172", "db_id": "body_builder", "query": "select t1.total from body_builder as t1 join people as t2 on t1.people_id  =  t2.people_id where t2.birth_date like \"%january%\";", "query_toks": ["SELECT", "T1.total", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id", "WHERE", "T2.Birth_Date", "LIKE", "``", "%", "January", "%", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "total", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "birth_date", "like", "value"], "question": "What are the total scores of the body builders whose birthday contains the string \"January\" ?", "question_toks": ["What", "are", "the", "total", "scores", "of", "the", "body", "builders", "whose", "birthday", "contains", "the", "string", "``", "January", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%January%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0803", "db_id": "coffee_shop", "query": "select t1.address ,  t1.shop_id from shop as t1 join happy_hour as t2 on t1.shop_id  =  t2.shop_id where month  =  'may'", "query_toks": ["SELECT", "t1.address", ",", "t1.shop_id", "FROM", "shop", "AS", "t1", "JOIN", "happy_hour", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "WHERE", "MONTH", "=", "'May", "'"], "query_toks_no_value": ["select", "t1", ".", "address", ",", "t1", ".", "shop_id", "from", "shop", "as", "t1", "join", "happy_hour", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "where", "month", "=", "value"], "question": "What are the id and address of the shops which have a happy hour in May?", "question_toks": ["What", "are", "the", "id", "and", "address", "of", "the", "shops", "which", "have", "a", "happy", "hour", "in", "May", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"May\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4703", "db_id": "college_3", "query": "select cname from course where credits  =  3 union select cname from course where credits  =  1 and hours  =  4", "query_toks": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1", "AND", "Hours", "=", "4"], "query_toks_no_value": ["select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value", "and", "hours", "=", "value"], "question": "Find the names of courses that have either 3 credits or 1 credit but 4 hours.", "question_toks": ["Find", "the", "names", "of", "courses", "that", "have", "either", "3", "credits", "or", "1", "credit", "but", "4", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null], "and", [false, 2, [0, [0, 31, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4704", "db_id": "college_3", "query": "select cname from course where credits  =  3 union select cname from course where credits  =  1 and hours  =  4", "query_toks": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1", "AND", "Hours", "=", "4"], "query_toks_no_value": ["select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value", "and", "hours", "=", "value"], "question": "What are the names of courses that give either 3 credits, or 1 credit and 4 hours?", "question_toks": ["What", "are", "the", "names", "of", "courses", "that", "give", "either", "3", "credits", ",", "or", "1", "credit", "and", "4", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null], "and", [false, 2, [0, [0, 31, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6125", "db_id": "customers_and_addresses", "query": "select sum(t2.order_quantity) from customer_orders as t1 join order_items as t2 on t1.order_id  =  t2.order_id where t1.order_date  <  \"2018-03-17 07:13:53\"", "query_toks": ["SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_date", "<", "``", "2018-03-17", "07:13:53", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value"], "question": "Find the total amount of products ordered before 2018-03-17 07:13:53.", "question_toks": ["Find", "the", "total", "amount", "of", "products", "ordered", "before", "2018-03-17", "07:13:53", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 4, [0, [0, 28, false], null], "\"2018-03-17 07:13:53\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6126", "db_id": "customers_and_addresses", "query": "select sum(t2.order_quantity) from customer_orders as t1 join order_items as t2 on t1.order_id  =  t2.order_id where t1.order_date  <  \"2018-03-17 07:13:53\"", "query_toks": ["SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_date", "<", "``", "2018-03-17", "07:13:53", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value"], "question": "What is the total amount of products purchased before 2018-03-17 07:13:53?", "question_toks": ["What", "is", "the", "total", "amount", "of", "products", "purchased", "before", "2018-03-17", "07:13:53", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 4, [0, [0, 28, false], null], "\"2018-03-17 07:13:53\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4759", "db_id": "department_store", "query": "select t1.staff_name ,  t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id  =  t2.staff_id where t2.date_assigned_from like \"2016%\"", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.date_assigned_from", "LIKE", "``", "2016", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "value"], "question": "Return the name and gender of the staff who was assigned in 2016.", "question_toks": ["Return", "the", "name", "and", "gender", "of", "the", "staff", "who", "was", "assigned", "in", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 54, false], null], "\"2016%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4760", "db_id": "department_store", "query": "select t1.staff_name ,  t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id  =  t2.staff_id where t2.date_assigned_from like \"2016%\"", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.date_assigned_from", "LIKE", "``", "2016", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "value"], "question": "What are the names and genders of staff who were assigned in 2016?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "staff", "who", "were", "assigned", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 54, false], null], "\"2016%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2205", "db_id": "formula_1", "query": "select name from races where time > \"12:00:00\" or time < \"09:00:00\"", "query_toks": ["SELECT", "name", "FROM", "races", "WHERE", "TIME", ">", "``", "12:00:00", "''", "OR", "TIME", "<", "``", "09:00:00", "''"], "query_toks_no_value": ["select", "name", "from", "races", "where", "time", ">", "value", "or", "time", "<", "value"], "question": "What are the names of races held after 12:00:00 or before 09:00:00?", "question_toks": ["What", "are", "the", "names", "of", "races", "held", "after", "12:00:00", "or", "before", "09:00:00", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], "\"12:00:00\"", null], "or", [false, 4, [0, [0, 16, false], null], "\"09:00:00\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2206", "db_id": "formula_1", "query": "select name from races where time > \"12:00:00\" or time < \"09:00:00\"", "query_toks": ["SELECT", "name", "FROM", "races", "WHERE", "TIME", ">", "``", "12:00:00", "''", "OR", "TIME", "<", "``", "09:00:00", "''"], "query_toks_no_value": ["select", "name", "from", "races", "where", "time", ">", "value", "or", "time", "<", "value"], "question": "What are the names of all races that occurred after 12:00:00 or before 09:00:00?", "question_toks": ["What", "are", "the", "names", "of", "all", "races", "that", "occurred", "after", "12:00:00", "or", "before", "09:00:00", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], "\"12:00:00\"", null], "or", [false, 4, [0, [0, 16, false], null], "\"09:00:00\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3429", "db_id": "hr_1", "query": "select job_id ,  hire_date from employees where hire_date between '2007-11-05' and '2009-07-05'", "query_toks": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees", "WHERE", "hire_date", "BETWEEN", "'2007-11-05", "'", "AND", "'2009-07-05", "'"], "query_toks_no_value": ["select", "job_id", ",", "hire_date", "from", "employees", "where", "hire_date", "between", "value", "and", "value"], "question": "Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.", "question_toks": ["Find", "job", "id", "and", "date", "of", "hire", "for", "those", "employees", "who", "was", "hired", "between", "November", "5th", ",", "2007", "and", "July", "5th", ",", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 1, [0, [0, 19, false], null], "\"2007-11-05\"", "\"2009-07-05\""]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3430", "db_id": "hr_1", "query": "select job_id ,  hire_date from employees where hire_date between '2007-11-05' and '2009-07-05'", "query_toks": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees", "WHERE", "hire_date", "BETWEEN", "'2007-11-05", "'", "AND", "'2009-07-05", "'"], "query_toks_no_value": ["select", "job_id", ",", "hire_date", "from", "employees", "where", "hire_date", "between", "value", "and", "value"], "question": "What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?", "question_toks": ["What", "are", "the", "job", "ids", "and", "dates", "of", "hire", "for", "employees", "hired", "after", "November", "5th", ",", "2007", "and", "before", "July", "5th", ",", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 1, [0, [0, 19, false], null], "\"2007-11-05\"", "\"2009-07-05\""]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3435", "db_id": "hr_1", "query": "select * from employees where hire_date  <  '2002-06-21'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", "<", "'2002-06-21", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", "<", "value"], "question": "display all the details from Employees table for those employees who was hired before 2002-06-21.", "question_toks": ["display", "all", "the", "details", "from", "Employees", "table", "for", "those", "employees", "who", "was", "hired", "before", "2002-06-21", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], "\"2002-06-21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3436", "db_id": "hr_1", "query": "select * from employees where hire_date  <  '2002-06-21'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", "<", "'2002-06-21", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", "<", "value"], "question": "What is all the information about employees hired before June 21, 2002?", "question_toks": ["What", "is", "all", "the", "information", "about", "employees", "hired", "before", "June", "21", ",", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], "\"2002-06-21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3439", "db_id": "hr_1", "query": "select * from employees where hire_date  >  '1987-09-07'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", ">", "'1987-09-07", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", ">", "value"], "question": "display those employees who joined after 7th September, 1987.", "question_toks": ["display", "those", "employees", "who", "joined", "after", "7th", "September", ",", "1987", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], "\"1987-09-07\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3440", "db_id": "hr_1", "query": "select * from employees where hire_date  >  '1987-09-07'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", ">", "'1987-09-07", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", ">", "value"], "question": "Which employees were hired after September 7th, 1987?", "question_toks": ["Which", "employees", "were", "hired", "after", "September", "7th", ",", "1987", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], "\"1987-09-07\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3457", "db_id": "hr_1", "query": "select job_id from job_history where end_date - start_date  > 300 group by job_id having count(*) >= 2", "query_toks": ["SELECT", "job_id", "FROM", "job_history", "WHERE", "end_date", "-", "start_date", ">", "300", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "job_id", "from", "job_history", "where", "end_date", "-", "start_date", ">", "value", "group", "by", "job_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "display job ID for those jobs that were done by two or more for more than 300 days.", "question_toks": ["display", "job", "ID", "for", "those", "jobs", "that", "were", "done", "by", "two", "or", "more", "for", "more", "than", "300", "days", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 3, [1, [0, 27, false], [0, 26, false]], 300.0, null]], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3458", "db_id": "hr_1", "query": "select job_id from job_history where end_date - start_date  > 300 group by job_id having count(*) >= 2", "query_toks": ["SELECT", "job_id", "FROM", "job_history", "WHERE", "end_date", "-", "start_date", ">", "300", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "job_id", "from", "job_history", "where", "end_date", "-", "start_date", ">", "value", "group", "by", "job_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the job ids for jobs done more than once for a period of more than 300 days?", "question_toks": ["What", "are", "the", "job", "ids", "for", "jobs", "done", "more", "than", "once", "for", "a", "period", "of", "more", "than", "300", "days", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 3, [1, [0, 27, false], [0, 26, false]], 300.0, null]], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2584", "db_id": "inn_1", "query": "select adults from reservations where checkin  =  \"2010-10-23\" and firstname  =  \"conrad\" and lastname  =  \"selbig\";", "query_toks": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-10-23", "''", "AND", "FirstName", "=", "``", "CONRAD", "''", "AND", "LastName", "=", "``", "SELBIG", "''", ";"], "query_toks_no_value": ["select", "adults", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?", "question_toks": ["How", "many", "adults", "stay", "in", "the", "room", "CONRAD", "SELBIG", "checked", "in", "on", "Oct", "23", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-10-23\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"CONRAD\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SELBIG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2585", "db_id": "inn_1", "query": "select adults from reservations where checkin  =  \"2010-10-23\" and firstname  =  \"conrad\" and lastname  =  \"selbig\";", "query_toks": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-10-23", "''", "AND", "FirstName", "=", "``", "CONRAD", "''", "AND", "LastName", "=", "``", "SELBIG", "''", ";"], "query_toks_no_value": ["select", "adults", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.", "question_toks": ["Find", "the", "number", "of", "adults", "for", "the", "room", "reserved", "and", "checked", "in", "by", "CONRAD", "SELBIG", "on", "Oct", "23", ",", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-10-23\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"CONRAD\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SELBIG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2586", "db_id": "inn_1", "query": "select kids from reservations where checkin  =  \"2010-09-21\" and firstname  =  \"damien\" and lastname  =  \"trachsel\";", "query_toks": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-09-21", "''", "AND", "FirstName", "=", "``", "DAMIEN", "''", "AND", "LastName", "=", "``", "TRACHSEL", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?", "question_toks": ["How", "many", "kids", "stay", "in", "the", "room", "DAMIEN", "TRACHSEL", "checked", "in", "on", "Sep", "21", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-09-21\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"DAMIEN\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"TRACHSEL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2587", "db_id": "inn_1", "query": "select kids from reservations where checkin  =  \"2010-09-21\" and firstname  =  \"damien\" and lastname  =  \"trachsel\";", "query_toks": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-09-21", "''", "AND", "FirstName", "=", "``", "DAMIEN", "''", "AND", "LastName", "=", "``", "TRACHSEL", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on  Sep 21, 2010.", "question_toks": ["Return", "the", "number", "of", "kids", "for", "the", "room", "reserved", "and", "checked", "in", "by", "DAMIEN", "TRACHSEL", "on", "Sep", "21", ",", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-09-21\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"DAMIEN\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"TRACHSEL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4851", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id ,  t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id  =  t2.thing_id where t1.status_of_thing_code  =  'close' or t1.date_and_date  <  '2017-06-19 02:59:21'", "query_toks": ["SELECT", "DISTINCT", "T2.thing_id", ",", "T2.Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1.thing_id", "=", "T2.thing_id", "WHERE", "T1.Status_of_Thing_Code", "=", "'Close", "'", "OR", "T1.Date_and_Date", "<", "'2017-06-19", "02:59:21", "'"], "query_toks_no_value": ["select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "value", "or", "t1", ".", "date_and_date", "<", "value"], "question": "What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'", "question_toks": ["What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'Close", "'", "or", "has", "a", "status", "record", "before", "the", "date", "'2017-06-19", "02:59:21", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"Close\"", null], "or", [false, 4, [0, [0, 44, false], null], "\"2017-06-19 02:59:21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3545", "db_id": "music_1", "query": "select count(*) from files where duration like \"4:%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "files", "WHERE", "duration", "LIKE", "``", "4", ":", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "files", "where", "duration", "like", "value"], "question": "How many songs have 4 minute duration?", "question_toks": ["How", "many", "songs", "have", "4", "minute", "duration", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3546", "db_id": "music_1", "query": "select count(*) from files where duration like \"4:%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "files", "WHERE", "duration", "LIKE", "``", "4", ":", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "files", "where", "duration", "like", "value"], "question": "What is the count of the songs that last approximately 4 minutes?", "question_toks": ["What", "is", "the", "count", "of", "the", "songs", "that", "last", "approximately", "4", "minutes", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3575", "db_id": "music_1", "query": "select t1.artist_name ,  t1.gender from artist as t1 join song as t2 on t1.artist_name  =  t2.artist_name where t2.releasedate like \"%mar%\"", "query_toks": ["SELECT", "T1.artist_name", ",", "T1.gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.releasedate", "LIKE", "``", "%", "Mar", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "value"], "question": "List the name and gender for all artists who released songs in March.", "question_toks": ["List", "the", "name", "and", "gender", "for", "all", "artists", "who", "released", "songs", "in", "March", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 20, false], null], "\"%Mar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3576", "db_id": "music_1", "query": "select t1.artist_name ,  t1.gender from artist as t1 join song as t2 on t1.artist_name  =  t2.artist_name where t2.releasedate like \"%mar%\"", "query_toks": ["SELECT", "T1.artist_name", ",", "T1.gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.releasedate", "LIKE", "``", "%", "Mar", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "value"], "question": "What are the names and genders of all artists who released songs in the month of March?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "all", "artists", "who", "released", "songs", "in", "the", "month", "of", "March", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 20, false], null], "\"%Mar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3583", "db_id": "music_1", "query": "select t2.song_name from files as t1 join song as t2 on t1.f_id  =  t2.f_id where t1.duration like \"4:%\" union select song_name from song where languages  =  \"english\"", "query_toks": ["SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "4", ":", "%", "''", "UNION", "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", "union", "select", "song_name", "from", "song", "where", "languages", "=", "value"], "question": "List the names of all songs that have 4 minute duration or are in English.", "question_toks": ["List", "the", "names", "of", "all", "songs", "that", "have", "4", "minute", "duration", "or", "are", "in", "English", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3584", "db_id": "music_1", "query": "select t2.song_name from files as t1 join song as t2 on t1.f_id  =  t2.f_id where t1.duration like \"4:%\" union select song_name from song where languages  =  \"english\"", "query_toks": ["SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "4", ":", "%", "''", "UNION", "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", "union", "select", "song_name", "from", "song", "where", "languages", "=", "value"], "question": "What are the names of all songs that are approximately 4 minutes long or are in English?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "are", "approximately", "4", "minutes", "long", "or", "are", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3599", "db_id": "music_1", "query": "select max(t2.resolution) ,  min(t2.resolution) from files as t1 join song as t2 on t1.f_id  =  t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value"], "question": "What are the maximum and minimum resolution of songs whose duration is 3 minutes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "resolution", "of", "songs", "whose", "duration", "is", "3", "minutes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3600", "db_id": "music_1", "query": "select max(t2.resolution) ,  min(t2.resolution) from files as t1 join song as t2 on t1.f_id  =  t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value"], "question": "What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "resolution", "of", "all", "songs", "that", "are", "approximately", "3", "minutes", "long", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4320", "db_id": "tracking_grants_for_research", "query": "select t1.grant_amount from grants as t1 join documents as t2 on t1.grant_id  =  t2.grant_id where t2.sent_date  <  '1986-08-26 20:49:27' intersect select grant_amount from grants where grant_end_date  >  '1989-03-16 18:27:16'", "query_toks": ["SELECT", "T1.grant_amount", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "WHERE", "T2.sent_date", "<", "'1986-08-26", "20:49:27", "'", "INTERSECT", "SELECT", "grant_amount", "FROM", "grants", "WHERE", "grant_end_date", ">", "'1989-03-16", "18:27:16", "'"], "query_toks_no_value": ["select", "t1", ".", "grant_amount", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "where", "t2", ".", "sent_date", "<", "value", "intersect", "select", "grant_amount", "from", "grants", "where", "grant_end_date", ">", "value"], "question": "What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?", "question_toks": ["What", "are", "the", "distinct", "grant", "amount", "for", "the", "grants", "where", "the", "documents", "were", "sent", "before", "'1986-08-26", "20:49:27", "'", "and", "grant", "were", "ended", "after", "'1989-03-16", "18:27:16", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], "\"1986-08-26 20:49:27\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], "\"1989-03-16 18:27:16\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4321", "db_id": "tracking_grants_for_research", "query": "select t1.grant_amount from grants as t1 join documents as t2 on t1.grant_id  =  t2.grant_id where t2.sent_date  <  '1986-08-26 20:49:27' intersect select grant_amount from grants where grant_end_date  >  '1989-03-16 18:27:16'", "query_toks": ["SELECT", "T1.grant_amount", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "WHERE", "T2.sent_date", "<", "'1986-08-26", "20:49:27", "'", "INTERSECT", "SELECT", "grant_amount", "FROM", "grants", "WHERE", "grant_end_date", ">", "'1989-03-16", "18:27:16", "'"], "query_toks_no_value": ["select", "t1", ".", "grant_amount", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "where", "t2", ".", "sent_date", "<", "value", "intersect", "select", "grant_amount", "from", "grants", "where", "grant_end_date", ">", "value"], "question": "What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'?", "question_toks": ["What", "are", "the", "different", "grant", "amounts", "for", "documents", "sent", "before", "'1986-08-26", "20:49:27", "'", "and", "after", "the", "grant", "ended", "on", "'1989-03-16", "18:27:16", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], "\"1986-08-26 20:49:27\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], "\"1989-03-16 18:27:16\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4376", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code  =  'leader' or date_from  <  '1989-04-24 23:51:54'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'", "OR", "date_from", "<", "'1989-04-24", "23:51:54", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "project_staff", "where", "role_code", "=", "value", "or", "date_from", "<", "value"], "question": "How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?", "question_toks": ["How", "many", "project", "staff", "worked", "as", "leaders", "or", "started", "working", "before", "'1989-04-24", "23:51:54", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null], "or", [false, 4, [0, [0, 26, false], null], "\"1989-04-24 23:51:54\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4377", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code  =  'leader' or date_from  <  '1989-04-24 23:51:54'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'", "OR", "date_from", "<", "'1989-04-24", "23:51:54", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "project_staff", "where", "role_code", "=", "value", "or", "date_from", "<", "value"], "question": "How many project members were leaders or started working before '1989-04-24 23:51:54'?", "question_toks": ["How", "many", "project", "members", "were", "leaders", "or", "started", "working", "before", "'1989-04-24", "23:51:54", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null], "or", [false, 4, [0, [0, 26, false], null], "\"1989-04-24 23:51:54\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4392", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff where date_from  >  '2003-04-19 15:06:20' and date_to  <  '2016-03-15 00:33:18'", "query_toks": ["SELECT", "role_code", "FROM", "Project_Staff", "WHERE", "date_from", ">", "'2003-04-19", "15:06:20", "'", "AND", "date_to", "<", "'2016-03-15", "00:33:18", "'"], "query_toks_no_value": ["select", "role_code", "from", "project_staff", "where", "date_from", ">", "value", "and", "date_to", "<", "value"], "question": "What are the staff roles of the staff who", "question_toks": ["What", "are", "the", "staff", "roles", "of", "the", "staff", "who"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 3, [0, [0, 26, false], null], "\"2003-04-19 15:06:20\"", null], "and", [false, 4, [0, [0, 27, false], null], "\"2016-03-15 00:33:18\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4393", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff where date_from  >  '2003-04-19 15:06:20' and date_to  <  '2016-03-15 00:33:18'", "query_toks": ["SELECT", "role_code", "FROM", "Project_Staff", "WHERE", "date_from", ">", "'2003-04-19", "15:06:20", "'", "AND", "date_to", "<", "'2016-03-15", "00:33:18", "'"], "query_toks_no_value": ["select", "role_code", "from", "project_staff", "where", "date_from", ">", "value", "and", "date_to", "<", "value"], "question": "What roles did staff members play between '2003-04-19 15:06:20' and '2016-03-15 00:33:18'?", "question_toks": ["What", "roles", "did", "staff", "members", "play", "between", "'2003-04-19", "15:06:20", "'", "and", "'2016-03-15", "00:33:18", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 3, [0, [0, 26, false], null], "\"2003-04-19 15:06:20\"", null], "and", [false, 4, [0, [0, 27, false], null], "\"2016-03-15 00:33:18\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6905", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.date_order_placed >= \"2009-01-01\" and t2.date_order_placed <= \"2010-01-01\"", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.date_order_placed", ">", "=", "``", "2009-01-01", "''", "AND", "T2.date_order_placed", "<", "=", "``", "2010-01-01", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "date_order_placed", ">", "=", "value", "and", "t2", ".", "date_order_placed", "<", "=", "value"], "question": "Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.", "question_toks": ["Give", "me", "the", "names", "of", "customers", "who", "have", "placed", "orders", "between", "2009-01-01", "and", "2010-01-01", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"2009-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"2010-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6906", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.date_order_placed >= \"2009-01-01\" and t2.date_order_placed <= \"2010-01-01\"", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.date_order_placed", ">", "=", "``", "2009-01-01", "''", "AND", "T2.date_order_placed", "<", "=", "``", "2010-01-01", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "date_order_placed", ">", "=", "value", "and", "t2", ".", "date_order_placed", "<", "=", "value"], "question": "Which customers made orders between 2009-01-01 and 2010-01-01? Find their names.", "question_toks": ["Which", "customers", "made", "orders", "between", "2009-01-01", "and", "2010-01-01", "?", "Find", "their", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"2009-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"2010-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6907", "db_id": "tracking_orders", "query": "select distinct t2.product_id from orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.date_order_placed >= \"1975-01-01\" and t1.date_order_placed <= \"1976-01-01\"", "query_toks": ["SELECT", "DISTINCT", "T2.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T1.date_order_placed", ">", "=", "``", "1975-01-01", "''", "AND", "T1.date_order_placed", "<", "=", "``", "1976-01-01", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "date_order_placed", ">", "=", "value", "and", "t1", ".", "date_order_placed", "<", "=", "value"], "question": "Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?", "question_toks": ["Give", "me", "a", "list", "of", "distinct", "product", "ids", "from", "orders", "placed", "between", "1975-01-01", "and", "1976-01-01", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"1975-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"1976-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6908", "db_id": "tracking_orders", "query": "select distinct t2.product_id from orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.date_order_placed >= \"1975-01-01\" and t1.date_order_placed <= \"1976-01-01\"", "query_toks": ["SELECT", "DISTINCT", "T2.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T1.date_order_placed", ">", "=", "``", "1975-01-01", "''", "AND", "T1.date_order_placed", "<", "=", "``", "1976-01-01", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "date_order_placed", ">", "=", "value", "and", "t1", ".", "date_order_placed", "<", "=", "value"], "question": "What are the distinct ids of products ordered between 1975-01-01 and 1976-01-01??", "question_toks": ["What", "are", "the", "distinct", "ids", "of", "products", "ordered", "between", "1975-01-01", "and", "1976-01-01", "?", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"1975-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"1976-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6921", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date > \"2000-01-01\"", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", ">", "``", "2000-01-01", "''"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", ">", "value"], "question": "Find the ids of orders which are shipped after 2000-01-01.", "question_toks": ["Find", "the", "ids", "of", "orders", "which", "are", "shipped", "after", "2000-01-01", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], "\"2000-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6922", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date > \"2000-01-01\"", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", ">", "``", "2000-01-01", "''"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", ">", "value"], "question": "Which orders have shipment after 2000-01-01? Give me the order ids.", "question_toks": ["Which", "orders", "have", "shipment", "after", "2000-01-01", "?", "Give", "me", "the", "order", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], "\"2000-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6933", "db_id": "tracking_orders", "query": "select invoice_number from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "invoice_number", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "invoice_number", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.", "question_toks": ["Find", "the", "invoice", "numbers", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6934", "db_id": "tracking_orders", "query": "select invoice_number from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "invoice_number", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "invoice_number", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "What are the invoice numbers created before 1989-09-03 or after 2007-12-25?", "question_toks": ["What", "are", "the", "invoice", "numbers", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6935", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "distinct", "invoice_details", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.", "question_toks": ["Find", "the", "distinct", "details", "of", "invoices", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6936", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "distinct", "invoice_details", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?", "question_toks": ["What", "are", "the", "distinct", "details", "of", "invoices", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5372", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported > \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", ">", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", ">", "value"], "question": "What are the ids of the problems which are reported after 1978-06-26?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "which", "are", "reported", "after", "1978-06-26", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5373", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported > \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", ">", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", ">", "value"], "question": "Find the ids of the problems reported after 1978-06-26.", "question_toks": ["Find", "the", "ids", "of", "the", "problems", "reported", "after", "1978-06-26", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5374", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported < \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", "<", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", "<", "value"], "question": "What are the ids of the problems which are reported before 1978-06-26?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "which", "are", "reported", "before", "1978-06-26", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5375", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported < \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", "<", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", "<", "value"], "question": "Which problems are reported before 1978-06-26? Give me the ids of the problems.", "question_toks": ["Which", "problems", "are", "reported", "before", "1978-06-26", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5378", "db_id": "tracking_software_problems", "query": "select count(*) ,  t2.product_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t1.date_problem_reported > \"1986-11-13\" group by t2.product_id", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "T2.product_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.date_problem_reported", ">", "``", "1986-11-13", "''", "GROUP", "BY", "T2.product_id"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "t2", ".", "product_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "date_problem_reported", ">", "value", "group", "by", "t2", ".", "product_id"], "question": "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?", "question_toks": ["For", "each", "product", "that", "has", "problems", ",", "find", "the", "number", "of", "problems", "reported", "after", "1986-11-13", "and", "the", "product", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 25, false], null], "\"1986-11-13\"", null]], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5394", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\" and t1.date_problem_reported > \"1995\"", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T2.product_name", "=", "``", "voluptatem", "''", "AND", "T1.date_problem_reported", ">", "``", "1995", "''"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value", "and", "t1", ".", "date_problem_reported", ">", "value"], "question": "List the ids of the problems from the product \"voluptatem\" that are reported after 1995?", "question_toks": ["List", "the", "ids", "of", "the", "problems", "from", "the", "product", "``", "voluptatem", "''", "that", "are", "reported", "after", "1995", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null], "and", [false, 3, [0, [0, 25, false], null], "\"1995\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5395", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\" and t1.date_problem_reported > \"1995\"", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T2.product_name", "=", "``", "voluptatem", "''", "AND", "T1.date_problem_reported", ">", "``", "1995", "''"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value", "and", "t1", ".", "date_problem_reported", ">", "value"], "question": "What are the ids of the problems that are from the product \"voluptatem\" and are reported after 1995?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "that", "are", "from", "the", "product", "``", "voluptatem", "''", "and", "are", "reported", "after", "1995", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null], "and", [false, 3, [0, [0, 25, false], null], "\"1995\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0770", "db_id": "world_1", "query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code  =  t2.countrycode where  indepyear  <  1930 and t2.isofficial  =  \"t\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "IndepYear", "<", "1930", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0771", "db_id": "world_1", "query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code  =  t2.countrycode where  indepyear  <  1930 and t2.isofficial  =  \"t\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "IndepYear", "<", "1930", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "For the countries founded before 1930, what is the total number of distinct official languages?", "question_toks": ["For", "the", "countries", "founded", "before", "1930", ",", "what", "is", "the", "total", "number", "of", "distinct", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0000", "db_id": "aircraft", "query": "select country from match where date like \"%march%\"", "query_toks": ["select", "country", "from", "match", "where", "date", "like", "\"%", "march", "%\""], "query_toks_no_value": ["select", "country", "from", "match", "where", "date", "like", "\"%", "march", "%\""], "question": "In which countries are aircraft matches held in March?", "question_toks": ["In", "which", "countries", "are", "aircraft", "matches", "held", "in", "March", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 13, false], null], "\"%march%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0001", "db_id": "apartment_rentals", "query": "select distinct(apt_booking_id) from view_unit_status where status_date = \"2015-07-15 11:06:29\"", "query_toks": ["select", "distinct", "(", "apt_booking_id", ")", "from", "view_unit_status", "where", "status_date", "=", "``", "2015", "-", "07", "-", "15", "11", ":", "06", ":", "29", "''"], "query_toks_no_value": ["select", "distinct", "(", "apt_booking_id", ")", "from", "view_unit_status", "where", "status_date", "=", "value", "-", "07", "-", "15", "11", ":", "06", ":", "29"], "question": "List all booking ID that became available at 2015-07-15 11:06:29", "question_toks": ["List", "all", "booking", "ID", "that", "became", "available", "at", "2015", "-", "07", "-", "15", "11", ":", "06", ":", "29"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"2015-07-15 11:06:29\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0002", "db_id": "assets_maintenance", "query": "select distinct(engineer_id), visit_end_datetime from engineer_visits where visit_end_datetime like \"%21:%\" or visit_end_datetime like \"%22:%\" or visit_end_datetime like \"%23:%\" group by visit_end_datetime", "query_toks": ["select", "distinct", "(", "engineer_id", "),", "visit_end_datetime", "from", "engineer_visits", "where", "visit_end_datetime", "like", "\"%", "21", ":%\"", "or", "visit_end_datetime", "like", "\"%", "22", ":%\"", "or", "visit_end_datetime", "like", "\"%", "23", ":%\"", "group", "by", "visit_end_datetime"], "query_toks_no_value": ["select", "distinct", "(", "engineer_id", "),", "visit_end_datetime", "from", "engineer_visits", "where", "visit_end_datetime", "like", "\"%", "21", ":%\"", "or", "visit_end_datetime", "like", "\"%", "22", ":%\"", "or", "visit_end_datetime", "like", "\"%", "23", ":%\"", "group", "by", "visit_end_datetime"], "question": "Output the start times and id of all engineers who have ever begun their visit after 21:00", "question_toks": ["Output", "the", "start", "times", "and", "id", "of", "all", "engineers", "who", "have", "ever", "begun", "their", "visit", "after", "21", ":", "00"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [true, [[0, [0, [0, 49, false], null]], [0, [0, [0, 53, false], null]]]], "where": [[false, 9, [0, [0, 53, false], null], "\"%21:%\"", null], "or", [false, 9, [0, [0, 53, false], null], "\"%22:%\"", null], "or", [false, 9, [0, [0, 53, false], null], "\"%23:%\"", null]], "groupBy": [[0, 53, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0003", "db_id": "battle_death", "query": "select distinct(latin_commander) from battle where  date like \"%april%\" and date like \"%1205%\"", "query_toks": ["select", "distinct", "(", "latin_commander", ")", "from", "battle", "where", "date", "like", "\"%", "april", "%\"", "and", "date", "like", "\"%", "1205", "%\""], "query_toks_no_value": ["select", "distinct", "(", "latin_commander", ")", "from", "battle", "where", "date", "like", "\"%", "april", "%\"", "and", "date", "like", "\"%", "1205", "%\""], "question": "Which of the Latin commanders participated in the battles in April 1205?", "question_toks": ["Which", "of", "the", "Latin", "commanders", "participated", "in", "the", "battles", "in", "April", "1205", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%april%\"", null], "and", [false, 9, [0, [0, 3, false], null], "\"%1205%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0004", "db_id": "battle_death", "query": "select count(distinct id) from battle where date like \"%1205%\" or date like \"%1206%\" or date like \"%1207%\"", "query_toks": ["select", "count", "(", "distinct", "id", ")", "from", "battle", "where", "date", "like", "\"%", "1205", "%\"", "or", "date", "like", "\"%", "1206", "%\"", "or", "date", "like", "\"%", "1207", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "id", ")", "from", "battle", "where", "date", "like", "\"%", "1205", "%\"", "or", "date", "like", "\"%", "1206", "%\"", "or", "date", "like", "\"%", "1207", "%\""], "question": "How many battles were fought between 1205 and 1207 inclusive?", "question_toks": ["How", "many", "battles", "were", "fought", "between", "1205", "and", "1207", "inclusive", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%1205%\"", null], "or", [false, 9, [0, [0, 3, false], null], "\"%1206%\"", null], "or", [false, 9, [0, [0, 3, false], null], "\"%1207%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0005", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes where date_of_notes like \"%2005-06-30%\"", "query_toks": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "query_toks_no_value": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "question": "Show the id of the notes made on June 30, 2005", "question_toks": ["Show", "the", "id", "of", "the", "notes", "made", "on", "June", "30", ",", "2005"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 9, [0, [0, 38, false], null], "\"%2005-06-30%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0006", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes where date_of_notes like \"%2005-06-30%\"", "query_toks": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "query_toks_no_value": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "question": "ID of the notes made on 30th June, 2005", "question_toks": ["ID", "of", "the", "notes", "made", "on", "30th", "June", ",", "2005"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 9, [0, [0, 38, false], null], "\"%2005-06-30%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0007", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes where date_of_notes like  \"%2005-06-30%\"", "query_toks": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "query_toks_no_value": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "question": "What the id of the notes made on June the 30th, 2005", "question_toks": ["What", "the", "id", "of", "the", "notes", "made", "on", "June", "the", "30th", ",", "2005"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 9, [0, [0, 38, false], null], "\"%2005-06-30%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0011", "db_id": "cinema", "query": "select title from film where original_air_date = \"september 21\u201325, 1992\"", "query_toks": ["select", "title", "from", "film", "where", "original_air_date", "=", "``", "september", "21", "\u2013", "25", ",", "1992", "''"], "query_toks_no_value": ["select", "title", "from", "film", "where", "original_air_date", "=", "value", "21", "\u2013", "25", ",", "1992"], "question": "Title of the film, released from September 21 to September 25, 1992", "question_toks": ["Title", "of", "the", "film", ",", "released", "from", "September", "21", "to", "September", "25", ",", "1992"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"september 21\u201325, 1992\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0012", "db_id": "cinema", "query": "select title from film where original_air_date = \"september 21\u201325, 1992\"", "query_toks": ["select", "title", "from", "film", "where", "original_air_date", "=", "``", "september", "21", "\u2013", "25", ",", "1992", "''"], "query_toks_no_value": ["select", "title", "from", "film", "where", "original_air_date", "=", "value", "21", "\u2013", "25", ",", "1992"], "question": "Title of the film with original air date from 21 to 25 of September  1992", "question_toks": ["Title", "of", "the", "film", "with", "original", "air", "date", "from", "21", "to", "25", "of", "September", "1992"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"september 21\u201325, 1992\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0013", "db_id": "cinema", "query": "select distinct(title) from film where original_air_date like \"%october%\"", "query_toks": ["select", "distinct", "(", "title", ")", "from", "film", "where", "original_air_date", "like", "\"%", "october", "%\""], "query_toks_no_value": ["select", "distinct", "(", "title", ")", "from", "film", "where", "original_air_date", "like", "\"%", "october", "%\""], "question": "What are the titles of the films released in October?", "question_toks": ["What", "are", "the", "titles", "of", "the", "films", "released", "in", "October", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%october%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0014", "db_id": "cinema", "query": "select avg(show_times_per_day) from schedule where date like \"%july%\"", "query_toks": ["select", "avg", "(", "show_times_per_day", ")", "from", "schedule", "where", "date", "like", "\"%", "july", "%\""], "query_toks_no_value": ["select", "avg", "(", "show_times_per_day", ")", "from", "schedule", "where", "date", "like", "\"%", "july", "%\""], "question": "How many times per day are scheduled movies shown on average in July?", "question_toks": ["How", "many", "times", "per", "day", "are", "scheduled", "movies", "shown", "on", "average", "in", "July", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%july%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0016", "db_id": "coffee_shop", "query": "select distinct(address) from shop join happy_hour on shop.shop_id = happy_hour.shop_id where month = \"april\"", "query_toks": ["select", "distinct", "(", "address", ")", "from", "shop", "join", "happy_hour", "on", "shop", ".", "shop_id", "=", "happy_hour", ".", "shop_id", "where", "month", "=", "``", "april", "''"], "query_toks_no_value": ["select", "distinct", "(", "address", ")", "from", "shop", "join", "happy_hour", "on", "shop", ".", "shop_id", "=", "happy_hour", ".", "shop_id", "where", "month", "=", "value"], "question": "Addresses of shops where happy hour took place in April", "question_toks": ["Addresses", "of", "shops", "where", "happy", "hour", "took", "place", "in", "April"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"april\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0017", "db_id": "coffee_shop", "query": "select avg(num_of_shaff_in_charge) from happy_hour where month = \"may\"", "query_toks": ["select", "avg", "(", "num_of_shaff_in_charge", ")", "from", "happy_hour", "where", "month", "=", "``", "may", "''"], "query_toks_no_value": ["select", "avg", "(", "num_of_shaff_in_charge", ")", "from", "happy_hour", "where", "month", "=", "value"], "question": "Average number of staff in May", "question_toks": ["Average", "number", "of", "staff", "in", "May"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"may\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0018", "db_id": "college_1", "query": "select distinct(class_code) from class where class_time like \"%mwf%\"", "query_toks": ["select", "distinct", "(", "class_code", ")", "from", "class", "where", "class_time", "like", "\"%", "mwf", "%\""], "query_toks_no_value": ["select", "distinct", "(", "class_code", ")", "from", "class", "where", "class_time", "like", "\"%", "mwf", "%\""], "question": "Class Codes that run on Mondays, Wednesdays, and Fridays", "question_toks": ["Class", "Codes", "that", "run", "on", "Mondays", ",", "Wednesdays", ",", "and", "Fridays"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%mwf%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0019", "db_id": "college_1", "query": "select distinct(class_room) from class where class_time like \"%8:00-8:50 a.m.%\"", "query_toks": ["select", "distinct", "(", "class_room", ")", "from", "class", "where", "class_time", "like", "\"%", "8", ":", "00", "-", "8", ":", "50", "a", ".", "m", ".%\""], "query_toks_no_value": ["select", "distinct", "(", "class_room", ")", "from", "class", "where", "class_time", "like", "\"%", "8", ":", "00", "-", "8", ":", "50", "a", ".", "m", ".%\""], "question": "In what classrooms are classes held from 8 am to 9 am?", "question_toks": ["In", "what", "classrooms", "are", "classes", "held", "from", "8", "am", "to", "9", "am", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%8:00-8:50 a.m.%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0020", "db_id": "college_1", "query": "select distinct(stu_fname) from student where  stu_dob like \"%1975%\"", "query_toks": ["select", "distinct", "(", "stu_fname", ")", "from", "student", "where", "stu_dob", "like", "\"%", "1975", "%\""], "query_toks_no_value": ["select", "distinct", "(", "stu_fname", ")", "from", "student", "where", "stu_dob", "like", "\"%", "1975", "%\""], "question": "Surnames of students born in 1975", "question_toks": ["Surnames", "of", "students", "born", "in", "1975"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 34, false], null]]]], "where": [[false, 9, [0, [0, 36, false], null], "\"%1975%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0023", "db_id": "course_teach", "query": "select count(distinct course_id) from course where staring_date like  \"%may%\"", "query_toks": ["select", "count", "(", "distinct", "course_id", ")", "from", "course", "where", "staring_date", "like", "\"%", "may", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "course_id", ")", "from", "course", "where", "staring_date", "like", "\"%", "may", "%\""], "question": "Amount of courses started in May", "question_toks": ["Amount", "of", "courses", "started", "in", "May"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%may%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0024", "db_id": "course_teach", "query": "select distinct(course) from course where staring_date = \"14 may\"", "query_toks": ["select", "distinct", "(", "course", ")", "from", "course", "where", "staring_date", "=", "``", "14", "may", "''"], "query_toks_no_value": ["select", "distinct", "(", "course", ")", "from", "course", "where", "staring_date", "=", "value", "may"], "question": "Show me names of the courses started at the 14th of May", "question_toks": ["Show", "me", "names", "of", "the", "courses", "started", "at", "the", "14th", "of", "May"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"14 may\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0025", "db_id": "course_teach", "query": "select min(grade) from course_arrange join course on course_arrange.course_id = course.course_id where staring_date like \"%9 may%\"", "query_toks": ["select", "min", "(", "grade", ")", "from", "course_arrange", "join", "course", "on", "course_arrange", ".", "course_id", "=", "course", ".", "course_id", "where", "staring_date", "like", "\"%", "9", "may", "%\""], "query_toks_no_value": ["select", "min", "(", "grade", ")", "from", "course_arrange", "join", "course", "on", "course_arrange", ".", "course_id", "=", "course", ".", "course_id", "where", "staring_date", "like", "\"%", "9", "may", "%\""], "question": "What is the minimum grade for the May 9 course?", "question_toks": ["What", "is", "the", "minimum", "grade", "for", "the", "May", "9", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[2, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%9 may%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0026", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents where receipt_date like \"%2008%\"", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents", "where", "receipt_date", "like", "\"%", "2008", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents", "where", "receipt_date", "like", "\"%", "2008", "%\""], "question": "Total number of documents received in 2008", "question_toks": ["Total", "number", "of", "documents", "received", "in", "2008"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [[false, 9, [0, [0, 16, false], null], "\"%2008%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0027", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed where mailing_date like \"%-11-%\"", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%-", "11", "-%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%-", "11", "-%\""], "question": "Number of documents mailed in November", "question_toks": ["Number", "of", "documents", "mailed", "in", "November"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [[false, 9, [0, [0, 35, false], null], "\"%-11-%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0028", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed where mailing_date like \"%-05-%\" and mailing_date like \"%1993%\"", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%-", "05", "-%\"", "and", "mailing_date", "like", "\"%", "1993", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%-", "05", "-%\"", "and", "mailing_date", "like", "\"%", "1993", "%\""], "question": "How many documents were mailed in the fifth month of 1993?", "question_toks": ["How", "many", "documents", "were", "mailed", "in", "the", "fifth", "month", "of", "1993", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [[false, 9, [0, [0, 35, false], null], "\"%-05-%\"", null], "and", [false, 9, [0, [0, 35, false], null], "\"%1993%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0029", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed where mailing_date like \"%05%\" and mailing_date like \"%1993%\"", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%", "05", "%\"", "and", "mailing_date", "like", "\"%", "1993", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%", "05", "%\"", "and", "mailing_date", "like", "\"%", "1993", "%\""], "question": "How many documents were sent in May 1993?", "question_toks": ["How", "many", "documents", "were", "sent", "in", "May", "1993", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [[false, 9, [0, [0, 35, false], null], "\"%05%\"", null], "and", [false, 9, [0, [0, 35, false], null], "\"%1993%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0030", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where date_effective_from like \"%2005%\" and date_effective_to like \"%2008%\"", "query_toks": ["select", "template_id", "from", "templates", "where", "date_effective_from", "like", "\"%", "2005", "%\"", "and", "date_effective_to", "like", "\"%", "2008", "%\""], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "date_effective_from", "like", "\"%", "2005", "%\"", "and", "date_effective_to", "like", "\"%", "2008", "%\""], "question": "Id of templates effective from 2005 to 2008", "question_toks": ["Id", "of", "templates", "effective", "from", "2005", "to", "2008"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2005%\"", null], "and", [false, 9, [0, [0, 7, false], null], "\"%2008%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0031", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where date_effective_from like \"%2005-11-12%\" and date_effective_to like \"%2008-01-05%\"", "query_toks": ["select", "template_id", "from", "templates", "where", "date_effective_from", "like", "\"%", "2005", "-", "11", "-", "12", "%\"", "and", "date_effective_to", "like", "\"%", "2008", "-", "01", "-", "05", "%\""], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "date_effective_from", "like", "\"%", "2005", "-", "11", "-", "12", "%\"", "and", "date_effective_to", "like", "\"%", "2008", "-", "01", "-", "05", "%\""], "question": "What are the IDs of templates effective from 2005-11-12 to 2008-01-05?", "question_toks": ["What", "are", "the", "IDs", "of", "templates", "effective", "from", "2005", "-", "11", "-", "12", "to", "2008", "-", "01", "-", "05", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2005-11-12%\"", null], "and", [false, 9, [0, [0, 7, false], null], "\"%2008-01-05%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0032", "db_id": "cre_Doc_Template_Mgt", "query": "select count(distinct template_id) from templates where date_effective_from like \"%2010%\" or date_effective_from like \"%2011%\" or date_effective_from like \"%2012%\"", "query_toks": ["select", "count", "(", "distinct", "template_id", ")", "from", "templates", "where", "date_effective_from", "like", "\"%", "2010", "%\"", "or", "date_effective_from", "like", "\"%", "2011", "%\"", "or", "date_effective_from", "like", "\"%", "2012", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "template_id", ")", "from", "templates", "where", "date_effective_from", "like", "\"%", "2010", "%\"", "or", "date_effective_from", "like", "\"%", "2011", "%\"", "or", "date_effective_from", "like", "\"%", "2012", "%\""], "question": "Number of templates that became effective between 2010 and 2012", "question_toks": ["Number", "of", "templates", "that", "became", "effective", "between", "2010", "and", "2012"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2010%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%2011%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%2012%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0035", "db_id": "customers_and_addresses", "query": "select sum(t2.order_quantity) from customer_orders as t1 join order_items as t2 on t1.order_id  =  t2.order_id where t1.order_date  <  \"2015-03-17 00:00:00.\"", "query_toks": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "``", "2015", "-", "03", "-", "17", "00", ":", "00", ":", "00", ".\""], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value", "-", "03", "-", "17", "00", ":", "00", ":", "00", ".\""], "question": "Display amount of products ordered before 2015-03-17 00:00:00.", "question_toks": ["Display", "amount", "of", "products", "ordered", "before", "2015", "-", "03", "-", "17", "00", ":", "00", ":", "00", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 4, [0, [0, 28, false], null], "\"2015-03-17 00:00:00.\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0038", "db_id": "entrepreneur", "query": "select distinct(name) from people where date_of_birth like \"%1975%\"", "query_toks": ["select", "distinct", "(", "name", ")", "from", "people", "where", "date_of_birth", "like", "\"%", "1975", "%\""], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "people", "where", "date_of_birth", "like", "\"%", "1975", "%\""], "question": "Surnames of born in 1975", "question_toks": ["Surnames", "of", "born", "in", "1975"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%1975%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0039", "db_id": "entrepreneur", "query": "select distinct(name) from people where date_of_birth like \"%1975-08-27%\"", "query_toks": ["select", "distinct", "(", "name", ")", "from", "people", "where", "date_of_birth", "like", "\"%", "1975", "-", "08", "-", "27", "%\""], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "people", "where", "date_of_birth", "like", "\"%", "1975", "-", "08", "-", "27", "%\""], "question": "Who was born on August 28, 1975?", "question_toks": ["Who", "was", "born", "on", "August", "28", ",", "1975", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%1975-08-27%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0054", "db_id": "inn_1", "query": "select lastname, firstname from reservations where checkin like \"%feb%\"", "query_toks": ["select", "lastname", ",", "firstname", "from", "reservations", "where", "checkin", "like", "\"%", "feb", "%\""], "query_toks_no_value": ["select", "lastname", ",", "firstname", "from", "reservations", "where", "checkin", "like", "\"%", "feb", "%\""], "question": "Last and first names of everyone who checked in in February", "question_toks": ["Last", "and", "first", "names", "of", "everyone", "who", "checked", "in", "in", "February"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%feb%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0055", "db_id": "inn_1", "query": "select lastname, firstname from reservations where checkin like \"%feb%\" and checkout like \"%mar%\"", "query_toks": ["select", "lastname", ",", "firstname", "from", "reservations", "where", "checkin", "like", "\"%", "feb", "%\"", "and", "checkout", "like", "\"%", "mar", "%\""], "query_toks_no_value": ["select", "lastname", ",", "firstname", "from", "reservations", "where", "checkin", "like", "\"%", "feb", "%\"", "and", "checkout", "like", "\"%", "mar", "%\""], "question": "Show me the last and first names of everyone who checked in in February and moved out in March", "question_toks": ["Show", "me", "the", "last", "and", "first", "names", "of", "everyone", "who", "checked", "in", "in", "February", "and", "moved", "out", "in", "March"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%feb%\"", null], "and", [false, 9, [0, [0, 11, false], null], "\"%mar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0065", "db_id": "music_1", "query": "select distinct(f_id) from files where duration > \"3:00\"", "query_toks": ["select", "distinct", "(", "f_id", ")", "from", "files", "where", "duration", ">", "``", "3", ":", "00", "''"], "query_toks_no_value": ["select", "distinct", "(", "f_id", ")", "from", "files", "where", "duration", ">", "value", ":", "00"], "question": "Id files with tracks longer than three minutes", "question_toks": ["Id", "files", "with", "tracks", "longer", "than", "three", "minutes"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], "\"3:00\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0066", "db_id": "music_1", "query": "select t1.artist_name ,  t1.gender from artist as t1 join song as t2 on t1.artist_name  =  t2.artist_name where t2.releasedate like \"%decr%\"", "query_toks": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "\"%", "decr", "%\""], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "\"%", "decr", "%\""], "question": "What the names of all artists who released songs in December.", "question_toks": ["What", "the", "names", "of", "all", "artists", "who", "released", "songs", "in", "December", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 20, false], null], "\"%decr%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0067", "db_id": "station_weather", "query": "select name from train where time = \"21:49\"", "query_toks": ["select", "name", "from", "train", "where", "time", "=", "``", "21", ":", "49", "''"], "query_toks_no_value": ["select", "name", "from", "train", "where", "time", "=", "value", ":", "49"], "question": "Name of train with departure time 9:49 PM", "question_toks": ["Name", "of", "train", "with", "departure", "time", "9", ":", "49", "PM"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"21:49\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0068", "db_id": "station_weather", "query": "select distinct(train_number) from train where time like \"%10:%\" or time like \"%11:%\"  or time like \"%12:%\"", "query_toks": ["select", "distinct", "(", "train_number", ")", "from", "train", "where", "time", "like", "\"%", "10", ":%\"", "or", "time", "like", "\"%", "11", ":%\"", "or", "time", "like", "\"%", "12", ":%\""], "query_toks_no_value": ["select", "distinct", "(", "train_number", ")", "from", "train", "where", "time", "like", "\"%", "10", ":%\"", "or", "time", "like", "\"%", "11", ":%\"", "or", "time", "like", "\"%", "12", ":%\""], "question": "Give me all trains numbers with time between 10:00 and 13:00", "question_toks": ["Give", "me", "all", "trains", "numbers", "with", "time", "between", "10", ":", "00", "and", "13", ":", "00"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%10:%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%11:%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%12:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0069", "db_id": "theme_gallery", "query": "select sum(attendance) from exhibition_record where date like \"%december%\"", "query_toks": ["select", "sum", "(", "attendance", ")", "from", "exhibition_record", "where", "date", "like", "\"%", "december", "%\""], "query_toks_no_value": ["select", "sum", "(", "attendance", ")", "from", "exhibition_record", "where", "date", "like", "\"%", "december", "%\""], "question": "How many people attended the gallery in December?", "question_toks": ["How", "many", "people", "attended", "the", "gallery", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%december%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0093", "db_id": "twitter_1", "query": "select count(distinct id) from tweets where createdate like \"%20:%\"", "query_toks": ["select", "count", "(", "distinct", "id", ")", "from", "tweets", "where", "createdate", "like", "\"%", "20", ":%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "id", ")", "from", "tweets", "where", "createdate", "like", "\"%", "20", ":%\""], "question": "How many tweets are generated at 8 PM?", "question_toks": ["How", "many", "tweets", "are", "generated", "at", "8", "PM", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%20:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0094", "db_id": "twitter_1", "query": "select text from tweets where createdate like \"%2018-03-12%\"", "query_toks": ["select", "text", "from", "tweets", "where", "createdate", "like", "\"%", "2018", "-", "03", "-", "12", "%\""], "query_toks_no_value": ["select", "text", "from", "tweets", "where", "createdate", "like", "\"%", "2018", "-", "03", "-", "12", "%\""], "question": "Tweet texts created December 3, 2018", "question_toks": ["Tweet", "texts", "created", "December", "3", ",", "2018"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2018-03-12%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0095", "db_id": "workshop_paper", "query": "select distinct(name) from workshop where date like \"%august%\" and date like \"%2007%\"", "query_toks": ["select", "distinct", "(", "name", ")", "from", "workshop", "where", "date", "like", "\"%", "august", "%\"", "and", "date", "like", "\"%", "2007", "%\""], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "workshop", "where", "date", "like", "\"%", "august", "%\"", "and", "date", "like", "\"%", "2007", "%\""], "question": "Names of workshops held in August 2007", "question_toks": ["Names", "of", "workshops", "held", "in", "August", "2007"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%august%\"", null], "and", [false, 9, [0, [0, 2, false], null], "\"%2007%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0096", "db_id": "workshop_paper", "query": "select distinct(name) from workshop where date like \"%july%\" and date like \"%2011%\" and date like \"%5%\"", "query_toks": ["select", "distinct", "(", "name", ")", "from", "workshop", "where", "date", "like", "\"%", "july", "%\"", "and", "date", "like", "\"%", "2011", "%\"", "and", "date", "like", "\"%", "5", "%\""], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "workshop", "where", "date", "like", "\"%", "july", "%\"", "and", "date", "like", "\"%", "2011", "%\"", "and", "date", "like", "\"%", "5", "%\""], "question": "What was the name of the workshop held on 5th of July, 2011", "question_toks": ["What", "was", "the", "name", "of", "the", "workshop", "held", "on", "5th", "of", "July", ",", "2011"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%july%\"", null], "and", [false, 9, [0, [0, 2, false], null], "\"%2011%\"", null], "and", [false, 9, [0, [0, 2, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}]