Question: 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) , stuid (number)


Question: 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) , stuid (number)


Question: 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) , stuid (number)


Question: 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) , stuid (number)


Question: 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) , stuid (number)


Question: 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) , stuid (number)


Question: 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) , stuid (number)


Question: 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) , stuid (number)


Question: 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) , stuid (number)


Question: 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) , stuid (number)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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) , stuid (number) | voting_record : stuid (number) , class_president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , class_president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , vice_president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , vice_president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: 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) , stuid (number) | voting_record : stuid (number) , vice_president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , vice_president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , president_vote (number)


Question: 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) , stuid (number) | voting_record : stuid (number) , president_vote (number)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: 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)


Question: Find the major that is studied by the most 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 : major (number) , sex (text) , stuid (number)


Question: What is the city_code of the city that the most students live in?

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 : city_code (text) , stuid (number)


Question: Return the code of the city that 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 : city_code (text) , stuid (number)


Question: Report the distinct advisors who have 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)


Question: Which advisors are advising 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)


Question: How many products are there?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)


Question: Count the number of products.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)


Question: How many colors are there?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)


Question: Count the number of colors.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)


Question: How many characteristics are there?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)


Question: Count the number of characteristics.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)


Question: What are the names and buying prices of all the products?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , typical_buying_price (text) , product_id (number)


Question: Return the names and typical buying prices for all products.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , typical_buying_price (text) , product_id (number)


Question: List the description of all the colors.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_colors : color_description (text) , color_code (number)


Question: What are the descriptions for each color?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_colors : color_description (text) , color_code (number)


Question: Find the names of all the product characteristics.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_id (number)


Question: What are the different names of the product characteristics?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_id (number)


Question: What are the names of products with category "Spices"?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , product_category_code (text) , product_id (number) | ref_product_categories : product_category_code (text) , product_category_code (number)


Question: Return the names of products in the category 'Spices'.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , product_category_code (text) , product_id (number) | ref_product_categories : product_category_code (text) , product_category_code (number)


Question: List the names, color descriptions and product descriptions of products with category "Herbs".

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , product_description (text) , color_code (text) , product_category_code (text) , product_id (number) | ref_colors : color_description (text) , color_code (text) , color_code (number) | ref_product_categories : product_category_code (text) , product_category_code (number)


Question: What are the names, color descriptions, and product descriptions for products in the 'Herbs' category?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , product_description (text) , color_code (text) , product_category_code (text) , product_id (number) | ref_colors : color_description (text) , color_code (text) , color_code (number) | ref_product_categories : product_category_code (text) , product_category_code (number)


Question: How many products are there under the category "Seeds"?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_code (text) , product_category_code (number) | products : product_category_code (text) , product_id (number)


Question: Count the number of products in the category 'Seeds'.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_code (text) , product_category_code (number) | products : product_category_code (text) , product_id (number)


Question: Find the number of products with category "Spices" and typically sold above 1000.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_code (text) , product_category_code (number) | products : product_category_code (text) , typical_buying_price (text) , product_id (number)


Question: How many products are in the 'Spices' category and have a typical price of over 1000?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_code (text) , product_category_code (number) | products : product_category_code (text) , typical_buying_price (text) , product_id (number)


Question: What is the category and typical buying price  of the product with name "cumin"?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_code (text) , product_category_code (number) | products : product_category_code (text) , typical_buying_price (text) , product_name (text) , product_id (number)


Question: Return the category code and typical price of 'cumin'.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_code (text) , product_category_code (number) | products : product_category_code (text) , typical_buying_price (text) , product_name (text) , product_id (number)


Question: Which category does the product named "flax" belong to?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_code (text) , product_category_code (number) | products : product_category_code (text) , product_name (text) , product_id (number)


Question: What is the code of the category that the product with the name 'flax' belongs to?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_code (text) , product_category_code (number) | products : product_category_code (text) , product_name (text) , product_id (number)


Question: What is the name of the product with the color description 'yellow'?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , color_code (text) , product_id (number) | ref_colors : color_code (text) , color_description (text) , color_code (number)


Question: Give the name of the products that have a color description 'yellow'.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , color_code (text) , product_id (number) | ref_colors : color_code (text) , color_description (text) , color_code (number)


Question: Find the category descriptions of the products whose descriptions include letter 't'.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_description (text) , product_category_code (text) , product_category_code (number) | products : product_category_code (text) , product_description (text) , product_id (number)


Question: What are the descriptions of the categories that products with product descriptions that contain the letter t are in?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_product_categories : product_category_description (text) , product_category_code (text) , product_category_code (number) | products : product_category_code (text) , product_description (text) , product_id (number)


Question: What is the color description of the product with name "catnip"?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_colors : color_description (text) , color_code (text) , color_code (number) | products : color_code (text) , product_name (text) , product_id (number)


