id int64 0 9.43k | db_id stringclasses 69
values | schema stringclasses 69
values | question stringlengths 24 325 | output stringlengths 23 804 | evidence stringlengths 0 673 | filtered_schema listlengths 0 16 |
|---|---|---|---|---|---|---|
3,200 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the total donated amount for projects created by a teacher working in a school in Brooklyn? | SELECT SUM(T2.donation_total) FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city = 'Brooklyn' | school in Brooklyn refers to school_city = 'Brooklyn'; total donated amount refers to donation_total; | [
"donations.donation_total",
"donations.projectid",
"projects.projectid",
"projects.school_city"
] |
3,201 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Please list the donation messages of the donations for the projects created by a teacher working in a public magnet school in Brooklyn. | 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' | school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't'; | [
"donations.donation_message",
"donations.projectid",
"projects.projectid",
"projects.school_city",
"projects.school_magnet"
] |
3,202 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | 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? | 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' | portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't'; | [
"donations.payment_included_acct_credit",
"donations.projectid",
"projects.projectid",
"projects.school_year_round"
] |
3,203 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the total donation amount made for projects whose main subject area are Literacy & Language? | 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' | main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount); | [
"donations.dollar_amount",
"donations.projectid",
"projects.primary_focus_area",
"projects.projectid"
] |
3,204 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Which donor has donated the most for a project whose main subject area is Literacy & Language? Please give his or her ID. | 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 | main subject area refers to primary_focus_area = 'Literacy & Language'; donated the most refers to Max(donation_total); | [
"donations.donation_total",
"donations.donor_acctid",
"donations.projectid",
"projects.primary_focus_area",
"projects.projectid"
] |
3,205 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the most requested item under the resource type "Supplies" for projects whose main subject area is Literacy & Language? | 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 | main subject area refers to primary_focus_area = 'Literacy & Language'; resource type supplies refers to project_resource_type = 'Supplies'; most requested item refers to Max(item_quantity); | [
"projects.primary_focus_area",
"projects.projectid",
"resources.item_name",
"resources.item_quantity",
"resources.project_resource_type",
"resources.projectid"
] |
3,206 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Which item provided to a project whose main subject area is Literacy & Language has the highest unit price? | 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 | main subject area refers to primary_focus_area = 'Literacy & Language'; highest unit price refers to Max(item_unit_price); | [
"projects.primary_focus_area",
"projects.projectid",
"resources.item_name",
"resources.item_unit_price",
"resources.projectid"
] |
3,207 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the average donation amount to a project created by a teacher working in a school in Brooklyn? | 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' | school in Brooklyn refers to school_city = 'Brooklyn'; Average = AVG(donation_total); | [
"donations.donation_total",
"donations.projectid",
"projects.projectid",
"projects.school_city"
] |
3,208 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | To which city did donor “22cbc920c9b5fa08dfb331422f5926b5” donate? | SELECT DISTINCT donor_city FROM donations WHERE donor_acctid = '22cbc920c9b5fa08dfb331422f5926b5' | donor “22cbc920c9b5fa08dfb331422f5926b5” refers to donor_acctid = '22cbc920c9b5fa08dfb331422f5926b5'; city refers to donor_city | [
"donations.donor_acctid",
"donations.donor_city"
] |
3,209 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Is donor “22cbc920c9b5fa08dfb331422f5926b5” a teacher? | SELECT DISTINCT is_teacher_acct FROM donations WHERE donor_acctid = '22cbc920c9b5fa08dfb331422f5926b5' | donor “22cbc920c9b5fa08dfb331422f5926b5” refers to donor_acctid = '22cbc920c9b5fa08dfb331422f5926b5'; is a teacher refers to is_teacher_acct; | [
"donations.donor_acctid",
"donations.is_teacher_acct"
] |
3,210 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Have the teacher "42d43fa6f37314365d08692e08680973" acquired P.h.D or doctor degree? | SELECT CASE WHEN teacher_prefix = 'Dr.' THEN 'Yes' ELSE 'NO' END FROM projects WHERE teacher_acctid = '42d43fa6f37314365d08692e08680973' | teacher "42d43fa6f37314365d08692e08680973" refers to teacher_acctid = '42d43fa6f37314365d08692e08680973'; | [
"projects.teacher_acctid",
"projects.teacher_prefix"
] |
3,211 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Is teacher "42d43fa6f37314365d08692e08680973" a New York teacher? | SELECT teacher_ny_teaching_fellow end FROM projects WHERE teacher_acctid = '42d43fa6f37314365d08692e08680973' | teacher "42d43fa6f37314365d08692e08680973"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973'; | [
"projects.teacher_acctid",
"projects.teacher_ny_teaching_fellow"
] |
3,212 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Please list the titles of projects by which schools in Abington was donated. | SELECT T2.title FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T1.school_city LIKE 'Abington' | Abington is school_city; | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.school_city"
] |
3,213 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Please list the resource names of project that teacher "822b7b8768c17456fdce78b65abcc18e" created. | SELECT T1.item_name FROM resources AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T2.teacher_acctid = '822b7b8768c17456fdce78b65abcc18e' | teacher "822b7b8768c17456fdce78b65abcc18e" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; | [
"projects.projectid",
"projects.teacher_acctid",
"resources.item_name",
"resources.projectid"
] |
3,214 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Among the schools' projects whose donation didn't use account credits redemption,how many schools are public magnet schools? | 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' | donation didn't use account credits redemption refers to payment_included_acct_credit = 'f'; magnet school refers to school_magnet = 't'; | [
"donations.payment_included_acct_credit",
"donations.projectid",
"projects.projectid",
"projects.school_magnet",
"projects.schoolid"
] |
3,215 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Please provide the type of resource that donation "b39547f29dfc25fb13c6e9e8d940dc43" contain. | 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' | donation "b39547f29dfc25fb13c6e9e8d940dc43" refers to donationid = 'b39547f29dfc25fb13c6e9e8d940dc43'; type of resource refers to project_resource_type; | [
"donations.donationid",
"donations.projectid",
"projects.projectid",
"resources.project_resource_type",
"resources.projectid"
] |
3,216 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Among public magnet schools,what percentage of schools that receive the donated resources as books? | 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' | magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100 | [
"projects.projectid",
"projects.school_magnet",
"resources.project_resource_type",
"resources.projectid"
] |
3,217 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | In the schools donated by the project of the resources provided by ABC School Supply, how many schools are public magnet schools? | 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' | ABC School Supply is vendor_name; public magnet school refers to school_magnet = 't'; | [
"projects.projectid",
"projects.school_magnet",
"projects.schoolid",
"resources.projectid",
"resources.vendor_name"
] |
3,218 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Among the schools donated by donor "000eebf28658900e63b538cf8a73afbd",how many schools whose poverty level are highest? | 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' | donor "000eebf28658900e63b538cf8a73afbd" refers to donor_acctid = '000eebf28658900e63b538cf8a73afbd'; highest poverty level refers to poverty_level = 'highest poverty'; | [
"donations.donor_acctid",
"donations.projectid",
"projects.poverty_level",
"projects.projectid",
"projects.schoolid"
] |
3,219 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the short description of the project that gives donation to school “301c9bf0a45d159d162b65a93fddd74e”? | SELECT T2.short_description FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T1.schoolid = '301c9bf0a45d159d162b65a93fddd74e' | school “301c9bf0a45d159d162b65a93fddd74e" refers to schoolid = '301c9bf0a45d159d162b65a93fddd74e'; | [
"essays.projectid",
"essays.short_description",
"projects.projectid",
"projects.schoolid"
] |
3,220 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Which city does the school that project "iMath" donated to in? | SELECT T1.school_city FROM projects AS T1 INNER JOIN essays AS T2 ON T1.projectid = T2.projectid WHERE T2.title LIKE 'iMath' | iMath is the title; city refers to school_city; | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.school_city"
] |
3,221 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How to pay the donation of the project that teacher "822b7b8768c17456fdce78b65abcc18e" created? | SELECT T2.payment_method FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.teacher_acctid = '822b7b8768c17456fdce78b65abcc18e' | teacher "822b7b8768c17456fdce78b65abcc18e" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; how to pay the donation refers to payment_method; | [
"donations.payment_method",
"donations.projectid",
"projects.projectid",
"projects.teacher_acctid"
] |
3,222 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How much did the project that teacher "822b7b8768c17456fdce78b65abcc18e" created donate? | SELECT T2.donation_total FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.teacher_acctid = '822b7b8768c17456fdce78b65abcc18e' | teacher "822b7b8768c17456fdce78b65abcc18e" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total; | [
"donations.donation_total",
"donations.projectid",
"projects.projectid",
"projects.teacher_acctid"
] |
3,223 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Is the donor who donated to school "d4af834b1d3fc8061e1ee1b3f1a77b85" a teacher? | SELECT T2.is_teacher_acct FROM projects AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T1.schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85' | school "d4af834b1d3fc8061e1ee1b3f1a77b85" refers to schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'; donor is a teacher refers to is_teacher_acct = 't'; | [
"donations.is_teacher_acct",
"donations.projectid",
"projects.projectid",
"projects.schoolid"
] |
3,224 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Among the schools whose donators are teachers, what is the percentage of schools that are in Brooklyn? | 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' | donors are teachers refers to is_teacher_acct = 't'; Brooklyn is school_city; percentage = Divide(Count(school_city-'Brooklyn'),Count(school_city))*100 | [
"donations.is_teacher_acct",
"donations.projectid",
"projects.projectid",
"projects.school_city",
"projects.teacher_acctid"
] |
3,225 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Among the projects whose donators are teachers, what is the percentage of projects that affected more than 30 students? | 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' | donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100 | [
"donations.is_teacher_acct",
"donations.projectid",
"projects.projectid",
"projects.students_reached"
] |
3,226 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many schools which have suburban metro are there in Bethlehem? | SELECT COUNT(schoolid) FROM projects WHERE school_city = 'Bethlehem' AND school_metro = 'suburban' | Bethlehem is school_city; suburban metro refers to school_metro = 'suburban'; | [
"projects.school_city",
"projects.school_metro",
"projects.schoolid"
] |
3,227 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the number of the year round school in Los Angeles? | SELECT COUNT(school_year_round) FROM projects WHERE school_city = 'Los Angeles' AND school_year_round = 't' | Los Angeles is school_city; year-round school refers to school_year_round = 't'; | [
"projects.school_city",
"projects.school_year_round"
] |
3,228 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | State the number of public magnet schools in New York Manhattan. | SELECT COUNT(schoolid) FROM projects WHERE school_county = 'New York (Manhattan)' AND school_magnet = 't' | public magnet school refers to school_magnet = 't'; in New York Manhattan refers to school_country = 'New York(Manhattan)'; | [
"projects.school_county",
"projects.school_magnet",
"projects.schoolid"
] |
3,229 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many teachers in Twin Falls have Math & Science as their primary focus area? | SELECT COUNT(teacher_acctid) FROM projects WHERE school_county = 'Twin Falls' AND primary_focus_area = 'Math & Science' | Twin Falls is school_country; 'Math & Science' is primary_focus_area; | [
"projects.primary_focus_area",
"projects.school_county",
"projects.teacher_acctid"
] |
3,230 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many teachers that have Literature & Writing as their primary focus subject use 'Mr' as their teacher prefix? | SELECT COUNT(teacher_acctid) FROM projects WHERE teacher_prefix = 'Mr.' AND primary_focus_subject = 'Literature & Writing' | Literature & Writing' is primary_focus_subject; use 'Mr' as their teacher prefix refers to teacher_prefix = 'Mr'; | [
"projects.primary_focus_subject",
"projects.teacher_acctid",
"projects.teacher_prefix"
] |
3,231 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the total number of projects that was created by the teachers that teach 3-5 grades in Boston Public School District? | SELECT COUNT(projectid) FROM projects WHERE school_district = 'Boston Public School District' AND grade_level = 'Grades 3-5' | teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district; | [
"projects.grade_level",
"projects.projectid",
"projects.school_district"
] |
3,232 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | For the teacher who wrote the project 'ABC Read', which city was he/she in? | SELECT T2.school_city FROM essays AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.title = 'ABC Read' | ABC Read' is the title; city refers to school_city | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.school_city"
] |
3,233 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the teacher prefix for the teacher who wrote the project 'Creating Memories and Inspiring Dreams'? | 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%' | Creating Memories and Inspiring Dreams is title; | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.teacher_prefix"
] |
3,234 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Is the donor of the project 'Calculate, Financial Security For Tomorrow Starts Today! ' a teacher? | 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! ' | Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't' | [
"donations.is_teacher_acct",
"donations.projectid",
"essays.projectid",
"essays.title"
] |
3,235 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | 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". | 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.' | [
"donations.donation_message",
"donations.projectid",
"essays.projectid",
"essays.title"
] | |
3,236 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many number of donations did the project 'A Rug For Reaching Readers' get? | 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' | A Rug For Reaching Readers'is the title; | [
"donations.donation_total",
"donations.projectid",
"essays.projectid",
"essays.title"
] |
3,237 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the total donation amount for the project 'Engaging Young Readers with a Leveled Classroom Library'? | 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 ' | Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support) | [
"donations.donation_optional_support",
"donations.donation_to_project",
"donations.projectid",
"essays.projectid",
"essays.title"
] |
3,238 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What was the donation optional support amount for the project 'Armenian Genocide'? | 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' | Armenian Genocide' is the title; | [
"donations.donation_optional_support",
"donations.projectid",
"essays.projectid",
"essays.title"
] |
3,239 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | State the short description for the project which got the donation at 14:44:29 on 2012/9/6. | 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' | donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29'; | [
"donations.donation_timestamp",
"donations.projectid",
"essays.projectid",
"essays.short_description"
] |
3,240 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Did the project 'I Can't See It...Can You Help Me???' get the tip for the donation? | 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???' | I Can't See It...Can You Help Me???' is the title; | [
"donations.donation_included_optional_support",
"donations.projectid",
"essays.projectid",
"essays.title"
] |
3,241 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the teacher's account ID for the project that got the donation at 11:38:43 on 2008/7/29 ? | 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' | donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid; | [
"donations.donation_timestamp",
"donations.projectid",
"essays.projectid",
"essays.teacher_acctid"
] |
3,242 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Show the school id for the project 'Virtual Aquarium Needs Help!'. | 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!' | Virtual Aquarium Needs Help!' is the title; | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.schoolid"
] |
3,243 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What was the title for the project which got the biggest donation? | 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 ) | biggest donation refers to donation_total = 'max'; | [
"donations.donation_total",
"donations.projectid",
"essays.projectid",
"essays.title"
] |
3,244 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | For the donation of the project 'Awesome Audiobooks Make Avid Readers', what was the percentage of the tip in the total amount? | 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' | Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100; | [
"donations.donation_optional_support",
"donations.donation_total",
"donations.projectid",
"essays.projectid",
"essays.title"
] |
3,245 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | For the all donations to the project 'Bringing Drama to Life', what is the percentage of the donation is paid by credit card? | 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' | Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100; | [
"donations.payment_method",
"donations.projectid",
"essays.projectid",
"essays.title"
] |
3,246 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the short description for the title Future Einsteins Of America? | SELECT short_description FROM essays WHERE title = 'Future Einsteins Of America' | [
"essays.short_description",
"essays.title"
] | |
3,247 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Write down the need statement of Family History Project. | SELECT need_statement FROM essays WHERE title = 'Family History Project' | Family History Project refer to title, need statement refer to need_statement | [
"essays.need_statement",
"essays.title"
] |
3,248 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many suburban metros are there in Livingston Parish School District? | SELECT COUNT(projectid) FROM projects WHERE school_district = 'Livingston Parish School Dist' AND school_metro = 'suburban' | suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district | [
"projects.projectid",
"projects.school_district",
"projects.school_metro"
] |
3,249 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Name the vendors that sell the item Classroom Keepers Management Center. | SELECT DISTINCT vendor_name FROM resources WHERE item_name = 'Classroom Keepers Management Center' | vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name | [
"resources.item_name",
"resources.vendor_name"
] |
3,250 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | List the resource types available at Sax Arts & Crafts. | SELECT DISTINCT project_resource_type FROM resources WHERE vendor_name = 'Sax Arts & Crafts' | Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type
| [
"resources.project_resource_type",
"resources.vendor_name"
] |
3,251 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Which school county in the state of New York has a high number of low poverty levels? | 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 | New York refer to school_state = NY; highest number of low poverty level refer to MAX(poverty level = ’low poverty’) | [
"projects.poverty_level",
"projects.school_county",
"projects.school_state"
] |
3,252 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Which school district was Future Einsteins Of America project located at? | 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' | Future Einsteins of America refer to title | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.school_district"
] |
3,253 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What payment method was used for Needed Resource Materials For My Students? | 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' | Needed Resource Materials For My Students refer to title | [
"donations.payment_method",
"donations.projectid",
"essays.projectid",
"essays.title",
"projects.projectid"
] |
3,254 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many donations were paid via credit card to Memphis City School District? | 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' | paid via credit card refer to payment method = creditcard; Memphis City School District refer to school_district | [
"donations.payment_method",
"donations.projectid",
"projects.projectid",
"projects.school_district"
] |
3,255 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | List the school districts that have bought resources from Barnes and Noble. | 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' | Barnes and Noble refer to vendor_name | [
"projects.projectid",
"projects.school_district",
"resources.projectid",
"resources.vendor_name"
] |
3,256 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Give the coordinates of the buyer of R & A Plant Genetics from Benchmark Education. | 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' | coordinates refer to (school_latitude, school_longitude); R & A Plant Genetics refer to item_name; Benchmark Education refer to vendor_name | [
"projects.projectid",
"projects.school_latitude",
"projects.school_longitude",
"resources.item_name",
"resources.projectid",
"resources.vendor_name"
] |
3,257 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Which payment method is most comonly used by the schools in the state of Georgia for the payment of donations? | 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 | Georgia refer to school_state = 'GA'
| [
"donations.payment_method",
"donations.projectid",
"projects.projectid",
"projects.school_state"
] |
3,258 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What are the coordinates of the school where project 'Look, Look, We Need a Nook!' Was donated to and what resource type is it? | 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!' | Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title; | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.resource_type",
"projects.school_latitude",
"projects.school_longitude"
] |
3,259 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Write the messages of those who donated to the Newark School District in the coordinates of 40.735332, -74.196014. | 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' | message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude) | [
"donations.donation_message",
"donations.projectid",
"projects.projectid",
"projects.school_district",
"projects.school_latitude",
"projects.school_longitude"
] |
3,260 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What date did the project with he 'Lets Share Ideas essay' went live? | 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' | date refer to date_posted; Lets Share Ideas refer to title | [
"essays.projectid",
"essays.title",
"projects.date_posted",
"projects.projectid"
] |
3,261 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Write the message of the donor of the project with the title of Lets Share Ideas who paid with a credit card. | 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' | message of the donor refer to donation_message; Lets Share Ideas refer to title; paid with a credit card refer to payment_method | [
"donations.donation_message",
"donations.payment_method",
"donations.projectid",
"essays.projectid",
"essays.title",
"projects.projectid"
] |
3,262 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Which resource type is commonly bought by the Los Angeles Unified School District? | 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 | resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = ’Los Angeles Unif Sch Dist’); Los Angeles Unified School District refer to school_district = ’Los Angeles Unif Sch Dist’ | [
"projects.projectid",
"projects.school_district",
"resources.project_resource_type",
"resources.projectid"
] |
3,263 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Which cities in the Los Angeles Unified School District has bought supplies from Quill.com? | 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' | cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name | [
"projects.projectid",
"projects.school_city",
"projects.school_district",
"resources.projectid",
"resources.vendor_name"
] |
3,264 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | 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. | 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' | ABC School Supply refer to vendor_name; listed type as Other refer to project_resource_type = 'Other'; coordinates refer to coordinates(school_latitude, school_longitude); total price of items refer to SUM(MULTIPLY(item_unit_price, item_quantity where vendor_name = ’ABC School Supply’))
| [
"projects.projectid",
"projects.school_district",
"projects.school_latitude",
"projects.school_longitude",
"resources.item_quantity",
"resources.item_unit_price",
"resources.project_resource_type",
"resources.projectid",
"resources.vendor_name"
] |
3,265 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | 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. | 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' | paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = ’paypal’) | [
"donations.donation_total",
"donations.payment_method",
"donations.projectid",
"essays.projectid",
"essays.title",
"projects.projectid"
] |
3,266 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many donors who donated to the city of Pocatello are not teachers? | SELECT COUNT(donationid) FROM donations WHERE donor_city = 'Pocatello' AND is_teacher_acct = 'f' | city of Pocatello refers to donor_city = 'Pocatello'; not teachers refers to is_teacher_acct = 'f' | [
"donations.donationid",
"donations.donor_city",
"donations.is_teacher_acct"
] |
3,267 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many schools in Suffolk County have Ph.D. teachers? | SELECT COUNT(schoolid) FROM projects WHERE teacher_prefix = 'Dr.' AND school_county = 'Suffolk' | Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.' | [
"projects.school_county",
"projects.schoolid",
"projects.teacher_prefix"
] |
3,268 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the sum of the total donated amounts paid through Amazon? | SELECT SUM(donation_to_project) + SUM(donation_optional_support) FROM donations WHERE payment_method = 'amazon' | paid through Amazon refers to payment_method = 'Amazon'; sum of the total donated amounts refers to SUM(donation_to_project,donation_optional_support) | [
"donations.donation_optional_support",
"donations.donation_to_project",
"donations.payment_method"
] |
3,269 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many donations of more than $100 were made for an honoree? | SELECT COUNT(donationid) FROM donations WHERE dollar_amount = '100_and_up' AND for_honoree = 't' | an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up' | [
"donations.dollar_amount",
"donations.donationid",
"donations.for_honoree"
] |
3,270 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many resources with a unit price less than 15 are not technology type? List them by vendor id | SELECT vendorid FROM resources WHERE project_resource_type = 'Technology' AND item_unit_price <= 15 | unit price less than 15 refers to item_unit_price< = 15; are not technology type refers to project_resource_type = 'technology' | [
"resources.item_unit_price",
"resources.project_resource_type",
"resources.vendorid"
] |
3,271 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | On how many projects where the teacher has ordered between 5 to 10 items are from are from Quill.com? | SELECT COUNT(projectid) FROM resources WHERE vendor_name = 'Quill.com' AND item_quantity BETWEEN 5 AND 10 | ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com' | [
"resources.item_quantity",
"resources.projectid",
"resources.vendor_name"
] |
3,272 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | List by school id projects from schools located in the Union Pub School District I-9 that have a New York teaching fellow | SELECT schoolid FROM projects WHERE school_district = 'Union Pub School District I-9' AND teacher_ny_teaching_fellow = 't' | 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' | [
"projects.school_district",
"projects.schoolid",
"projects.teacher_ny_teaching_fellow"
] |
3,273 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | In which cities are Los Angeles County Suburban Metro Schools located? | SELECT school_city FROM projects WHERE school_metro = 'suburban' AND school_county = 'Los Angeles' | Los Angeles County refers to school_county = 'Los Angeles' | [
"projects.school_city",
"projects.school_county",
"projects.school_metro"
] |
3,274 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What are the vendors of the book-type projects? List them with the project ID. | SELECT DISTINCT vendorid, projectid FROM resources WHERE project_resource_type = 'Books' | book-type projects refers to project_resource_type = 'Books' | [
"resources.project_resource_type",
"resources.projectid",
"resources.vendorid"
] |
3,275 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What percentage of projects that have not received a cash donation have received a portion of a donation included corporate sponsored giftcard? | 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' | 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 | [
"donations.donationid",
"donations.payment_included_campaign_gift_card",
"donations.payment_method"
] |
3,276 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What percentage of projects in the City of Santa Barbara are in suburban metro? | 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' | City of Santa Barbara refers to school_city = 'Santa Barbara'; percentage refers to DIVIDE(school_metro = 'suburban'; school_metro)*100 | [
"projects.projectid",
"projects.school_city",
"projects.school_metro"
] |
3,277 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the percentage of payment methods of donations made in March 2013? | SELECT payment_method , CAST(COUNT(donationid) AS REAL) * 100 / 51090 FROM donations WHERE donation_timestamp LIKE '2013-03%' GROUP BY payment_method | 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 | [
"donations.donation_timestamp",
"donations.donationid",
"donations.payment_method"
] |
3,278 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the average unit price of AKJ Books items? | SELECT SUM(item_unit_price) / SUM(item_quantity) FROM resources WHERE vendor_name = 'AKJ Books' | AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid)) | [
"resources.item_quantity",
"resources.item_unit_price",
"resources.vendor_name"
] |
3,279 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | 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? | 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' | in Brooklyn refers to school_city = 'Brooklyn'; urban metro refers to school_metro = 'urban'; donations for an honoree refers to for_honoree = 't'; requested TT992 - Refill Pack for Safety Name Tags refers to item_name = 'TT992 - Refill Pack for Safety Name Tags' | [
"donations.for_honoree",
"donations.projectid",
"projects.projectid",
"projects.school_city",
"projects.school_metro",
"projects.schoolid",
"resources.item_name",
"resources.projectid"
] |
3,280 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many schools with the highest level of poverty have received a portion of a donation included corporate sponsored gift card? | 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' | highest level of poverty refers to poverty_level = 'highest'; received a portion of a donation included corporate sponsored gift card refers to payment_included_campaign_gift_card = 't' | [
"donations.payment_included_campaign_gift_card",
"donations.projectid",
"projects.poverty_level",
"projects.projectid",
"projects.schoolid"
] |
3,281 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | In which city is there a greater number of schools that have received donations of less than 10 dollars? | 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 | received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city
| [
"donations.dollar_amount",
"donations.projectid",
"projects.projectid",
"projects.school_city",
"projects.schoolid"
] |
3,282 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the project title of the school located at latitude 42003718 and longitude -87668289? | 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 | latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289 | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.school_latitude",
"projects.school_longitude"
] |
3,283 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Find out if the project with the title Team More Books! has a New York teaching fellow. | 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!' | title Team More Books! Refers to title = 'Team More Books!'; as a New York teaching fellow refers to teacher_ny_teaching_fellow = 't' | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.teacher_ny_teaching_fellow"
] |
3,284 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the name of the vendors that serve resources to schools whose primary focus area is Literature? | 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 | primary focus area is Literature refers to primary_focus_area = 'Literature' | [
"projects.primary_focus_area",
"projects.projectid",
"resources.projectid",
"resources.vendor_name"
] |
3,285 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the name of the vendors serving material for projects for grades 9-12? | 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' | for grades 9-12 refers to grade_level = 'Grades 9-12' | [
"projects.grade_level",
"projects.projectid",
"resources.projectid",
"resources.vendor_name"
] |
3,286 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many teachers have made some type of donation for projects in Chicago? | 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' | in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't' | [
"donations.is_teacher_acct",
"donations.projectid",
"projects.projectid",
"projects.school_city",
"projects.teacher_acctid"
] |
3,287 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many Rock Hill City School projects have teacher donors? | 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' | Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't' | [
"donations.projectid",
"projects.projectid",
"projects.school_city",
"projects.teacher_acctid"
] |
3,288 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the total sum of the donations paid with an optional support in projects that reach more than 300 students? | 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' | with an optional support refers to donation_included_optional_support = 't'; reach more than 300 students refers to students_reached>300 | [
"donations.dollar_amount",
"donations.projectid",
"projects.projectid",
"projects.students_reached",
"t2.donation_included_optional_support"
] |
3,289 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many total items were requested for the Onslow Co School District urban metro school projects? | 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' | Onslow Co School District refers to school_district = 'Onslow Co School District'; | [
"projects.projectid",
"projects.school_district",
"projects.school_metro",
"resources.item_quantity",
"resources.projectid"
] |
3,290 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the average total donations received by Fresno County colleges? | 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' | Fresno County colleges refers to school_county = 'Fresno'; average refers to DIVIDE(sum(donation_optional_support,donation_to_project),sum(donation_total)) | [
"donations.donation_optional_support",
"donations.donation_to_project",
"donations.projectid",
"projects.projectid",
"projects.school_county"
] |
3,291 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | In what percentage of counties has the ABC Read project been launched? | 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 | ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100 | [
"essays.projectid",
"essays.title",
"projects.projectid",
"projects.school_county"
] |
3,292 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the average amount of resources from projects that have received donations per honoree? | SELECT AVG(T1.item_quantity) FROM resources AS T1 INNER JOIN donations AS T2 ON T1.projectid = T2.projectid WHERE T2.for_honoree = 't' | donations per honoree refers to for_honoree = 't'; average refers to DIVIDE(sum(item_quantity), count(donationid)) | [
"donations.for_honoree",
"donations.projectid",
"resources.item_quantity",
"resources.projectid"
] |
3,293 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | When did the project "Photojournalists Want to Exhibit Their Best Works" go live? | 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' | project "Photojournalists Want to Exhibit Their Best Works" refers to title = 'Photojournalists Want to Exhibit Their Best Works'; when project go live refers to datePosted | [
"essays.projectid",
"essays.title",
"projects.date_posted",
"projects.projectid"
] |
3,294 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Which item provided for projects with Mathematics as a primary subject is the most expensive? | 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 | Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price) | [
"projects.primary_focus_subject",
"projects.projectid",
"resources.item_name",
"resources.item_unit_price",
"resources.projectid"
] |
3,295 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | Where is the school that needs a "Viewscreen LCD from Texas Instruments, TI-84 Plus"? Provide the latitude and longitude of that school. | 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' | needs a "Viewscreen LCD from Texas Instruments, TI-84 Plus" refers to item_name = 'Viewscreen LCD from Texas Instruments, TI-84 Plus'; where is the school refers to school_city; latitude refers to school_latitude; longtitude refers to school_longitude | [
"projects.projectid",
"projects.school_city",
"projects.school_latitude",
"projects.school_longitude",
"resources.item_name",
"resources.projectid"
] |
3,296 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | How many donations does the project "Look, Look, We Need a Nook!" have? | 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!' | project "Look, Look, We Need a Nook!" refers to title = 'Look, Look, We Need a Nook!' | [
"donations.donation_total",
"donations.projectid",
"essays.projectid",
"essays.title",
"projects.projectid"
] |
3,297 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | List the poverty level of all the schools that received donations with the zip code "7079". | SELECT DISTINCT T2.poverty_level FROM donations AS T1 INNER JOIN projects AS T2 ON T1.projectid = T2.projectid WHERE T1.donor_zip = 7079 | zip code "7079" refers to donor_zip = '7079' | [
"donations.donor_zip",
"donations.projectid",
"projects.poverty_level",
"projects.projectid"
] |
3,298 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | What is the name of the vendor that the project "Bloody Times" uses for their resources? | 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' | project "Bloody Times" refers to title = 'Bloody Times' | [
"essays.projectid",
"essays.title",
"projects.projectid",
"resources.projectid",
"resources.vendor_name"
] |
3,299 | donor | CREATE TABLE sqlite_sequence(name,seq);
CREATE TABLE "essays"
(
projectid TEXT,
teacher_acctid TEXT,
title TEXT,
short_description TEXT,
need_statement TEXT,
essay TEXT
);
CREATE TABLE "projects"
(
projectid TEXT not null
... | List all the items from "Sax Arts & Crafts" and the zip code of the schools that received them. | 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' | from "Sax Arts & Crafts" refers to vendor_name = 'Sax Arts & Crafts'; zip code of the schools refers school_zip | [
"projects.projectid",
"projects.school_zip",
"resources.item_name",
"resources.projectid",
"resources.vendor_name"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.