[ { "db_id": "body_builder", "query": "SELECT count(*) FROM body_builder", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "body_builder" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "body_builder" ], "question": "How many body builders are there?", "question_toks": [ "How", "many", "body", "builders", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT Total FROM body_builder ORDER BY Total ASC", "query_toks": [ "SELECT", "Total", "FROM", "body_builder", "ORDER", "BY", "Total", "ASC" ], "query_toks_no_value": [ "select", "total", "from", "body_builder", "order", "by", "total", "asc" ], "question": "List the total scores of body builders in ascending order.", "question_toks": [ "List", "the", "total", "scores", "of", "body", "builders", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT Snatch , Clean_Jerk FROM body_builder ORDER BY Snatch ASC", "query_toks": [ "SELECT", "Snatch", ",", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Snatch", "ASC" ], "query_toks_no_value": [ "select", "snatch", ",", "clean_jerk", "from", "body_builder", "order", "by", "snatch", "asc" ], "question": "List the snatch score and clean jerk score of body builders in ascending order of snatch score.", "question_toks": [ "List", "the", "snatch", "score", "and", "clean", "jerk", "score", "of", "body", "builders", "in", "ascending", "order", "of", "snatch", "score", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT avg(Snatch) FROM body_builder", "query_toks": [ "SELECT", "avg", "(", "Snatch", ")", "FROM", "body_builder" ], "query_toks_no_value": [ "select", "avg", "(", "snatch", ")", "from", "body_builder" ], "question": "What is the average snatch score of body builders?", "question_toks": [ "What", "is", "the", "average", "snatch", "score", "of", "body", "builders", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1", "query_toks": [ "SELECT", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Total", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "clean_jerk", "from", "body_builder", "order", "by", "total", "desc", "limit", "value" ], "question": "What are the clean and jerk score of the body builder with the highest total score?", "question_toks": [ "What", "are", "the", "clean", "and", "jerk", "score", "of", "the", "body", "builder", "with", "the", "highest", "total", "score", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT Birth_Date FROM People ORDER BY Height ASC", "query_toks": [ "SELECT", "Birth_Date", "FROM", "People", "ORDER", "BY", "Height", "ASC" ], "query_toks_no_value": [ "select", "birth_date", "from", "people", "order", "by", "height", "asc" ], "question": "What are the birthdays of people in ascending order of height?", "question_toks": [ "What", "are", "the", "birthdays", "of", "people", "in", "ascending", "order", "of", "height", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID", "query_toks": [ "SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "What are the names of body builders?", "question_toks": [ "What", "are", "the", "names", "of", "body", "builders", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300", "query_toks": [ "SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Total", ">", "300" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total", ">", "value" ], "question": "What are the names of body builders whose total score is higher than 300?", "question_toks": [ "What", "are", "the", "names", "of", "body", "builders", "whose", "total", "score", "is", "higher", "than", "300", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 300.0, null ] ] } }, { "db_id": "body_builder", "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Weight", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "weight", "desc", "limit", "value" ], "question": "What is the name of the body builder with the greatest body weight?", "question_toks": [ "What", "is", "the", "name", "of", "the", "body", "builder", "with", "the", "greatest", "body", "weight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT T2.Birth_Date , T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Birth_Date", ",", "T2.Birth_Place", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "birth_date", ",", "t2", ".", "birth_place", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total", "desc", "limit", "value" ], "question": "What are the birth date and birth place of the body builder with the highest total points?", "question_toks": [ "What", "are", "the", "birth", "date", "and", "birth", "place", "of", "the", "body", "builder", "with", "the", "highest", "total", "points", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315", "query_toks": [ "SELECT", "T2.Height", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Total", "<", "315" ], "query_toks_no_value": [ "select", "t2", ".", "height", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total", "<", "value" ], "question": "What are the heights of body builders with total score smaller than 315?", "question_toks": [ "What", "are", "the", "heights", "of", "body", "builders", "with", "total", "score", "smaller", "than", "315", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 315.0, null ] ] } }, { "db_id": "body_builder", "query": "SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200", "query_toks": [ "SELECT", "avg", "(", "T1.Total", ")", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Height", ">", "200" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "total", ")", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value" ], "question": "What is the average total score of body builders with height bigger than 200?", "question_toks": [ "What", "is", "the", "average", "total", "score", "of", "body", "builders", "with", "height", "bigger", "than", "200", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 200.0, null ] ] } }, { "db_id": "body_builder", "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC", "query_toks": [ "SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total", "desc" ], "question": "What are the names of body builders in descending order of total scores?", "question_toks": [ "What", "are", "the", "names", "of", "body", "builders", "in", "descending", "order", "of", "total", "scores", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT Birth_Place , COUNT(*) FROM people GROUP BY Birth_Place", "query_toks": [ "SELECT", "Birth_Place", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Birth_Place" ], "query_toks_no_value": [ "select", "birth_place", ",", "count", "(", "*", ")", "from", "people", "group", "by", "birth_place" ], "question": "List each birth place along with the number of people from there.", "question_toks": [ "List", "each", "birth", "place", "along", "with", "the", "number", "of", "people", "from", "there", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Birth_Place", "FROM", "people", "GROUP", "BY", "Birth_Place", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "birth_place", "from", "people", "group", "by", "birth_place", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common birth place of people?", "question_toks": [ "What", "is", "the", "most", "common", "birth", "place", "of", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Birth_Place", "FROM", "people", "GROUP", "BY", "Birth_Place", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "birth_place", "from", "people", "group", "by", "birth_place", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the birth places that are shared by at least two people?", "question_toks": [ "What", "are", "the", "birth", "places", "that", "are", "shared", "by", "at", "least", "two", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT Height , Weight FROM people ORDER BY Height DESC", "query_toks": [ "SELECT", "Height", ",", "Weight", "FROM", "people", "ORDER", "BY", "Height", "DESC" ], "query_toks_no_value": [ "select", "height", ",", "weight", "from", "people", "order", "by", "height", "desc" ], "question": "List the height and weight of people in descending order of height.", "question_toks": [ "List", "the", "height", "and", "weight", "of", "people", "in", "descending", "order", "of", "height", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT * FROM body_builder", "query_toks": [ "SELECT", "*", "FROM", "body_builder" ], "query_toks_no_value": [ "select", "*", "from", "body_builder" ], "question": "Show all information about each body builder.", "question_toks": [ "Show", "all", "information", "about", "each", "body", "builder", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT Name , birth_place FROM people EXCEPT SELECT T1.Name , T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id", "query_toks": [ "SELECT", "Name", ",", "birth_place", "FROM", "people", "EXCEPT", "SELECT", "T1.Name", ",", "T1.birth_place", "FROM", "people", "AS", "T1", "JOIN", "body_builder", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id" ], "query_toks_no_value": [ "select", "name", ",", "birth_place", "from", "people", "except", "select", "t1", ".", "name", ",", "t1", ".", "birth_place", "from", "people", "as", "t1", "join", "body_builder", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "List the names and origins of people who are not body builders.", "question_toks": [ "List", "the", "names", "and", "origins", "of", "people", "who", "are", "not", "body", "builders", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT count(DISTINCT Birth_Place) FROM people", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Birth_Place", ")", "FROM", "people" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "birth_place", ")", "from", "people" ], "question": "How many distinct birth places are there?", "question_toks": [ "How", "many", "distinct", "birth", "places", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "body_builder", "query": "SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "people", "WHERE", "people_id", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "body_builder", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "body_builder", ")" ], "question": "How many persons are not body builders?", "question_toks": [ "How", "many", "persons", "are", "not", "body", "builders", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] } }, { "db_id": "body_builder", "query": "SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.snatch > 140 OR T2.height > 200;", "query_toks": [ "SELECT", "T2.weight", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id", "WHERE", "T1.snatch", ">", "140", "OR", "T2.height", ">", "200", ";" ], "query_toks_no_value": [ "select", "t2", ".", "weight", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "snatch", ">", "value", "or", "t2", ".", "height", ">", "value" ], "question": "List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.", "question_toks": [ "List", "the", "weight", "of", "the", "body", "builders", "who", "have", "snatch", "score", "higher", "than", "140", "or", "have", "the", "height", "greater", "than", "200", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 140.0, null ], "or", [ false, 3, [ 0, [ 0, 8, false ], null ], 200.0, null ] ] } }, { "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": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 10, false ], null ], "\"%January%\"", null ] ] } }, { "db_id": "body_builder", "query": "SELECT min(snatch) FROM body_builder", "query_toks": [ "SELECT", "min", "(", "snatch", ")", "FROM", "body_builder" ], "query_toks_no_value": [ "select", "min", "(", "snatch", ")", "from", "body_builder" ], "question": "What is the minimum snatch score?", "question_toks": [ "What", "is", "the", "minimum", "snatch", "score", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] } } ]