db_id
stringlengths
4
31
query
stringlengths
18
577
question
stringlengths
16
224
query_toks
listlengths
4
90
query_toks_no_value
listlengths
4
125
question_toks
listlengths
4
44
network_2
SELECT count(*) FROM Person WHERE gender = 'female'
How many females does this network has?
[ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "gender", "=", "'female", "'" ]
[ "select", "count", "(", "*", ")", "from", "person", "where", "gender", "=", "value" ]
[ "How", "many", "females", "does", "this", "network", "has", "?" ]
network_2
SELECT count(*) FROM Person WHERE gender = 'female'
How many females are in the network?
[ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "gender", "=", "'female", "'" ]
[ "select", "count", "(", "*", ")", "from", "person", "where", "gender", "=", "value" ]
[ "How", "many", "females", "are", "in", "the", "network", "?" ]
network_2
SELECT avg(age) FROM Person
What is the average age for all person?
[ "SELECT", "avg", "(", "age", ")", "FROM", "Person" ]
[ "select", "avg", "(", "age", ")", "from", "person" ]
[ "What", "is", "the", "average", "age", "for", "all", "person", "?" ]
network_2
SELECT avg(age) FROM Person
What is the average age for all people in the table?
[ "SELECT", "avg", "(", "age", ")", "FROM", "Person" ]
[ "select", "avg", "(", "age", ")", "from", "person" ]
[ "What", "is", "the", "average", "age", "for", "all", "people", "in", "the", "table", "?" ]
network_2
SELECT count(DISTINCT city) FROM Person
How many different cities are they from?
[ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "Person" ]
[ "select", "count", "(", "distinct", "city", ")", "from", "person" ]
[ "How", "many", "different", "cities", "are", "they", "from", "?" ]
network_2
SELECT count(DISTINCT city) FROM Person
How many different cities do people originate from?
[ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "Person" ]
[ "select", "count", "(", "distinct", "city", ")", "from", "person" ]
[ "How", "many", "different", "cities", "do", "people", "originate", "from", "?" ]
network_2
SELECT count(DISTINCT job) FROM Person
How many type of jobs do they have?
[ "SELECT", "count", "(", "DISTINCT", "job", ")", "FROM", "Person" ]
[ "select", "count", "(", "distinct", "job", ")", "from", "person" ]
[ "How", "many", "type", "of", "jobs", "do", "they", "have", "?" ]
network_2
SELECT count(DISTINCT job) FROM Person
How many different jobs are listed?
[ "SELECT", "count", "(", "DISTINCT", "job", ")", "FROM", "Person" ]
[ "select", "count", "(", "distinct", "job", ")", "from", "person" ]
[ "How", "many", "different", "jobs", "are", "listed", "?" ]
network_2
SELECT name FROM Person WHERE age = (SELECT max(age) FROM person)
Who is the oldest person?
[ "SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")" ]
[ "select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")" ]
[ "Who", "is", "the", "oldest", "person", "?" ]
network_2
SELECT name FROM Person WHERE age = (SELECT max(age) FROM person)
What is the name of the person who is the oldest?
[ "SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")" ]
[ "select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")" ]
[ "What", "is", "the", "name", "of", "the", "person", "who", "is", "the", "oldest", "?" ]
network_2
SELECT name FROM Person WHERE job = 'student' AND age = (SELECT max(age) FROM person WHERE job = 'student' )
Who is the oldest person whose job is student?
[ "SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")" ]
[ "select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")" ]
[ "Who", "is", "the", "oldest", "person", "whose", "job", "is", "student", "?" ]
network_2
SELECT name FROM Person WHERE job = 'student' AND age = (SELECT max(age) FROM person WHERE job = 'student' )
What is the name of the oldest student?
[ "SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")" ]
[ "select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")" ]
[ "What", "is", "the", "name", "of", "the", "oldest", "student", "?" ]
network_2
SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT min(age) FROM person WHERE gender = 'male' )
Who is the youngest male?
[ "SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "'male", "'", ")" ]
[ "select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")" ]
[ "Who", "is", "the", "youngest", "male", "?" ]
network_2
SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT min(age) FROM person WHERE gender = 'male' )
What is the name of the youngest male?
[ "SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "'male", "'", ")" ]
[ "select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")" ]
[ "What", "is", "the", "name", "of", "the", "youngest", "male", "?" ]
network_2
SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach'
How old is the doctor named Zach?
[ "SELECT", "age", "FROM", "Person", "WHERE", "job", "=", "'doctor", "'", "AND", "name", "=", "'Zach", "'" ]
[ "select", "age", "from", "person", "where", "job", "=", "value", "and", "name", "=", "value" ]
[ "How", "old", "is", "the", "doctor", "named", "Zach", "?" ]
network_2
SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach'
What is the age of the doctor named Zach?
[ "SELECT", "age", "FROM", "Person", "WHERE", "job", "=", "'doctor", "'", "AND", "name", "=", "'Zach", "'" ]
[ "select", "age", "from", "person", "where", "job", "=", "value", "and", "name", "=", "value" ]
[ "What", "is", "the", "age", "of", "the", "doctor", "named", "Zach", "?" ]
network_2
SELECT name FROM Person WHERE age < 30
Who is the person whose age is below 30?
[ "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30" ]
[ "select", "name", "from", "person", "where", "age", "<", "value" ]
[ "Who", "is", "the", "person", "whose", "age", "is", "below", "30", "?" ]
network_2
SELECT name FROM Person WHERE age < 30
What is the name of the person whose age is below 30?
[ "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30" ]
[ "select", "name", "from", "person", "where", "age", "<", "value" ]
[ "What", "is", "the", "name", "of", "the", "person", "whose", "age", "is", "below", "30", "?" ]
network_2
SELECT count(*) FROM Person WHERE age > 30 AND job = 'engineer'
How many people whose age is greater 30 and job is engineer?
[ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "30", "AND", "job", "=", "'engineer", "'" ]
[ "select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "value", "and", "job", "=", "value" ]
[ "How", "many", "people", "whose", "age", "is", "greater", "30", "and", "job", "is", "engineer", "?" ]
network_2
SELECT count(*) FROM Person WHERE age > 30 AND job = 'engineer'
HOw many engineers are older than 30?
[ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "30", "AND", "job", "=", "'engineer", "'" ]
[ "select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "value", "and", "job", "=", "value" ]
[ "HOw", "many", "engineers", "are", "older", "than", "30", "?" ]
network_2
SELECT avg(age) , gender FROM Person GROUP BY gender
What is the average age for each gender?
[ "SELECT", "avg", "(", "age", ")", ",", "gender", "FROM", "Person", "GROUP", "BY", "gender" ]
[ "select", "avg", "(", "age", ")", ",", "gender", "from", "person", "group", "by", "gender" ]
[ "What", "is", "the", "average", "age", "for", "each", "gender", "?" ]
network_2
SELECT avg(age) , gender FROM Person GROUP BY gender
How old is each gender, on average?
[ "SELECT", "avg", "(", "age", ")", ",", "gender", "FROM", "Person", "GROUP", "BY", "gender" ]
[ "select", "avg", "(", "age", ")", ",", "gender", "from", "person", "group", "by", "gender" ]
[ "How", "old", "is", "each", "gender", ",", "on", "average", "?" ]
network_2
SELECT avg(age) , job FROM Person GROUP BY job
What is average age for different job title?
[ "SELECT", "avg", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job" ]
[ "select", "avg", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job" ]
[ "What", "is", "average", "age", "for", "different", "job", "title", "?" ]
network_2
SELECT avg(age) , job FROM Person GROUP BY job
How old is the average person for each job?
[ "SELECT", "avg", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job" ]
[ "select", "avg", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job" ]
[ "How", "old", "is", "the", "average", "person", "for", "each", "job", "?" ]
network_2
SELECT avg(age) , job FROM Person WHERE gender = 'male' GROUP BY job
What is average age of male for different job title?
[ "SELECT", "avg", "(", "age", ")", ",", "job", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "GROUP", "BY", "job" ]
[ "select", "avg", "(", "age", ")", ",", "job", "from", "person", "where", "gender", "=", "value", "group", "by", "job" ]
[ "What", "is", "average", "age", "of", "male", "for", "different", "job", "title", "?" ]
network_2
SELECT avg(age) , job FROM Person WHERE gender = 'male' GROUP BY job
What is the average age for a male in each job?
[ "SELECT", "avg", "(", "age", ")", ",", "job", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "GROUP", "BY", "job" ]
[ "select", "avg", "(", "age", ")", ",", "job", "from", "person", "where", "gender", "=", "value", "group", "by", "job" ]
[ "What", "is", "the", "average", "age", "for", "a", "male", "in", "each", "job", "?" ]
network_2
SELECT min(age) , job FROM Person GROUP BY job
What is minimum age for different job title?
[ "SELECT", "min", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job" ]
[ "select", "min", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job" ]
[ "What", "is", "minimum", "age", "for", "different", "job", "title", "?" ]
network_2
SELECT min(age) , job FROM Person GROUP BY job
How old is the youngest person for each job?
[ "SELECT", "min", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job" ]
[ "select", "min", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job" ]
[ "How", "old", "is", "the", "youngest", "person", "for", "each", "job", "?" ]
network_2
SELECT count(*) , gender FROM Person WHERE age < 40 GROUP BY gender
Find the number of people who is under 40 for each gender.
[ "SELECT", "count", "(", "*", ")", ",", "gender", "FROM", "Person", "WHERE", "age", "<", "40", "GROUP", "BY", "gender" ]
[ "select", "count", "(", "*", ")", ",", "gender", "from", "person", "where", "age", "<", "value", "group", "by", "gender" ]
[ "Find", "the", "number", "of", "people", "who", "is", "under", "40", "for", "each", "gender", "." ]
network_2
SELECT count(*) , gender FROM Person WHERE age < 40 GROUP BY gender
How many people are under 40 for each gender?
[ "SELECT", "count", "(", "*", ")", ",", "gender", "FROM", "Person", "WHERE", "age", "<", "40", "GROUP", "BY", "gender" ]
[ "select", "count", "(", "*", ")", ",", "gender", "from", "person", "where", "age", "<", "value", "group", "by", "gender" ]
[ "How", "many", "people", "are", "under", "40", "for", "each", "gender", "?" ]
network_2
SELECT name FROM Person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer') ORDER BY age
Find the name of people whose age is greater than any engineer sorted by their age.
[ "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")", "ORDER", "BY", "age" ]
[ "select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")", "order", "by", "age" ]
[ "Find", "the", "name", "of", "people", "whose", "age", "is", "greater", "than", "any", "engineer", "sorted", "by", "their", "age", "." ]
network_2
SELECT name FROM Person WHERE age > (SELECT min(age) FROM person WHERE job = 'engineer') ORDER BY age
What is the name of all the people who are older than at least one engineer? Order them by age.
[ "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")", "ORDER", "BY", "age" ]
[ "select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")", "order", "by", "age" ]
[ "What", "is", "the", "name", "of", "all", "the", "people", "who", "are", "older", "than", "at", "least", "one", "engineer", "?", "Order", "them", "by", "age", "." ]
network_2
SELECT count(*) FROM Person WHERE age > (SELECT max(age) FROM person WHERE job = 'engineer')
Find the number of people whose age is greater than all engineers.
[ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")" ]
[ "select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")" ]
[ "Find", "the", "number", "of", "people", "whose", "age", "is", "greater", "than", "all", "engineers", "." ]
network_2
SELECT count(*) FROM Person WHERE age > (SELECT max(age) FROM person WHERE job = 'engineer')
How many people are older than every engineer?
[ "SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")" ]
[ "select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")" ]
[ "How", "many", "people", "are", "older", "than", "every", "engineer", "?" ]
network_2
SELECT name , job FROM Person ORDER BY name
list the name, job title of all people ordered by their names.
[ "SELECT", "name", ",", "job", "FROM", "Person", "ORDER", "BY", "name" ]
[ "select", "name", ",", "job", "from", "person", "order", "by", "name" ]
[ "list", "the", "name", ",", "job", "title", "of", "all", "people", "ordered", "by", "their", "names", "." ]
network_2
SELECT name , job FROM Person ORDER BY name
What are the names and job titles of every person ordered alphabetically by name?
[ "SELECT", "name", ",", "job", "FROM", "Person", "ORDER", "BY", "name" ]
[ "select", "name", ",", "job", "from", "person", "order", "by", "name" ]
[ "What", "are", "the", "names", "and", "job", "titles", "of", "every", "person", "ordered", "alphabetically", "by", "name", "?" ]
network_2
SELECT name FROM Person ORDER BY age DESC
Find the names of all person sorted in the descending order using age.
[ "SELECT", "name", "FROM", "Person", "ORDER", "BY", "age", "DESC" ]
[ "select", "name", "from", "person", "order", "by", "age", "desc" ]
[ "Find", "the", "names", "of", "all", "person", "sorted", "in", "the", "descending", "order", "using", "age", "." ]
network_2
SELECT name FROM Person ORDER BY age DESC
What are the names of everybody sorted by age in descending order?
[ "SELECT", "name", "FROM", "Person", "ORDER", "BY", "age", "DESC" ]
[ "select", "name", "from", "person", "order", "by", "age", "desc" ]
[ "What", "are", "the", "names", "of", "everybody", "sorted", "by", "age", "in", "descending", "order", "?" ]
network_2
SELECT name FROM Person WHERE gender = 'male' ORDER BY age
Find the name and age of all males in order of their age.
[ "SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "ORDER", "BY", "age" ]
[ "select", "name", "from", "person", "where", "gender", "=", "value", "order", "by", "age" ]
[ "Find", "the", "name", "and", "age", "of", "all", "males", "in", "order", "of", "their", "age", "." ]
network_2
SELECT name FROM Person WHERE gender = 'male' ORDER BY age
What is the name and age of every male? Order the results by age.
[ "SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "ORDER", "BY", "age" ]
[ "select", "name", "from", "person", "where", "gender", "=", "value", "order", "by", "age" ]
[ "What", "is", "the", "name", "and", "age", "of", "every", "male", "?", "Order", "the", "results", "by", "age", "." ]
network_2
SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'
Find the name and age of the person who is a friend of both Dan and Alice.
[ "SELECT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "INTERSECT", "SELECT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value" ]
[ "Find", "the", "name", "and", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "both", "Dan", "and", "Alice", "." ]
network_2
SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'
What are the names and ages of every person who is a friend of both Dan and Alice?
[ "SELECT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "INTERSECT", "SELECT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value" ]
[ "What", "are", "the", "names", "and", "ages", "of", "every", "person", "who", "is", "a", "friend", "of", "both", "Dan", "and", "Alice", "?" ]
network_2
SELECT DISTINCT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'
Find the name and age of the person who is a friend of Dan or Alice.
[ "SELECT", "DISTINCT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "OR", "T2.friend", "=", "'Alice", "'" ]
[ "select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value" ]
[ "Find", "the", "name", "and", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "or", "Alice", "." ]
network_2
SELECT DISTINCT T1.name , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice'
What are the different names and ages of every friend of either Dan or alice?
[ "SELECT", "DISTINCT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "OR", "T2.friend", "=", "'Alice", "'" ]
[ "select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value" ]
[ "What", "are", "the", "different", "names", "and", "ages", "of", "every", "friend", "of", "either", "Dan", "or", "alice", "?" ]
network_2
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)
Find the name of the person who has friends with age above 40 and under age 30?
[ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "INTERSECT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")" ]
[ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "intersect", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")" ]
[ "Find", "the", "name", "of", "the", "person", "who", "has", "friends", "with", "age", "above", "40", "and", "under", "age", "30", "?" ]
network_2
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)
What are the names of every person who has a friend over 40 and under 30?
[ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "INTERSECT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")" ]
[ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "intersect", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")" ]
[ "What", "are", "the", "names", "of", "every", "person", "who", "has", "a", "friend", "over", "40", "and", "under", "30", "?" ]
network_2
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)
Find the name of the person who has friends with age above 40 but not under age 30?
[ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "EXCEPT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")" ]
[ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "except", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")" ]
[ "Find", "the", "name", "of", "the", "person", "who", "has", "friends", "with", "age", "above", "40", "but", "not", "under", "age", "30", "?" ]
network_2
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)
What are the names of the people who are older 40 but no friends under age 30?
[ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "EXCEPT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")" ]
[ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "except", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")" ]
[ "What", "are", "the", "names", "of", "the", "people", "who", "are", "older", "40", "but", "no", "friends", "under", "age", "30", "?" ]
network_2
SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'
Find the name of the person who has no student friends.
[ "SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.job", "=", "'student", "'" ]
[ "select", "name", "from", "person", "except", "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "job", "=", "value" ]
[ "Find", "the", "name", "of", "the", "person", "who", "has", "no", "student", "friends", "." ]
network_2
SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'
What are the names of the people who have no friends who are students?
[ "SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.job", "=", "'student", "'" ]
[ "select", "name", "from", "person", "except", "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "job", "=", "value" ]
[ "What", "are", "the", "names", "of", "the", "people", "who", "have", "no", "friends", "who", "are", "students", "?" ]
network_2
SELECT name FROM PersonFriend GROUP BY name HAVING count(*) = 1
Find the person who has exactly one friend.
[ "SELECT", "name", "FROM", "PersonFriend", "GROUP", "BY", "name", "HAVING", "count", "(", "*", ")", "=", "1" ]
[ "select", "name", "from", "personfriend", "group", "by", "name", "having", "count", "(", "*", ")", "=", "value" ]
[ "Find", "the", "person", "who", "has", "exactly", "one", "friend", "." ]
network_2
SELECT name FROM PersonFriend GROUP BY name HAVING count(*) = 1
What are the names of everybody who has exactly one friend?
[ "SELECT", "name", "FROM", "PersonFriend", "GROUP", "BY", "name", "HAVING", "count", "(", "*", ")", "=", "1" ]
[ "select", "name", "from", "personfriend", "group", "by", "name", "having", "count", "(", "*", ")", "=", "value" ]
[ "What", "are", "the", "names", "of", "everybody", "who", "has", "exactly", "one", "friend", "?" ]
network_2
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob'
Who are the friends of Bob?
[ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T1.name", "=", "'Bob", "'" ]
[ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t1", ".", "name", "=", "value" ]
[ "Who", "are", "the", "friends", "of", "Bob", "?" ]
network_2
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Bob'
Who are Bob's friends?
[ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T1.name", "=", "'Bob", "'" ]
[ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t1", ".", "name", "=", "value" ]
[ "Who", "are", "Bob", "'s", "friends", "?" ]
network_2
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'
Find the name of persons who are friends with Bob.
[ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Bob", "'" ]
[ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value" ]
[ "Find", "the", "name", "of", "persons", "who", "are", "friends", "with", "Bob", "." ]
network_2
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'
What are the names of all of Bob's friends?
[ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Bob", "'" ]
[ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value" ]
[ "What", "are", "the", "names", "of", "all", "of", "Bob", "'s", "friends", "?" ]
network_2
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female'
Find the names of females who are friends with Zach
[ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Zach", "'", "AND", "T1.gender", "=", "'female", "'" ]
[ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t1", ".", "gender", "=", "value" ]
[ "Find", "the", "names", "of", "females", "who", "are", "friends", "with", "Zach" ]
network_2
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Zach' AND T1.gender = 'female'
What are the names of all females who are friends with Zach?
[ "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Zach", "'", "AND", "T1.gender", "=", "'female", "'" ]
[ "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t1", ".", "gender", "=", "value" ]
[ "What", "are", "the", "names", "of", "all", "females", "who", "are", "friends", "with", "Zach", "?" ]
network_2
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'
Find the female friends of Alice.
[ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'female", "'" ]
[ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value" ]
[ "Find", "the", "female", "friends", "of", "Alice", "." ]
network_2
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'
What are all the friends of Alice who are female?
[ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'female", "'" ]
[ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value" ]
[ "What", "are", "all", "the", "friends", "of", "Alice", "who", "are", "female", "?" ]
network_2
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'
Find the male friend of Alice whose job is a doctor?
[ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'male", "'", "AND", "T1.job", "=", "'doctor", "'" ]
[ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value", "and", "t1", ".", "job", "=", "value" ]
[ "Find", "the", "male", "friend", "of", "Alice", "whose", "job", "is", "a", "doctor", "?" ]
network_2
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'male' AND T1.job = 'doctor'
Who are the friends of Alice that are doctors?
[ "SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'male", "'", "AND", "T1.job", "=", "'doctor", "'" ]
[ "select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value", "and", "t1", ".", "job", "=", "value" ]
[ "Who", "are", "the", "friends", "of", "Alice", "that", "are", "doctors", "?" ]
network_2
SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city'
Who has a friend that is from new york city?
[ "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.city", "=", "'new", "york", "city", "'" ]
[ "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "city", "=", "value" ]
[ "Who", "has", "a", "friend", "that", "is", "from", "new", "york", "city", "?" ]
network_2
SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city'
What are the names of all friends who are from New York?
[ "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.city", "=", "'new", "york", "city", "'" ]
[ "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "city", "=", "value" ]
[ "What", "are", "the", "names", "of", "all", "friends", "who", "are", "from", "New", "York", "?" ]
network_2
SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT avg(age) FROM person)
Who has friends that are younger than the average age?
[ "SELECT", "DISTINCT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "person", ")" ]
[ "select", "distinct", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "person", ")" ]
[ "Who", "has", "friends", "that", "are", "younger", "than", "the", "average", "age", "?" ]
network_2
SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT avg(age) FROM person)
What are the different names of friends who are younger than the average age for a friend?
[ "SELECT", "DISTINCT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "person", ")" ]
[ "select", "distinct", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "person", ")" ]
[ "What", "are", "the", "different", "names", "of", "friends", "who", "are", "younger", "than", "the", "average", "age", "for", "a", "friend", "?" ]
network_2
SELECT DISTINCT T2.name , T2.friend , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT avg(age) FROM person)
Who has friends that are older than the average age? Print their friends and their ages as well
[ "SELECT", "DISTINCT", "T2.name", ",", "T2.friend", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "person", ")" ]
[ "select", "distinct", "t2", ".", "name", ",", "t2", ".", "friend", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "person", ")" ]
[ "Who", "has", "friends", "that", "are", "older", "than", "the", "average", "age", "?", "Print", "their", "friends", "and", "their", "ages", "as", "well" ]
network_2
SELECT DISTINCT T2.name , T2.friend , T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT avg(age) FROM person)
Whare the names, friends, and ages of all people who are older than the average age of a person?
[ "SELECT", "DISTINCT", "T2.name", ",", "T2.friend", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "person", ")" ]
[ "select", "distinct", "t2", ".", "name", ",", "t2", ".", "friend", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "person", ")" ]
[ "Whare", "the", "names", ",", "friends", ",", "and", "ages", "of", "all", "people", "who", "are", "older", "than", "the", "average", "age", "of", "a", "person", "?" ]
network_2
SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')
Who is the friend of Zach with longest year relationship?
[ "SELECT", "friend", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", "AND", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")" ]
[ "select", "friend", "from", "personfriend", "where", "name", "=", "value", "and", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")" ]
[ "Who", "is", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?" ]
network_2
SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')
Which friend of Zach has the longest-lasting friendship?
[ "SELECT", "friend", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", "AND", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")" ]
[ "select", "friend", "from", "personfriend", "where", "name", "=", "value", "and", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")" ]
[ "Which", "friend", "of", "Zach", "has", "the", "longest-lasting", "friendship", "?" ]
network_2
SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')
What is the age of the friend of Zach with longest year relationship?
[ "SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")" ]
[ "select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")" ]
[ "What", "is", "the", "age", "of", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?" ]
network_2
SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE name = 'Zach')
What are the ages of all of Zach's friends who are in the longest relationship?
[ "SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")" ]
[ "select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")" ]
[ "What", "are", "the", "ages", "of", "all", "of", "Zach", "'s", "friends", "who", "are", "in", "the", "longest", "relationship", "?" ]
network_2
SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT min(YEAR) FROM PersonFriend WHERE friend = 'Alice')
Find the name of persons who are friends with Alice for the shortest years.
[ "SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")" ]
[ "select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")" ]
[ "Find", "the", "name", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "shortest", "years", "." ]
network_2
SELECT name FROM PersonFriend WHERE friend = 'Alice' AND YEAR = (SELECT min(YEAR) FROM PersonFriend WHERE friend = 'Alice')
What are the names of all people who are friends with Alice for the shortest amount of time?
[ "SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")" ]
[ "select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")" ]
[ "What", "are", "the", "names", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "shortest", "amount", "of", "time", "?" ]
network_2
SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE friend = 'Alice')
Find the name, age, and job title of persons who are friends with Alice for the longest years.
[ "SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")" ]
[ "Find", "the", "name", ",", "age", ",", "and", "job", "title", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "years", "." ]
network_2
SELECT T1.name , T1.age , T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT max(YEAR) FROM PersonFriend WHERE friend = 'Alice')
What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?
[ "SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")" ]
[ "What", "are", "the", "names", ",", "ages", ",", "and", "jobs", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "amount", "of", "time", "?" ]
network_2
SELECT name FROM person EXCEPT SELECT name FROM PersonFriend
Who is the person that has no friend?
[ "SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "name", "FROM", "PersonFriend" ]
[ "select", "name", "from", "person", "except", "select", "name", "from", "personfriend" ]
[ "Who", "is", "the", "person", "that", "has", "no", "friend", "?" ]
network_2
SELECT name FROM person EXCEPT SELECT name FROM PersonFriend
What are the names of all people who do not have friends?
[ "SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "name", "FROM", "PersonFriend" ]
[ "select", "name", "from", "person", "except", "select", "name", "from", "personfriend" ]
[ "What", "are", "the", "names", "of", "all", "people", "who", "do", "not", "have", "friends", "?" ]
network_2
SELECT T2.name , avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1
Which person whose friends have the oldest average age?
[ "SELECT", "T2.name", ",", "avg", "(", "T1.age", ")", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "GROUP", "BY", "T2.name", "ORDER", "BY", "avg", "(", "T1.age", ")", "DESC", "LIMIT", "1" ]
[ "select", "t2", ".", "name", ",", "avg", "(", "t1", ".", "age", ")", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "group", "by", "t2", ".", "name", "order", "by", "avg", "(", "t1", ".", "age", ")", "desc", "limit", "value" ]
[ "Which", "person", "whose", "friends", "have", "the", "oldest", "average", "age", "?" ]
network_2
SELECT T2.name , avg(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY avg(T1.age) DESC LIMIT 1
What is the name of the person who has the oldest average age for their friends, and what is that average age?
[ "SELECT", "T2.name", ",", "avg", "(", "T1.age", ")", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "GROUP", "BY", "T2.name", "ORDER", "BY", "avg", "(", "T1.age", ")", "DESC", "LIMIT", "1" ]
[ "select", "t2", ".", "name", ",", "avg", "(", "t1", ".", "age", ")", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "group", "by", "t2", ".", "name", "order", "by", "avg", "(", "t1", ".", "age", ")", "desc", "limit", "value" ]
[ "What", "is", "the", "name", "of", "the", "person", "who", "has", "the", "oldest", "average", "age", "for", "their", "friends", ",", "and", "what", "is", "that", "average", "age", "?" ]
network_2
SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city = 'Austin')
What is the total number of people who has no friend living in the city of Austin.
[ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "PersonFriend", "WHERE", "friend", "NOT", "IN", "(", "SELECT", "name", "FROM", "person", "WHERE", "city", "=", "'Austin", "'", ")" ]
[ "select", "count", "(", "distinct", "name", ")", "from", "personfriend", "where", "friend", "not", "in", "(", "select", "name", "from", "person", "where", "city", "=", "value", ")" ]
[ "What", "is", "the", "total", "number", "of", "people", "who", "has", "no", "friend", "living", "in", "the", "city", "of", "Austin", "." ]
network_2
SELECT count(DISTINCT name) FROM PersonFriend WHERE friend NOT IN (SELECT name FROM person WHERE city = 'Austin')
What is the total number of people who have no friends living in Austin?
[ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "PersonFriend", "WHERE", "friend", "NOT", "IN", "(", "SELECT", "name", "FROM", "person", "WHERE", "city", "=", "'Austin", "'", ")" ]
[ "select", "count", "(", "distinct", "name", ")", "from", "personfriend", "where", "friend", "not", "in", "(", "select", "name", "from", "person", "where", "city", "=", "value", ")" ]
[ "What", "is", "the", "total", "number", "of", "people", "who", "have", "no", "friends", "living", "in", "Austin", "?" ]
network_2
SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name != 'Alice'
Find Alice's friends of friends.
[ "SELECT", "DISTINCT", "T4.name", "FROM", "PersonFriend", "AS", "T1", "JOIN", "Person", "AS", "T2", "ON", "T1.name", "=", "T2.name", "JOIN", "PersonFriend", "AS", "T3", "ON", "T1.friend", "=", "T3.name", "JOIN", "PersonFriend", "AS", "T4", "ON", "T3.friend", "=", "T4.name", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T4.name", "!", "=", "'Alice", "'" ]
[ "select", "distinct", "t4", ".", "name", "from", "personfriend", "as", "t1", "join", "person", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "join", "personfriend", "as", "t3", "on", "t1", ".", "friend", "=", "t3", ".", "name", "join", "personfriend", "as", "t4", "on", "t3", ".", "friend", "=", "t4", ".", "name", "where", "t2", ".", "name", "=", "value", "and", "t4", ".", "name", "!", "=", "value" ]
[ "Find", "Alice", "'s", "friends", "of", "friends", "." ]
network_2
SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name != 'Alice'
What are the names of all of Alice's friends of friends?
[ "SELECT", "DISTINCT", "T4.name", "FROM", "PersonFriend", "AS", "T1", "JOIN", "Person", "AS", "T2", "ON", "T1.name", "=", "T2.name", "JOIN", "PersonFriend", "AS", "T3", "ON", "T1.friend", "=", "T3.name", "JOIN", "PersonFriend", "AS", "T4", "ON", "T3.friend", "=", "T4.name", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T4.name", "!", "=", "'Alice", "'" ]
[ "select", "distinct", "t4", ".", "name", "from", "personfriend", "as", "t1", "join", "person", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "join", "personfriend", "as", "t3", "on", "t1", ".", "friend", "=", "t3", ".", "name", "join", "personfriend", "as", "t4", "on", "t3", ".", "friend", "=", "t4", ".", "name", "where", "t2", ".", "name", "=", "value", "and", "t4", ".", "name", "!", "=", "value" ]
[ "What", "are", "the", "names", "of", "all", "of", "Alice", "'s", "friends", "of", "friends", "?" ]
decoration_competition
SELECT count(*) FROM member
How many members are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "member" ]
[ "select", "count", "(", "*", ")", "from", "member" ]
[ "How", "many", "members", "are", "there", "?" ]
decoration_competition
SELECT Name FROM member ORDER BY Name ASC
List the names of members in ascending alphabetical order.
[ "SELECT", "Name", "FROM", "member", "ORDER", "BY", "Name", "ASC" ]
[ "select", "name", "from", "member", "order", "by", "name", "asc" ]
[ "List", "the", "names", "of", "members", "in", "ascending", "alphabetical", "order", "." ]
decoration_competition
SELECT Name , Country FROM member
What are the names and countries of members?
[ "SELECT", "Name", ",", "Country", "FROM", "member" ]
[ "select", "name", ",", "country", "from", "member" ]
[ "What", "are", "the", "names", "and", "countries", "of", "members", "?" ]
decoration_competition
SELECT Name FROM member WHERE Country = "United States" OR Country = "Canada"
Show the names of members whose country is "United States" or "Canada".
[ "SELECT", "Name", "FROM", "member", "WHERE", "Country", "=", "``", "United", "States", "''", "OR", "Country", "=", "``", "Canada", "''" ]
[ "select", "name", "from", "member", "where", "country", "=", "value", "or", "country", "=", "value" ]
[ "Show", "the", "names", "of", "members", "whose", "country", "is", "``", "United", "States", "''", "or", "``", "Canada", "''", "." ]
decoration_competition
SELECT Country , COUNT(*) FROM member GROUP BY Country
Show the different countries and the number of members from each.
[ "SELECT", "Country", ",", "COUNT", "(", "*", ")", "FROM", "member", "GROUP", "BY", "Country" ]
[ "select", "country", ",", "count", "(", "*", ")", "from", "member", "group", "by", "country" ]
[ "Show", "the", "different", "countries", "and", "the", "number", "of", "members", "from", "each", "." ]
decoration_competition
SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1
Show the most common country across members.
[ "SELECT", "Country", "FROM", "member", "GROUP", "BY", "Country", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "country", "from", "member", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Show", "the", "most", "common", "country", "across", "members", "." ]
decoration_competition
SELECT Country FROM member GROUP BY Country HAVING COUNT(*) > 2
Which countries have more than two members?
[ "SELECT", "Country", "FROM", "member", "GROUP", "BY", "Country", "HAVING", "COUNT", "(", "*", ")", ">", "2" ]
[ "select", "country", "from", "member", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value" ]
[ "Which", "countries", "have", "more", "than", "two", "members", "?" ]
decoration_competition
SELECT Leader_Name , College_Location FROM college
Show the leader names and locations of colleges.
[ "SELECT", "Leader_Name", ",", "College_Location", "FROM", "college" ]
[ "select", "leader_name", ",", "college_location", "from", "college" ]
[ "Show", "the", "leader", "names", "and", "locations", "of", "colleges", "." ]
decoration_competition
SELECT T2.Name , T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID
Show the names of members and names of colleges they go to.
[ "SELECT", "T2.Name", ",", "T1.Name", "FROM", "college", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.College_ID", "=", "T2.College_ID" ]
[ "select", "t2", ".", "name", ",", "t1", ".", "name", "from", "college", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id" ]
[ "Show", "the", "names", "of", "members", "and", "names", "of", "colleges", "they", "go", "to", "." ]
decoration_competition
SELECT T2.Name , T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name ASC
Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.
[ "SELECT", "T2.Name", ",", "T1.College_Location", "FROM", "college", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.College_ID", "=", "T2.College_ID", "ORDER", "BY", "T2.Name", "ASC" ]
[ "select", "t2", ".", "name", ",", "t1", ".", "college_location", "from", "college", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id", "order", "by", "t2", ".", "name", "asc" ]
[ "Show", "the", "names", "of", "members", "and", "the", "locations", "of", "colleges", "they", "go", "to", "in", "ascending", "alphabetical", "order", "of", "member", "names", "." ]
decoration_competition
SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = "Canada"
Show the distinct leader names of colleges associated with members from country "Canada".
[ "SELECT", "DISTINCT", "T1.Leader_Name", "FROM", "college", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.College_ID", "=", "T2.College_ID", "WHERE", "T2.Country", "=", "``", "Canada", "''" ]
[ "select", "distinct", "t1", ".", "leader_name", "from", "college", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "college_id", "=", "t2", ".", "college_id", "where", "t2", ".", "country", "=", "value" ]
[ "Show", "the", "distinct", "leader", "names", "of", "colleges", "associated", "with", "members", "from", "country", "``", "Canada", "''", "." ]
decoration_competition
SELECT T1.Name , T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID
Show the names of members and the decoration themes they have.
[ "SELECT", "T1.Name", ",", "T2.Decoration_Theme", "FROM", "member", "AS", "T1", "JOIN", "round", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID" ]
[ "select", "t1", ".", "name", ",", "t2", ".", "decoration_theme", "from", "member", "as", "t1", "join", "round", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id" ]
[ "Show", "the", "names", "of", "members", "and", "the", "decoration", "themes", "they", "have", "." ]
decoration_competition
SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3
Show the names of members that have a rank in round higher than 3.
[ "SELECT", "T1.Name", "FROM", "member", "AS", "T1", "JOIN", "round", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID", "WHERE", "T2.Rank_in_Round", ">", "3" ]
[ "select", "t1", ".", "name", "from", "member", "as", "t1", "join", "round", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "where", "t2", ".", "rank_in_round", ">", "value" ]
[ "Show", "the", "names", "of", "members", "that", "have", "a", "rank", "in", "round", "higher", "than", "3", "." ]
decoration_competition
SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round ASC
Show the names of members in ascending order of their rank in rounds.
[ "SELECT", "T1.Name", "FROM", "member", "AS", "T1", "JOIN", "round", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID", "ORDER", "BY", "Rank_in_Round", "ASC" ]
[ "select", "t1", ".", "name", "from", "member", "as", "t1", "join", "round", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "order", "by", "rank_in_round", "asc" ]
[ "Show", "the", "names", "of", "members", "in", "ascending", "order", "of", "their", "rank", "in", "rounds", "." ]
decoration_competition
SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM round)
List the names of members who did not participate in any round.
[ "SELECT", "Name", "FROM", "member", "WHERE", "Member_ID", "NOT", "IN", "(", "SELECT", "Member_ID", "FROM", "round", ")" ]
[ "select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "round", ")" ]
[ "List", "the", "names", "of", "members", "who", "did", "not", "participate", "in", "any", "round", "." ]
document_management
SELECT document_name , access_count FROM documents ORDER BY document_name
Find the name and access counts of all documents, in alphabetic order of the document name.
[ "SELECT", "document_name", ",", "access_count", "FROM", "documents", "ORDER", "BY", "document_name" ]
[ "select", "document_name", ",", "access_count", "from", "documents", "order", "by", "document_name" ]
[ "Find", "the", "name", "and", "access", "counts", "of", "all", "documents", ",", "in", "alphabetic", "order", "of", "the", "document", "name", "." ]