Question: How many members does the club "Tennis Club" has?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number)


Question: Count the members of the club "Tennis Club".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number)


Question: Find the number of members of club "Pen and Paper Gaming".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number)


Question: How many people have membership in the club "Pen and Paper Gaming"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number)


Question: How many clubs does "Linda Smith" belong to?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: How many clubs does "Linda Smith" have membership for?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: Find the number of clubs where "Tracy Kim" is a member.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: For how many clubs is "Tracy Kim" a member?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: Find all the female members of club "Bootup Baltimore". Show the first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , sex (text) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Give me the first name and last name for all the female members of the club "Bootup Baltimore".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , sex (text) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , sex (text) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: What are the first name and last name of each male member in club "Hopkins Student Enterprises"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , sex (text) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , major (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Which members of "Bootup Baltimore" major in "600"? Give me their first names and last names.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) , major (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Which club has the most members majoring in "600"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , major (number)


Question: Find the club which has the largest number of members majoring in "600".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , major (number)


Question: Find the name of the club that has the most female students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , sex (text)


Question: Which club has the most female students as their members? Give me the name of the club.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , sex (text)


Question: What is the description of the club named "Tennis Club"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubdesc (text) , clubname (text)


Question: Find the description of the club called "Tennis Club".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubdesc (text) , clubname (text)


Question: Find the description of the club "Pen and Paper Gaming".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubdesc (text) , clubname (text)


Question: What is the description of the club "Pen and Paper Gaming"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubdesc (text) , clubname (text)


Question: What is the location of the club named "Tennis Club"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text)


Question: Where us the club named "Tennis Club" located?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text)


Question: Find the location of the club "Pen and Paper Gaming".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text)


Question: Where is the club "Pen and Paper Gaming" located?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text)


Question: Where is the club "Hopkins Student Enterprises" located?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text)


Question: Tell me the location of the club "Hopkins Student Enterprises".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubname (text)


Question: Find the name of all the clubs at "AKW".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clublocation (text)


Question: Which clubs are located at "AKW"? Return the club names.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clublocation (text)


Question: How many clubs are located at "HHH"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubid (number)


Question: Count the number of clubs located at "HHH".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clublocation (text) , clubid (number)


Question: What are the first and last name of the president of the club "Bootup Baltimore"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) , position (text)


Question: Who is the president of the club "Bootup Baltimore"? Give me the first and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) , position (text)


Question: Who is the "CTO" of club "Hopkins Student Enterprises"? Show the first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) , position (text)


Question: Find the first name and last name for the "CTO" of the club "Hopkins Student Enterprises"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : fname (text) , lname (text) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) , position (text)


Question: How many different roles are there in the club "Bootup Baltimore"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

member_of_club : position (text) , clubid (number) | club : clubid (number) , clubname (text)


Question: Count the number of different positions in the club "Bootup Baltimore".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

member_of_club : position (text) , clubid (number) | club : clubid (number) , clubname (text)


Question: How many members of "Bootup Baltimore" are older than 18?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , age (number)


Question: Count the number of members in club "Bootup Baltimore" whose age is above 18.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , age (number)


Question: How many members of club "Bootup Baltimore" are younger than 18?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , age (number)


Question: Count the number of members in club "Bootup Baltimore" whose age is below 18.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , age (number)


Question: Find the names of all the clubs that have at least a member from the city with city code "BAL".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , city_code (text)


Question: Which clubs have one or more members from the city with code "BAL"? Give me the names of the clubs.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , city_code (text)


Question: Find the names of the clubs that have at least a member from the city with city code "HOU".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , city_code (text)


Question: Which clubs have one or more members from the city with code "HOU"? Give me the names of the clubs.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , city_code (text)


Question: How many clubs does the student named "Eric Tai" belong to?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: Count the number of clubs for which the student named "Eric Tai" is a member.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: List the clubs having "Davis Steven" as a member.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: What are the names of the clubs that have "Davis Steven" as a member?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text)


Question: List the clubs that have at least a member with advisor "1121".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , advisor (number)


Question: Which clubs have one or more members whose advisor is "1121"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

club : clubname (text) , clubid (number) | member_of_club : clubid (number) , stuid (number) | student : stuid (number) , advisor (number)


