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: What is the latitude and longitude of the school where the teacher who wrote "Smile for the Camera!!!" teaches?
Evidence: wrote "Smile for the Camera!!!" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude
SQL: SELECT T1.school_latitude, T1.school_longitude FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title = 'Smile for the Camera!!!'
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 total amount of all the donations made by the donor who made the highest donation in a single amount? Indicate the essay title to where he/she made his/her biggest donation.
Evidence: total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)
SQL: SELECT T2.donation_total, T1.title FROM essays AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.donation_total = ( SELECT MAX(donation_total) FROM donations )
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 favorite project types of each of the top 10 donors?
Evidence: favorite project type refers to project_resource_type; top donors refers to max(donation_total)
SQL: SELECT project_resource_type FROM ( SELECT T1.donor_acctid, T3.project_resource_type FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN resources AS T3 ON T2.projectid = T3.projectid ORDER BY T1.donation_total DESC LIMIT 10 ) GROUP BY project_resource_type ORDER BY COUNT(project_resource_type) DESC LIMIT 1
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: When was the first ever project went live on the site and what were the names of the resources being requested? If there are multiple projects that have the same date, indicate each of them and their items.
Evidence: first ever project refers to min(date_posted); names of the resources refers to item_name
SQL: SELECT T2.date_posted, T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.date_posted = ( SELECT date_posted FROM projects ORDER BY date_posted ASC LIMIT 1 )
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 name of the vendor that supplies resources to the project "iMath"?
Evidence: project "iMath" refers to title = 'iMath'
SQL: SELECT DISTINCT T1.vendor_name FROM resources AS T1 INNER JOIN essays AS T3 ON T1.projectid = T3.projectid WHERE T3.title = 'iMath'
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: When was the project with the highest quantity went live on the site? Indicate the grade level for which the project materials are intended.
Evidence: project with the highest quantity refers to max(item_quantity)
SQL: SELECT T2.date_posted, T2.grade_level FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid ORDER BY T1.item_quantity DESC LIMIT 1
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 amount of donations by people who donated in the project "Recording Rockin' Readers"
Evidence: average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project "Recording Rockin' Readers" refers to title = 'Recording Rockin' Readers'
SQL: SELECT AVG(T3.donation_to_project) FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid WHERE T1.title = 'Recording Rockin'' Readers'
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 essay title of the project that have the highest total price excluding optional support and who is the biggest donor? Identify the donor and calculate how many percent did he/she donated in the project.
Evidence: highest total price excluding optional support refers to max(total_price_excluding_optional_support); who refers to donor_acctid; percent = divide(donation_to_project, total_price_excluding_optional_support)*100%
SQL: SELECT T1.title, T3.donor_acctid, CAST(T3.donation_to_project AS REAL) / T2.total_price_excluding_optional_support FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid INNER JOIN donations AS T3 ON T2.projectid = T3.projectid ORDER BY T3.donation_to_project DESC LIMIT 1
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: From which state do the 5 biggest donor, who gave the highest cost of optional support, come from? List their donor_acctid and calculate for their average cost of optional support for every donations they make and identtify the project's type of resource to which they gave the hightest optional support.
Evidence: which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)
SQL: SELECT T1.school_state, T2.donor_acctid, AVG(T2.donation_optional_support), T1.resource_type FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid ORDER BY T2.donation_optional_support DESC LIMIT 5
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: Which project in Brooklyn that have the highest request of resources? State the the project ID including all of the name of item requested.
Evidence: in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))
SQL: SELECT T1.projectid, T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.school_city LIKE 'Brooklyn' GROUP BY T1.item_name ORDER BY COUNT(T1.item_name) DESC LIMIT 1
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 urban area requested for books resources?
Evidence: urban area refers to school_metro = 'urban'; books resources refers to project_resource_type = 'Books'
SQL: SELECT COUNT(T2.schoolid) FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.resource_type = 'Books' AND T2.school_metro = 'urban'