1sf/bird-sql-train-with-schema huggingface dataset:
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: How many schools in Suffolk County have Ph.D. teachers?
Evidence: Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'
SQL: SELECT COUNT(schoolid) FROM projects WHERE teacher_prefix = 'Dr.' AND school_county = 'Suffolk'
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: What is the sum of the total donated amounts paid through Amazon?
Evidence: paid through Amazon refers to payment_method = 'Amazon'; sum of the total donated amounts refers to SUM(donation_to_project,donation_optional_support)
SQL: SELECT SUM(donation_to_project) + SUM(donation_optional_support) FROM donations WHERE payment_method = 'amazon'
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: How many donations of more than $100 were made for an honoree?
Evidence: an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'
SQL: SELECT COUNT(donationid) FROM donations WHERE dollar_amount = '100_and_up' AND for_honoree = 't'
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: How many resources with a unit price less than 15 are not technology type? List them by vendor id
Evidence: unit price less than 15 refers to item_unit_price< = 15; are not technology type refers to project_resource_type = 'technology'
SQL: SELECT vendorid FROM resources WHERE project_resource_type = 'Technology' AND item_unit_price <= 15
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: On how many projects where the teacher has ordered between 5 to 10 items are from are from Quill.com?
Evidence: ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'
SQL: SELECT COUNT(projectid) FROM resources WHERE vendor_name = 'Quill.com' AND item_quantity BETWEEN 5 AND 10
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: List by school id projects from schools located in the Union Pub School District I-9 that have a New York teaching fellow
Evidence: located in the Union Pub School District I-9 refers to school_district = 'Union Pub School District I-9'; New York teaching fellow refers to teacher_ny_teaching_fellow = 't'
SQL: SELECT schoolid FROM projects WHERE school_district = 'Union Pub School District I-9' AND teacher_ny_teaching_fellow = 't'
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: In which cities are Los Angeles County Suburban Metro Schools located?
Evidence: Los Angeles County refers to school_county = 'Los Angeles'
SQL: SELECT school_city FROM projects WHERE school_metro = 'suburban' AND school_county = 'Los Angeles'
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: What are the vendors of the book-type projects? List them with the project ID.
Evidence: book-type projects refers to project_resource_type = 'Books'
SQL: SELECT DISTINCT vendorid, projectid FROM resources WHERE project_resource_type = 'Books'
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: What percentage of projects that have not received a cash donation have received a portion of a donation included corporate sponsored giftcard?
Evidence: have not received a cash donation refers to payment_method = 'no_cash_received'; received a portion of a donation included corporate sponsored giftcard payment_included_campaign_gift_card = 't'; percentage refers to DIVIDE(payment_included_campaign_gift_card = 't',payment_included_campaign_gift_card)*100
SQL: SELECT CAST(SUM(CASE WHEN payment_included_campaign_gift_card = 't' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(donationid) FROM donations WHERE payment_method = 'no_cash_received'
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: What percentage of projects in the City of Santa Barbara are in suburban metro?
Evidence: City of Santa Barbara refers to school_city = 'Santa Barbara'; percentage refers to DIVIDE(school_metro = 'suburban'; school_metro)*100
SQL: SELECT CAST(SUM(CASE WHEN school_metro = 'suburban' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(projectid) FROM projects WHERE school_city = 'Santa Barbara'
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: What is the percentage of payment methods of donations made in March 2013?
Evidence: made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100
SQL: SELECT payment_method , CAST(COUNT(donationid) AS REAL) * 100 / 51090 FROM donations WHERE donation_timestamp LIKE '2013-03%' GROUP BY payment_method
Database: donor
Tables: essays, projects, donations, resources
Columns (table index, column name): -1, *, 0, projectid, 0, teacher_acctid, 0, title, 0, short_description, 0, need_statement, 0, essay, 1, projectid, 1, teacher_acctid, 1, schoolid, 1, school_ncesid, 1, school_latitude, 1, school_longitude, 1, school_city, 1, school_state, 1, school_zip, 1, school_metro, 1, school_district, 1, school_county, 1, school_charter, 1, school_magnet, 1, school_year_round, 1, school_nlns, 1, school_kipp, 1, school_charter_ready_promise, 1, teacher_prefix, 1, teacher_teach_for_america, 1, teacher_ny_teaching_fellow, 1, primary_focus_subject, 1, primary_focus_area, 1, secondary_focus_subject, 1, secondary_focus_area, 1, resource_type, 1, poverty_level, 1, grade_level, 1, fulfillment_labor_materials, 1, total_price_excluding_optional_support, 1, total_price_including_optional_support, 1, students_reached, 1, eligible_double_your_impact_match, 1, eligible_almost_home_match, 1, date_posted, 2, donationid, 2, projectid, 2, donor_acctid, 2, donor_city, 2, donor_state, 2, donor_zip, 2, is_teacher_acct, 2, donation_timestamp, 2, donation_to_project, 2, donation_optional_support, 2, donation_total, 2, dollar_amount, 2, donation_included_optional_support, 2, payment_method, 2, payment_included_acct_credit, 2, payment_included_campaign_gift_card, 2, payment_included_web_purchased_gift_card, 2, payment_was_promo_matched, 2, via_giving_page, 2, for_honoree, 2, donation_message, 3, resourceid, 3, projectid, 3, vendorid, 3, vendor_name, 3, project_resource_type, 3, item_name, 3, item_number, 3, item_unit_price, 3, item_quantity
Question: What is the average unit price of AKJ Books items?
Evidence: AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))
SQL: SELECT SUM(item_unit_price) / SUM(item_quantity) FROM resources WHERE vendor_name = 'AKJ Books'