Question: What is the average age of the members of the club "Bootup Baltimore"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Find the average age of the members in the club "Bootup Baltimore".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Find the average age of members of the club "Hopkins Student Enterprises".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: On average, how old are the members in the club "Hopkins Student Enterprises"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Retrieve the average age of members of the club "Tennis Club".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: Compute the average age of the members in the club "Tennis Club".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | club : clubid (number) , clubname (text) , clubdesc (text) , clublocation (text) | member_of_club : stuid (number) , clubid (number) , position (text)

student : age (number) , stuid (number) | club : clubid (number) , clubname (text) | member_of_club : clubid (number) , stuid (number)


Question: What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : grant_amount (number) , grant_id (number) , grant_end_date (time) | documents : grant_id (number) , sent_date (time)


Question: What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : grant_amount (number) , grant_id (number) , grant_end_date (time) | documents : grant_id (number) , sent_date (time)


Question: List the project details of the project both producing patent and paper as outcomes.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number) , outcome_code (text)


Question: What are the details of the project that is producing both patents and papers as outcomes?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number) , outcome_code (text)


Question: What is the total grant amount of the organisations described as research?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : grant_amount (number) , organisation_id (number) | organisations : organisation_id (number) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: What is the total amount of grant money for research?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : grant_amount (number) , organisation_id (number) | organisations : organisation_id (number) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: List from which date and to which date these staff work: project staff of the project which hires the most staffs

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : date_from (time) , date_to (time) , project_id (number) , role_code (text) , staff_id (number)


Question: From what date and to what date do the staff work on a project that has the most staff and has staff in a leader role?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : date_from (time) , date_to (time) , project_id (number) , role_code (text) , staff_id (number)


Question: Find the organisation ids and details of the organisations which are involved in

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : organisation_id (number) , grant_amount (number) | organisations : organisation_id (number) , organisation_details (text)


Question: What are the ids and details for all organizations that have grants of more than 6000 dollars?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : organisation_id (number) , grant_amount (number) | organisations : organisation_id (number) , organisation_details (text)


Question: What is the organisation type and id of the organisation which has the most number of research staff?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisations : organisation_type (text) , organisation_id (number) | research_staff : employer_organisation_id (number) , staff_id (number)


Question: What is the type and id of the organization that has the most research staff?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisations : organisation_type (text) , organisation_id (number) | research_staff : employer_organisation_id (number) , staff_id (number)


Question: Which organisation type hires most research staff?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisations : organisation_type (text) , organisation_id (number) | research_staff : employer_organisation_id (number) , staff_id (number)


Question: What is the type of the organization with the most research staff?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisations : organisation_type (text) , organisation_id (number) | research_staff : employer_organisation_id (number) , staff_id (number)


Question: Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

documents : sent_date (time) , grant_id (number) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) | organisations : organisation_id (number) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: What are the send dates for all documents that have a grant amount of more than 5000 and are involved in research?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

documents : sent_date (time) , grant_id (number) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) | organisations : organisation_id (number) , organisation_type (text) | organisation_types : organisation_type (text) , organisation_type_description (text)


Question: What are the response received dates for the documents described as 'Regular' or granted with more than 100?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

documents : response_received_date (time) , document_type_code (text) , grant_id (number) | document_types : document_type_code (text) , document_description (text) | grants : grant_id (number) , grant_amount (number)


Question: What is the response received date for the document described as Regular that was granted more than 100 dollars?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

documents : response_received_date (time) , document_type_code (text) , grant_id (number) | document_types : document_type_code (text) , document_description (text) | grants : grant_id (number) , grant_amount (number)


Question: List the project details of the projects which did not hire any staff for a researcher role.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_staff : project_id (number) , role_code (text)


Question: What are the details for all projects that did not hire any staff in a research role?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_staff : project_id (number) , role_code (text)


Question: What are the task details, task id and project id for the projects which are detailed as 'omnis' or  have more than 2 outcomes?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

tasks : task_details (text) , task_id (number) , project_id (number) | project_outcomes : project_id (number) | projects : project_id (number) , project_details (text)


Question: What are the task details, task ids, and project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

tasks : task_details (text) , task_id (number) , project_id (number) | project_outcomes : project_id (number) | projects : project_id (number) , project_details (text)


