dataset_name stringclasses 1
value | split stringclasses 1
value | prompt_raw stringlengths 2.07k 8.21k | messages listlengths 2 2 | question stringlengths 23 286 | sample_id int64 0 1.53k | db_id stringclasses 11
values | groundtruth_sqls listlengths 1 1 |
|---|---|---|---|---|---|---|---|
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.cname: TEXT - county name
Sample values: "Alameda"
satscores.dname: TEXT - district name. district segment
Sample values: "Alameda County Office of Education", "Alameda Unified"
satscores.cds: TEXT PRIMARY KEY - California Department Schools
Sample values: "10101080000000"
Table frpm: free and reduced-price meals
frpm.`FRPM Count (K-12)`: REAL - Free or Reduced Price Meal Count (K-12)
Sample values: "715.0"
Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible Free (K-12)`: REAL
Sample values: "0.519779208831647"
Contains null values: True
frpm.`Percent (%) Eligible FRPM (K-12)`: REAL
Sample values: "0.657773689052438"
Contains null values: True
frpm.`County Name`: TEXT - County Code
Sample values: "Alameda"
frpm.`Free Meal Count (Ages 5-17)`: REAL
Sample values: "553.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.`Free Meal Count (K-12)`: REAL
Sample values: "565.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.`County Code`: TEXT
Sample values: "12"
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`District Name`: TEXT
Sample values: "Alameda County Office of Education", "Tuolumne County Superintendent of Schools"
frpm.`School Type`: TEXT
Sample values: "K-12 Schools (Public)", "County Community"
Contains null values: True
frpm.`School Name`: TEXT
Sample values: "Avalon K-12", "Whittier K-12"
frpm.`Enrollment (Ages 5-17)`: REAL
Sample values: "1070.0"
Contains null values: True
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Enrollment (K-12)`: REAL
Sample values: "1087.0"
Value description: commonsense evidence: K-12: 1st grade - 12nd grade
frpm.`FRPM Count (Ages 5-17)`: REAL
Sample values: "702.0"
Contains null values: True
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.GSserved: TEXT - grade span served.. It is the lowest grade and the highest grade of student enrollment as reported in the most recent certified CALPADS Fall 1 data collection. Only Kβ12 enrollment is reported through CALPADS. This field may differ from the grade span offered.
Sample values: "K-12", "K"
Value description: commonsense evidence: 1.Β Β Β Β Only Kβ12 enrollment is reported through CALPADS 2.Β Β Β Β Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type
Contains null values: True
schools.State: TEXT
Sample values: "CA"
Contains null values: True
schools.MailCity: TEXT - mailing city
Sample values: "Alameda", "Canyon County"
Value description: The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.
Contains null values: True
schools.School: TEXT
Sample values: "Whittier K-12", "Avalon K-12"
Contains null values: True
schools.County: TEXT - County name
Sample values: "Alameda"
schools.District: TEXT
Sample values: "Alameda County Office of Education", "Alameda Unified"
schools.EILName: TEXT - Educational Instruction Level Name. The Educational Instruction Level Name is the long text description of the institutionβs type relative to the grade range served.
Sample values: "High School"
Value description: The Educational Instruction Level Name is the long text description of the institutionβs type relative to the grade range served.
Contains null values: True
schools.City: TEXT
Sample values: "Alameda", "Canyon County"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number. This field represents the 5-digit NCES school identification number. The NCESSchool combined with the NCESDist form a unique 12-digit ID for each school.
Sample values: "10546"
Contains null values: True
schools.Zip: TEXT
Sample values: "94544-1136"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.EILCode: TEXT - Educational Instruction Level Code. The Educational Instruction Level Code is a short text description of the institution's type relative to the grade range served.
Sample values: "ELEMHIGH"
Value description: β’ A β Adult β’ ELEM β Elementary β’ ELEMHIGH β Elementary-High Combination β’ HS β High School β’ INTMIDJR β Intermediate/Middle/Junior High β’ PS β Preschool β’ UG β Ungraded
Contains null values: True
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
External Knowledge:
Eligible free rate for K-12 = `Free Meal Count (K-12)` / `Enrollment (K-12)`
Question: What is the highest eligible free rate for K-12 students in the schools in Alameda County?
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the highest eligible free rate for K-12 students in the schools in Alameda County? | 0 | california_schools | [
"SELECT `Free Meal Count (K-12)` / `Enrollment (K-12)` FROM frpm WHERE `County Name` = 'Alameda' ORDER BY (CAST(`Free Meal Count (K-12)` AS REAL) / `Enrollment (K-12)`) DESC LIMIT 1"
] |
bird | dev | Database Schema:
Table frpm: free and reduced-price meals
frpm.`FRPM Count (K-12)`: REAL
Sample values: "715.0"
Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible Free (K-12)`: REAL
Sample values: "0.519779208831647"
Contains null values: True
frpm.`Percent (%) Eligible FRPM (Ages 5-17)`: REAL
Sample values: "0.65607476635514"
Contains null values: True
frpm.`Percent (%) Eligible FRPM (K-12)`: REAL
Sample values: "0.657773689052438"
Contains null values: True
frpm.`Charter School (Y/N)`: INTEGER
Sample values: "1"
Value description: 0: N; 1: Y
Contains null values: True
frpm.`Free Meal Count (Ages 5-17)`: REAL
Sample values: "553.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible Free (Ages 5-17)`: REAL
Sample values: "0.516822429906542"
Contains null values: True
frpm.`County Code`: TEXT
Sample values: "17"
frpm.`Free Meal Count (K-12)`: REAL
Sample values: "565.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`High Grade`: TEXT
Sample values: "5"
frpm.`Low Grade`: TEXT
Sample values: "5"
frpm.`District Code`: INTEGER
Sample values: "10017"
frpm.`School Type`: TEXT
Sample values: "Continuation High Schools", "Opportunity Schools"
Contains null values: True
frpm.IRC: INTEGER
Sample values: "1"
Value description: Not useful
Contains null values: True
frpm.`School Name`: TEXT
Sample values: "Victress Bower School for Exceptional Students", "Three Rivers Charter"
frpm.`Enrollment (Ages 5-17)`: REAL
Sample values: "1070.0"
Contains null values: True
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Enrollment (K-12)`: REAL
Sample values: "1087.0"
Value description: commonsense evidence: K-12: 1st grade - 12nd grade
frpm.`FRPM Count (Ages 5-17)`: REAL
Sample values: "702.0"
Contains null values: True
frpm.`Educational Option Type`: TEXT
Sample values: "Continuation School", "Opportunity School"
Contains null values: True
frpm.`Charter School Number`: TEXT
Sample values: "0728"
Contains null values: True
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "5", "17"
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.School: TEXT
Sample values: "School for School-Age Mothers", "Three Rivers High (Continuation)"
Contains null values: True
schools.EdOpsName: TEXT - Educational Option Name
Sample values: "Continuation School", "Opportunity School"
Value description: The Educational Option Name is the long text description of the type of education being offered.
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.SOC: TEXT - School Ownership Code
Sample values: "65"
Value description: β’ 08 - Preschool β’ 09 β Special Education Schools (Public) β’ 11 β Youth Authority Facilities (CEA) β’ 13 β Opportunity Schools β’ 14 β Juvenile Court Schools β’ 15 β Other County or District Programs β’ 31 β State Special Schools β’ 60 β Elementary School (Public) β’ 61 β Elementary School in 1 School District (Public) β’ 62 β Intermediate/Middle Schools (Public) β’ 63 β Alternative Schools of Choice β’ 64 β Junior High Schools (Public) β’ 65 β K-12 Schools (Public) β’ 66 β High Schools (Public) β’ 67 β High Schools in 1 School District (Public) β’ 68 β Continuation High Schools β’ 69 β District Community Day Schools β’ 70 β Adult Education Centers β’ 98 β Regional Occupational Center/Program (ROC/P)
Contains null values: True
schools.EdOpsCode: TEXT - Education Option Code
Sample values: "TRAD"
Value description: β’ ALTSOC β Alternative School of Choice β’ COMM β County Community School β’ COMMDAY β Community Day School β’ CON β Continuation School β’ JUV β Juvenile Court School β’ OPP β Opportunity School β’ YTH β Youth Authority School β’ SSS β State Special School β’ SPEC β Special Education School β’ TRAD β Traditional β’ ROP β Regional Occupational Program β’ HOMHOS β Home and Hospital β’ SPECON β District Consortia Special Education School
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
External Knowledge:
Eligible free rates for students aged 5-17 = `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)`
Question: Please list the lowest three eligible free rates for students aged 5-17 in continuation schools.
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Please list the lowest three eligible free rates for students aged 5-17 in continuation schools. | 1 | california_schools | [
"SELECT `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)` FROM frpm WHERE `Educational Option Type` = 'Continuation School' AND `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)` IS NOT NULL ORDER BY `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)` ASC LIMIT 3"
] |
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.dname: TEXT - district name
Sample values: "Fresno County Office of Education", "SBE - Lifeline Education Charter"
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.Phone: TEXT
Sample values: "(510) 887-0152"
Contains null values: True
schools.DOC: TEXT - District Ownership Code
Sample values: "00"
Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. β’ 00 - County Office of Education β’ 02 β State Board of Education β’ 03 β Statewide Benefit Charter β’ 31 β State Special Schools β’ 34 β Non-school Location* β’ 52 β Elementary School District β’ 54 β Unified School District β’ 56 β High School District β’ 98 β Regional Occupational Center/Program (ROC/P) commonsense evidence: *Only the California Education Authority has been included in the non-school location category.
schools.State: TEXT
Sample values: "CA"
Contains null values: True
schools.MailCity: TEXT - mailing city
Sample values: "Fresno", "Canyon County"
Value description: The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.
Contains null values: True
schools.School: TEXT
Sample values: "Humboldt County Office of Education Court", "All Tribes Charter"
Contains null values: True
schools.County: TEXT
Sample values: "Fresno"
schools.District: TEXT
Sample values: "Fresno County Office of Education", "Alameda County Office of Education"
schools.Charter: INTEGER
Sample values: "1"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β 1 = The school is a charter Β·Β Β Β Β Β Β 0 = The school is not a charter
Contains null values: True
schools.City: TEXT
Sample values: "Fresno", "Canyon County"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.Zip: TEXT
Sample values: "94544-1136"
Contains null values: True
schools.Street: TEXT
Sample values: "701 Charter Street", "Charter & Stambaugh Streets"
Contains null values: True
schools.EdOpsCode: TEXT - Education Option Code
Sample values: "TRAD"
Value description: β’ ALTSOC β Alternative School of Choice β’ COMM β County Community School β’ COMMDAY β Community Day School β’ CON β Continuation School β’ JUV β Juvenile Court School β’ OPP β Opportunity School β’ YTH β Youth Authority School β’ SSS β State Special School β’ SPEC β Special Education School β’ TRAD β Traditional β’ ROP β Regional Occupational Program β’ HOMHOS β Home and Hospital β’ SPECON β District Consortia Special Education School
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.CharterNum: TEXT
Sample values: "0728"
Value description: 4-digit number assigned to a charter school.
Contains null values: True
schools.DOCType: TEXT - The District Ownership Code Type
Sample values: "County Office of Education (COE)", "Statewide Benefit Charter"
Value description: (See text values in DOC field description above)
schools.MailZip: TEXT - mailing zip
Sample values: "94544-1136"
Value description: The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.
Contains null values: True
schools.Ext: TEXT - extension
Sample values: "130"
Value description: The phone number extension of the school, district, or administrative authority.
Contains null values: True
Table frpm: free and reduced-price meals
frpm.`Charter School (Y/N)`: INTEGER
Sample values: "1"
Value description: 0: N; 1: Y
Contains null values: True
frpm.`County Name`: TEXT
Sample values: "Fresno"
frpm.`District Type`: TEXT
Sample values: "County Office of Education (COE)", "Statewide Benefit Charter"
frpm.`County Code`: TEXT
Sample values: "01"
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`District Name`: TEXT
Sample values: "Fresno County Office of Education", "Alameda County Office of Education"
frpm.`District Code`: INTEGER
Sample values: "10017"
frpm.`School Name`: TEXT
Sample values: "Humboldt County Office of Education Court", "Fresno County Court"
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Charter School Number`: TEXT
Sample values: "0728"
Contains null values: True
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
External Knowledge:
Charter schools refers to `Charter School (Y/N)` = 1 in the table fprm
Question: Please list the zip code of all the charter schools in Fresno County Office of Education.
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Please list the zip code of all the charter schools in Fresno County Office of Education. | 2 | california_schools | [
"SELECT T2.Zip FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`District Name` = 'Fresno County Office of Education' AND T1.`Charter School (Y/N)` = 1"
] |
bird | dev | Database Schema:
Table frpm: free and reduced-price meals
frpm.`FRPM Count (K-12)`: REAL
Sample values: "715.0"
Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible FRPM (Ages 5-17)`: REAL
Sample values: "0.65607476635514"
Contains null values: True
frpm.`Percent (%) Eligible FRPM (K-12)`: REAL
Sample values: "0.657773689052438"
Contains null values: True
frpm.`Free Meal Count (Ages 5-17)`: REAL
Sample values: "553.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.`County Code`: TEXT
Sample values: "12"
frpm.`Free Meal Count (K-12)`: REAL
Sample values: "565.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`High Grade`: TEXT
Sample values: "12", "K"
frpm.`District Name`: TEXT
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
frpm.`District Code`: INTEGER
Sample values: "10017"
frpm.`School Type`: TEXT
Sample values: "K-12 Schools (Public)", "Opportunity Schools"
Contains null values: True
frpm.`School Name`: TEXT
Sample values: "Avalon K-12", "Whittier K-12"
frpm.`Enrollment (Ages 5-17)`: REAL
Sample values: "1070.0"
Contains null values: True
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Enrollment (K-12)`: REAL
Sample values: "1087.0"
Value description: commonsense evidence: K-12: 1st grade - 12nd grade
frpm.`FRPM Count (Ages 5-17)`: REAL
Sample values: "702.0"
Contains null values: True
frpm.`Charter School Number`: TEXT
Sample values: "0728"
Contains null values: True
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.GSserved: TEXT - grade span served.
Sample values: "K-12", "K"
Value description: commonsense evidence: 1.Β Β Β Β Only Kβ12 enrollment is reported through CALPADS 2.Β Β Β Β Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type
Contains null values: True
schools.StreetAbr: TEXT - street address
Sample values: "4600 Student Ln.", "1430 N Street, Ste. 5401 School Fiscal Services"
Value description: The abbreviated street address of the school, district, or administrative authorityβs physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.
Contains null values: True
schools.MailCity: TEXT - mailing city
Sample values: "Hayward"
Value description: The city associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address city. For your convenience we have filled the unpopulated MailCity cells with City data.
Contains null values: True
schools.School: TEXT
Sample values: "Whittier K-12", "Avalon K-12"
Contains null values: True
schools.MailStreet: TEXT - Mail Street
Sample values: "4600 Student Lane", "1250 K Street"
Value description: The unabbreviated mailing address of the school, district, or administrative authority. Note: 1) Some entities (primarily closed or retired schools) may not have data in this field; 2) Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStreet cells with Street data.
Contains null values: True
schools.City: TEXT
Sample values: "Hayward"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.Zip: TEXT
Sample values: "94544-1136"
Contains null values: True
schools.MailStrAbr: TEXT - mailing street address
Sample values: "4600 Student Ln.", "7405 Highway A-12"
Value description: the abbreviated mailing street address of the school, district, or administrative authority.Note: Many active entities have not provided a mailing street address. For your convenience we have filled the unpopulated MailStrAbr cells with StreetAbr data.
Contains null values: True
schools.Street: TEXT
Sample values: "4600 Student Lane", "1250 K Street"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.EILCode: TEXT - Educational Instruction Level Code
Sample values: "ELEMHIGH"
Value description: β’ A β Adult β’ ELEM β Elementary β’ ELEMHIGH β Elementary-High Combination β’ HS β High School β’ INTMIDJR β Intermediate/Middle/Junior High β’ PS β Preschool β’ UG β Ungraded
Contains null values: True
schools.MailZip: TEXT - mailing zip
Sample values: "94544-1136"
Value description: The zip code associated with the mailing address of the school, district, or administrative authority. Note: Many entities have not provided a mailing address zip code. For your convenience we have filled the unpopulated MailZip cells with Zip data.
Contains null values: True
Foreign Keys:
frpm.CDSCode = schools.CDSCode
Question: What is the unabbreviated mailing street address of the school with the highest FRPM count for K-12 students?
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the unabbreviated mailing street address of the school with the highest FRPM count for K-12 students? | 3 | california_schools | [
"SELECT T2.MailStreet FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode ORDER BY T1.`FRPM Count (K-12)` DESC LIMIT 1"
] |
bird | dev | Database Schema:
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.FundingType: TEXT
Sample values: "Directly funded", "Locally funded"
Value description: Values are as follows: Β·Β Β Β Β Β Β Not in CS (California School) funding model Β·Β Β Β Β Β Β Locally funded Β·Β Β Β Β Β Β Directly funded
Contains null values: True
schools.Phone: TEXT
Sample values: "(510) 656-2000", "(209) 536-2000"
Contains null values: True
schools.DOC: TEXT - District Ownership Code
Sample values: "00"
Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. β’ 00 - County Office of Education β’ 02 β State Board of Education β’ 03 β Statewide Benefit Charter β’ 31 β State Special Schools β’ 34 β Non-school Location* β’ 52 β Elementary School District β’ 54 β Unified School District β’ 56 β High School District β’ 98 β Regional Occupational Center/Program (ROC/P) commonsense evidence: *Only the California Education Authority has been included in the non-school location category.
schools.LastUpdate: DATE - Last Update
Sample values: "2000-08-16", "2000-02-03"
Value description: when is this record updated last time
schools.School: TEXT
Sample values: "Crossroads #1", "LA's Promise Charter Middle #1"
Contains null values: True
schools.District: TEXT
Sample values: "Ackerman Charter", "Ventura School for Girls"
schools.ClosedDate: DATE
Sample values: "2000-01-18", "2000-04-13"
Contains null values: True
schools.Charter: INTEGER
Sample values: "1"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β 1 = The school is a charter Β·Β Β Β Β Β Β 0 = The school is not a charter
Contains null values: True
schools.City: TEXT
Sample values: "Charter Oak"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.StatusType: TEXT
Sample values: "Active"
Value description: Definitions of the valid status types are listed below: Β· Active: The district is in operation and providing instructional services. Β· Closed: The district is not in operation and no longer providing instructional services. Β· Merged: The district has combined with another district or districts. Β· Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9β12 months.
schools.Zip: TEXT
Sample values: "93722-2000", "93640-2000"
Contains null values: True
schools.SOC: TEXT - School Ownership Code
Sample values: "65"
Value description: β’ 08 - Preschool β’ 09 β Special Education Schools (Public) β’ 11 β Youth Authority Facilities (CEA) β’ 13 β Opportunity Schools β’ 14 β Juvenile Court Schools β’ 15 β Other County or District Programs β’ 31 β State Special Schools β’ 60 β Elementary School (Public) β’ 61 β Elementary School in 1 School District (Public) β’ 62 β Intermediate/Middle Schools (Public) β’ 63 β Alternative Schools of Choice β’ 64 β Junior High Schools (Public) β’ 65 β K-12 Schools (Public) β’ 66 β High Schools (Public) β’ 67 β High Schools in 1 School District (Public) β’ 68 β Continuation High Schools β’ 69 β District Community Day Schools β’ 70 β Adult Education Centers β’ 98 β Regional Occupational Center/Program (ROC/P)
Contains null values: True
schools.Street: TEXT
Sample values: "1 School Way", "1 School Street"
Contains null values: True
schools.EdOpsCode: TEXT - Education Option Code
Sample values: "TRAD"
Value description: β’ ALTSOC β Alternative School of Choice β’ COMM β County Community School β’ COMMDAY β Community Day School β’ CON β Continuation School β’ JUV β Juvenile Court School β’ OPP β Opportunity School β’ YTH β Youth Authority School β’ SSS β State Special School β’ SPEC β Special Education School β’ TRAD β Traditional β’ ROP β Regional Occupational Program β’ HOMHOS β Home and Hospital β’ SPECON β District Consortia Special Education School
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.CharterNum: TEXT
Sample values: "0728"
Value description: 4-digit number assigned to a charter school.
Contains null values: True
schools.NCESDist: TEXT - National Center for Educational Statistics school district identification number
Sample values: "0691051"
Contains null values: True
schools.DOCType: TEXT - The District Ownership Code Type
Sample values: "Statewide Benefit Charter", "State Special Schools"
Value description: (See text values in DOC field description above)
schools.Ext: TEXT - extension
Sample values: "1", "2000"
Value description: The phone number extension of the school, district, or administrative authority.
Contains null values: True
schools.OpenDate: DATE
Sample values: "2000-07-11", "2000-11-01"
Contains null values: True
Table frpm: free and reduced-price meals
frpm.`Charter School (Y/N)`: INTEGER
Sample values: "1"
Value description: 0: N; 1: Y
Contains null values: True
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`District Name`: TEXT
Sample values: "Eureka City Schools", "Ackerman Charter"
frpm.`District Code`: INTEGER
Sample values: "10017"
frpm.`School Type`: TEXT
Sample values: "Elemen Schools In 1 School Dist. (Public)", "High Schools In 1 School Dist. (Public)"
Contains null values: True
frpm.`School Name`: TEXT
Sample values: "Renew Virtual Academy K12 #1", "Open Charter Magnet"
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Charter Funding Type`: TEXT
Sample values: "Directly funded", "Locally funded"
Contains null values: True
frpm.`Charter School Number`: TEXT
Sample values: "0728"
Contains null values: True
Foreign Keys:
frpm.CDSCode = schools.CDSCode
External Knowledge:
Charter schools refers to `Charter School (Y/N)` = 1 in the frpm
Question: Please list the phone numbers of the direct charter-funded schools that are opened after 2000/1/1.
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Please list the phone numbers of the direct charter-funded schools that are opened after 2000/1/1. | 4 | california_schools | [
"SELECT T2.Phone FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`Charter Funding Type` = 'Directly funded' AND T1.`Charter School (Y/N)` = 1 AND T2.OpenDate > '2000-01-01'"
] |
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.cname: TEXT - county name
Sample values: "Alameda"
satscores.sname: TEXT - school name
Sample values: "Greater San Diego Academy", "Snowline Virtual"
Contains null values: True
satscores.dname: TEXT - district name
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
satscores.NumGE1500: INTEGER - Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500
Sample values: "14"
Value description: Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500 commonsense evidence: Excellence Rate = NumGE1500 / NumTstTakr
Contains null values: True
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "398"
satscores.AvgScrWrite: INTEGER - average scores in writing
Sample values: "400"
Value description: average scores in writing
Contains null values: True
satscores.rtype: TEXT
Sample values: "D"
Value description: unuseful
satscores.AvgScrRead: INTEGER - average scores in Reading
Sample values: "400"
Value description: average scores in Reading
Contains null values: True
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
satscores.AvgScrMath: INTEGER - average scores in Math
Sample values: "400"
Value description: average scores in Math
Contains null values: True
satscores.NumTstTakr: INTEGER - Number of Test Takers
Sample values: "400"
Value description: number of test takers in each school
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.Phone: TEXT
Sample values: "(510) 887-0152"
Contains null values: True
schools.State: TEXT
Sample values: "CA"
Contains null values: True
schools.Virtual: TEXT
Sample values: "P"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β F = Exclusively Virtual β The school has no physical building where students meet with each other or with teachers, all instruction is virtual. Β·Β Β Β Β Β Β V = Primarily Virtual β The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. Β·Β Β Β Β Β Β C = Primarily Classroom β The school offers virtual courses but virtual instruction is not the primary means of instruction. Β·Β Β Β Β Β Β N = Not Virtual β The school does not offer any virtual instruction. Β·Β Β Β Β Β Β P = Partial Virtual β The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016β17 school year.
Contains null values: True
schools.LastUpdate: DATE - Last Update
Sample values: "2015-06-23"
Value description: when is this record updated last time
schools.School: TEXT
Sample values: "Howe (John Wesley) School", "Howes Elementary"
Contains null values: True
schools.County: TEXT
Sample values: "Alameda"
schools.District: TEXT
Sample values: "Ventura School for Girls", "Eureka City Schools"
schools.EdOpsName: TEXT - Educational Option Name
Sample values: "Opportunity School", "Continuation School"
Value description: The Educational Option Name is the long text description of the type of education being offered.
Contains null values: True
schools.ClosedDate: DATE
Sample values: "2015-07-31"
Contains null values: True
schools.City: TEXT
Sample values: "Hayward"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.Zip: TEXT
Sample values: "94544-1136"
Contains null values: True
schools.Street: TEXT
Sample values: "2404 Howe Avenue", "400 Fanyon"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.CharterNum: TEXT
Sample values: "0728"
Value description: 4-digit number assigned to a charter school.
Contains null values: True
schools.Ext: TEXT - extension
Sample values: "130"
Value description: The phone number extension of the school, district, or administrative authority.
Contains null values: True
schools.OpenDate: DATE
Sample values: "2005-08-29"
Contains null values: True
Table frpm: free and reduced-price meals
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`School Name`: TEXT
Sample values: "Krystal School of Science, Math & Technology", "Howe Avenue Elementary"
frpm.`School Code`: TEXT
Sample values: "0109835"
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
External Knowledge:
Exclusively virtual refers to Virtual = 'F'
Question: How many schools with an average score in Math greater than 400 in the SAT test are exclusively virtual?
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many schools with an average score in Math greater than 400 in the SAT test are exclusively virtual? | 5 | california_schools | [
"SELECT COUNT(DISTINCT T2.School) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.Virtual = 'F' AND T1.AvgScrMath > 400"
] |
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.cname: TEXT - county name
Sample values: "Alameda"
satscores.sname: TEXT - school name
Sample values: "School of Engineering & Sciences", "Preuss School UCSD"
Contains null values: True
satscores.dname: TEXT - district name
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
satscores.NumGE1500: INTEGER - Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500
Sample values: "500"
Value description: Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500 commonsense evidence: Excellence Rate = NumGE1500 / NumTstTakr
Contains null values: True
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "500"
satscores.AvgScrWrite: INTEGER - average scores in writing
Sample values: "500"
Value description: average scores in writing
Contains null values: True
satscores.rtype: TEXT
Sample values: "D"
Value description: unuseful
satscores.AvgScrRead: INTEGER - average scores in Reading
Sample values: "500"
Value description: average scores in Reading
Contains null values: True
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
satscores.AvgScrMath: INTEGER - average scores in Math
Sample values: "500"
Value description: average scores in Math
Contains null values: True
satscores.NumTstTakr: INTEGER - Number of Test Takers
Sample values: "88"
Value description: number of test takers in each school
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.Phone: TEXT
Sample values: "(510) 887-0152"
Contains null values: True
schools.DOC: TEXT - District Ownership Code
Sample values: "00"
Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. β’ 00 - County Office of Education β’ 02 β State Board of Education β’ 03 β Statewide Benefit Charter β’ 31 β State Special Schools β’ 34 β Non-school Location* β’ 52 β Elementary School District β’ 54 β Unified School District β’ 56 β High School District β’ 98 β Regional Occupational Center/Program (ROC/P) commonsense evidence: *Only the California Education Authority has been included in the non-school location category.
schools.Virtual: TEXT
Sample values: "P"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β F = Exclusively Virtual β The school has no physical building where students meet with each other or with teachers, all instruction is virtual. Β·Β Β Β Β Β Β V = Primarily Virtual β The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. Β·Β Β Β Β Β Β C = Primarily Classroom β The school offers virtual courses but virtual instruction is not the primary means of instruction. Β·Β Β Β Β Β Β N = Not Virtual β The school does not offer any virtual instruction. Β·Β Β Β Β Β Β P = Partial Virtual β The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016β17 school year.
Contains null values: True
schools.School: TEXT
Sample values: "Banning High School Magnet", "Dorsey High School Magnet"
Contains null values: True
schools.EdOpsName: TEXT - Educational Option Name
Sample values: "Opportunity School", "Continuation School"
Value description: The Educational Option Name is the long text description of the type of education being offered.
Contains null values: True
schools.District: TEXT
Sample values: "Ventura School for Girls", "Eureka City Schools"
schools.Charter: INTEGER
Sample values: "1"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β 1 = The school is a charter Β·Β Β Β Β Β Β 0 = The school is not a charter
Contains null values: True
schools.City: TEXT
Sample values: "Hayward"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.StatusType: TEXT
Sample values: "Active"
Value description: Definitions of the valid status types are listed below: Β· Active: The district is in operation and providing instructional services. Β· Closed: The district is not in operation and no longer providing instructional services. Β· Merged: The district has combined with another district or districts. Β· Pending: The district has not opened for operation and instructional services yet, but plans to open within the next 9β12 months.
schools.Magnet: INTEGER
Sample values: "0"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β 1 = Magnet - The school is a magnet school and/or offers a magnet program. Β·Β Β Β Β Β Β 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. commonsense evidence: Note: Preschools and adult education centers do not contain a magnet school indicator.
Contains null values: True
schools.Zip: TEXT
Sample values: "94544-1136"
Contains null values: True
schools.Street: TEXT
Sample values: "School Road", "School Class"
Contains null values: True
schools.EdOpsCode: TEXT - Education Option Code
Sample values: "TRAD"
Value description: β’ ALTSOC β Alternative School of Choice β’ COMM β County Community School β’ COMMDAY β Community Day School β’ CON β Continuation School β’ JUV β Juvenile Court School β’ OPP β Opportunity School β’ YTH β Youth Authority School β’ SSS β State Special School β’ SPEC β Special Education School β’ TRAD β Traditional β’ ROP β Regional Occupational Program β’ HOMHOS β Home and Hospital β’ SPECON β District Consortia Special Education School
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.Ext: TEXT - extension
Sample values: "130"
Value description: The phone number extension of the school, district, or administrative authority.
Contains null values: True
Table frpm: free and reduced-price meals
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`School Type`: TEXT
Sample values: "Opportunity Schools", "Elemen Schools In 1 School Dist. (Public)"
Contains null values: True
frpm.`School Name`: TEXT
Sample values: "Gilroy Prep School (Navigators School)", "McPherson Magnet"
frpm.`School Code`: TEXT
Sample values: "0109835"
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
External Knowledge:
Magnet schools or offer a magnet program means that Magnet = 1
Question: Among the schools with the SAT test takers of over 500, please list the schools that are magnet schools or offer a magnet program.
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Among the schools with the SAT test takers of over 500, please list the schools that are magnet schools or offer a magnet program. | 6 | california_schools | [
"SELECT T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.Magnet = 1 AND T1.NumTstTakr > 500"
] |
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.cname: TEXT - county name
Sample values: "Alameda"
satscores.sname: TEXT - school name
Sample values: "School of Engineering & Sciences", "Preuss School UCSD"
Contains null values: True
satscores.dname: TEXT - district name
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
satscores.NumGE1500: INTEGER - Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500
Sample values: "14"
Value description: Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500 commonsense evidence: Excellence Rate = NumGE1500 / NumTstTakr
Contains null values: True
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "398"
satscores.AvgScrWrite: INTEGER - average scores in writing
Sample values: "417"
Value description: average scores in writing
Contains null values: True
satscores.rtype: TEXT
Sample values: "D"
Value description: unuseful
satscores.AvgScrRead: INTEGER - average scores in Reading
Sample values: "418"
Value description: average scores in Reading
Contains null values: True
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
satscores.AvgScrMath: INTEGER - average scores in Math
Sample values: "418"
Value description: average scores in Math
Contains null values: True
satscores.NumTstTakr: INTEGER - Number of Test Takers
Sample values: "1500"
Value description: number of test takers in each school
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.Phone: TEXT
Sample values: "(562) 942-1500", "(323) 238-1500"
Contains null values: True
schools.State: TEXT
Sample values: "CA"
Contains null values: True
schools.StreetAbr: TEXT - street address
Sample values: "1500 Lizzie St.", "1500 Partridge Ave."
Value description: The abbreviated street address of the school, district, or administrative authorityβs physical location. Note: Some records (primarily records of closed or retired schools) may not have data in this field.
Contains null values: True
schools.LastUpdate: DATE - Last Update
Sample values: "2015-06-23"
Value description: when is this record updated last time
schools.School: TEXT
Sample values: "School for School-Age Mothers", "The New School"
Contains null values: True
schools.District: TEXT
Sample values: "Ventura School for Girls", "Eureka City Schools"
schools.ClosedDate: DATE
Sample values: "2015-07-31"
Contains null values: True
schools.AdmFName2: TEXT - administrator's first name 2
Sample values: "Sau-Lim (Lance)"
Value description: SAME as 1
Contains null values: True
schools.City: TEXT
Sample values: "Hayward"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.Zip: TEXT
Sample values: "94568-1500", "95832-1500"
Contains null values: True
schools.Street: TEXT
Sample values: "1500 Lizzie Street", "1500 Partridge Avenue"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.CharterNum: TEXT
Sample values: "1500"
Value description: 4-digit number assigned to a charter school.
Contains null values: True
schools.Ext: TEXT - extension
Sample values: "1500"
Value description: The phone number extension of the school, district, or administrative authority.
Contains null values: True
Table frpm: free and reduced-price meals
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`District Name`: TEXT
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
frpm.`School Name`: TEXT
Sample values: "Gilroy Prep School (Navigators School)", "California School for the Blind"
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Charter School Number`: TEXT
Sample values: "1500"
Contains null values: True
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
Question: What is the phone number of the school that has the highest number of test takers with an SAT score of over 1500?
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the phone number of the school that has the highest number of test takers with an SAT score of over 1500? | 7 | california_schools | [
"SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1"
] |
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.cname: TEXT - county name
Sample values: "Alameda"
satscores.sname: TEXT - school name
Sample values: "Avalon K-12", "RFK Community Schools-UCLA Community K-12"
Contains null values: True
satscores.dname: TEXT - district name
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
satscores.NumGE1500: INTEGER - Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500
Sample values: "12"
Value description: Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500 commonsense evidence: Excellence Rate = NumGE1500 / NumTstTakr
Contains null values: True
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "12"
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
satscores.NumTstTakr: INTEGER - Number of Test Takers
Sample values: "12"
Value description: number of test takers in each school
Table frpm: free and reduced-price meals
frpm.`FRPM Count (K-12)`: REAL
Sample values: "715.0"
Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible Free (K-12)`: REAL
Sample values: "0.519779208831647"
Contains null values: True
frpm.`Percent (%) Eligible FRPM (Ages 5-17)`: REAL
Sample values: "0.65607476635514"
Contains null values: True
frpm.`Percent (%) Eligible FRPM (K-12)`: REAL
Sample values: "0.657773689052438"
Contains null values: True
frpm.`Charter School (Y/N)`: INTEGER
Sample values: "1"
Value description: 0: N; 1: Y
Contains null values: True
frpm.`County Name`: TEXT
Sample values: "Alameda"
frpm.`Free Meal Count (Ages 5-17)`: REAL
Sample values: "553.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.`County Code`: TEXT
Sample values: "12"
frpm.`Free Meal Count (K-12)`: REAL
Sample values: "565.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`High Grade`: TEXT
Sample values: "12", "K"
frpm.`Low Grade`: TEXT
Sample values: "K", "12"
frpm.`District Name`: TEXT
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
frpm.`District Code`: INTEGER
Sample values: "10017"
frpm.`School Type`: TEXT
Sample values: "K-12 Schools (Public)", "Opportunity Schools"
Contains null values: True
frpm.`School Name`: TEXT
Sample values: "Avalon K-12", "Whittier K-12"
frpm.`Enrollment (Ages 5-17)`: REAL
Sample values: "1070.0"
Contains null values: True
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Enrollment (K-12)`: REAL
Sample values: "1087.0"
Value description: commonsense evidence: K-12: 1st grade - 12nd grade
frpm.`FRPM Count (Ages 5-17)`: REAL
Sample values: "702.0"
Contains null values: True
frpm.`Charter School Number`: TEXT
Sample values: "0728"
Contains null values: True
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.School: TEXT
Sample values: "Whittier K-12", "Avalon K-12"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
Question: What is the number of SAT test takers of the schools with the highest FRPM count for K-12 students?
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the number of SAT test takers of the schools with the highest FRPM count for K-12 students? | 8 | california_schools | [
"SELECT NumTstTakr FROM satscores WHERE cds = ( SELECT CDSCode FROM frpm ORDER BY `FRPM Count (K-12)` DESC LIMIT 1 )"
] |
bird | dev | Database Schema:
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.FundingType: TEXT
Sample values: "Directly funded", "Locally funded"
Value description: Values are as follows: Β·Β Β Β Β Β Β Not in CS (California School) funding model Β·Β Β Β Β Β Β Locally funded Β·Β Β Β Β Β Β Directly funded
Contains null values: True
schools.Phone: TEXT
Sample values: "(323) 560-1323", "(323) 560-1230"
Contains null values: True
schools.DOC: TEXT - District Ownership Code
Sample values: "00"
Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. β’ 00 - County Office of Education β’ 02 β State Board of Education β’ 03 β Statewide Benefit Charter β’ 31 β State Special Schools β’ 34 β Non-school Location* β’ 52 β Elementary School District β’ 54 β Unified School District β’ 56 β High School District β’ 98 β Regional Occupational Center/Program (ROC/P) commonsense evidence: *Only the California Education Authority has been included in the non-school location category.
schools.Website: TEXT
Sample values: "www.slvusd.org/charter", "www.ljsd.org/schools/elportal"
Value description: The website address of the school, district, or administrative authority.
Contains null values: True
schools.School: TEXT
Sample values: "Howe (John Wesley) School", "Krystal School of Science, Math & Technology"
Contains null values: True
schools.District: TEXT
Sample values: "Ventura School for Girls", "Eureka City Schools"
schools.Charter: INTEGER
Sample values: "1"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β 1 = The school is a charter Β·Β Β Β Β Β Β 0 = The school is not a charter
Contains null values: True
schools.City: TEXT
Sample values: "Charter Oak"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.Zip: TEXT
Sample values: "94544-1136"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.CharterNum: TEXT
Sample values: "0728"
Value description: 4-digit number assigned to a charter school.
Contains null values: True
schools.DOCType: TEXT - The District Ownership Code Type
Sample values: "Statewide Benefit Charter", "State Special Schools"
Value description: (See text values in DOC field description above)
schools.Ext: TEXT - extension
Sample values: "130"
Value description: The phone number extension of the school, district, or administrative authority.
Contains null values: True
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.cname: TEXT - county name
Sample values: "Alameda"
satscores.sname: TEXT - school name
Sample values: "Charter School of San Diego", "YouthBuild Charter School of California"
Contains null values: True
satscores.dname: TEXT - district name
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
satscores.NumGE1500: INTEGER - Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500
Sample values: "14"
Value description: Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500 commonsense evidence: Excellence Rate = NumGE1500 / NumTstTakr
Contains null values: True
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "560"
satscores.AvgScrWrite: INTEGER - average scores in writing
Sample values: "560"
Value description: average scores in writing
Contains null values: True
satscores.rtype: TEXT
Sample values: "D"
Value description: unuseful
satscores.AvgScrRead: INTEGER - average scores in Reading
Sample values: "560"
Value description: average scores in Reading
Contains null values: True
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
satscores.AvgScrMath: INTEGER - average scores in Math
Sample values: "560"
Value description: average scores in Math
Contains null values: True
satscores.NumTstTakr: INTEGER - Number of Test Takers
Sample values: "88"
Value description: number of test takers in each school
Table frpm: free and reduced-price meals
frpm.`Charter School (Y/N)`: INTEGER
Sample values: "1"
Value description: 0: N; 1: Y
Contains null values: True
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`School Name`: TEXT
Sample values: "Krystal School of Science, Math & Technology", "Gilroy Prep School (Navigators School)"
frpm.`Charter Funding Type`: TEXT
Sample values: "Directly funded", "Locally funded"
Contains null values: True
frpm.`Charter School Number`: TEXT
Sample values: "0728"
Contains null values: True
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
Question: Among the schools with the average score in Math over 560 in the SAT test, how many schools are directly charter-funded?
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Among the schools with the average score in Math over 560 in the SAT test, how many schools are directly charter-funded? | 9 | california_schools | [
"SELECT COUNT(T2.`School Code`) FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrMath > 560 AND T2.`Charter Funding Type` = 'Directly funded'"
] |
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.cname: TEXT - county name
Sample values: "Alameda"
satscores.sname: TEXT - school name
Sample values: "Student Empowerment Academy", "Partnerships for Student-Centered Learning"
Contains null values: True
satscores.dname: TEXT - district name
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "5", "17"
satscores.AvgScrWrite: INTEGER - average scores in writing
Sample values: "417"
Value description: average scores in writing
Contains null values: True
satscores.AvgScrRead: INTEGER - average scores in Reading
Sample values: "418"
Value description: average scores in Reading
Contains null values: True
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
satscores.AvgScrMath: INTEGER - average scores in Math
Sample values: "418"
Value description: average scores in Math
Contains null values: True
satscores.NumTstTakr: INTEGER - Number of Test Takers
Sample values: "17", "5"
Value description: number of test takers in each school
Table frpm: free and reduced-price meals
frpm.`FRPM Count (K-12)`: REAL
Sample values: "715.0"
Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible FRPM (Ages 5-17)`: REAL
Sample values: "0.65607476635514"
Contains null values: True
frpm.`Percent (%) Eligible FRPM (K-12)`: REAL
Sample values: "0.657773689052438"
Contains null values: True
frpm.`Charter School (Y/N)`: INTEGER
Sample values: "1"
Value description: 0: N; 1: Y
Contains null values: True
frpm.`Free Meal Count (Ages 5-17)`: REAL
Sample values: "553.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible Free (Ages 5-17)`: REAL
Sample values: "0.516822429906542"
Contains null values: True
frpm.`County Code`: TEXT
Sample values: "17"
frpm.`Free Meal Count (K-12)`: REAL
Sample values: "565.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`High Grade`: TEXT
Sample values: "5"
frpm.`District Name`: TEXT
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
frpm.`District Code`: INTEGER
Sample values: "10017"
frpm.`School Type`: TEXT
Sample values: "Opportunity Schools", "Elemen Schools In 1 School Dist. (Public)"
Contains null values: True
frpm.`School Name`: TEXT
Sample values: "Victress Bower School for Exceptional Students", "Student Empowerment Academy"
frpm.`Enrollment (Ages 5-17)`: REAL
Sample values: "1070.0"
Contains null values: True
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Enrollment (K-12)`: REAL
Sample values: "1087.0"
Value description: commonsense evidence: K-12: 1st grade - 12nd grade
frpm.`FRPM Count (Ages 5-17)`: REAL
Sample values: "702.0"
Contains null values: True
frpm.`Charter School Number`: TEXT
Sample values: "0728"
Contains null values: True
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.School: TEXT
Sample values: "School for School-Age Mothers", "Victress Bower School for Exceptional Students"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
Question: For the school with the highest average score in Reading in the SAT test, what is its FRPM count for students aged 5-17?
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | For the school with the highest average score in Reading in the SAT test, what is its FRPM count for students aged 5-17? | 10 | california_schools | [
"SELECT T2.`FRPM Count (Ages 5-17)` FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrRead DESC LIMIT 1"
] |
bird | dev | Database Schema:
Table frpm: free and reduced-price meals
frpm.`FRPM Count (K-12)`: REAL
Sample values: "715.0"
Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment
Contains null values: True
frpm.`Free Meal Count (K-12)`: REAL
Sample values: "565.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`District Code`: INTEGER
Sample values: "10017"
frpm.`School Name`: TEXT
Sample values: "Gilroy Prep School (Navigators School)", "California School for the Blind"
frpm.`Enrollment (Ages 5-17)`: REAL
Sample values: "1070.0"
Contains null values: True
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Enrollment (K-12)`: REAL
Sample values: "1087.0"
Value description: commonsense evidence: K-12: 1st grade - 12nd grade
frpm.`FRPM Count (Ages 5-17)`: REAL
Sample values: "702.0"
Contains null values: True
frpm.`Charter School Number`: TEXT
Sample values: "0728"
Contains null values: True
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.GSserved: TEXT - grade span served.
Sample values: "K-12"
Value description: commonsense evidence: 1.Β Β Β Β Only Kβ12 enrollment is reported through CALPADS 2.Β Β Β Β Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type
Contains null values: True
schools.Phone: TEXT
Sample values: "(510) 887-0152"
Contains null values: True
schools.DOC: TEXT - District Ownership Code
Sample values: "00"
Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. β’ 00 - County Office of Education β’ 02 β State Board of Education β’ 03 β Statewide Benefit Charter β’ 31 β State Special Schools β’ 34 β Non-school Location* β’ 52 β Elementary School District β’ 54 β Unified School District β’ 56 β High School District β’ 98 β Regional Occupational Center/Program (ROC/P) commonsense evidence: *Only the California Education Authority has been included in the non-school location category.
schools.Virtual: TEXT
Sample values: "P"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β F = Exclusively Virtual β The school has no physical building where students meet with each other or with teachers, all instruction is virtual. Β·Β Β Β Β Β Β V = Primarily Virtual β The school focuses on a systematic program of virtual instruction but includes some physical meetings among students or with teachers. Β·Β Β Β Β Β Β C = Primarily Classroom β The school offers virtual courses but virtual instruction is not the primary means of instruction. Β·Β Β Β Β Β Β N = Not Virtual β The school does not offer any virtual instruction. Β·Β Β Β Β Β Β P = Partial Virtual β The school offers some, but not all, instruction through virtual instruction. Note: This value was retired and replaced with the Primarily Virtual and Primarily Classroom values beginning with the 2016β17 school year.
Contains null values: True
schools.School: TEXT
Sample values: "School for School-Age Mothers", "The New School"
Contains null values: True
schools.District: TEXT
Sample values: "Ventura School for Girls", "Eureka City Schools"
schools.EILName: TEXT - Educational Instruction Level Name
Sample values: "High School"
Value description: The Educational Instruction Level Name is the long text description of the institutionβs type relative to the grade range served.
Contains null values: True
schools.Charter: INTEGER
Sample values: "1"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β 1 = The school is a charter Β·Β Β Β Β Β Β 0 = The school is not a charter
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.Magnet: INTEGER
Sample values: "0"
Value description: The field is coded as follows: Β·Β Β Β Β Β Β 1 = Magnet - The school is a magnet school and/or offers a magnet program. Β·Β Β Β Β Β Β 0 = Not Magnet - The school is not a magnet school and/or does not offer a magnet program. commonsense evidence: Note: Preschools and adult education centers do not contain a magnet school indicator.
Contains null values: True
schools.Zip: TEXT
Sample values: "94544-1136"
Contains null values: True
schools.SOC: TEXT - School Ownership Code
Sample values: "65"
Value description: β’ 08 - Preschool β’ 09 β Special Education Schools (Public) β’ 11 β Youth Authority Facilities (CEA) β’ 13 β Opportunity Schools β’ 14 β Juvenile Court Schools β’ 15 β Other County or District Programs β’ 31 β State Special Schools β’ 60 β Elementary School (Public) β’ 61 β Elementary School in 1 School District (Public) β’ 62 β Intermediate/Middle Schools (Public) β’ 63 β Alternative Schools of Choice β’ 64 β Junior High Schools (Public) β’ 65 β K-12 Schools (Public) β’ 66 β High Schools (Public) β’ 67 β High Schools in 1 School District (Public) β’ 68 β Continuation High Schools β’ 69 β District Community Day Schools β’ 70 β Adult Education Centers β’ 98 β Regional Occupational Center/Program (ROC/P)
Contains null values: True
schools.Street: TEXT
Sample values: "Code 1050--Hunters Naval", "500 A Street"
Contains null values: True
schools.EdOpsCode: TEXT - Education Option Code
Sample values: "TRAD"
Value description: β’ ALTSOC β Alternative School of Choice β’ COMM β County Community School β’ COMMDAY β Community Day School β’ CON β Continuation School β’ JUV β Juvenile Court School β’ OPP β Opportunity School β’ YTH β Youth Authority School β’ SSS β State Special School β’ SPEC β Special Education School β’ TRAD β Traditional β’ ROP β Regional Occupational Program β’ HOMHOS β Home and Hospital β’ SPECON β District Consortia Special Education School
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.CharterNum: TEXT
Sample values: "0728"
Value description: 4-digit number assigned to a charter school.
Contains null values: True
schools.EILCode: TEXT - Educational Instruction Level Code
Sample values: "ELEMHIGH"
Value description: β’ A β Adult β’ ELEM β Elementary β’ ELEMHIGH β Elementary-High Combination β’ HS β High School β’ INTMIDJR β Intermediate/Middle/Junior High β’ PS β Preschool β’ UG β Ungraded
Contains null values: True
schools.OpenDate: DATE
Sample values: "2005-08-29"
Contains null values: True
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "500"
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
External Knowledge:
Total enrollment can be represented by `Enrollment (K-12)` + `Enrollment (Ages 5-17)`
Question: Please list the codes of the schools with a total enrollment of over 500.
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Please list the codes of the schools with a total enrollment of over 500. | 11 | california_schools | [
"SELECT T2.CDSCode FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.`Enrollment (K-12)` + T2.`Enrollment (Ages 5-17)` > 500"
] |
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.cname: TEXT - county name
Sample values: "Alameda"
satscores.sname: TEXT - school name
Sample values: "Academy for Academic Excellence", "Student Empowerment Academy"
Contains null values: True
satscores.dname: TEXT - district name
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
satscores.NumGE1500: INTEGER - Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500
Sample values: "5", "17"
Value description: Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500 commonsense evidence: Excellence Rate = NumGE1500 / NumTstTakr
Contains null values: True
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "5", "17"
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
satscores.NumTstTakr: INTEGER - Number of Test Takers
Sample values: "17", "5"
Value description: number of test takers in each school
Table frpm: free and reduced-price meals
frpm.`FRPM Count (K-12)`: REAL
Sample values: "715.0"
Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible Free (K-12)`: REAL
Sample values: "0.3"
Contains null values: True
frpm.`Percent (%) Eligible FRPM (Ages 5-17)`: REAL
Sample values: "0.3"
Contains null values: True
frpm.`Percent (%) Eligible FRPM (K-12)`: REAL
Sample values: "0.3"
Contains null values: True
frpm.`Charter School (Y/N)`: INTEGER
Sample values: "1"
Value description: 0: N; 1: Y
Contains null values: True
frpm.`Free Meal Count (Ages 5-17)`: REAL
Sample values: "553.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible Free (Ages 5-17)`: REAL
Sample values: "0.3"
Contains null values: True
frpm.`Free Meal Count (K-12)`: REAL
Sample values: "565.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`High Grade`: TEXT
Sample values: "5"
frpm.`Low Grade`: TEXT
Sample values: "5"
frpm.`District Name`: TEXT
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
frpm.`District Code`: INTEGER
Sample values: "10017"
frpm.`School Type`: TEXT
Sample values: "Opportunity Schools", "Elemen Schools In 1 School Dist. (Public)"
Contains null values: True
frpm.`School Name`: TEXT
Sample values: "Victress Bower School for Exceptional Students", "Student Empowerment Academy"
frpm.`Enrollment (Ages 5-17)`: REAL
Sample values: "1070.0"
Contains null values: True
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Enrollment (K-12)`: REAL
Sample values: "1087.0"
Value description: commonsense evidence: K-12: 1st grade - 12nd grade
frpm.`FRPM Count (Ages 5-17)`: REAL
Sample values: "702.0"
Contains null values: True
frpm.`Charter School Number`: TEXT
Sample values: "0728"
Contains null values: True
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.School: TEXT
Sample values: "School for School-Age Mothers", "Victress Bower School for Exceptional Students"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
External Knowledge:
Excellence rate = NumGE1500 / NumTstTakr; Eligible free rates for students aged 5-17 = `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)`
Question: Among the schools with an SAT excellence rate of over 0.3, what is the highest eligible free rate for students aged 5-17?
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Among the schools with an SAT excellence rate of over 0.3, what is the highest eligible free rate for students aged 5-17? | 12 | california_schools | [
"SELECT MAX(CAST(T1.`Free Meal Count (Ages 5-17)` AS REAL) / T1.`Enrollment (Ages 5-17)`) FROM frpm AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE CAST(T2.NumGE1500 AS REAL) / T2.NumTstTakr > 0.3"
] |
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.cname: TEXT - county name
Sample values: "Alameda"
satscores.sname: TEXT - school name
Sample values: "Academy for Academic Excellence", "Magnolia Science Academy 3"
Contains null values: True
satscores.dname: TEXT - district name
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
satscores.NumGE1500: INTEGER - Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500
Sample values: "3"
Value description: Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500 commonsense evidence: Excellence Rate = NumGE1500 / NumTstTakr
Contains null values: True
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "398"
satscores.AvgScrWrite: INTEGER - average scores in writing
Sample values: "417"
Value description: average scores in writing
Contains null values: True
satscores.AvgScrRead: INTEGER - average scores in Reading
Sample values: "418"
Value description: average scores in Reading
Contains null values: True
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
satscores.AvgScrMath: INTEGER - average scores in Math
Sample values: "418"
Value description: average scores in Math
Contains null values: True
satscores.NumTstTakr: INTEGER - Number of Test Takers
Sample values: "3"
Value description: number of test takers in each school
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.Phone: TEXT
Sample values: "(510) 887-0152"
Contains null values: True
schools.State: TEXT
Sample values: "CA"
Contains null values: True
schools.Longitude: REAL
Sample values: "-122.09713"
Value description: The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.
Contains null values: True
schools.LastUpdate: DATE - Last Update
Sample values: "2015-06-23"
Value description: when is this record updated last time
schools.School: TEXT
Sample values: "Top of the World Elementary", "Excel High"
Contains null values: True
schools.District: TEXT
Sample values: "Ventura School for Girls", "Eureka City Schools"
schools.ClosedDate: DATE
Sample values: "2015-07-31"
Contains null values: True
schools.EILName: TEXT - Educational Instruction Level Name
Sample values: "High School"
Value description: The Educational Instruction Level Name is the long text description of the institutionβs type relative to the grade range served.
Contains null values: True
schools.City: TEXT
Sample values: "Hayward"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.Zip: TEXT
Sample values: "94544-1136"
Contains null values: True
schools.Street: TEXT
Sample values: "6930 State Highway 3 Highway 3 and School Street", "Highway 3"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.CharterNum: TEXT
Sample values: "0728"
Value description: 4-digit number assigned to a charter school.
Contains null values: True
schools.EILCode: TEXT - Educational Instruction Level Code
Sample values: "ELEMHIGH"
Value description: β’ A β Adult β’ ELEM β Elementary β’ ELEMHIGH β Elementary-High Combination β’ HS β High School β’ INTMIDJR β Intermediate/Middle/Junior High β’ PS β Preschool β’ UG β Ungraded
Contains null values: True
schools.Ext: TEXT - extension
Sample values: "3"
Value description: The phone number extension of the school, district, or administrative authority.
Contains null values: True
schools.OpenDate: DATE
Sample values: "2005-08-29"
Contains null values: True
Table frpm: free and reduced-price meals
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`District Name`: TEXT
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
frpm.`School Name`: TEXT
Sample values: "Top of the World Elementary", "Citizens of the World 3"
frpm.`School Code`: TEXT
Sample values: "0109835"
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
External Knowledge:
Excellence rate = NumGE1500 / NumTstTakr
Question: Please list the phone numbers of the schools with the top 3 SAT excellence rate.
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Please list the phone numbers of the schools with the top 3 SAT excellence rate. | 13 | california_schools | [
"SELECT T1.Phone FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds ORDER BY CAST(T2.NumGE1500 AS REAL) / T2.NumTstTakr DESC LIMIT 3"
] |
bird | dev | Database Schema:
Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts.
satscores.sname: TEXT - school name
Sample values: "Five Keys Adult School (SF Sheriff's)", "School of Engineering & Sciences"
Contains null values: True
satscores.dname: TEXT - district name
Sample values: "Eureka City Schools", "SBE - The School of Arts and Enterprise"
satscores.NumGE1500: INTEGER - Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500
Sample values: "5", "17"
Value description: Number of Test Takers Whose Total SAT Scores Are Greater or Equal to 1500 commonsense evidence: Excellence Rate = NumGE1500 / NumTstTakr
Contains null values: True
satscores.enroll12: INTEGER - enrollment (1st-12nd grade)
Sample values: "5", "17"
satscores.cds: TEXT PRIMARY KEY
Sample values: "10101080000000"
satscores.NumTstTakr: INTEGER - Number of Test Takers
Sample values: "17", "5"
Value description: number of test takers in each school
Table schools: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations.
schools.GSserved: TEXT - grade span served.
Sample values: "5", "K-5"
Value description: commonsense evidence: 1.Β Β Β Β Only Kβ12 enrollment is reported through CALPADS 2.Β Β Β Β Note: Special programs at independent study, alternative education, and special education schools will often exceed the typical grade span for schools of that type
Contains null values: True
schools.Phone: TEXT
Sample values: "(510) 887-0152"
Contains null values: True
schools.Longitude: REAL
Sample values: "-122.09713"
Value description: The angular distance (expressed in degrees) between the location of the school, district, or administrative authority and the prime meridian (Greenwich, England) measured from west to east.
Contains null values: True
schools.School: TEXT
Sample values: "School for School-Age Mothers", "Five Keys Adult School (SF Sheriff's)"
Contains null values: True
schools.District: TEXT
Sample values: "Ventura School for Girls", "Eureka City Schools"
schools.ClosedDate: DATE
Sample values: "2011-08-17", "1999-05-17"
Contains null values: True
schools.City: TEXT
Sample values: "Five Points"
Contains null values: True
schools.NCESSchool: TEXT - National Center for Educational Statistics school identification number
Sample values: "10546"
Contains null values: True
schools.Zip: TEXT
Sample values: "94544-1136"
Contains null values: True
schools.Street: TEXT
Sample values: "School Road", "School Class"
Contains null values: True
schools.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170000000"
schools.CharterNum: TEXT
Sample values: "0728"
Value description: 4-digit number assigned to a charter school.
Contains null values: True
schools.EILCode: TEXT - Educational Instruction Level Code
Sample values: "ELEMHIGH"
Value description: β’ A β Adult β’ ELEM β Elementary β’ ELEMHIGH β Elementary-High Combination β’ HS β High School β’ INTMIDJR β Intermediate/Middle/Junior High β’ PS β Preschool β’ UG β Ungraded
Contains null values: True
schools.NCESDist: TEXT - National Center for Educational Statistics school district identification number
Sample values: "0691051"
Contains null values: True
schools.Ext: TEXT - extension
Sample values: "130"
Value description: The phone number extension of the school, district, or administrative authority.
Contains null values: True
schools.OpenDate: DATE
Sample values: "2001-09-17", "1997-04-17"
Contains null values: True
Table frpm: free and reduced-price meals
frpm.`Percent (%) Eligible FRPM (Ages 5-17)`: REAL
Sample values: "0.65607476635514"
Contains null values: True
frpm.`Free Meal Count (Ages 5-17)`: REAL
Sample values: "553.0"
Value description: commonsense evidence: eligible free rate = Free Meal Count / Enrollment
Contains null values: True
frpm.`Percent (%) Eligible Free (Ages 5-17)`: REAL
Sample values: "0.516822429906542"
Contains null values: True
frpm.CDSCode: TEXT PRIMARY KEY
Sample values: "01100170109835"
frpm.`Enrollment (Ages 5-17)`: REAL
Sample values: "1070.0"
Contains null values: True
frpm.`School Code`: TEXT
Sample values: "0109835"
frpm.`Enrollment (K-12)`: REAL
Sample values: "1087.0"
Value description: commonsense evidence: K-12: 1st grade - 12nd grade
frpm.`FRPM Count (Ages 5-17)`: REAL
Sample values: "702.0"
Contains null values: True
Foreign Keys:
frpm.CDSCode = schools.CDSCode
satscores.cds = schools.CDSCode
Question: List the top five schools, by descending order, from the highest to the lowest, the most number of Enrollment (Ages 5-17). Please give their NCES school identification number.
| [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List the top five schools, by descending order, from the highest to the lowest, the most number of Enrollment (Ages 5-17). Please give their NCES school identification number. | 14 | california_schools | [
"SELECT T1.NCESSchool FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode ORDER BY T2.`Enrollment (Ages 5-17)` DESC LIMIT 5"
] |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4