1sf/bird-sql-train-with-schema huggingface dataset:
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: What are the opening and closing time of business id 1 for day id 2?
Evidence: false
SQL: SELECT opening_time, closing_time FROM Business_Hours WHERE business_id = 1 AND day_id = 2
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: List out city name of businesses which have medium length of review.
Evidence: medium length of review refers to review_length = 'Medium'
SQL: SELECT DISTINCT T1.city FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T2.review_length = 'Medium'
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: What is the closing time of business id 4 on Sunday?
Evidence: on Sunday refers to day_of_week = 'Sunday'
SQL: SELECT T2.closing_time FROM Days AS T1 INNER JOIN Business_Hours AS T2 ON T1.day_id = T2.day_id WHERE T1.day_of_week = 'Sunday' AND T2.business_id = 4
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: Among the businesses which have short length of review, which one located in Phoenix?
Evidence: short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'
SQL: SELECT DISTINCT T1.business_id FROM Business AS T1 INNER JOIN Reviews AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Phoenix' AND T2.review_length = 'Short'
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: Among the users whose fan is medium, how many users received high compliments from other users.
Evidence: is medium refers to user_fans = 'Medium'; high compliments refers to number_of_compliments = 'High'
SQL: SELECT COUNT(T1.user_id) FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id WHERE T2.number_of_compliments = 'High' AND T1.user_fans = 'Medium'
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: Among the users who received low compliments from other users, which users joined Yelp in 2012?
Evidence: low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012
SQL: SELECT DISTINCT T2.user_id FROM Users AS T1 INNER JOIN Users_Compliments AS T2 ON T1.user_id = T2.user_id WHERE T1.user_yelping_since_year = 2012 AND T2.number_of_compliments = 'Low'
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: Among the businesses without attribute, how many businesses located in Gilbert?
Evidence: without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'
SQL: SELECT COUNT(T2.business_id) FROM Business_Attributes AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Gilbert' AND T1.attribute_value IN ('None', 'no', 'false')
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: Among the businesses with average rating, how many business has attribute of full_bar.
Evidence: average rating refers to avg(stars); attribute of full_bar refers to attribute_value = 'full_bar'
SQL: SELECT COUNT(T1.business_id) FROM Business_Attributes AS T1 INNER JOIN Business AS T2 ON T1.business_id = T2.business_id WHERE T1.attribute_value = 'full_bar'
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: List out the state of businesses which have opening time at 1AM.
Evidence: state refers to city
SQL: SELECT DISTINCT T1.state FROM Business AS T1 INNER JOIN Business_Hours AS T2 ON T1.business_id = T2.business_id WHERE T2.opening_time = '1AM'
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: List out the category name of business id 5.
SQL: SELECT T1.category_name FROM Categories AS T1 INNER JOIN Business_Categories AS T2 ON T1.category_id = T2.category_id WHERE T2.business_id = 5
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: List out the user id that has compliment type of photos.
Evidence: compliment type of photos refers to compliment_type = 'photos'
SQL: SELECT T2.user_id FROM Compliments AS T1 INNER JOIN Users_Compliments AS T2 ON T1.compliment_id = T2.compliment_id WHERE T1.compliment_type = 'photos'
Database: public_review_platform
Tables: Attributes, Categories, Compliments, Days, Years, Business_Attributes, Business_Categories, Business_Hours, Checkins, Elite, Reviews, Tips, Users_Compliments, Business, Users
Columns (table index, column name): -1, *, 0, attribute_id, 0, attribute_name, 1, category_id, 1, category_name, 2, compliment_id, 2, compliment_type, 3, day_id, 3, day_of_week, 4, year_id, 4, actual_year, 5, attribute_id, 5, business_id, 5, attribute_value, 6, business_id, 6, category_id, 7, business_id, 7, day_id, 7, opening_time, 7, closing_time, 8, business_id, 8, day_id, 8, label_time_0, 8, label_time_1, 8, label_time_2, 8, label_time_3, 8, label_time_4, 8, label_time_5, 8, label_time_6, 8, label_time_7, 8, label_time_8, 8, label_time_9, 8, label_time_10, 8, label_time_11, 8, label_time_12, 8, label_time_13, 8, label_time_14, 8, label_time_15, 8, label_time_16, 8, label_time_17, 8, label_time_18, 8, label_time_19, 8, label_time_20, 8, label_time_21, 8, label_time_22, 8, label_time_23, 9, user_id, 9, year_id, 10, business_id, 10, user_id, 10, review_stars, 10, review_votes_funny, 10, review_votes_useful, 10, review_votes_cool, 10, review_length, 11, business_id, 11, user_id, 11, likes, 11, tip_length, 12, compliment_id, 12, user_id, 12, number_of_compliments, 13, business_id, 13, active, 13, city, 13, state, 13, stars, 13, review_count, 14, user_id, 14, user_yelping_since_year, 14, user_average_stars, 14, user_votes_funny, 14, user_votes_useful, 14, user_votes_cool, 14, user_review_count, 14, user_fans
Question: Calculate the percentage of medium tip length in the list. List out the time when users of medium tip length join Yelp.
Evidence: medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year
SQL: SELECT CAST(SUM(CASE WHEN T1.tip_length = 'Medium' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.tip_length), T2.user_yelping_since_year FROM Tips AS T1 INNER JOIN Users AS T2 ON T1.user_id = T2.user_id