Question: When do all the researcher role staff start to work, and when do they stop working?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : date_from (time) , date_to (time) , role_code (text)


Question: When did researchers start and stop working?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : date_from (time) , date_to (time) , role_code (text)


Question: How many kinds of roles are there for the staff?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: How many different roles are there on the project staff?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: What is the total amount of grants given by each organisations? Also list the organisation id.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : grant_amount (number) , organisation_id (number)


Question: What is the total amount of grant money given to each organization and what is its id?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : grant_amount (number) , organisation_id (number)


Question: List the project details of the projects with the research outcome described with the substring 'Published'.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number) , outcome_code (text) | research_outcomes : outcome_code (text) , outcome_description (text)


Question: What are the details for the project whose research has been published?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number) , outcome_code (text) | research_outcomes : outcome_code (text) , outcome_description (text)


Question: How many staff does each project has? List the project id and the number in an ascending order.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : project_id (number) , staff_id (number) | projects : project_id (number)


Question: For each project id, how many staff does it have? List them in increasing order.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

project_staff : project_id (number) , staff_id (number) | projects : project_id (number)


Question: What is the complete description of the researcher role.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

staff_roles : role_description (text) , role_code (text)


Question: What is the complete description of the job of a researcher?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

staff_roles : role_description (text) , role_code (text)


Question: When did the first staff for the projects started working?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: When did the first staff member start working?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: Which project made the most number of outcomes? List the project details and the project id.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number)


Question: What are the details and id of the project with the most outcomes?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number)


Question: Which projects have no outcome? List the project details.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number)


Question: What are the details of the project with no outcomes?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

projects : project_details (text) , project_id (number) | project_outcomes : project_id (number)


Question: Which organisation hired the most number of research staff? List the organisation id, type and detail.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | research_staff : employer_organisation_id (number) , staff_id (number)


Question: What are the ids, types, and details of the organization with the most research staff?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | research_staff : employer_organisation_id (number) , staff_id (number)


Question: Show the role description and the id of the project staff involved in most number of project outcomes?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

staff_roles : role_description (text) , role_code (text) | project_staff : staff_id (number) , role_code (text) , project_id (number) | project_outcomes : project_id (number)


Question: For each staff id, what is the description of the role that is involved with the most number of projects?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

staff_roles : role_description (text) , role_code (text) | project_staff : staff_id (number) , role_code (text) , project_id (number) | project_outcomes : project_id (number)


Question: Which document type is described with the prefix 'Initial'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: What is the type of the document whose description starts with the word 'Initial'?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree


Question: For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : grant_start_date (time) , grant_id (number) | documents : grant_id (number) , document_type_code (text) | document_types : document_type_code (text) , document_description (text)


Question: For grants that have descriptions of Regular and Initial Applications, what are their start dates?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

grants : grant_start_date (time) , grant_id (number) | documents : grant_id (number) , document_type_code (text) | document_types : document_type_code (text) , document_description (text)


Question: How many documents can one grant have at most? List the grant id and number.

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

documents : grant_id (number) , document_id (number)


Question: For each grant id, how many documents does it have, and which one has the most?

document_types : document_type_code (text) , document_description (text) | documents : document_id (number) , document_type_code (text) , grant_id (number) , sent_date (time) , response_received_date (time) , other_details (text) | grants : grant_id (number) , organisation_id (number) , grant_amount (number) , grant_start_date (time) , grant_end_date (time) , other_details (text) | organisation_types : organisation_type (text) , organisation_type_description (text) | organisations : organisation_id (number) , organisation_type (text) , organisation_details (text) | project_outcomes : project_id (number) , outcome_code (text) , outcome_details (text) | project_staff : staff_id (number) , project_id (number) , role_code (text) , date_from (time) , date_to (time) , other_details (text) | projects : project_id (number) , organisation_id (number) , project_details (text) | research_outcomes : outcome_code (text) , outcome_description (text) | research_staff : staff_id (number) , employer_organisation_id (number) , staff_details (text) | staff_roles : role_code (text) , role_description (text) | tasks : task_id (number) , project_id (number) , task_details (text) , eg agree

documents : grant_id (number) , document_id (number)