db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
donor
select sum(t2.donation_total) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.school_city = 'brooklyn'
Question: what is the total donated amount for projects created by a teacher working in a school in brooklyn? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, sc...
what is the total donated amount for projects created by a teacher working in a school in brooklyn?
donor
select t2.donation_message from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.school_city = 'brooklyn' and t1.school_magnet = 't'
Question: please list the donation messages of the donations for the projects created by a teacher working in a public magnet school in brooklyn. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitud...
please list the donation messages of the donations for the projects created by a teacher working in a public magnet school in brooklyn.
donor
select count(t1.projectid) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t2.payment_included_acct_credit = 't' and t1.school_year_round = 't'
Question: among the donations with a portion using account credits redemption, how many of them are for projects created by teachers working in a public year-round school? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, sch...
among the donations with a portion using account credits redemption, how many of them are for projects created by teachers working in a public year-round school?
donor
select sum(t2.dollar_amount) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.primary_focus_area = 'literacy & language'
Question: what is the total donation amount made for projects whose main subject area are literacy & language? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, s...
what is the total donation amount made for projects whose main subject area are literacy & language?
donor
select t2.donor_acctid from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.primary_focus_area = 'literacy & language' order by t2.donation_total desc limit 1
Question: which donor has donated the most for a project whose main subject area is literacy & language? please give his or her id. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_long...
which donor has donated the most for a project whose main subject area is literacy & language? please give his or her id.
donor
select t1.item_name from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.primary_focus_area = 'literacy & language' and t1.project_resource_type = 'supplies' order by t1.item_quantity desc limit 1
Question: what is the most requested item under the resource type 'supplies' for projects whose main subject area is literacy & language? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, schoo...
what is the most requested item under the resource type 'supplies' for projects whose main subject area is literacy & language?
donor
select t1.item_name from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.primary_focus_area = 'literacy & language' order by t1.item_unit_price desc limit 1
Question: which item provided to a project whose main subject area is literacy & language has the highest unit price? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_...
which item provided to a project whose main subject area is literacy & language has the highest unit price?
donor
select sum(t2.donation_total) / count(donationid) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.school_city = 'brooklyn'
Question: what is the average donation amount to a project created by a teacher working in a school in brooklyn? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city,...
what is the average donation amount to a project created by a teacher working in a school in brooklyn?
donor
select distinct donor_city from donations where donor_acctid = '22cbc920c9b5fa08dfb331422f5926b5'
Question: to which city did donor 22cbc920c9b5fa08dfb331422f5926b5 donate? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metr...
to which city did donor 22cbc920c9b5fa08dfb331422f5926b5 donate?
donor
select distinct is_teacher_acct from donations where donor_acctid = '22cbc920c9b5fa08dfb331422f5926b5'
Question: is donor 22cbc920c9b5fa08dfb331422f5926b5 a teacher? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro, school_di...
is donor 22cbc920c9b5fa08dfb331422f5926b5 a teacher?
donor
select case when teacher_prefix = 'dr.' then 'yes' else 'no' end from projects where teacher_acctid = '42d43fa6f37314365d08692e08680973'
Question: have the teacher '42d43fa6f37314365d08692e08680973' acquired p.h.d or doctor degree? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, sch...
have the teacher '42d43fa6f37314365d08692e08680973' acquired p.h.d or doctor degree?
donor
select teacher_ny_teaching_fellow end from projects where teacher_acctid = '42d43fa6f37314365d08692e08680973'
Question: is teacher '42d43fa6f37314365d08692e08680973' a new york teacher? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_met...
is teacher '42d43fa6f37314365d08692e08680973' a new york teacher?
donor
select t2.title from projects as t1 inner join essays as t2 on t1.projectid = t2.projectid where t1.school_city like 'abington'
Question: please list the titles of projects by which schools in abington was donated. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip,...
please list the titles of projects by which schools in abington was donated.
donor
select t1.item_name from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'
Question: please list the resource names of project that teacher '822b7b8768c17456fdce78b65abcc18e' created. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, sch...
please list the resource names of project that teacher '822b7b8768c17456fdce78b65abcc18e' created.
donor
select count(t1.schoolid) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.school_magnet = 't' and t2.payment_included_acct_credit = 'f'
Question: among the schools' projects whose donation didn't use account credits redemption,how many schools are public magnet schools? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_l...
among the schools' projects whose donation didn't use account credits redemption,how many schools are public magnet schools?
donor
select distinct t1.project_resource_type from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid inner join donations as t3 on t2.projectid = t3.projectid where t3.donationid like 'b39547f29dfc25fb13c6e9e8d940dc43'
Question: please provide the type of resource that donation 'b39547f29dfc25fb13c6e9e8d940dc43' contain. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_s...
please provide the type of resource that donation 'b39547f29dfc25fb13c6e9e8d940dc43' contain.
donor
select cast(sum(case when t1.project_resource_type = 'books' then 1 else 0 end) as real) * 100 / count(t1.projectid) from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.school_magnet = 't'
Question: among public magnet schools,what percentage of schools that receive the donated resources as books? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, sc...
among public magnet schools,what percentage of schools that receive the donated resources as books?
donor
select count(t2.schoolid) from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.school_magnet = 't' and t1.vendor_name = 'abc school supply'
Question: in the schools donated by the project of the resources provided by abc school supply, how many schools are public magnet schools? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, sch...
in the schools donated by the project of the resources provided by abc school supply, how many schools are public magnet schools?
donor
select count(t1.schoolid) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.poverty_level = 'highest poverty' and t2.donor_acctid = '000eebf28658900e63b538cf8a73afbd'
Question: among the schools donated by donor '000eebf28658900e63b538cf8a73afbd',how many schools whose poverty level are highest? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longit...
among the schools donated by donor '000eebf28658900e63b538cf8a73afbd',how many schools whose poverty level are highest?
donor
select t2.short_description from projects as t1 inner join essays as t2 on t1.projectid = t2.projectid where t1.schoolid = '301c9bf0a45d159d162b65a93fddd74e'
Question: what is the short description of the project that gives donation to school 301c9bf0a45d159d162b65a93fddd74e? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school...
what is the short description of the project that gives donation to school 301c9bf0a45d159d162b65a93fddd74e?
donor
select t1.school_city from projects as t1 inner join essays as t2 on t1.projectid = t2.projectid where t2.title like 'imath'
Question: which city does the school that project 'imath' donated to in? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro,...
which city does the school that project 'imath' donated to in?
donor
select t2.payment_method from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'
Question: how to pay the donation of the project that teacher '822b7b8768c17456fdce78b65abcc18e' created? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school...
how to pay the donation of the project that teacher '822b7b8768c17456fdce78b65abcc18e' created?
donor
select t2.donation_total from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'
Question: how much did the project that teacher '822b7b8768c17456fdce78b65abcc18e' created donate? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state,...
how much did the project that teacher '822b7b8768c17456fdce78b65abcc18e' created donate?
donor
select t2.is_teacher_acct from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'
Question: is the donor who donated to school 'd4af834b1d3fc8061e1ee1b3f1a77b85' a teacher? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_...
is the donor who donated to school 'd4af834b1d3fc8061e1ee1b3f1a77b85' a teacher?
donor
select cast(sum(case when t1.school_city like 'brooklyn' then 1 else 0 end) as real) * 100 / count(t1.teacher_acctid) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t2.is_teacher_acct = 't'
Question: among the schools whose donators are teachers, what is the percentage of schools that are in brooklyn? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city,...
among the schools whose donators are teachers, what is the percentage of schools that are in brooklyn?
donor
select cast(sum(case when t1.students_reached > 30 then 1 else 0 end) as real) * 100 / count(t1.projectid) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t2.is_teacher_acct = 't'
Question: among the projects whose donators are teachers, what is the percentage of projects that affected more than 30 students? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longit...
among the projects whose donators are teachers, what is the percentage of projects that affected more than 30 students?
donor
select count(schoolid) from projects where school_city = 'bethlehem' and school_metro = 'suburban'
Question: how many schools which have suburban metro are there in bethlehem? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_me...
how many schools which have suburban metro are there in bethlehem?
donor
select count(school_year_round) from projects where school_city = 'los angeles' and school_year_round = 't'
Question: what is the number of the year round school in los angeles? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro, sc...
what is the number of the year round school in los angeles?
donor
select count(schoolid) from projects where school_county = 'new york (manhattan)' and school_magnet = 't'
Question: state the number of public magnet schools in new york manhattan. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metr...
state the number of public magnet schools in new york manhattan.
donor
select count(teacher_acctid) from projects where school_county = 'twin falls' and primary_focus_area = 'math & science'
Question: how many teachers in twin falls have math & science as their primary focus area? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_...
how many teachers in twin falls have math & science as their primary focus area?
donor
select count(teacher_acctid) from projects where teacher_prefix = 'mr.' and primary_focus_subject = 'literature & writing'
Question: how many teachers that have literature & writing as their primary focus subject use 'mr' as their teacher prefix? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, s...
how many teachers that have literature & writing as their primary focus subject use 'mr' as their teacher prefix?
donor
select count(projectid) from projects where school_district = 'boston public school district' and grade_level = 'grades 3-5'
Question: what is the total number of projects that was created by the teachers that teach 3-5 grades in boston public school district? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_...
what is the total number of projects that was created by the teachers that teach 3-5 grades in boston public school district?
donor
select t2.school_city from essays as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.title = 'abc read'
Question: for the teacher who wrote the project 'abc read', which city was he/she in? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, ...
for the teacher who wrote the project 'abc read', which city was he/she in?
donor
select t2.teacher_prefix from essays as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.title like 'creating memories and inspiring dreams%'
Question: what is the teacher prefix for the teacher who wrote the project 'creating memories and inspiring dreams'? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_c...
what is the teacher prefix for the teacher who wrote the project 'creating memories and inspiring dreams'?
donor
select t2.is_teacher_acct from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.title like 'calculate, financial security for tomorrow starts today! '
Question: is the donor of the project 'calculate, financial security for tomorrow starts today! ' a teacher? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, sch...
is the donor of the project 'calculate, financial security for tomorrow starts today! ' a teacher?
donor
select t1.title from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t2.donation_message like 'donation on behalf of matt carpenter because i''m a strong believer in education.'
Question: what is the title for the project that got the donation message as 'donation on behalf of matt carpenter because i'm a strong believer in education'. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, ...
what is the title for the project that got the donation message as 'donation on behalf of matt carpenter because i'm a strong believer in education'.
donor
select sum(t2.donation_total) from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.title like 'a rug for reaching readers'
Question: how many number of donations did the project 'a rug for reaching readers' get? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zi...
how many number of donations did the project 'a rug for reaching readers' get?
donor
select sum(t2.donation_to_project) + sum(t2.donation_optional_support) from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.title like 'engaging young readers with a leveled classroom library '
Question: what is the total donation amount for the project 'engaging young readers with a leveled classroom library'? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school...
what is the total donation amount for the project 'engaging young readers with a leveled classroom library'?
donor
select t2.donation_optional_support from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.title like 'armenian genocide'
Question: what was the donation optional support amount for the project 'armenian genocide'? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, schoo...
what was the donation optional support amount for the project 'armenian genocide'?
donor
select t1.short_description from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t2.donation_timestamp like '2012-09-06 14:44:29'
Question: state the short description for the project which got the donation at 14:44:29 on 2012/9/6. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_sta...
state the short description for the project which got the donation at 14:44:29 on 2012/9/6.
donor
select t2.donation_included_optional_support from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.title like 'i can''t see it...can you help me???'
Question: did the project 'i can't see it...can you help me???' get the tip for the donation? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, scho...
did the project 'i can't see it...can you help me???' get the tip for the donation?
donor
select t1.teacher_acctid from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t2.donation_timestamp like '2008-07-29 11:38:43.361'
Question: what is the teacher's account id for the project that got the donation at 11:38:43 on 2008/7/29 ? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, scho...
what is the teacher's account id for the project that got the donation at 11:38:43 on 2008/7/29 ?
donor
select t2.schoolid from essays as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.title like 'virtual aquarium needs help!'
Question: show the school id for the project 'virtual aquarium needs help!'. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_me...
show the school id for the project 'virtual aquarium needs help!'.
donor
select 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 )
Question: what was the title for the project which got the biggest donation? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_me...
what was the title for the project which got the biggest donation?
donor
select cast(sum(t2.donation_optional_support) as real) * 100 / sum(t2.donation_total) from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.title like 'awesome audiobooks make avid readers'
Question: for the donation of the project 'awesome audiobooks make avid readers', what was the percentage of the tip in the total amount? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, schoo...
for the donation of the project 'awesome audiobooks make avid readers', what was the percentage of the tip in the total amount?
donor
select cast(sum(case when t2.payment_method like 'creditcard' then 1 else 0 end) as real) * 100 / count(donationid) from essays as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.title like 'bringing drama to life'
Question: for the all donations to the project 'bringing drama to life', what is the percentage of the donation is paid by credit card? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_...
for the all donations to the project 'bringing drama to life', what is the percentage of the donation is paid by credit card?
donor
select short_description from essays where title = 'future einsteins of america'
Question: what is the short description for the title future einsteins of america? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, sch...
what is the short description for the title future einsteins of america?
donor
select need_statement from essays where title = 'family history project'
Question: write down the need statement of family history project. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro, schoo...
write down the need statement of family history project.
donor
select count(projectid) from projects where school_district = 'livingston parish school dist' and school_metro = 'suburban'
Question: how many suburban metros are there in livingston parish school district? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, sch...
how many suburban metros are there in livingston parish school district?
donor
select distinct vendor_name from resources where item_name = 'classroom keepers management center'
Question: name the vendors that sell the item classroom keepers management center. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, sch...
name the vendors that sell the item classroom keepers management center.
donor
select distinct project_resource_type from resources where vendor_name = 'sax arts & crafts'
Question: list the resource types available at sax arts & crafts. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro, school...
list the resource types available at sax arts & crafts.
donor
select school_county from projects where poverty_level = 'low poverty' and school_state = 'ny' group by school_state order by count(poverty_level) desc limit 1
Question: which school county in the state of new york has a high number of low poverty levels? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, sc...
which school county in the state of new york has a high number of low poverty levels?
donor
select t1.school_district from projects as t1 inner join essays as t2 on t1.projectid = t2.projectid where t2.title like 'future einsteins of america'
Question: which school district was future einsteins of america project located at? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, sc...
which school district was future einsteins of america project located at?
donor
select t3.payment_method 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 = 'needed resource materials for my students'
Question: what payment method was used for needed resource materials for my students? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, ...
what payment method was used for needed resource materials for my students?
donor
select count(t1.projectid) from donations as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.payment_method = 'creditcard' and t2.school_district = 'memphis city school district'
Question: how many donations were paid via credit card to memphis city school district? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip...
how many donations were paid via credit card to memphis city school district?
donor
select t2.school_district from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.vendor_name = 'barnes and noble'
Question: list the school districts that have bought resources from barnes and noble. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, ...
list the school districts that have bought resources from barnes and noble.
donor
select t2.school_latitude, t2.school_longitude from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.item_name = 'r & a plant genetics' and t1.vendor_name = 'benchmark education'
Question: give the coordinates of the buyer of r & a plant genetics from benchmark education. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, scho...
give the coordinates of the buyer of r & a plant genetics from benchmark education.
donor
select t1.payment_method from donations as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.school_state = 'ga' group by t2.school_state order by count(t1.payment_method) desc limit 1
Question: which payment method is most comonly used by the schools in the state of georgia for the payment of donations? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, scho...
which payment method is most comonly used by the schools in the state of georgia for the payment of donations?
donor
select t2.school_latitude, t2.school_longitude, t2.resource_type from essays as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.title like 'look, look, we need a nook!'
Question: what are the coordinates of the school where project 'look, look, we need a nook!' was donated to and what resource type is it? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, schoo...
what are the coordinates of the school where project 'look, look, we need a nook!' was donated to and what resource type is it?
donor
select t1.donation_message from donations as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.school_latitude = 40.735332 and t2.school_longitude = -74.196014 and t2.school_district = 'newark school district'
Question: write the messages of those who donated to the newark school district in the coordinates of 40.735332, -74.196014. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, ...
write the messages of those who donated to the newark school district in the coordinates of 40.735332, -74.196014.
donor
select t1.date_posted from projects as t1 inner join essays as t2 on t1.projectid = t2.projectid where t2.title like 'lets share ideas'
Question: what date did the project with he 'lets share ideas essay' went live? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school...
what date did the project with he 'lets share ideas essay' went live?
donor
select t3.donation_message 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 = 'lets share ideas' and t3.payment_method = 'creditcard'
Question: write the message of the donor of the project with the title of lets share ideas who paid with a credit card. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, schoo...
write the message of the donor of the project with the title of lets share ideas who paid with a credit card.
donor
select t1.project_resource_type from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.school_district = 'los angeles unif sch dist' group by t2.school_district order by count(t1.project_resource_type) desc limit 1
Question: which resource type is commonly bought by the los angeles unified school district? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, schoo...
which resource type is commonly bought by the los angeles unified school district?
donor
select t2.school_city from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.school_district = 'los angeles unif sch dist' and t1.vendor_name = 'quill.com'
Question: which cities in the los angeles unified school district has bought supplies from quill.com? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_sta...
which cities in the los angeles unified school district has bought supplies from quill.com?
donor
select t2.item_unit_price * t2.item_quantity price, t1.school_latitude, t1.school_longitude from projects as t1 inner join resources as t2 on t1.projectid = t2.projectid where t2.vendor_name = 'abc school supply' and t2.project_resource_type = 'other' and t1.school_district = 'hillsborough co pub sch dist'
Question: what is the total price of items brought from abc school supply with a listed type of other? also include the list of the buyers' coordinates and school districts they belong to. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acct...
what is the total price of items brought from abc school supply with a listed type of other? also include the list of the buyers' coordinates and school districts they belong to.
donor
select sum(t3.donation_total), school_city, poverty_level 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 = 'lets share ideas' and t3.payment_method = 'paypal'
Question: calculate the sum of all the total amount donated to the essay project titled 'lets share ideas' which were paid through paypal and indicate the city and poverty level. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, school...
calculate the sum of all the total amount donated to the essay project titled 'lets share ideas' which were paid through paypal and indicate the city and poverty level.
donor
select count(donationid) from donations where donor_city = 'pocatello' and is_teacher_acct = 'f'
Question: how many donors who donated to the city of pocatello are not teachers? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, schoo...
how many donors who donated to the city of pocatello are not teachers?
donor
select count(schoolid) from projects where teacher_prefix = 'dr.' and school_county = 'suffolk'
Question: how many schools in suffolk county have ph.d. teachers? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro, school...
how many schools in suffolk county have ph.d. teachers?
donor
select sum(donation_to_project) + sum(donation_optional_support) from donations where payment_method = 'amazon'
Question: what is the sum of the total donated amounts paid through amazon? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_met...
what is the sum of the total donated amounts paid through amazon?
donor
select count(donationid) from donations where dollar_amount = '100_and_up' and for_honoree = 't'
Question: how many donations of more than $100 were made for an honoree? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro,...
how many donations of more than $100 were made for an honoree?
donor
select vendorid from resources where project_resource_type = 'technology' and item_unit_price <= 15
Question: how many resources with a unit price less than 15 are not technology type? list them by vendor id | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, scho...
how many resources with a unit price less than 15 are not technology type? list them by vendor id
donor
select count(projectid) from resources where vendor_name = 'quill.com' and item_quantity between 5 and 10
Question: on how many projects where the teacher has ordered between 5 to 10 items are from are from quill.com? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, ...
on how many projects where the teacher has ordered between 5 to 10 items are from are from quill.com?
donor
select schoolid from projects where school_district = 'union pub school district i-9' and teacher_ny_teaching_fellow = 't'
Question: list by school id projects from schools located in the union pub school district i-9 that have a new york teaching fellow | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_long...
list by school id projects from schools located in the union pub school district i-9 that have a new york teaching fellow
donor
select school_city from projects where school_metro = 'suburban' and school_county = 'los angeles'
Question: in which cities are los angeles county suburban metro schools located? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, schoo...
in which cities are los angeles county suburban metro schools located?
donor
select distinct vendorid, projectid from resources where project_resource_type = 'books'
Question: what are the vendors of the book-type projects? list them with the project id. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zi...
what are the vendors of the book-type projects? list them with the project id.
donor
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'
Question: what percentage of projects that have not received a cash donation have received a portion of a donation included corporate sponsored giftcard? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school...
what percentage of projects that have not received a cash donation have received a portion of a donation included corporate sponsored giftcard?
donor
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'
Question: what percentage of projects in the city of santa barbara are in suburban metro? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_z...
what percentage of projects in the city of santa barbara are in suburban metro?
donor
select payment_method , cast(count(donationid) as real) * 100 / 51090 from donations where donation_timestamp like '2013-03%' group by payment_method
Question: what is the percentage of payment methods of donations made in march 2013? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, s...
what is the percentage of payment methods of donations made in march 2013?
donor
select sum(item_unit_price) / sum(item_quantity) from resources where vendor_name = 'akj books'
Question: what is the average unit price of akj books items? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro, school_dist...
what is the average unit price of akj books items?
donor
select count(t2.schoolid) from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid inner join donations as t3 on t2.projectid = t3.projectid where t2.school_city = 'brooklyn' and t2.school_metro = 'urban' and t3.for_honoree = 't' and t1.item_name = 'tt992 - refill pack for safety name tags'
Question: how many schools in brooklyn with urban metro and donations for an honoree have requested tt992 - refill pack for safety name tags as a resource? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, scho...
how many schools in brooklyn with urban metro and donations for an honoree have requested tt992 - refill pack for safety name tags as a resource?
donor
select count(t1.schoolid) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t2.payment_included_campaign_gift_card = 't' and t1.poverty_level = 'highest poverty'
Question: how many schools with the highest level of poverty have received a portion of a donation included corporate sponsored gift card? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, scho...
how many schools with the highest level of poverty have received a portion of a donation included corporate sponsored gift card?
donor
select t2.school_city from donations as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.dollar_amount = 'under_10' group by t2.school_city order by count(t2.schoolid) desc limit 1
Question: in which city is there a greater number of schools that have received donations of less than 10 dollars? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_cit...
in which city is there a greater number of schools that have received donations of less than 10 dollars?
donor
select t1.title from essays as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.school_latitude = 42003718 and t2.school_longitude = -87668289
Question: what is the project title of the school located at latitude 42003718 and longitude -87668289? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_s...
what is the project title of the school located at latitude 42003718 and longitude -87668289?
donor
select t2.teacher_ny_teaching_fellow from essays as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.title like 'team more books!'
Question: find out if the project with the title team more books! has a new york teaching fellow. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, ...
find out if the project with the title team more books! has a new york teaching fellow.
donor
select t1.vendor_name from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.primary_focus_area like 'literacy%' group by t1.vendor_name order by count(t2.primary_focus_area) desc limit 1
Question: what is the name of the vendors that serve resources to schools whose primary focus area is literature? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city...
what is the name of the vendors that serve resources to schools whose primary focus area is literature?
donor
select distinct t1.vendor_name from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.grade_level = 'grades 9-12'
Question: what is the name of the vendors serving material for projects for grades 9-12? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zi...
what is the name of the vendors serving material for projects for grades 9-12?
donor
select count(distinct t2.teacher_acctid) from donations as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.is_teacher_acct = 't' and t2.school_city = 'chicago'
Question: how many teachers have made some type of donation for projects in chicago? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, s...
how many teachers have made some type of donation for projects in chicago?
donor
select count(distinct t1.teacher_acctid) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.school_city = 'rock hill' and is_teacher_acct = 't'
Question: how many rock hill city school projects have teacher donors? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, school_metro, s...
how many rock hill city school projects have teacher donors?
donor
select sum(t2.dollar_amount) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.students_reached > 300 and t2.donation_included_optional_support = 't'
Question: what is the total sum of the donations paid with an optional support in projects that reach more than 300 students? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude,...
what is the total sum of the donations paid with an optional support in projects that reach more than 300 students?
donor
select sum(t1.item_quantity) from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.school_metro = 'urban' and t2.school_district = 'onslow co school district'
Question: how many total items were requested for the onslow co school district urban metro school projects? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, sch...
how many total items were requested for the onslow co school district urban metro school projects?
donor
select sum(t2.donation_optional_support + t2.donation_to_project) / count(donationid) from projects as t1 inner join donations as t2 on t1.projectid = t2.projectid where t1.school_county = 'fresno'
Question: what is the average total donations received by fresno county colleges? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, scho...
what is the average total donations received by fresno county colleges?
donor
select cast(sum(case when t2.title like 'abc read' then 1 else 0 end) as real) * 100 / count(t1.school_county) from projects as t1 inner join essays as t2 on t1.projectid = t2.projectid
Question: in what percentage of counties has the abc read project been launched? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, schoo...
in what percentage of counties has the abc read project been launched?
donor
select avg(t1.item_quantity) from resources as t1 inner join donations as t2 on t1.projectid = t2.projectid where t2.for_honoree = 't'
Question: what is the average amount of resources from projects that have received donations per honoree? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school...
what is the average amount of resources from projects that have received donations per honoree?
donor
select t1.date_posted from projects as t1 inner join essays as t2 on t1.projectid = t2.projectid where t2.title like 'photojournalists want to exhibit their best works'
Question: when did the project 'photojournalists want to exhibit their best works' go live? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school...
when did the project 'photojournalists want to exhibit their best works' go live?
donor
select t1.item_name from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t2.primary_focus_subject = 'mathematics' order by t1.item_unit_price desc limit 1
Question: which item provided for projects with mathematics as a primary subject is the most expensive? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_s...
which item provided for projects with mathematics as a primary subject is the most expensive?
donor
select t2.school_city, t2.school_latitude, t2.school_longitude from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.item_name = 'viewscreen lcd from texas instruments, ti-84 plus'
Question: where is the school that needs a 'viewscreen lcd from texas instruments, ti-84 plus'? provide the latitude and longitude of that school. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitu...
where is the school that needs a 'viewscreen lcd from texas instruments, ti-84 plus'? provide the latitude and longitude of that school.
donor
select sum(t3.donation_total) 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 = 'look, look, we need a nook!'
Question: how many donations does the project 'look, look, we need a nook!' have? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state, school_zip, scho...
how many donations does the project 'look, look, we need a nook!' have?
donor
select distinct t2.poverty_level from donations as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.donor_zip = 7079
Question: list the poverty level of all the schools that received donations with the zip code '7079'. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_sta...
list the poverty level of all the schools that received donations with the zip code '7079'.
donor
select t3.vendor_name from essays as t1 inner join projects as t2 on t1.projectid = t2.projectid inner join resources as t3 on t2.projectid = t3.projectid where t1.title = 'bloody times'
Question: what is the name of the vendor that the project 'bloody times' uses for their resources? | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school_state,...
what is the name of the vendor that the project 'bloody times' uses for their resources?
donor
select t2.school_zip, t1.item_name from resources as t1 inner join projects as t2 on t1.projectid = t2.projectid where t1.vendor_name = 'sax arts & crafts'
Question: list all the items from 'sax arts & crafts' and the zip code of the schools that received them. | Tables: essays -> projectid, teacher_acctid, title, short_description, need_statement, essay. projects -> projectid, teacher_acctid, schoolid, school_ncesid, school_latitude, school_longitude, school_city, school...
list all the items from 'sax arts & crafts' and the zip code of the schools that received them.