db_id
stringclasses
140 values
question
stringlengths
16
224
schema
stringclasses
140 values
summarized-schema
stringlengths
18
304
shrink-score
float64
0
1
shop_membership
What are the opening years in which at least two shops opened?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : open_year (text) , branch_id (number)
0.888889
shop_membership
Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : membership_amount (text) , open_year (text) , city (text)
0.833333
shop_membership
What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : membership_amount (text) , open_year (text) , city (text)
0.833333
shop_membership
Show the city and the number of branches opened before 2010 for each city.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : city (text) , open_year (text) , branch_id (number)
0.833333
shop_membership
For each city, how many branches opened before 2010?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : city (text) , open_year (text) , branch_id (number)
0.833333
shop_membership
How many different levels do members have?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : level (number)
0.944444
shop_membership
What are the different membership levels?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : level (number)
0.944444
shop_membership
Show card number, name, and hometown for all members in a descending order of level.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : card_number (text) , name (text) , hometown (text) , level (number)
0.777778
shop_membership
What are the card numbers, names, and hometowns of every member ordered by descending level?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : card_number (text) , name (text) , hometown (text) , level (number)
0.777778
shop_membership
Show the membership level with most number of members.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : level (number) , member_id (number)
0.888889
shop_membership
What is the membership level with the most people?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : level (number) , member_id (number)
0.888889
shop_membership
Show all member names and registered branch names sorted by register year.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : name (text) , member_id (number) | branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number) , register_year (text)
0.611111
shop_membership
What are the names of the members and branches at which they are registered sorted by year of registration?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : name (text) , member_id (number) | branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number) , register_year (text)
0.611111
shop_membership
Show all branch names with the number of members in each branch registered after 2015.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , register_year (text) , member_id (number)
0.722222
shop_membership
For each branch id, what are the names of the branches that were registered after 2015?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , register_year (text) , member_id (number)
0.722222
shop_membership
Show member names without any registered branch.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : name (text) , member_id (number) | membership_register_branch : member_id (number)
0.833333
shop_membership
What are the names of the members that have never registered at any branch?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : name (text) , member_id (number) | membership_register_branch : member_id (number)
0.833333
shop_membership
List the branch name and city without any registered members.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : name (text) , city (text) , branch_id (number) | membership_register_branch : branch_id (text)
0.777778
shop_membership
What are the names and cities of the branches that do not have any registered members?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : name (text) , city (text) , branch_id (number) | membership_register_branch : branch_id (text)
0.777778
shop_membership
What is the name and open year for the branch with most number of memberships registered in 2016?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : name (text) , open_year (text) , branch_id (number) | membership_register_branch : branch_id (text) , register_year (text) , member_id (number)
0.666667
shop_membership
What is the name and opening year for the branch that registered the most members in 2016?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : name (text) , open_year (text) , branch_id (number) | membership_register_branch : branch_id (text) , register_year (text) , member_id (number)
0.666667
shop_membership
Show the member name and hometown who registered a branch in 2016.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : name (text) , hometown (text) , member_id (number) | membership_register_branch : member_id (number) , register_year (text)
0.722222
shop_membership
What are the member names and hometowns of those who registered at a branch in 2016?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : name (text) , hometown (text) , member_id (number) | membership_register_branch : member_id (number) , register_year (text)
0.722222
shop_membership
Show all city with a branch opened in 2001 and a branch with more than 100 membership.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : city (text) , open_year (text) , membership_amount (text)
0.833333
shop_membership
What are the cities that have a branch that opened in 2001 and a branch with more than 100 members?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : city (text) , open_year (text) , membership_amount (text)
0.833333
shop_membership
Show all cities without a branch having more than 100 memberships.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : city (text) , membership_amount (text)
0.888889
shop_membership
What are the cities that do not have any branches with more than 100 members?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
branch : city (text) , membership_amount (text)
0.888889
shop_membership
What is the sum of total pounds of purchase in year 2018 for all branches in London?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
purchase : total_pounds (number) , branch_id (text) , year (text) | branch : branch_id (number) , city (text)
0.722222
shop_membership
How many total pounds were purchased in the year 2018 at all London branches?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
purchase : total_pounds (number) , branch_id (text) , year (text) | branch : branch_id (number) , city (text)
0.722222
shop_membership
What is the total number of purchases for members with level 6?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : member_id (number) , level (number) | purchase : member_id (number)
0.833333
shop_membership
What are the total purchases for members rated at level 6?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : member_id (number) , level (number) | purchase : member_id (number)
0.833333
shop_membership
Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : name (text) , member_id (number) , hometown (text) | branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number)
0.611111
shop_membership
What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : name (text) , member_id (number) , hometown (text) | branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number)
0.611111
shop_membership
list the card number of all members whose hometown address includes word "Kentucky".
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : card_number (text) , hometown (text)
0.888889
shop_membership
What are the card numbers of members from Kentucky?
member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)
member : card_number (text) , hometown (text)
0.888889
voter_2
Find the number of students in total.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : stuid (number)
0.941176
voter_2
How many students are there in total?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : stuid (number)
0.941176
voter_2
Find the distinct number of president votes.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : president_vote (number)
0.941176
voter_2
How many distinct president votes are recorded?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : president_vote (number)
0.941176
voter_2
Find the maximum age of all the students.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number)
0.941176
voter_2
What is the oldest age among the students?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number)
0.941176
voter_2
Find the last names of students with major 50.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : lname (text) , major (number)
0.882353
voter_2
What are the last names of students studying major 50?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : lname (text) , major (number)
0.882353
voter_2
Find the first names of students with age above 22.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , age (number)
0.882353
voter_2
What are the first names of all the students aged above 22?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , age (number)
0.882353
voter_2
What are the majors of male (sex is M) students?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : major (number) , sex (text)
0.882353
voter_2
List the major of each male student.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : major (number) , sex (text)
0.882353
voter_2
What is the average age of female (sex is F) students?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , sex (text)
0.882353
voter_2
Find the average age of female students.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , sex (text)
0.882353
voter_2
What are the maximum and minimum age of students with major 600?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , major (number)
0.882353
voter_2
Tell me the ages of the oldest and youngest students studying major 600.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , major (number)
0.882353
voter_2
Who are the advisors for students that live in a city with city code "BAL"?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : advisor (number) , city_code (text)
0.882353
voter_2
Show the advisors of the students whose city of residence has city code "BAL".
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : advisor (number) , city_code (text)
0.882353
voter_2
What are the distinct secretary votes in the fall election cycle?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : secretary_vote (number) , election_cycle (text)
0.882353
voter_2
Return all the distinct secretary votes made in the fall election cycle.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : secretary_vote (number) , election_cycle (text)
0.882353
voter_2
What are the distinct president votes on 08/30/2015?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : president_vote (number) , registration_date (text)
0.882353
voter_2
Show all the distinct president votes made on 08/30/2015.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : president_vote (number) , registration_date (text)
0.882353
voter_2
Report the distinct registration date and the election cycle.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : registration_date (text) , election_cycle (text)
0.882353
voter_2
What are the distinct registration dates and the election cycles?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : registration_date (text) , election_cycle (text)
0.882353
voter_2
Report the distinct president vote and the vice president vote.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : president_vote (number) , vice_president_vote (number)
0.882353
voter_2
List all the distinct president votes and the vice president votes.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : president_vote (number) , vice_president_vote (number)
0.882353
voter_2
Find the distinct last names of the students who have class president votes.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : lname (text) , stuid (number) | voting_record : stuid (number) , class_president_vote (number)
0.764706
voter_2
What are the distinct last names of the students who have class president votes?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : lname (text) , stuid (number) | voting_record : stuid (number) , class_president_vote (number)
0.764706
voter_2
Find the distinct first names of the students who have class senator votes.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number)
0.764706
voter_2
What are the distinct first names of the students who have class president votes?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number)
0.764706
voter_2
Find the distinct ages of students who have secretary votes in the fall election cycle.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)
0.705882
voter_2
What are the distinct ages of students who have secretary votes in the fall election cycle?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)
0.705882
voter_2
Find the distinct Advisor of students who have treasurer votes in the spring election cycle.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : advisor (number) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number) , election_cycle (text)
0.705882
voter_2
Who served as an advisor for students who have treasurer votes in the spring election cycle?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : advisor (number) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number) , election_cycle (text)
0.705882
voter_2
Find the distinct majors of students who have treasurer votes.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : major (number) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number)
0.764706
voter_2
What are the distinct majors that students with treasurer votes are studying?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : major (number) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number)
0.764706
voter_2
Find the first and last names of all the female (sex is F) students who have president votes.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , lname (text) , stuid (number) , sex (text) | voting_record : stuid (number) , president_vote (number)
0.647059
voter_2
What are the first and last names of all the female students who have president votes?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , lname (text) , stuid (number) , sex (text) | voting_record : stuid (number) , president_vote (number)
0.647059
voter_2
Find the first and last name of all the students of age 18 who have vice president votes.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , lname (text) , stuid (number) , age (number) | voting_record : stuid (number) , vice_president_vote (number)
0.647059
voter_2
What are the first names and last names of the students who are 18 years old and have vice president votes.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , lname (text) , stuid (number) , age (number) | voting_record : stuid (number) , vice_president_vote (number)
0.647059
voter_2
How many male (sex is M) students have class senator votes in the fall election cycle?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : stuid (number) , sex (text) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)
0.705882
voter_2
Count the number of male students who had class senator votes in the fall election cycle.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : stuid (number) , sex (text) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)
0.705882
voter_2
Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : stuid (number) , city_code (text) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)
0.705882
voter_2
Which students live in the city with code "NYC" and have class senator votes in the spring election cycle? Count the numbers.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : stuid (number) , city_code (text) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)
0.705882
voter_2
Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , stuid (number) , city_code (text) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)
0.647059
voter_2
What is the average age of students who have city code "NYC" and have secretary votes for the spring election cycle?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , stuid (number) , city_code (text) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)
0.647059
voter_2
Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , stuid (number) , sex (text) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)
0.647059
voter_2
What is the average age of the female students with secretary votes in the spring election cycle?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : age (number) , stuid (number) , sex (text) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)
0.647059
voter_2
Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , stuid (number) , city_code (text) | voting_record : stuid (number) , vice_president_vote (number)
0.705882
voter_2
What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : fname (text) , stuid (number) , city_code (text) | voting_record : stuid (number) , vice_president_vote (number)
0.705882
voter_2
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : lname (text) , stuid (number) , advisor (number) | voting_record : stuid (number) , president_vote (number)
0.705882
voter_2
What are the distinct last names of the students who have president votes but do not have 2192 as the advisor?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : lname (text) , stuid (number) , advisor (number) | voting_record : stuid (number) , president_vote (number)
0.705882
voter_2
Find the distinct last names of all the students who have president votes and whose advisor is 8741.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : lname (text) , stuid (number) , advisor (number) | voting_record : stuid (number) , president_vote (number)
0.705882
voter_2
What are the distinct last names of the students who have president votes and have 8741 as the advisor?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : lname (text) , stuid (number) , advisor (number) | voting_record : stuid (number) , president_vote (number)
0.705882
voter_2
For each advisor, report the total number of students advised by him or her.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : advisor (number) , stuid (number)
0.882353
voter_2
How many students does each advisor have?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : advisor (number) , stuid (number)
0.882353
voter_2
Report all advisors that advise more than 2 students.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : advisor (number) , stuid (number)
0.882353
voter_2
Which advisors have more than two students?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : advisor (number) , stuid (number)
0.882353
voter_2
Report all majors that have less than 3 students.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : major (number) , stuid (number)
0.882353
voter_2
What are the majors only less than three students are studying?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : major (number) , stuid (number)
0.882353
voter_2
For each election cycle, report the number of voting records.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : election_cycle (text)
0.941176
voter_2
Count the number of voting records for each election cycle.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
voting_record : election_cycle (text)
0.941176
voter_2
Which major has the most students?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : major (number) , stuid (number)
0.882353
voter_2
Find the major that is studied by the largest number of students.
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : major (number) , stuid (number)
0.882353
voter_2
What is the most common major among female (sex is F) students?
student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)
student : major (number) , sex (text) , stuid (number)
0.823529