db_id
stringlengths
4
31
query
stringlengths
18
577
question
stringlengths
19
228
query_toks
sequence
query_toks_no_value
sequence
question_toks
sequence
allergy_1
SELECT advisor , count(*) FROM Student GROUP BY advisor
How many students does each advisor have?
[ "SELECT", "advisor", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "advisor" ]
[ "select", "advisor", ",", "count", "(", "*", ")", "from", "student", "group", "by", "advisor" ]
[ "How", "many", "students", "does", "each", "advisor", "have?" ]
allergy_1
SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1
It is most number of students that which advisor has?
[ "SELECT", "advisor", "FROM", "Student", "GROUP", "BY", "advisor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "advisor", "from", "student", "group", "by", "advisor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "It", "is", "most", "number", "of", "students", "that", "which", "advisor", "has?" ]
allergy_1
SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1
Give the the most students advisor.
[ "SELECT", "advisor", "FROM", "Student", "GROUP", "BY", "advisor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "advisor", "from", "student", "group", "by", "advisor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Give", "the", "the", "most", "students", "advisor." ]
allergy_1
SELECT count(*) FROM Has_allergy WHERE Allergy = "Cat"
How many students have cat allergies?
[ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''" ]
[ "select", "count", "(", "*", ")", "from", "has_allergy", "where", "allergy", "=", "value" ]
[ "How", "many", "students", "have", "cat", "allergies?" ]
allergy_1
SELECT count(*) FROM Has_allergy WHERE Allergy = "Cat"
How many students are affected by cat allergies?
[ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''" ]
[ "select", "count", "(", "*", ")", "from", "has_allergy", "where", "allergy", "=", "value" ]
[ "How", "many", "students", "are", "affected", "by", "cat", "allergies?" ]
allergy_1
SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2
Are Showing all student IDs who have at least two allergy.
[ "SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ]
[ "select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "Are", "Showing", "all", "student", "IDs", "who", "have", "at", "least", "two", "allergy." ]
allergy_1
SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2
What-all are the students ids of students have more than one allergy?
[ "SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ]
[ "select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "What-all", "are", "the", "students", "ids", "of", "students", "have", "more", "than", "one", "allergy?" ]
allergy_1
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy
What-all are the student ids of students which don't ai no allergies?
[ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy" ]
[ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "has_allergy" ]
[ "What-all", "are", "the", "student", "ids", "of", "students", "which", "don't", "ai", "no", "allergies?" ]
allergy_1
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy
Which students are unaffected by allergies?
[ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy" ]
[ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "has_allergy" ]
[ "Which", "students", "are", "unaffected", "by", "allergies?" ]
allergy_1
SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = "F" AND T1.allergy = "Milk" OR T1.allergy = "Eggs"
It is milk or egg allergies that how many female students have?
[ "SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''" ]
[ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value" ]
[ "It", "is", "milk", "or", "egg", "allergies", "that", "how", "many", "female", "students", "have?" ]
allergy_1
SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = "F" AND T1.allergy = "Milk" OR T1.allergy = "Eggs"
How many students are female are allergic to milks or eggs?
[ "SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''" ]
[ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value" ]
[ "How", "many", "students", "are", "female", "are", "allergic", "to", "milks", "or", "eggs?" ]
allergy_1
SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food"
It is a food allergy that how many students have?
[ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''" ]
[ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value" ]
[ "It", "is", "a", "food", "allergy", "that", "how", "many", "students", "have?" ]
allergy_1
SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food"
How many students are affected by food related allergies?
[ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''" ]
[ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value" ]
[ "How", "many", "students", "are", "affected", "by", "food", "related", "allergies?" ]
allergy_1
SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1
Which allergy has most number of students a-affected?
[ "SELECT", "Allergy", "FROM", "Has_allergy", "GROUP", "BY", "Allergy", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "allergy", "from", "has_allergy", "group", "by", "allergy", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "allergy", "has", "most", "number", "of", "students", "a-affected?" ]
allergy_1
SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1
Which allergy is the commonest?
[ "SELECT", "Allergy", "FROM", "Has_allergy", "GROUP", "BY", "Allergy", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "allergy", "from", "has_allergy", "group", "by", "allergy", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "allergy", "is", "the", "commonest?" ]
allergy_1
SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy
Are Showing all allergies with number of students a-affected.
[ "SELECT", "Allergy", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "GROUP", "BY", "Allergy" ]
[ "select", "allergy", ",", "count", "(", "*", ")", "from", "has_allergy", "group", "by", "allergy" ]
[ "Are", "Showing", "all", "allergies", "with", "number", "of", "students", "a-affected." ]
allergy_1
SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy
How many students have each different allergy?
[ "SELECT", "Allergy", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "GROUP", "BY", "Allergy" ]
[ "select", "allergy", ",", "count", "(", "*", ")", "from", "has_allergy", "group", "by", "allergy" ]
[ "How", "many", "students", "have", "each", "different", "allergy?" ]
allergy_1
SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype
Show all allergy type with number of students a-affected.
[ "SELECT", "T2.allergytype", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "GROUP", "BY", "T2.allergytype" ]
[ "select", "t2", ".", "allergytype", ",", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "group", "by", "t2", ".", "allergytype" ]
[ "Show", "all", "allergy", "type", "with", "number", "of", "students", "a-affected." ]
allergy_1
SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype
How many students are affected by each allergy type?
[ "SELECT", "T2.allergytype", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "GROUP", "BY", "T2.allergytype" ]
[ "select", "t2", ".", "allergytype", ",", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "group", "by", "t2", ".", "allergytype" ]
[ "How", "many", "students", "are", "affected", "by", "each", "allergy", "type?" ]
allergy_1
SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat")
Are Finding the last name and ages of the student at allergied to both milks and cat.
[ "SELECT", "lname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ]
[ "select", "lname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "intersect", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ]
[ "Are", "Finding", "the", "last", "name", "and", "ages", "of", "the", "student", "at", "allergied", "to", "both", "milks", "and", "cat." ]
allergy_1
SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat")
What-all are the last names and ages of the students at are allergic to milk and cat?
[ "SELECT", "lname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ]
[ "select", "lname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "intersect", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ]
[ "What-all", "are", "the", "last", "names", "and", "ages", "of", "the", "students", "at", "are", "allergic", "to", "milk", "and", "cat?" ]
allergy_1
SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" ORDER BY T1.Allergy
What-all are the allergies and theirn types that the with first name has them? And are ordering the result by name of allergies.
[ "SELECT", "T1.Allergy", ",", "T1.AllergyType", "FROM", "Allergy_type", "AS", "T1", "JOIN", "Has_allergy", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "JOIN", "Student", "AS", "T3", "ON", "T3.StuID", "=", "T2.StuID", "WHERE", "T3.Fname", "=", "``", "Lisa", "''", "ORDER", "BY", "T1.Allergy" ]
[ "select", "t1", ".", "allergy", ",", "t1", ".", "allergytype", "from", "allergy_type", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "join", "student", "as", "t3", "on", "t3", ".", "stuid", "=", "t2", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "order", "by", "t1", ".", "allergy" ]
[ "What-all", "are", "the", "allergies", "and", "theirn", "types", "that", "the", "with", "first", "name", "has", "them?", "And", "are", "ordering", "the", "result", "by", "name", "of", "allergies." ]
allergy_1
SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" ORDER BY T1.Allergy
What-all are the allergies the girl named Lisa has them? And what are it is the result by allergy names that the types of them ? Order.
[ "SELECT", "T1.Allergy", ",", "T1.AllergyType", "FROM", "Allergy_type", "AS", "T1", "JOIN", "Has_allergy", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "JOIN", "Student", "AS", "T3", "ON", "T3.StuID", "=", "T2.StuID", "WHERE", "T3.Fname", "=", "``", "Lisa", "''", "ORDER", "BY", "T1.Allergy" ]
[ "select", "t1", ".", "allergy", ",", "t1", ".", "allergytype", "from", "allergy_type", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "join", "student", "as", "t3", "on", "t3", ".", "stuid", "=", "t2", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "order", "by", "t1", ".", "allergy" ]
[ "What-all", "are", "the", "allergies", "the", "girl", "named", "Lisa", "has", "them?", "And", "what", "are", "it", "is", "the", "result", "by", "allergy", "names", "that", "the", "types", "of", "them", "?", "Order." ]
allergy_1
SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat")
Find the first name and gender of the student has done allergy to milk but not cat.
[ "SELECT", "fname", ",", "sex", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ]
[ "select", "fname", ",", "sex", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "except", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ]
[ "Find", "the", "first", "name", "and", "gender", "of", "the", "student", "has", "done", "allergy", "to", "milk", "but", "not", "cat." ]
allergy_1
SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat")
What-all are the first name and gender of the students allergied to milk but might can put up with cats?
[ "SELECT", "fname", ",", "sex", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ]
[ "select", "fname", ",", "sex", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "except", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ]
[ "What-all", "are", "the", "first", "name", "and", "gender", "of", "the", "students", "allergied", "to", "milk", "but", "might", "can", "put", "up", "with", "cats?" ]
allergy_1
SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "animal")
Find the average age of the students who have allergies with food and animal types.
[ "SELECT", "avg", "(", "age", ")", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "INTERSECT", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "animal", "''", ")" ]
[ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ]
[ "Find", "the", "average", "age", "of", "the", "students", "who", "have", "allergies", "with", "food", "and", "animal", "types." ]
allergy_1
SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "animal")
How old are the students with food and animal types allergies on average?
[ "SELECT", "avg", "(", "age", ")", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "INTERSECT", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "animal", "''", ")" ]
[ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ]
[ "How", "old", "are", "the", "students", "with", "food", "and", "animal", "types", "allergies", "on", "average?" ]
allergy_1
SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food")
Are Listing the first and last name of the students who do ain't food type no allergy.
[ "SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ]
[ "select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ]
[ "Are", "Listing", "the", "first", "and", "last", "name", "of", "the", "students", "who", "do", "ain't", "food", "type", "no", "allergy." ]
allergy_1
SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food")
What-all is the full name of each student which ain't allergic to any types of foods.
[ "SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ]
[ "select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ]
[ "What-all", "is", "the", "full", "name", "of", "each", "student", "which", "ain't", "allergic", "to", "any", "types", "of", "foods." ]
allergy_1
SELECT count(*) FROM Student WHERE sex = "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food")
Find the number of male (sex is 'M') students which have some food type allery.
[ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ]
[ "select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ]
[ "Find", "the", "number", "of", "male", "(sex", "is", "'M')", "students", "which", "have", "some", "food", "type", "allery." ]
allergy_1
SELECT count(*) FROM Student WHERE sex = "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food")
How many male students (sex is 'M') are allergic to any food type?
[ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ]
[ "select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ]
[ "How", "many", "male", "students", "(sex", "is", "'M')", "are", "allergic", "to", "any", "food", "type?" ]
allergy_1
SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "Milk" OR T2.Allergy = "Cat"
Are Finding the different first names and cities of the students at done allergied to milks or cat.
[ "SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''" ]
[ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value" ]
[ "Are", "Finding", "the", "different", "first", "names", "and", "cities", "of", "the", "students", "at", "done", "allergied", "to", "milks", "or", "cat." ]
allergy_1
SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "Milk" OR T2.Allergy = "Cat"
What-all are the distinct first names and cities of the students as allergied either to are milking or to cat?
[ "SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''" ]
[ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value" ]
[ "What-all", "are", "the", "distinct", "first", "names", "and", "cities", "of", "the", "students", "as", "allergied", "either", "to", "are", "milking", "or", "to", "cat?" ]
allergy_1
SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" OR T2.allergytype = "animal")
Are Finding the number of students at are older to 18 and do ain't allergy to either food or animal.
[ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")" ]
[ "select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")" ]
[ "Are", "Finding", "the", "number", "of", "students", "at", "are", "older", "to", "18", "and", "do", "ain't", "allergy", "to", "either", "food", "or", "animal." ]
allergy_1
SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" OR T2.allergytype = "animal")
How many students are over 18 and do ain't allergy to foods types or animal types?
[ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")" ]
[ "select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")" ]
[ "How", "many", "students", "are", "over", "18", "and", "do", "ain't", "allergy", "to", "foods", "types", "or", "animal", "types?" ]
allergy_1
SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Soy")
Find the first name and major of the students at ain't allegry to soy.
[ "SELECT", "fname", ",", "major", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Soy", "''", ")" ]
[ "select", "fname", ",", "major", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ]
[ "Find", "the", "first", "name", "and", "major", "of", "the", "students", "at", "ain't", "allegry", "to", "soy." ]
allergy_1
SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Soy")
What-all are the first name and major of the are able consume soy students?
[ "SELECT", "fname", ",", "major", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Soy", "''", ")" ]
[ "select", "fname", ",", "major", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ]
[ "What-all", "are", "the", "first", "name", "and", "major", "of", "the", "are", "able", "consume", "soy", "students?" ]
store_1
SELECT billing_country , COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;
A list of the top 5 country by number of invoices. List country name and number of invoices.
[ "SELECT", "billing_country", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";" ]
[ "select", "billing_country", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "A", "list", "of", "the", "top", "5", "country", "by", "number", "of", "invoices.", "List", "country", "name", "and", "number", "of", "invoices." ]
store_1
SELECT billing_country , COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;
What-all are the top 5 countries by number of invoices and so how many do they have?
[ "SELECT", "billing_country", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";" ]
[ "select", "billing_country", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "are", "the", "top", "5", "countries", "by", "number", "of", "invoices", "and", "so", "how", "many", "do", "they", "have?" ]
store_1
SELECT billing_country , SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;
A list of the top 8 country by gross/total invoice size. List country name and gross invoice size.
[ "SELECT", "billing_country", ",", "SUM", "(", "total", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "SUM", "(", "total", ")", "DESC", "LIMIT", "8", ";" ]
[ "select", "billing_country", ",", "sum", "(", "total", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "sum", "(", "total", ")", "desc", "limit", "value" ]
[ "A", "list", "of", "the", "top", "8", "country", "by", "gross/total", "invoice", "size.", "List", "country", "name", "and", "gross", "invoice", "size." ]
store_1
SELECT billing_country , SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;
What-all are the names of the top 8 country by total invoice size and what-all are them sizes?
[ "SELECT", "billing_country", ",", "SUM", "(", "total", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "SUM", "(", "total", ")", "DESC", "LIMIT", "8", ";" ]
[ "select", "billing_country", ",", "sum", "(", "total", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "sum", "(", "total", ")", "desc", "limit", "value" ]
[ "What-all", "are", "the", "names", "of", "the", "top", "8", "country", "by", "total", "invoice", "size", "and", "what-all", "are", "them", "sizes?" ]
store_1
SELECT billing_country , AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;
A list of the top 10 countries by average invoice size. List country name and average invoice size.
[ "SELECT", "billing_country", ",", "AVG", "(", "total", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "AVG", "(", "total", ")", "DESC", "LIMIT", "10", ";" ]
[ "select", "billing_country", ",", "avg", "(", "total", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "avg", "(", "total", ")", "desc", "limit", "value" ]
[ "A", "list", "of", "the", "top", "10", "countries", "by", "average", "invoice", "size.", "List", "country", "name", "and", "average", "invoice", "size." ]
store_1
SELECT billing_country , AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;
What-all are the names of the countries and average invoice size of the top countries by size?
[ "SELECT", "billing_country", ",", "AVG", "(", "total", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "AVG", "(", "total", ")", "DESC", "LIMIT", "10", ";" ]
[ "select", "billing_country", ",", "avg", "(", "total", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "avg", "(", "total", ")", "desc", "limit", "value" ]
[ "What-all", "are", "the", "names", "of", "the", "countries", "and", "average", "invoice", "size", "of", "the", "top", "countries", "by", "size?" ]
store_1
SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5;
Are Finding out 5 most recently a-purchased something customers. List customers' first and last name.
[ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "ORDER", "BY", "T2.invoice_date", "DESC", "LIMIT", "5", ";" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "order", "by", "t2", ".", "invoice_date", "desc", "limit", "value" ]
[ "Are", "Finding", "out", "5", "most", "recently", "a-purchased", "something", "customers.", "List", "customers'", "first", "and", "last", "name." ]
store_1
SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5;
What-all are the first and last names of the 5 customer had purchased something most recently?
[ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "ORDER", "BY", "T2.invoice_date", "DESC", "LIMIT", "5", ";" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "order", "by", "t2", ".", "invoice_date", "desc", "limit", "value" ]
[ "What-all", "are", "the", "first", "and", "last", "names", "of", "the", "5", "customer", "had", "purchased", "something", "most", "recently?" ]
store_1
SELECT T1.first_name , T1.last_name , COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;
Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.
[ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "COUNT", "(", "*", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "10", ";" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Find", "out", "the", "top", "10", "customers", "by", "total", "number", "of", "orders.", "List", "customers'", "first", "and", "last", "name", "and", "the", "number", "of", "total", "orders." ]
store_1
SELECT T1.first_name , T1.last_name , COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;
What-all are the top 10 customer' first and last names by total number of orders and how many orders did they make?
[ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "COUNT", "(", "*", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "10", ";" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "are", "the", "top", "10", "customer'", "first", "and", "last", "names", "by", "total", "number", "of", "orders", "and", "how", "many", "orders", "did", "they", "make?" ]
store_1
SELECT T1.first_name , T1.last_name , SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;
Are Listing the top 10 customer by total gross sales. List customers' first and last name and total gross sales.
[ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "SUM", "(", "T2.total", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "SUM", "(", "T2.total", ")", "DESC", "LIMIT", "10", ";" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "sum", "(", "t2", ".", "total", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "sum", "(", "t2", ".", "total", ")", "desc", "limit", "value" ]
[ "Are", "Listing", "the", "top", "10", "customer", "by", "total", "gross", "sales.", "List", "customers'", "first", "and", "last", "name", "and", "total", "gross", "sales." ]
store_1
SELECT T1.first_name , T1.last_name , SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;
What-all are the top 10 customer' first and last names with the highest gross sales, and also what are the sales?
[ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "SUM", "(", "T2.total", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "SUM", "(", "T2.total", ")", "DESC", "LIMIT", "10", ";" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "sum", "(", "t2", ".", "total", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "sum", "(", "t2", ".", "total", ")", "desc", "limit", "value" ]
[ "What-all", "are", "the", "top", "10", "customer'", "first", "and", "last", "names", "with", "the", "highest", "gross", "sales,", "and", "also", "what", "are", "the", "sales?" ]
store_1
SELECT T1.name , COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;
Are Listing the top 5 genre by number of tracks. List genres name and total tracks.
[ "SELECT", "T1.name", ",", "COUNT", "(", "*", ")", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T2.genre_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";" ]
[ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t2", ".", "genre_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Are", "Listing", "the", "top", "5", "genre", "by", "number", "of", "tracks.", "List", "genres", "name", "and", "total", "tracks." ]
store_1
SELECT T1.name , COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;
How many tracks does it is and what are the names of the top 5 that each genre have?
[ "SELECT", "T1.name", ",", "COUNT", "(", "*", ")", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T2.genre_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";" ]
[ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t2", ".", "genre_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "How", "many", "tracks", "does", "it", "is", "and", "what", "are", "the", "names", "of", "the", "top", "5", "that", "each", "genre", "have?" ]
store_1
SELECT title FROM albums;
List every album's title.
[ "SELECT", "title", "FROM", "albums", ";" ]
[ "select", "title", "from", "albums" ]
[ "List", "every", "album's", "title." ]
store_1
SELECT title FROM albums;
What-all are the titles of all the albums?
[ "SELECT", "title", "FROM", "albums", ";" ]
[ "select", "title", "from", "albums" ]
[ "What-all", "are", "the", "titles", "of", "all", "the", "albums?" ]
store_1
SELECT title FROM albums ORDER BY title;
List every album ordered by album title in ascending order.
[ "SELECT", "title", "FROM", "albums", "ORDER", "BY", "title", ";" ]
[ "select", "title", "from", "albums", "order", "by", "title" ]
[ "List", "every", "album", "ordered", "by", "album", "title", "in", "ascending", "order." ]
store_1
SELECT title FROM albums ORDER BY title;
What-all are the titles of all the albums alphabetically a-ascending?
[ "SELECT", "title", "FROM", "albums", "ORDER", "BY", "title", ";" ]
[ "select", "title", "from", "albums", "order", "by", "title" ]
[ "What-all", "are", "the", "titles", "of", "all", "the", "albums", "alphabetically", "a-ascending?" ]
store_1
SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;
List every album that's starts with That's in alphabetical order.
[ "SELECT", "title", "FROM", "albums", "WHERE", "title", "LIKE", "'A", "%", "'", "ORDER", "BY", "title", ";" ]
[ "select", "title", "from", "albums", "where", "title", "like", "value", "order", "by", "title" ]
[ "List", "every", "album", "that's", "starts", "with", "That's", "in", "alphabetical", "order." ]
store_1
SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;
What-all are the titles of all albums that is starting with A in alphabetical order?
[ "SELECT", "title", "FROM", "albums", "WHERE", "title", "LIKE", "'A", "%", "'", "ORDER", "BY", "title", ";" ]
[ "select", "title", "from", "albums", "where", "title", "like", "value", "order", "by", "title" ]
[ "What-all", "are", "the", "titles", "of", "all", "albums", "that", "is", "starting", "with", "A", "in", "alphabetical", "order?" ]
store_1
SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10;
Are Listing the customers first and last name of 10 least expensive invoice.
[ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "ORDER", "BY", "total", "LIMIT", "10", ";" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "order", "by", "total", "limit", "value" ]
[ "Are", "Listing", "the", "customers", "first", "and", "last", "name", "of", "10", "least", "expensive", "invoice." ]
store_1
SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10;
What-all are the first and last names of the customers with the 10 cheapest invoices?
[ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "ORDER", "BY", "total", "LIMIT", "10", ";" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "order", "by", "total", "limit", "value" ]
[ "What-all", "are", "the", "first", "and", "last", "names", "of", "the", "customers", "with", "the", "10", "cheapest", "invoices?" ]
store_1
SELECT sum(total) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL";
List total amount of Chicago invoice, IL.
[ "SELECT", "sum", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";" ]
[ "select", "sum", "(", "total", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value" ]
[ "List", "total", "amount", "of", "", "Chicago", "invoice,", "IL." ]
store_1
SELECT sum(total) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL";
What-all are the total amount of money in the invoices billed from Chicago, Illinois?
[ "SELECT", "sum", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";" ]
[ "select", "sum", "(", "total", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value" ]
[ "What-all", "are", "the", "total", "amount", "of", "money", "in", "the", "invoices", "billed", "from", "Chicago,", "Illinois?" ]
store_1
SELECT COUNT(*) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL";
Are Listing the number of invoices from Chicago, IL.
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value" ]
[ "Are", "Listing", "the", "number", "of", "invoices", "from", "Chicago,", "IL." ]
store_1
SELECT COUNT(*) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL";
How many invoices have been billed from Chicago, IL?
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value" ]
[ "How", "many", "invoices", "have", "been", "billed", "from", "Chicago,", "IL?" ]
store_1
SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state;
List the number of invoices from the US, grouped by state.
[ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", ";" ]
[ "select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state" ]
[ "List", "the", "number", "of", "invoices", "from", "the", "US,", "grouped", "by", "state." ]
store_1
SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state;
How many invoices was a-billed from each state?
[ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", ";" ]
[ "select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state" ]
[ "How", "many", "invoices", "was", "a-billed", "from", "each", "state?" ]
store_1
SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;
Are Listing the state in the US with the most invoices.
[ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1", ";" ]
[ "select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Are", "Listing", "the", "state", "in", "the", "US", "with", "the", "most", "invoices." ]
store_1
SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;
What-all are the states with the most invoices?
[ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1", ";" ]
[ "select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "are", "the", "states", "with", "the", "most", "invoices?" ]
store_1
SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = "CA";
List the number of invoices and the invoice total from California.
[ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", ",", "SUM", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_state", "=", "``", "CA", "''", ";" ]
[ "select", "billing_state", ",", "count", "(", "*", ")", ",", "sum", "(", "total", ")", "from", "invoices", "where", "billing_state", "=", "value" ]
[ "List", "the", "number", "of", "invoices", "and", "the", "invoice", "total", "from", "California." ]
store_1
SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = "CA";
What-all is the number of invoices and total money billed in them from CA?
[ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", ",", "SUM", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_state", "=", "``", "CA", "''", ";" ]
[ "select", "billing_state", ",", "count", "(", "*", ")", ",", "sum", "(", "total", ")", "from", "invoices", "where", "billing_state", "=", "value" ]
[ "What-all", "is", "the", "number", "of", "invoices", "and", "total", "money", "billed", "in", "them", "from", "CA?" ]
store_1
SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Aerosmith";
List Aerosmith's albums.
[ "SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Aerosmith", "''", ";" ]
[ "select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ]
[ "List", "Aerosmith's", "albums." ]
store_1
SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Aerosmith";
What-all are the titles of all the Aerosmith albums?
[ "SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Aerosmith", "''", ";" ]
[ "select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ]
[ "What-all", "are", "the", "titles", "of", "all", "the", "Aerosmith", "albums?" ]
store_1
SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Billy Cobham";
How many albums does Billy Cobham has?
[ "SELECT", "count", "(", "*", ")", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Billy", "Cobham", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ]
[ "How", "many", "albums", "does", "Billy", "Cobham", "has?" ]
store_1
SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = "Billy Cobham";
How many albums has done Billy Cobam released?
[ "SELECT", "count", "(", "*", ")", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Billy", "Cobham", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ]
[ "How", "many", "albums", "has", "done", "Billy", "Cobam", "released?" ]
store_1
SELECT company FROM customers WHERE first_name = "Eduardo" AND last_name = "Martins";
Eduardo Martins is a customer at which company?
[ "SELECT", "company", "FROM", "customers", "WHERE", "first_name", "=", "``", "Eduardo", "''", "AND", "last_name", "=", "``", "Martins", "''", ";" ]
[ "select", "company", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "Eduardo", "Martins", "is", "a", "customer", "at", "which", "company?" ]
store_1
SELECT company FROM customers WHERE first_name = "Eduardo" AND last_name = "Martins";
What-all is the company where Eduardo is a customer?
[ "SELECT", "company", "FROM", "customers", "WHERE", "first_name", "=", "``", "Eduardo", "''", "AND", "last_name", "=", "``", "Martins", "''", ";" ]
[ "select", "company", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "the", "company", "where", "Eduardo", "is", "a", "customer?" ]
store_1
SELECT email , phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber";
What-all is Astrid Gruber's email and phone number?
[ "SELECT", "email", ",", "phone", "FROM", "customers", "WHERE", "first_name", "=", "``", "Astrid", "''", "AND", "last_name", "=", "``", "Gruber", "''", ";" ]
[ "select", "email", ",", "phone", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "Astrid", "Gruber's", "email", "and", "phone", "number?" ]
store_1
SELECT email , phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber";
What-all are the emails and phone number of Astrid Gruber the customers?
[ "SELECT", "email", ",", "phone", "FROM", "customers", "WHERE", "first_name", "=", "``", "Astrid", "''", "AND", "last_name", "=", "``", "Gruber", "''", ";" ]
[ "select", "email", ",", "phone", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "are", "the", "emails", "and", "phone", "number", "of", "Astrid", "Gruber", "the", "customers?" ]
store_1
SELECT count(*) FROM customers WHERE city = "Prague";
How many customers are living in Prague city?
[ "SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "city", "=", "``", "Prague", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "customers", "where", "city", "=", "value" ]
[ "How", "many", "customers", "are", "living", "in", "Prague", "city?" ]
store_1
SELECT count(*) FROM customers WHERE city = "Prague";
How many customers live in the city of Prague?
[ "SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "city", "=", "``", "Prague", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "customers", "where", "city", "=", "value" ]
[ "How", "many", "customers", "live", "in", "the", "city", "of", "Prague?" ]
store_1
SELECT count(*) FROM customers WHERE state = "CA";
How many customers in CA state?
[ "SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "state", "=", "``", "CA", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "customers", "where", "state", "=", "value" ]
[ "How", "many", "customers", "in", "CA", "state?" ]
store_1
SELECT count(*) FROM customers WHERE state = "CA";
How many customers are from California?
[ "SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "state", "=", "``", "CA", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "customers", "where", "state", "=", "value" ]
[ "How", "many", "customers", "are", "from", "California?" ]
store_1
SELECT country FROM customers WHERE first_name = "Roberto" AND last_name = "Almeida";
What-all country does Roberto Almeida live?
[ "SELECT", "country", "FROM", "customers", "WHERE", "first_name", "=", "``", "Roberto", "''", "AND", "last_name", "=", "``", "Almeida", "''", ";" ]
[ "select", "country", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "country", "does", "Roberto", "Almeida", "live?" ]
store_1
SELECT country FROM customers WHERE first_name = "Roberto" AND last_name = "Almeida";
In which country does Are Robertoing Almeida?
[ "SELECT", "country", "FROM", "customers", "WHERE", "first_name", "=", "``", "Roberto", "''", "AND", "last_name", "=", "``", "Almeida", "''", ";" ]
[ "select", "country", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "In", "which", "country", "does", "Are", "Robertoing", "Almeida?" ]
store_1
SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%'
List the name of albums that are released it by aritist whose name has 'Led'
[ "SELECT", "T2.title", "FROM", "artists", "AS", "T1", "JOIN", "albums", "AS", "T2", "ON", "T1.id", "=", "T2.artist_id", "WHERE", "T1.name", "LIKE", "'", "%", "Led", "%", "'" ]
[ "select", "t2", ".", "title", "from", "artists", "as", "t1", "join", "albums", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "artist_id", "where", "t1", ".", "name", "like", "value" ]
[ "List", "the", "name", "of", "albums", "that", "are", "released", "it", "by", "aritist", "whose", "name", "has", "'Led'" ]
store_1
SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%'
What-all is the title of the album that have been released by the artist whose name has the phrase 'Led'?
[ "SELECT", "T2.title", "FROM", "artists", "AS", "T1", "JOIN", "albums", "AS", "T2", "ON", "T1.id", "=", "T2.artist_id", "WHERE", "T1.name", "LIKE", "'", "%", "Led", "%", "'" ]
[ "select", "t2", ".", "title", "from", "artists", "as", "t1", "join", "albums", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "artist_id", "where", "t1", ".", "name", "like", "value" ]
[ "What-all", "is", "the", "title", "of", "the", "album", "that", "have", "been", "released", "by", "the", "artist", "whose", "name", "has", "the", "phrase", "'Led'?" ]
store_1
SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson";
How many customers does Steve Johnson support?
[ "SELECT", "count", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T2.support_rep_id", "=", "T1.id", "WHERE", "T1.first_name", "=", "``", "Steve", "''", "AND", "T1.last_name", "=", "``", "Johnson", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "customers", "as", "t2", "on", "t2", ".", "support_rep_id", "=", "t1", ".", "id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ]
[ "How", "many", "customers", "does", "Steve", "Johnson", "support?" ]
store_1
SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson";
What-all is the count of customers that Steve is supporting?
[ "SELECT", "count", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T2.support_rep_id", "=", "T1.id", "WHERE", "T1.first_name", "=", "``", "Steve", "''", "AND", "T1.last_name", "=", "``", "Johnson", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "customers", "as", "t2", "on", "t2", ".", "support_rep_id", "=", "t1", ".", "id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ]
[ "What-all", "is", "the", "count", "of", "customers", "that", "Steve", "is", "supporting?" ]
store_1
SELECT title , phone , hire_date FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
What-all is the title, phone and hire Nancy Edwards date?
[ "SELECT", "title", ",", "phone", ",", "hire_date", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ]
[ "select", "title", ",", "phone", ",", "hire_date", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "the", "title,", "phone", "and", "hire", "Nancy", "Edwards", "date?" ]
store_1
SELECT title , phone , hire_date FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
What-all is the title, phone number and hire date for the employee named Nancy Edwards?
[ "SELECT", "title", ",", "phone", ",", "hire_date", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ]
[ "select", "title", ",", "phone", ",", "hire_date", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "the", "title,", "phone", "number", "and", "hire", "date", "for", "the", "employee", "named", "Nancy", "Edwards?" ]
store_1
SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards";
are finding the full name of employees is reporting to Nancy Edwards?
[ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "employees", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.id", "=", "T2.reports_to", "WHERE", "T1.first_name", "=", "``", "Nancy", "''", "AND", "T1.last_name", "=", "``", "Edwards", "''", ";" ]
[ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "employees", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "reports_to", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ]
[ "are", "finding", "the", "full", "name", "of", "employees", "is", "reporting", "to", "Nancy", "Edwards?" ]
store_1
SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards";
What-all is the first and last name of the employee is reporting to Nancy Edwards?
[ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "employees", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.id", "=", "T2.reports_to", "WHERE", "T1.first_name", "=", "``", "Nancy", "''", "AND", "T1.last_name", "=", "``", "Edwards", "''", ";" ]
[ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "employees", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "reports_to", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ]
[ "What-all", "is", "the", "first", "and", "last", "name", "of", "the", "employee", "is", "reporting", "to", "Nancy", "Edwards?" ]
store_1
SELECT address FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
What-all is the address of employee Nancy Edwards?
[ "SELECT", "address", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ]
[ "select", "address", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "the", "address", "of", "employee", "Nancy", "Edwards?" ]
store_1
SELECT address FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
What-all is Nancy Edwards's address?
[ "SELECT", "address", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ]
[ "select", "address", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "Nancy", "Edwards's", "address?" ]
store_1
SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Find the full name of employee had supported the most number of customers.
[ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "employees", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.id", "=", "T2.support_rep_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "employees", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "support_rep_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Find", "the", "full", "name", "of", "employee", "had", "supported", "the", "most", "number", "of", "customers." ]
store_1
SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
What-all is the full name of the which has the most customers employee?
[ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "employees", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.id", "=", "T2.support_rep_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "employees", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "support_rep_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "full", "name", "of", "the", "which", "has", "the", "most", "customers", "employee?" ]
store_1
SELECT count(*) FROM employees WHERE country = "Canada";
How many employees are a-living in Canada?
[ "SELECT", "count", "(", "*", ")", "FROM", "employees", "WHERE", "country", "=", "``", "Canada", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "employees", "where", "country", "=", "value" ]
[ "How", "many", "employees", "are", "a-living", "in", "Canada?" ]
store_1
SELECT count(*) FROM employees WHERE country = "Canada";
How many employees live in Canada?
[ "SELECT", "count", "(", "*", ")", "FROM", "employees", "WHERE", "country", "=", "``", "Canada", "''", ";" ]
[ "select", "count", "(", "*", ")", "from", "employees", "where", "country", "=", "value" ]
[ "How", "many", "employees", "live", "in", "Canada?" ]
store_1
SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
What-all is employee Nancy Edwards's phone number?
[ "SELECT", "phone", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ]
[ "select", "phone", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "employee", "Nancy", "Edwards's", "phone", "number?" ]
store_1
SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards";
What-all is the the phone number of Nancy Edwards?
[ "SELECT", "phone", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ]
[ "select", "phone", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ]
[ "What-all", "is", "the", "the", "phone", "number", "of", "Nancy", "Edwards?" ]
store_1
SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;
Who-all is the youngest employee in the companys? List employee's first and last name.
[ "SELECT", "first_name", ",", "last_name", "FROM", "employees", "ORDER", "BY", "birth_date", "DESC", "LIMIT", "1", ";" ]
[ "select", "first_name", ",", "last_name", "from", "employees", "order", "by", "birth_date", "desc", "limit", "value" ]
[ "Who-all", "is", "the", "youngest", "employee", "in", "the", "companys?", "List", "employee's", "first", "and", "last", "name." ]