[ { "db_id": "debate", "query": "SELECT count(*) FROM debate", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "debate" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "debate" ], "question": "How many debates are there?", "question_toks": [ "How", "many", "debates", "are", "there", "?" ], "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": [] } }, { "db_id": "debate", "query": "SELECT Venue FROM debate ORDER BY Num_of_Audience ASC", "query_toks": [ "SELECT", "Venue", "FROM", "debate", "ORDER", "BY", "Num_of_Audience", "ASC" ], "query_toks_no_value": [ "select", "venue", "from", "debate", "order", "by", "num_of_audience", "asc" ], "question": "List the venues of debates in ascending order of the number of audience.", "question_toks": [ "List", "the", "venues", "of", "debates", "in", "ascending", "order", "of", "the", "number", "of", "audience", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT Date , Venue FROM debate", "query_toks": [ "SELECT", "Date", ",", "Venue", "FROM", "debate" ], "query_toks_no_value": [ "select", "date", ",", "venue", "from", "debate" ], "question": "What are the date and venue of each debate?", "question_toks": [ "What", "are", "the", "date", "and", "venue", "of", "each", "debate", "?" ], "sql": { "except": null, "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, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT Date FROM debate WHERE Num_of_Audience > 150", "query_toks": [ "SELECT", "Date", "FROM", "debate", "WHERE", "Num_of_Audience", ">", "150" ], "query_toks_no_value": [ "select", "date", "from", "debate", "where", "num_of_audience", ">", "value" ], "question": "List the dates of debates with number of audience bigger than 150", "question_toks": [ "List", "the", "dates", "of", "debates", "with", "number", "of", "audience", "bigger", "than", "150" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 9, false ], null ], 150.0, null ] ] } }, { "db_id": "debate", "query": "SELECT Name FROM people WHERE Age = 35 OR Age = 36", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "Age", "=", "35", "OR", "Age", "=", "36" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "age", "=", "value", "or", "age", "=", "value" ], "question": "Show the names of people aged either 35 or 36.", "question_toks": [ "Show", "the", "names", "of", "people", "aged", "either", "35", "or", "36", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], 35.0, null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], 36.0, null ] ] } }, { "db_id": "debate", "query": "SELECT Party FROM people ORDER BY Age ASC LIMIT 1", "query_toks": [ "SELECT", "Party", "FROM", "people", "ORDER", "BY", "Age", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "party", "from", "people", "order", "by", "age", "asc", "limit", "value" ], "question": "What is the party of the youngest people?", "question_toks": [ "What", "is", "the", "party", "of", "the", "youngest", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT Party , COUNT(*) FROM people GROUP BY Party", "query_toks": [ "SELECT", "Party", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Party" ], "query_toks_no_value": [ "select", "party", ",", "count", "(", "*", ")", "from", "people", "group", "by", "party" ], "question": "Show different parties of people along with the number of people in each party.", "question_toks": [ "Show", "different", "parties", "of", "people", "along", "with", "the", "number", "of", "people", "in", "each", "party", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT Party FROM people GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Party", "FROM", "people", "GROUP", "BY", "Party", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "party", "from", "people", "group", "by", "party", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the party that has the most people.", "question_toks": [ "Show", "the", "party", "that", "has", "the", "most", "people", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT DISTINCT Venue FROM debate", "query_toks": [ "SELECT", "DISTINCT", "Venue", "FROM", "debate" ], "query_toks_no_value": [ "select", "distinct", "venue", "from", "debate" ], "question": "Show the distinct venues of debates", "question_toks": [ "Show", "the", "distinct", "venues", "of", "debates" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT T3.Name , T2.Date , T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Date", ",", "T2.Venue", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Affirmative", "=", "T3.People_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "date", ",", "t2", ".", "venue", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "affirmative", "=", "t3", ".", "people_id" ], "question": "Show the names of people, and dates and venues of debates they are on the affirmative side.", "question_toks": [ "Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "affirmative", "side", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT T3.Name , T2.Date , T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name ASC", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Date", ",", "T2.Venue", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Negative", "=", "T3.People_ID", "ORDER", "BY", "T3.Name", "ASC" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "date", ",", "t2", ".", "venue", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "negative", "=", "t3", ".", "people_id", "order", "by", "t3", ".", "name", "asc" ], "question": "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.", "question_toks": [ "Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "negative", "side", ",", "ordered", "in", "ascending", "alphabetical", "order", "of", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ], [ "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, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200", "query_toks": [ "SELECT", "T3.Name", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Affirmative", "=", "T3.People_ID", "WHERE", "T2.Num_of_Audience", ">", "200" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "affirmative", "=", "t3", ".", "people_id", "where", "t2", ".", "num_of_audience", ">", "value" ], "question": "Show the names of people that are on affirmative side of debates with number of audience bigger than 200.", "question_toks": [ "Show", "the", "names", "of", "people", "that", "are", "on", "affirmative", "side", "of", "debates", "with", "number", "of", "audience", "bigger", "than", "200", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 6, false ], null ], "and", [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 200.0, null ] ] } }, { "db_id": "debate", "query": "SELECT T2.Name , COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "debate_people", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Affirmative", "=", "T2.People_ID", "GROUP", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "debate_people", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "affirmative", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "name" ], "question": "Show the names of people and the number of times they have been on the affirmative side of debates.", "question_toks": [ "Show", "the", "names", "of", "people", "and", "the", "number", "of", "times", "they", "have", "been", "on", "the", "affirmative", "side", "of", "debates", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT T2.Name FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative = T2.People_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T2.Name", "FROM", "debate_people", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Negative", "=", "T2.People_ID", "GROUP", "BY", "T2.Name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "debate_people", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "negative", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names of people who have been on the negative side of debates at least twice.", "question_toks": [ "Show", "the", "names", "of", "people", "who", "have", "been", "on", "the", "negative", "side", "of", "debates", "at", "least", "twice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "debate", "query": "SELECT Name FROM people WHERE People_id NOT IN (SELECT Affirmative FROM debate_people)", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "People_id", "NOT", "IN", "(", "SELECT", "Affirmative", "FROM", "debate_people", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "affirmative", "from", "debate_people", ")" ], "question": "List the names of people that have not been on the affirmative side of debates.", "question_toks": [ "List", "the", "names", "of", "people", "that", "have", "not", "been", "on", "the", "affirmative", "side", "of", "debates", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] } } ]