db_id stringclasses 11
values | instruction stringlengths 1.63k 14k | role stringclasses 45
values | policy unknown | input stringlengths 23 477 | output stringlengths 23 2.22k | difficulty stringclasses 3
values | metadata dict |
|---|---|---|---|---|---|---|---|
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Identify the number of posts and comments left by the user, who has the latest created user account. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(DISTINCT T2.Id), COUNT(DISTINCT T3.Id) FROM users AS T1 LEFT JOIN posts AS T2 ON T2.OwnerUserId = T1.Id LEFT JOIN comments AS T3 ON T3.UserID = T1.Id ORDER BY T1.CreationDate DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
],... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Provide the text of the latest 10 comments to the post with the title 'Analysing wind data with R' and the display name of the user who left it. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T3.Text, T1.DisplayName FROM posts AS T2 INNER JOIN comments AS T3 ON T3.PostID = T2.Id LEFT JOIN users AS T1 ON T1.Id = T3.UserId WHERE T2.Title = 'Analysing wind data with R' ORDER BY T3.CreationDate DESC LIMIT 10",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | How many users were awarded with 'Citizen Patrol' badge? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(DISTINCT UserId) FROM badges WHERE Name = 'Citizen Patrol'",
"permission": "denied",
"query_columns": {
"badges": [
"Name",
"UserId"
]
},
"missing_columns": {
"badges": [
"Name",
"UserId"
]
},
"reason": "Missing column permissions: badges... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Count the number of posts with a tag specified as 'careers'. | SELECT COUNT(Id) FROM tags WHERE TagName = 'careers' | simple | {
"gold_sql": "SELECT COUNT(Id) FROM tags WHERE TagName = 'careers'",
"permission": "allowed",
"query_columns": {
"tags": [
"Id",
"TagName"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 696,
"evidence": "tag specified as 'careers' refers t... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | What is the reputation and view count of the user, who is known by his or her display name 'Jarrod Dixon'? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT Reputation, Views FROM users WHERE DisplayName = 'Jarrod Dixon'",
"permission": "denied",
"query_columns": {
"users": [
"DisplayName",
"Reputation"
]
},
"missing_columns": {
"users": [
"DisplayName",
"Reputation"
]
},
"reason": "Missing column ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | How many comments and answers were left by the users on the post with the title 'Clustering 1D data'? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT CommentCount, AnswerCount FROM posts WHERE Title = 'Clustering 1D data';",
"permission": "denied",
"query_columns": {
"posts": [
"AnswerCount",
"CommentCount",
"Title"
]
},
"missing_columns": {
"posts": [
"AnswerCount",
"CommentCount"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | When did the user known as 'IrishStat' create his or her account? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT CreationDate FROM users WHERE DisplayName = 'IrishStat'",
"permission": "denied",
"query_columns": {
"users": [
"CreationDate",
"DisplayName"
]
},
"missing_columns": {
"users": [
"CreationDate",
"DisplayName"
]
},
"reason": "Missing column perm... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Identify the number of posts that offer a bounty amount over 30. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(id) FROM votes WHERE BountyAmount >= 30;",
"permission": "denied",
"query_columns": {
"votes": [
"BountyAmount",
"Id"
]
},
"missing_columns": {
"votes": [
"BountyAmount",
"Id"
]
},
"reason": "Missing column permissions: votes: BountyAmoun... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Among all the posts posted by the most influential user, identify the percentage with a score above 50. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN T2.Score > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Id) FROM users T1 INNER JOIN posts T2 ON T1.Id = T2.OwnerUserId INNER JOIN ( SELECT MAX(Reputation) AS max_reputation FROM users ) T3 ON T1.Reputation = T3.max_reputation",
"permission": "denied",
"query_columns": ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | How many posts have a score less than 20? | SELECT COUNT(id) FROM posts WHERE Score < 20 | simple | {
"gold_sql": "SELECT COUNT(id) FROM posts WHERE Score < 20",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Score"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 702,
"evidence": "score less than 20 refers to Score < 20;"
} |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Among the tags with tag ID below 15, how many of them have 20 count of posts and below? | SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15 | simple | {
"gold_sql": "SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15",
"permission": "allowed",
"query_columns": {
"tags": [
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 703,
"evidence": "ID below 15 refers to Id < 15; have 20 count of ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | What is the excerpt post ID and wiki post ID of the tag named sample? | SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample' | simple | {
"gold_sql": "SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample'",
"permission": "allowed",
"query_columns": {
"tags": [
"ExcerptPostId",
"TagName",
"WikiPostId"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 704,
"e... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Give the user's reputation and up vote number of the user that commented "fine, you win :)". | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Reputation, T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'fine, you win :)'",
"permission": "denied",
"query_columns": {
"users": [
"Id",
"Reputation",
"UpVotes"
],
"comments": [
"Text",
"UserId"
]... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Give the texts commented on the post about linear regression. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title LIKE '%linear regression%'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Title"
],
"comments": [
"PostId",
"Text"
]
},
"missing_columns": {
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Among the posts with views ranging from 100 to 150, what is the comment with the highest score? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT Text FROM comments WHERE PostId IN ( SELECT Id FROM posts WHERE ViewCount BETWEEN 100 AND 150 ) ORDER BY Score DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Score",
"ViewCount"
],
"comments": [
"PostId"
]
},
"missing_c... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | List the creation date and age of the user that commented with webiste. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.CreationDate, T2.Age FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.text LIKE '%http://%'",
"permission": "denied",
"query_columns": {
"users": [
"Age",
"CreationDate",
"Id"
],
"comments": [
"UserId",
"text"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | In comments with 0 score, how many of the posts have view count lower than 5? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(DISTINCT T2.Id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.ViewCount < 5 AND T1.Score = 0",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"ViewCount"
],
"comments": [
"PostId",
"Score"
]
},
"missing... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | In posts with 1 comment, how many of the comments have 0 score? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.id)\nFROM comments AS T1\nINNER JOIN posts AS T2 ON T1.PostId = T2.Id\nWHERE T2.CommentCount = 1 AND T1.Score = 0;",
"permission": "denied",
"query_columns": {
"posts": [
"CommentCount",
"Id"
],
"comments": [
"PostId",
"Score",
"id"
]
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Among product comments with 0 score, what is the total number of users aged 40 years old? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(DISTINCT T2.Id)\nFROM comments AS T1\nINNER JOIN users AS T2 ON T1.UserId = T2.Id\nWHERE T1.Score = 0 AND T2.Age = 40;",
"permission": "denied",
"query_columns": {
"users": [
"Age",
"Id"
],
"comments": [
"Score",
"UserId"
]
},
"missing_column... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | What is the post ID and the comments commented in the post titled by "Group differences on a five point Likert item"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Id, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'Group differences on a five point Likert item'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Title"
],
"comments": [
"PostId",
"Text"
]
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | What is the up vote number of the user that commented "R is also lazy evaluated."? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'R is also lazy evaluated.'",
"permission": "denied",
"query_columns": {
"users": [
"Id",
"UpVotes"
],
"comments": [
"Text",
"UserId"
]
},
"missing_columns":... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | List the comments commented by the user with a username of Harvey Motulsky. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Text FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Harvey Motulsky'",
"permission": "denied",
"query_columns": {
"users": [
"DisplayName",
"Id"
],
"comments": [
"Text",
"UserId"
]
},
"missing_columns": {... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | In comments with score between 1 to 5, list down the display names of the users with 0 down votes. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T2.DisplayName FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score BETWEEN 1 AND 5 AND T2.DownVotes = 0",
"permission": "denied",
"query_columns": {
"users": [
"DisplayName",
"DownVotes",
"Id"
],
"comments": [
"Score",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | TagCurator | {
"posts": [
"Id",
"Title",
"Tags",
"CreaionDate",
"Score",
"ViewCount"
],
"tags": [
"*"
]
} | Among the comments with scores between 5 to 10, what is the percentage of the users with 0 up votes? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T1.UpVotes = 0 THEN T1.Id END) AS REAL) * 100/ COUNT(DISTINCT T1.Id) AS per FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Score BETWEEN 5 AND 10",
"permission": "denied",
"query_columns": {
"users": [
"Id",
"UpVotes"
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For the school with the highest free meal rate in Alameda County, what are its characteristics including whether it's a charter school, what grades it serves, its SAT performance level, and how much its free meal rate deviates from the county average? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH CountyStats AS (\n SELECT \n f.`County Name`,\n f.`School Name`,\n f.`Free Meal Count (K-12)`,\n f.`Enrollment (K-12)`,\n CAST(f.`Free Meal Count (K-12)` AS REAL) / f.`Enrollment (K-12)` AS FreeRate,\n s.sname,\n s.AvgScrRead,\n s.AvgScrMa... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Please list the lowest three eligible free rates for students aged 5-17 in continuation schools. | Sorry, I cannot answer. | moderate | {
"gold_sql": "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",
"permission": "den... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For charter schools in Fresno County Office of Education, provide their location details, enrollment information, FRPM eligibility rates, SAT performance metrics, and rankings. Include the year each school opened and whether it's currently active or closed, categorizing schools by their FRPM percentage levels. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH CharterSchoolInfo AS (\n SELECT \n T1.CDSCode,\n T1.`School Name` AS CharterSchoolName,\n T1.`District Name`,\n T1.`Charter School Number`,\n T1.`Charter Funding Type`,\n T1.`Enrollment (K-12)` AS Enrollment,\n T1.`FRPM Count (K-12)` AS FRPMCount... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For the non-charter school with more than 100 students that has the highest number of FRPM-eligible K-12 students, provide its name, location details, unabbreviated mailing address, website, enrollment statistics, SAT performance metrics, and determine whether it performs unexpectedly well or poorly given its FRPM rate... | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolRanking AS (\n SELECT \n T1.CDSCode,\n T1.`School Name`,\n T1.`FRPM Count (K-12)`,\n T1.`Enrollment (K-12)`,\n T1.`Percent (%) Eligible FRPM (K-12)`,\n RANK() OVER (ORDER BY T1.`FRPM Count (K-12)` DESC) AS frpm_rank,\n RANK() OVER (ORDER BY... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Please list the phone numbers of the direct charter-funded schools that are opened after 2000/1/1. | Sorry, I cannot answer. | moderate | {
"gold_sql": "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'",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"OpenDate",
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What are the details of fully virtual schools that have an average SAT Math score above 400, including their SAT performance rankings, enrollment, and poverty levels, ordered by their total SAT scores? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH VirtualSchools AS (\n SELECT \n s.CDSCode,\n s.School,\n s.Virtual,\n s.Charter,\n s.City,\n CASE \n WHEN s.Virtual = 'F' THEN 'Fully Virtual'\n WHEN s.Virtual = 'P' THEN 'Partially Virtual'\n WHEN s.Virtual = 'N' THEN '... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For magnet schools with over 500 SAT test takers, provide a comprehensive performance analysis including their SAT scores, rankings, poverty levels, and performance categories, sorted by total average SAT scores. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolMetrics AS (\n SELECT \n s.CDSCode,\n s.School,\n s.Magnet,\n s.SOCType AS SchoolType,\n s.EdOpsName AS EducationalOption,\n sat.NumTstTakr,\n sat.AvgScrRead,\n sat.AvgScrMath,\n sat.AvgScrWrite,\n sat.NumGE1500,\n ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the phone number of the school that has the highest number of test takers with an SAT score of over 1500? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"satscores": [
"NumGE1500",
"cds"
],
"schools": [
"CDSCode",
"Phone"
]
},
"missing_columns... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For the top 10 schools with the highest number of students eligible for free or reduced price meals, provide detailed information including their location, type, FRPM statistics, and SAT performance metrics. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolsWithHighFRPM AS (\n SELECT \n f.CDSCode,\n f.`School Name`,\n f.`FRPM Count (K-12)`,\n f.`Enrollment (K-12)`,\n f.`Percent (%) Eligible FRPM (K-12)`,\n RANK() OVER (ORDER BY f.`FRPM Count (K-12)` DESC) as frpm_rank\n FROM frpm f\n WHERE f.`... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Among the schools with the average score in Math over 560 in the SAT test, how many schools are directly charter-funded? | Sorry, I cannot answer. | simple | {
"gold_sql": "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'",
"permission": "denied",
"query_columns": {
"satscores": [
"AvgScrMath",
"cds"
],
"frpm": [
"CD... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For the school with the highest average SAT Reading score among schools with more than 10 test takers, provide comprehensive details including its location, test scores across all sections, poverty indicators, enrollment, and charter status. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolRankings AS (\n SELECT \n T1.cds,\n T1.sname,\n T1.AvgScrRead,\n T1.AvgScrMath,\n T1.AvgScrWrite,\n T1.NumTstTakr,\n T1.NumGE1500,\n RANK() OVER (ORDER BY T1.AvgScrRead DESC) AS ReadingRank,\n RANK() OVER (ORDER BY T1.AvgScrMa... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For schools with total enrollment exceeding 500 students, show me their enrollment details, free meal eligibility rates, charter status, and SAT performance. Group them by county and categorize by FRPM levels (High: 75%+, Medium: 50-75%, Low: <50%). Only include schools where either the FRPM percentage is above 60% or ... | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH HighEnrollmentSchools AS (\n SELECT \n T2.CDSCode,\n T2.`School Name`,\n T2.`County Name`,\n T2.`Enrollment (K-12)` + T2.`Enrollment (Ages 5-17)` AS TotalEnrollment,\n T2.`Percent (%) Eligible FRPM (K-12)` * 100 AS FRPMPercentage,\n CASE \n W... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Among the schools with an SAT excellence rate over 30%, which school has the highest free meal eligibility rate in its county, and what are its details? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolExcellenceRates AS (\n SELECT \n T2.cds,\n T2.sname,\n T2.NumGE1500,\n T2.NumTstTakr,\n CAST(T2.NumGE1500 AS REAL) / T2.NumTstTakr AS excellence_rate,\n T1.`Free Meal Count (Ages 5-17)`,\n T1.`Enrollment (Ages 5-17)`,\n CAST(T1.`Free... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What are the top 3 schools ranked by SAT excellence rate, and for each school, provide their contact number, city, charter status, and poverty classification? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SAT_Rankings AS (\n SELECT \n T2.cds,\n T2.sname,\n T2.NumTstTakr,\n T2.NumGE1500,\n CAST(T2.NumGE1500 AS REAL) / T2.NumTstTakr AS excellence_rate,\n RANK() OVER (ORDER BY CAST(T2.NumGE1500 AS REAL) / T2.NumTstTakr DESC) AS rank\n FROM satscores AS T... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | 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. | Sorry, I cannot answer. | simple | {
"gold_sql": "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",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"NCESSchool"
],
"frpm": [
"CDSCode",
"Enrollment (Ages ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Which active district has the highest average score in Reading? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.District, AVG(T2.AvgScrRead) AS avg_read_scr FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T1.StatusType = 'Active' GROUP BY T1.District ORDER BY avg_read_scr DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"Di... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | How many schools in merged Alameda have number of test takers less than 100? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.CDSCode) FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T1.StatusType = 'Merged' AND T2.NumTstTakr < 100 AND T1.County = 'Alameda'",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"County",
"StatusType"
],
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Rank schools by their average score in Writing where the score is greater than 499, showing their charter numbers. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT CharterNum, AvgScrWrite, RANK() OVER (ORDER BY AvgScrWrite DESC) AS WritingScoreRank FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T2.AvgScrWrite > 499 AND CharterNum is not null",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What are the average SAT statistics and school characteristics for directly funded charter schools in Fresno County that have 250 or fewer test takers, including the breakdown by testing volume categories? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolStats AS (\n SELECT \n f.CDSCode,\n f.`School Name`,\n f.`County Name`,\n f.`Charter Funding Type`,\n s.NumTstTakr,\n s.AvgScrRead,\n s.AvgScrMath,\n s.AvgScrWrite,\n (s.AvgScrRead + s.AvgScrMath + s.AvgScrWrite) AS TotalAvgSc... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For the school with the highest average math SAT score among active schools with at least 10 test takers, provide its contact information, all SAT scores, charter status, enrollment, and percentage of students eligible for free or reduced price meals. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolRankings AS (\n SELECT \n T2.cds,\n T1.School,\n T1.Phone,\n T1.Website,\n T2.AvgScrMath,\n T2.AvgScrRead,\n T2.AvgScrWrite,\n (T2.AvgScrMath + T2.AvgScrRead + T2.AvgScrWrite) AS TotalScore,\n RANK() OVER (ORDER BY T2.AvgScrMa... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What are the key statistics for high schools in Amador County, including total number of schools, average enrollment, charter vs non-charter breakdown, average poverty rate, number of districts, SAT performance metrics, the largest school by enrollment, and how many schools have high poverty levels? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolInfo AS (\n SELECT \n s.CDSCode,\n s.County,\n s.School,\n s.District,\n f.`Low Grade`,\n f.`High Grade`,\n f.`Enrollment (K-12)` AS Enrollment,\n f.`Charter School (Y/N)` AS IsCharter,\n f.`FRPM Count (K-12)` AS FRPMCount,\n ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For Los Angeles schools with more than 500 free meals but less than 700 FRPM meals for K-12 students, what is the average percentage of students receiving free meals, how many are charter versus non-charter schools, what is their average SAT score, and how are they distributed across free meal categories? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolMealStats AS (\n SELECT \n f.CDSCode,\n f.`School Name`,\n f.`County Name`,\n f.`Free Meal Count (K-12)` AS FreeMeals,\n f.`FRPM Count (K-12)` AS TotalFRPM,\n f.`Enrollment (K-12)` AS Enrollment,\n ROUND(f.`Free Meal Count (K-12)` / f.`Enro... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Which school in Contra Costa has the highest number of test takers? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT sname FROM satscores WHERE cname = 'Contra Costa' AND sname IS NOT NULL ORDER BY NumTstTakr DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"satscores": [
"NumTstTakr",
"cname",
"sname"
]
},
"missing_columns": {
"satscores": [
"NumTstTakr",
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | List the names of schools with more than 30 difference in enrollements between K-12 and ages 5-17? Please also give the full street adress of the schools. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.School, T1.Street\nFROM schools AS T1\nINNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode\nWHERE T2.`Enrollment (K-12)` - T2.`Enrollment (Ages 5-17)` > 30;",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"School",
"Street"
],
"frpm": [
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Give the names of the schools with the percent eligible for free meals in K-12 is more than 0.1 and test takers whose test score is greater than or equal to 1500? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.`School Name` FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode WHERE CAST(T2.`Free Meal Count (K-12)` AS REAL) / T2.`Enrollment (K-12)` > 0.1 AND T1.NumGE1500 > 0",
"permission": "denied",
"query_columns": {
"satscores": [
"NumGE1500",
"cds"
],
"fr... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Name schools in Riverside which the average of average math score for SAT is grater than 400, what is the type of educational option that these school provides? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.sname, T2.`Educational Option Type` FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode WHERE T2.`District Name` LIKE 'Riverside%' GROUP BY T1.sname, T2.`Educational Option Type` HAVING CAST(SUM(T1.AvgScrMath) AS REAL) / COUNT(T1.cds) > 400",
"permission": "denied",
"query_c... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | State the names and full communication addresses of high schools in Monterey that offer more than 800 free or reduced-priced meals for ages 15-17. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.`School Name`, T2.Street, T2.City, T2.State, T2.Zip FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Monterey' AND T1.`FRPM Count (Ages 5-17)` > 800 AND T1.`School Type` = 'High Schools (Public)'",
"permission": "denied",
"query_columns": {
"schoo... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the average score in writing for the schools that were opened after 1991 or closed before 2000? List the school names along with the score. Also, list the communication number of the schools if there is any. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.School, T1.AvgScrWrite, T2.Phone FROM schools AS T2 LEFT JOIN satscores AS T1 ON T2.CDSCode = T1.cds WHERE strftime('%Y', T2.OpenDate) > '1991' OR strftime('%Y', T2.ClosedDate) < '2000'",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"ClosedDate",
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Consider the average difference between K-12 enrollment and 15-17 enrollment of schools that are locally funded, list the names and DOC type of schools which has a difference above this average. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T2.School, T2.DOC FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.FundingType = 'Locally funded' AND (T1.`Enrollment (K-12)` - T1.`Enrollment (Ages 5-17)`) > (SELECT AVG(T3.`Enrollment (K-12)` - T3.`Enrollment (Ages 5-17)`) FROM frpm AS T3 INNER JOIN schools AS T4 ON... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | When did the first-through-twelfth-grade school with the largest enrollment open? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.OpenDate FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode ORDER BY T1.`Enrollment (K-12)` DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"OpenDate"
],
"frpm": [
"CDSCode",
"Enrollment (K-12)"
]
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Which cities have the top 5 lowest enrollment number for students in grades 1 through 12? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.City FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode GROUP BY T2.City ORDER BY SUM(T1.`Enrollment (K-12)`) ASC LIMIT 5",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"City"
],
"frpm": [
"CDSCode",
"Enrollment (K... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For the 10th and 11th largest schools by K-12 enrollment, provide a comprehensive profile including their enrollment statistics, free meal eligibility rates, location details, school type, grade spans offered, and SAT performance metrics. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH EnrollmentRanked AS (\n SELECT \n f.CDSCode,\n f.`School Name`,\n f.`District Name`,\n f.`County Name`,\n f.`Enrollment (K-12)`,\n f.`Free Meal Count (K-12)`,\n CAST(f.`Free Meal Count (K-12)` AS REAL) / f.`Enrollment (K-12)` AS EligibleFreeRate,... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For the top 5 schools with the highest number of students eligible for free or reduced price meals in grades K-12 among schools with ownership code 66, what are their eligibility rates, SAT performance metrics, and how do they compare in terms of SAT participation and high scorer rates? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolEligibilityRanking AS (\n SELECT \n T1.CDSCode,\n T2.School,\n T2.County,\n T2.District,\n T2.SOCType,\n T1.`Enrollment (K-12)`,\n T1.`FRPM Count (K-12)`,\n CAST(T1.`FRPM Count (K-12)` AS REAL) / T1.`Enrollment (K-12)` AS Eligibility... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | If there are any, what are the websites address of the schools with a free meal count of 1,900-2,000 to students aged 5-17? Include the name of the school. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.Website, T1.`School Name` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`Free Meal Count (Ages 5-17)` BETWEEN 1900 AND 2000 AND T2.Website IS NOT NULL",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"Website"
],
"... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the free rate for students between the ages of 5 and 17 at the school run by Kacey Gibson? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(T2.`Free Meal Count (Ages 5-17)` AS REAL) / T2.`Enrollment (Ages 5-17)` FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.AdmFName1 = 'Kacey' AND T1.AdmLName1 = 'Gibson'",
"permission": "denied",
"query_columns": {
"schools": [
"AdmFName1",
"Ad... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the administrator's email address of the chartered school with the fewest students enrolled in grades 1 through 12? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.AdmEmail1 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`Charter School (Y/N)` = 1 ORDER BY T1.`Enrollment (K-12)` ASC, T1.CDSCode ASC LIMIT 1",
"permission": "denied",
"query_columns": {
"schools": [
"AdmEmail1",
"CDSCode"
],
"frpm":... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Under whose administration is the school with the highest number of students scoring 1500 or more on the SAT? Indicate their full names. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T2.AdmFName1, T2.AdmLName1, T2.AdmFName2, T2.AdmLName2, T2.AdmFName3, T2.AdmLName3 FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"satscores": [
"NumGE1500",
"cds"
],
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the complete address of the school with the lowest excellence rate? Indicate the Street, City, Zip and State. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.Street, T2.City, T2.State, T2.Zip\nFROM satscores AS T1\nINNER JOIN schools AS T2 ON T1.cds = T2.CDSCode\nORDER BY CAST(T1.NumGE1500 AS REAL) / T1.NumTstTakr ASC\nLIMIT 1;",
"permission": "denied",
"query_columns": {
"satscores": [
"NumGE1500",
"NumTstTakr",
"cds"
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What are the webpages for the Los Angeles County school that has between 2,000 and 3,000 test takers? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Website FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.NumTstTakr BETWEEN 2000 AND 3000 AND T2.County = 'Los Angeles'",
"permission": "denied",
"query_columns": {
"satscores": [
"NumTstTakr",
"cds"
],
"schools": [
"CDSCode",
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the average number of test takers from Fresno schools that opened between 1/1/1980 and 12/31/1980? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT AVG(T1.NumTstTakr) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE strftime('%Y', T2.OpenDate) = '1980' AND T2.County = 'Fresno'",
"permission": "denied",
"query_columns": {
"satscores": [
"NumTstTakr",
"cds"
],
"schools": [
"CDSCode",... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the telephone number for the school with the lowest average score in reading in Fresno Unified? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Fresno Unified' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1",
"permission": "denied",
"query_columns": {
"satscores": [
"AvgScrRead",
"cds"
],
"scho... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | List the names of virtual schools that are among the top 5 in their respective counties based on average reading scores. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT School FROM (SELECT T2.School,T1.AvgScrRead, RANK() OVER (PARTITION BY T2.County ORDER BY T1.AvgScrRead DESC) AS rnk FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.Virtual = 'F' ) ranked_schools WHERE rnk <= 5",
"permission": "denied",
"query_columns": {
"s... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the type of education offered in the school who scored the highest average in Math? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.EdOpsName FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrMath DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"satscores": [
"AvgScrMath",
"cds"
],
"schools": [
"CDSCode",
"EdOpsName"
]
},
"missi... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the average math score of the school with the lowest average score for all subjects, and in which county is it located? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.AvgScrMath, T2.County FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrMath IS NOT NULL AND T1.AvgScrRead IS NOT NULL AND T1.AvgScrWrite IS NOT NULL ORDER BY (T1.AvgScrMath + T1.AvgScrRead + T1.AvgScrWrite) / 3 ASC LIMIT 1",
"permission": "denied",
"quer... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the average writing score of the school who has the highest number of test takers whose total SAT sscores are greater or equal to 1500? Indicate the city to where the school is situated. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.AvgScrWrite, T2.City FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"satscores": [
"AvgScrWrite",
"NumGE1500",
"cds"
],
"schools": [
"CDSCode",
"... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For schools administered by Ricci Ulrich, provide a comprehensive performance analysis including their SAT scores in all three sections, total SAT score, rankings compared to other schools, FRPM eligibility rate, test participation rate, and how their writing scores compare to their district average. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolStats AS (\n SELECT \n s.CDSCode,\n s.School,\n s.AdmFName1,\n s.AdmLName1,\n sat.AvgScrWrite,\n sat.AvgScrRead,\n sat.AvgScrMath,\n sat.NumTstTakr,\n f.`Enrollment (K-12)`,\n f.`Percent (%) Eligible FRPM (K-12)` * 100 ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Which state special schools have the highest number of enrollees from grades 1 through 12? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.School FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.DOC = 31 ORDER BY T1.`Enrollment (K-12)` DESC, T2.CDSCode ASC LIMIT 1",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"DOC",
"School"
],
"frpm": [
"... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the monthly average number of schools that opened in Alameda County under the jurisdiction of the Elementary School District in 1980? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(COUNT(School) AS REAL) / 12 FROM schools WHERE DOC = 52 AND County = 'Alameda' AND strftime('%Y', OpenDate) = '1980'",
"permission": "denied",
"query_columns": {
"schools": [
"County",
"DOC",
"OpenDate",
"School"
]
},
"missing_columns": {
"schools... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the ratio of merged Unified School District schools to merged Elementary School District schools in Orange County? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN DOC = 54 THEN 1 ELSE 0 END) AS REAL) / NULLIF(SUM(CASE WHEN DOC = 52 THEN 1 ELSE 0 END),0) FROM schools WHERE StatusType = 'Merged' AND County = 'Orange'",
"permission": "denied",
"query_columns": {
"schools": [
"County",
"DOC",
"StatusType"
]
}... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Which different county has the most number of closed schools? Please provide the name of each school as well as the closure date. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT DISTINCT County, School, ClosedDate FROM schools WHERE County = ( SELECT County FROM schools WHERE StatusType = 'Closed' GROUP BY County ORDER BY COUNT(School) DESC LIMIT 1 ) AND StatusType = 'Closed' AND school IS NOT NULL",
"permission": "denied",
"query_columns": {
"schools": [
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the postal street address for the school with the 7th highest Math average? Indicate the school's name. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.MailStreet, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrMath DESC LIMIT 6, 1",
"permission": "denied",
"query_columns": {
"satscores": [
"AvgScrMath",
"cds"
],
"schools": [
"CDSCode",
"MailStreet",
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | In which mailing street address can you find the school that has the lowest average score in reading? Also give the school's name. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.MailStreet, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC, T1.cds DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"satscores": [
"AvgScrRead",
"cds"
],
"schools": ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Lakeport? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Lakeport' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500",
"permission": "denied",
"query_columns": {
"satscores": [
"AvgScrMath",
"AvgScrRead",
"AvgScr... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | How many test takers are there at the school/s whose mailing city address is in Fresno? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(T1.NumTstTakr) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Fresno'",
"permission": "denied",
"query_columns": {
"satscores": [
"NumTstTakr",
"cds"
],
"schools": [
"CDSCode",
"MailCity"
]
},
"missing... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Please specify all of the schools and their related mailing zip codes that are under Avetik Atoian's administration. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT School, MailZip FROM schools WHERE AdmFName1 = 'Avetik' AND AdmLName1 = 'Atoian'",
"permission": "denied",
"query_columns": {
"schools": [
"AdmFName1",
"AdmLName1",
"MailZip",
"School"
]
},
"missing_columns": {
"schools": [
"AdmFName1",
"Ad... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What are the ratios comparing various educational metrics between schools in Colusa County and Humboldt County in California, including total number of schools, charter schools, schools with high free meal eligibility rates, average SAT scores, total students receiving free or reduced-price meals, and total enrollment? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH ColusaSchools AS (\n SELECT \n s.CDSCode,\n s.School,\n s.County,\n s.Charter,\n f.`FRPM Count (K-12)`,\n f.`Enrollment (K-12)`,\n CASE \n WHEN f.`Percent (%) Eligible FRPM (K-12)` > 0.5 THEN 'High FRPM'\n ELSE 'Low FRPM'\n ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Of all the schools with a mailing state address in California, how many are active in San Joaquin city? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(CDSCode) FROM schools WHERE City = 'San Joaquin' AND MailState = 'CA' AND StatusType = 'Active'",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"City",
"MailState",
"StatusType"
]
},
"missing_columns": {
"schools": [
"C... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the phone number and extension number for the school that had the 333rd highest average writing score? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Phone, T2.Ext FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrWrite DESC LIMIT 332, 1",
"permission": "denied",
"query_columns": {
"satscores": [
"AvgScrWrite",
"cds"
],
"schools": [
"CDSCode",
"Ext",
"Phone"... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the phone number and extension number for the school with the zip code 95203-3704? Indicate the school's name. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT Phone, Ext, School FROM schools WHERE Zip = '95203-3704'",
"permission": "denied",
"query_columns": {
"schools": [
"Ext",
"Phone",
"School",
"Zip"
]
},
"missing_columns": {
"schools": [
"Ext",
"Phone",
"Zip"
]
},
"reason": "Mi... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the website for the schools under the administrations of Mike Larson and Dante Alvarez? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT Website FROM schools WHERE (AdmFName1 = 'Mike' AND AdmLName1 = 'Larson') OR (AdmFName1 = 'Dante' AND AdmLName1 = 'Alvarez')",
"permission": "denied",
"query_columns": {
"schools": [
"AdmFName1",
"AdmLName1",
"Website"
]
},
"missing_columns": {
"schools": [
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For all partially virtual charter schools in San Joaquin County, provide a comprehensive analysis including their enrollment statistics, poverty levels based on free and reduced-price meal eligibility, SAT performance metrics, and rank them by enrollment size within the county. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH CharterSchoolStats AS (\n SELECT \n s.CDSCode,\n s.Website,\n s.School,\n s.County,\n s.Charter,\n s.Virtual,\n s.CharterNum,\n s.FundingType,\n f.`Enrollment (K-12)` AS TotalEnrollment,\n f.`FRPM Count (K-12)` AS FRPMCount,\... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For charter schools owned by Elementary School Districts in Hickman, what are their enrollment sizes, free and reduced price meal eligibility rates, SAT performance metrics, and how do they rank by size within the city? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH CharterSchoolStats AS (\n SELECT \n s.CDSCode,\n s.School,\n s.City,\n s.DOC,\n s.Charter,\n f.`Charter School Number`,\n f.`Charter Funding Type`,\n f.`Enrollment (K-12)` AS EnrollmentK12,\n f.`FRPM Count (K-12)` AS FRPMCount,\n ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For non-chartered schools in Los Angeles County with a free meal rate below 0.18%, provide details about each school including their enrollment, free meal count, exact free meal percentage, their rank within the county, and statistics about how many schools in the county fall into this low free meal category. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH SchoolStats AS (\n SELECT \n s.CDSCode,\n s.School,\n s.County,\n s.District,\n s.Charter,\n f.`Free Meal Count (K-12)`,\n f.`Enrollment (K-12)`,\n CAST(f.`Free Meal Count (K-12)` AS REAL) * 100 / f.`Enrollment (K-12)` AS FreePercent,\n ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | In chartered schools with charter number 00D2, what are the names of all the administrators? Include the name of the school and the city to which it belongs | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT AdmFName1, AdmLName1, School, City FROM schools WHERE Charter = 1 AND CharterNum = '00D2'",
"permission": "denied",
"query_columns": {
"schools": [
"AdmFName1",
"AdmLName1",
"Charter",
"CharterNum",
"City",
"School"
]
},
"missing_columns": {
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the total number of schools with a mailing city in Hickman belonging to the charter number 00D4? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Hickman'",
"permission": "denied",
"query_columns": {
"schools": [
"CharterNum",
"MailCity"
]
},
"missing_columns": {
"schools": [
"CharterNum",
"MailCity"
]
},
"reason": "Missing ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the ratio in percentage of Santa Clara County charter schools that are locally funded compared to charter schools with all other types of funding? | SELECT CAST(SUM(CASE WHEN FundingType = 'Locally funded' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN FundingType != 'Locally funded' THEN 1 ELSE 0 END) FROM schools WHERE County = 'Santa Clara' AND Charter = 1 | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN FundingType = 'Locally funded' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN FundingType != 'Locally funded' THEN 1 ELSE 0 END) FROM schools WHERE County = 'Santa Clara' AND Charter = 1",
"permission": "allowed",
"query_columns": {
"schools": [
"Charter",
... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For directly funded schools that opened in Stanislaus County between 2000 and 2005, provide detailed information about each school including their enrollment, free or reduced price meal eligibility rates, SAT scores, and how they compare to the county average. Also rank them by their FRPM percentage and SAT performance... | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH DirectlyFundedSchools AS (\n SELECT \n s.CDSCode,\n s.School,\n s.County,\n s.OpenDate,\n s.FundingType,\n strftime('%Y', s.OpenDate) AS OpenYear,\n f.`Charter School (Y/N)` AS IsCharter,\n f.`Enrollment (K-12)` AS Enrollment,\n f.`... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the total amount of Community College District closure in 1989 in the city of San Francisco? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(School) FROM schools WHERE strftime('%Y', ClosedDate) = '1989' AND City = 'San Francisco' AND DOCType = 'Community College District'",
"permission": "denied",
"query_columns": {
"schools": [
"City",
"ClosedDate",
"DOCType",
"School"
]
},
"missing_col... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | Which county reported the most number of school closure in the 1980s with school wonership code belonging to Youth Authority Facilities (CEA)? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT County\nFROM (\n SELECT County, COUNT(CDSCode) as closure_count,\n DENSE_RANK() OVER (ORDER BY COUNT(CDSCode) DESC) as rank_num\n FROM schools \n WHERE strftime('%Y', ClosedDate) BETWEEN '1980' AND '1989' \n AND StatusType = 'Closed' \n AND SOC = '11'\n GROUP BY C... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | For State Special Schools with a School Ownership Code starting with 3, show me their NCES district ID, school name, charter status, current operational status, opening date, enrollment, poverty classification, SAT scores by subject, overall average SAT score, and enrollment ranking. Sort the results by enrollment from... | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH StateSpecialSchools AS (\n SELECT \n s.CDSCode,\n s.NCESDist,\n s.School,\n s.DOCType,\n s.SOC,\n CASE \n WHEN s.Charter = 1 THEN 'Charter'\n ELSE 'Non-Charter'\n END AS SchoolType,\n s.OpenDate,\n s.ClosedDate... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | How many active and closed District Community Day Schools are there in the county of Alpine? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(School) FROM schools WHERE (StatusType = 'Closed' OR StatusType = 'Active') AND SOC = 69 AND County = 'Alpine'",
"permission": "denied",
"query_columns": {
"schools": [
"County",
"SOC",
"School",
"StatusType"
]
},
"missing_columns": {
"schools": ... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the district code for the School that does not offer a magnet program in the city of Fresno? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T1.`District Code` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.City = 'Fresno' AND T2.Magnet = 0",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"City",
"Magnet"
],
"frpm": [
"CDSCode",
"... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | How many students from the ages of 5 to 17 are enrolled at the State Special School school in Fremont for the 2014-2015 academic year? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.`Enrollment (Ages 5-17)` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.EdOpsCode = 'SSS' AND T2.City = 'Fremont' AND T1.`Academic Year` BETWEEN 2014 AND 2015",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"City",
"... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the free or reduced price meal count for ages 5 to 17 in the Youth Authority School with a mailing street address of PO Box 1040? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.`FRPM Count (Ages 5-17)` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.MailStreet = 'PO Box 1040' AND T2.SOCType = 'Youth Authority Facilities'",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"MailStreet",
"SOCType"... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the lowest grade for the District Special Education Consortia School with National Center for Educational Statistics school district identification number of 0613360? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT MIN(T1.`Low Grade`) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.NCESDist = '0613360' AND T2.EdOpsCode = 'SPECON'",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"EdOpsCode",
"NCESDist"
],
"frpm": [
"CDS... |
california_schools | ##Instruction:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Database: california_schools
Total Tables: 3
Total Columns: 89
Table Schemas:
Table: frpm (29 columns)
------------------------
• CDSCode (integer): CDSCode
• Academic Year (integer): Academic Year
• County Code (integer): ... | NutritionProgramAnalyst | {
"frpm": [
"CDSCode",
"Academic Year",
"County Name",
"District Name",
"School Name",
"School Type",
"Enrollment (K-12)",
"Free Meal Count (K-12)",
"Percent (%) Eligible Free (K-12)",
"FRPM Count (K-12)",
"Percent (%) Eligible FRPM (K-12)",
"Enrollment (Ages 5-17)",
... | What is the educational level name for the schools with Breakfast Provision 2 in county code 37? Indicate the name of the school. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.EILName, T2.School FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`NSLP Provision Status` = 'Breakfast Provision 2' AND T1.`County Code` = 37",
"permission": "denied",
"query_columns": {
"schools": [
"CDSCode",
"EILName",
"School"
],... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.