Question: Give the color description for the product 'catnip'.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_colors : color_description (text) , color_code (text) , color_code (number) | products : color_code (text) , product_name (text) , product_id (number)


Question: What is the color code and description of the product named "chervil"?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_colors : color_code (text) , color_description (text) , color_code (number) | products : color_code (text) , product_name (text) , product_id (number)


Question: Return the color code and description for the product with the name 'chervil'.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

ref_colors : color_code (text) , color_description (text) , color_code (number) | products : color_code (text) , product_name (text) , product_id (number)


Question: Find the id and color description of the products with at least 2 characteristics.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , color_code (text) , product_id (number) | product_characteristics : product_id (number) | ref_colors : color_description (text) , color_code (text) , color_code (number)


Question: What are the product ids and color descriptions for products with two or more characteristics?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , color_code (text) , product_id (number) | product_characteristics : product_id (number) | ref_colors : color_description (text) , color_code (text) , color_code (number)


Question: List all the product names with the color description "white".

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , color_code (text) , product_id (number) | ref_colors : color_code (text) , color_description (text) , color_code (number)


Question: What are the names of products with 'white' as their color description?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , color_code (text) , product_id (number) | ref_colors : color_code (text) , color_description (text) , color_code (number)


Question: What are the name and typical buying and selling prices of the products that have color described as "yellow"?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , typical_buying_price (text) , typical_selling_price (text) , color_code (text) , product_id (number) | ref_colors : color_code (text) , color_description (text) , color_code (number)


Question: Return the names and typical buying and selling prices for products that have 'yellow' as their color description.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , typical_buying_price (text) , typical_selling_price (text) , color_code (text) , product_id (number) | ref_colors : color_code (text) , color_description (text) , color_code (number)


Question: How many characteristics does the product named "sesame" have?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number)


Question: Count the number of characteristics the product 'sesame' has.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number)


Question: How many distinct characteristic names does the product "cumin" have?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_id (number) , characteristic_id (number) | products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number)


Question: Count the number of different characteristic names the product 'cumin' has.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_id (number) , characteristic_id (number) | products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number)


Question: What are all the characteristic names of product "sesame"?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_id (number) , characteristic_id (number) | products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number)


Question: Return the characteristic names of the 'sesame' product.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_id (number) , characteristic_id (number) | products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number)


Question: List all the characteristic names and data types of product "cumin".

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_data_type (text) , characteristic_id (number) , characteristic_id (number) | products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number)


Question: What are the names and data types of the characteristics of the 'cumin' product?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_data_type (text) , characteristic_id (number) , characteristic_id (number) | products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number)


Question: List all characteristics of product named "sesame" with type code "Grade".

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_id (number) , characteristic_type_code (text) , characteristic_id (number) | products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | ref_characteristic_types : characteristic_type_code (text) , characteristic_type_code (number)


Question: What are the names of the characteristics of the product 'sesame' that have the characteristic type code 'Grade'?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

characteristics : characteristic_name (text) , characteristic_id (number) , characteristic_type_code (text) , characteristic_id (number) | products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | ref_characteristic_types : characteristic_type_code (text) , characteristic_type_code (number)


Question: How many characteristics does the product named "laurel" have?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_id (number)


Question: Count the number of characteristics of the product named 'laurel'.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_id (number)


Question: Find the number of characteristics that the product "flax" has.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_id (number)


Question: Count the number of characteristics of the 'flax' product.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , product_name (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_id (number)


Question: Find the name of the products that have the color description "red" and have the characteristic name "fast".

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , product_id (number) , color_code (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_name (text) , characteristic_id (number) | ref_colors : color_code (text) , color_description (text) , color_code (number)


Question: What are the names of the products that have a color description of 'red' and the 'fast' characteristic?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , product_id (number) , color_code (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_name (text) , characteristic_id (number) | ref_colors : color_code (text) , color_description (text) , color_code (number)


Question: How many products have the characteristic named "hot"?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_name (text) , characteristic_id (number)


Question: Count the number of products with the 'hot' charactersitic.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_name (text) , characteristic_id (number)


Question: List the all the distinct names of the products with the characteristic name 'warm'.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , product_id (number) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_name (text) , characteristic_id (number)


Question: What are the different product names for products that have the 'warm' characteristic:?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_name (text) , product_id (number) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_name (text) , characteristic_id (number)


Question: Find the number of the products that have their color described as "red" and have a characteristic named "slow".

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)

products : product_id (number) , color_code (text) , product_id (number) | product_characteristics : product_id (number) , characteristic_id (number) | characteristics : characteristic_id (number) , characteristic_name (text) , characteristic_id (number) | ref_colors : color_code (text) , color_description (text) , color_code (number)