Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    CastError
Message:      Couldn't cast
bucket_name: string
scope_name: string
nl: string
sqlpp: string
prev_nl2sqlpp: string
verification_result: struct<rows: list<item: string>, row_count: int64, error: string, projects_rows: bool>
  child 0, rows: list<item: string>
      child 0, item: string
  child 1, row_count: int64
  child 2, error: string
  child 3, projects_rows: bool
disposition: string
verification_reason: string
original_nl: string
injected_values: list<item: string>
  child 0, item: string
to
{'bucket_name': Value('string'), 'scope_name': Value('string'), 'nl': Value('string'), 'sqlpp': Value('string'), 'prev_nl2sqlpp': Json(decode=True), 'verification_result': {'rows': List(Json(decode=True)), 'row_count': Value('int64'), 'error': Value('string'), 'projects_rows': Value('bool')}, 'disposition': Value('string'), 'verification_reason': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
                  for key, table in generator:
                                    ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              bucket_name: string
              scope_name: string
              nl: string
              sqlpp: string
              prev_nl2sqlpp: string
              verification_result: struct<rows: list<item: string>, row_count: int64, error: string, projects_rows: bool>
                child 0, rows: list<item: string>
                    child 0, item: string
                child 1, row_count: int64
                child 2, error: string
                child 3, projects_rows: bool
              disposition: string
              verification_reason: string
              original_nl: string
              injected_values: list<item: string>
                child 0, item: string
              to
              {'bucket_name': Value('string'), 'scope_name': Value('string'), 'nl': Value('string'), 'sqlpp': Value('string'), 'prev_nl2sqlpp': Json(decode=True), 'verification_result': {'rows': List(Json(decode=True)), 'row_count': Value('int64'), 'error': Value('string'), 'projects_rows': Value('bool')}, 'disposition': Value('string'), 'verification_reason': Value('string')}
              because column names don't match
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

bucket_name
string
scope_name
string
nl
string
sqlpp
string
prev_nl2sqlpp
unknown
verification_result
dict
disposition
string
verification_reason
string
spider_training_bucket
department_management
What are the names of the states where at least 3 heads were born?
SELECT head.born_state FROM spider_training_bucket.department_management.head GROUP BY head.born_state HAVING COUNT(*) >= 3
null
{ "rows": [ { "born_state": "California" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query groups heads by born_state and returns states with at least three heads. The result contains the state name California, which matches the requested output.
spider_training_bucket
department_management
What is the average number of employees of the departments whose rank is between 10 and 15?
SELECT AVG(department.num_employees) FROM spider_training_bucket.department_management.department WHERE department.ranking BETWEEN 10 AND 15
null
{ "rows": [ { "$1": 105468.1666666667 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query calculates the average of num_employees for departments with rankings between 10 and 15, and the single returned value plausibly represents that requested average.
spider_training_bucket
department_management
What are the maximum and minimum budget of the departments?
SELECT MAX(department.budget_in_billions), MIN(department.budget_in_billions) FROM spider_training_bucket.department_management.department
null
{ "rows": [ { "$1": 543.2, "$2": 6.2 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns both the maximum and minimum department budget values, 543.2 and 6.2, matching the requested aggregations. The two-value result shape is appropriate.
spider_training_bucket
department_management
How many heads of the departments are older than 56 ?
SELECT COUNT(*) FROM spider_training_bucket.department_management.head WHERE head.age > 56
null
{ "rows": [ { "$1": 5 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query counts department heads whose age is greater than 56 and returns a single count value of 5, which directly answers how many there are.
spider_training_bucket
department_management
List the creation year, name and budget of each department.
SELECT department.creation, department.name, department.budget_in_billions FROM spider_training_bucket.department_management.department
null
{ "rows": [ { "budget_in_billions": 21.5, "creation": "1977", "name": "Energy" }, { "budget_in_billions": 11.1, "creation": "1789", "name": "Treasury" }, { "budget_in_billions": 73.2, "creation": "1989", "name": "Veterans Affairs" }, { ...
success
The results provide each department's creation year, name, and budget, with 15 department rows matching the requested entity and fields.
spider_training_bucket
department_management
What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?
SELECT DISTINCT T1.creation FROM spider_training_bucket.department_management.department AS T1 JOIN spider_training_bucket.department_management.management AS T2 ON T1.department_id = T2.department_id JOIN spider_training_bucket.department_management.head AS T3 ON T2.head_id = T3.head_id WHERE T3.born_state = 'Alabama'
null
{ "rows": [ { "creation": "1903" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query selects distinct department creation years for departments linked through management to a head born in Alabama, and the single returned value represents a distinct creation year. The result shape and value are consistent with the question.
spider_training_bucket
department_management
List the name, born state and age of the heads of departments ordered by age.
SELECT head.name, head.born_state, head.age FROM spider_training_bucket.department_management.head ORDER BY head.age
null
{ "rows": [ { "age": 43, "born_state": "Connecticut", "name": "Pádraig Harrington" }, { "age": 50, "born_state": "Florida", "name": "Stewart Cink" }, { "age": 52, "born_state": "California", "name": "Dudley Hart" }, { "age": 53, ...
success
The results include the requested name, born state, and age fields for department heads, and the rows are ordered by age in ascending order.
spider_training_bucket
department_management
What are the names of the heads who are born outside the California state?
SELECT head.name FROM spider_training_bucket.department_management.head WHERE head.born_state <> 'California'
null
{ "rows": [ { "name": "K. J. Choi" }, { "name": "Stewart Cink" }, { "name": "Pádraig Harrington" }, { "name": "Jeff Maggert" }, { "name": "Franklin Langham" } ], "row_count": 6, "error": null, "projects_rows": true }
success
The query returns the names of department heads whose born_state is not California, matching the question's requested entities and filter. The returned rows have the appropriate shape and no visible contradiction.
spider_training_bucket
department_management
In which year were most departments established?
SELECT department.creation FROM spider_training_bucket.department_management.department GROUP BY department.creation ORDER BY COUNT(*) DESC LIMIT 1
null
{ "rows": [ { "creation": "1789" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query groups departments by their creation year, orders the groups by frequency, and returns the most common year. The result provides the year 1789, which directly answers the question.
spider_training_bucket
department_management
How many acting statuses are there?
SELECT COUNT(DISTINCT management.temporary_acting) FROM spider_training_bucket.department_management.management
null
{ "rows": [ { "$1": 2 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query counts the distinct values of the management.temporary_acting field and returns a single scalar result of 2, which plausibly answers how many acting statuses there are.
spider_training_bucket
department_management
What are the distinct ages of the heads who are acting?
SELECT DISTINCT T1.age FROM spider_training_bucket.department_management.management AS T2 JOIN spider_training_bucket.department_management.head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes'
null
{ "rows": [ { "age": 53 }, { "age": 52 }, { "age": 69 } ], "row_count": 3, "error": null, "projects_rows": true }
success
The query returns distinct age values for heads associated with departments marked as temporarily acting, matching the requested distinct ages of acting heads. The three scalar age results are the correct shape and plausible values.
spider_training_bucket
department_management
List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.
SELECT T3.born_state FROM spider_training_bucket.department_management.department AS T1 JOIN spider_training_bucket.department_management.management AS T2 ON T1.department_id = T2.department_id JOIN spider_training_bucket.department_management.head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT S...
null
{ "rows": [ { "born_state": "California" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query finds the intersection of the birth states of the heads (secretaries) of the Treasury and Homeland Security departments, and the single returned state, California, plausibly answers the question.
spider_training_bucket
department_management
Which department has more than 1 head at a time? List the id, name and the number of heads.
SELECT T1.department_id, T1.name, COUNT(*) FROM spider_training_bucket.department_management.management AS T2 JOIN spider_training_bucket.department_management.department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id, T1.name HAVING COUNT(*) > 1
null
{ "rows": [ { "$1": 2, "department_id": 2, "name": "Treasury" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The result lists a department id (2), name (Treasury), and a count of heads (2), matching the request for departments with more than one head and the requested fields.
spider_training_bucket
department_management
Which head's name has the substring 'Ha'? List the id and name.
SELECT head.head_id, head.name FROM spider_training_bucket.department_management.head WHERE head.name LIKE '%Ha%'
null
{ "rows": [ { "head_id": 9, "name": "Pádraig Harrington" }, { "head_id": 4, "name": "Dudley Hart" } ], "row_count": 2, "error": null, "projects_rows": true }
success
The results provide the requested head identifiers and names, and both names visibly contain the substring “Ha” (in “Harrington” and “Hart”).
spider_training_bucket
department_management
How many departments are led by heads who are not mentioned?
SELECT COUNT(*) FROM spider_training_bucket.department_management.department WHERE NOT (department.department_id IN (SELECT RAW management.department_id FROM spider_training_bucket.department_management.management))
null
{ "rows": [ { "$1": 11 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query counts departments whose IDs do not appear in the management records, corresponding to departments led by heads who are not mentioned. A single-row count of 11 appropriately answers the question.
spider_training_bucket
farm
How many farms are there?
SELECT COUNT(*) FROM spider_training_bucket.farm.farm
null
{ "rows": [ { "$1": 8 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns a single count value of 8 for the farm table, which directly answers how many farms there are.
spider_training_bucket
farm
Count the number of farms.
SELECT COUNT(*) FROM spider_training_bucket.farm.farm
null
{ "rows": [ { "$1": 8 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query counts all records in the farm collection and returns a single count value of 8, which directly answers the question of how many farms there are.
spider_training_bucket
farm
What is the total horses record for each farm, sorted ascending?
SELECT farm.total_horses FROM spider_training_bucket.farm.farm ORDER BY farm.total_horses ASC
null
{ "rows": [ { "total_horses": 2546.9 }, { "total_horses": 2604.8 }, { "total_horses": 3658.9 }, { "total_horses": 4781.3 }, { "total_horses": 5056.5 } ], "row_count": 8, "error": null, "projects_rows": true }
success
The query returns the total_horses value for each farm, ordered in ascending order. The visible numeric values and result shape are consistent with the requested output; the farm identifier is not required to satisfy the question.
spider_training_bucket
farm
List the total number of horses on farms in ascending order.
SELECT farm.total_horses FROM spider_training_bucket.farm.farm ORDER BY farm.total_horses ASC
null
{ "rows": [ { "total_horses": 2546.9 }, { "total_horses": 2604.8 }, { "total_horses": 3658.9 }, { "total_horses": 4781.3 }, { "total_horses": 5056.5 } ], "row_count": 8, "error": null, "projects_rows": true }
success
The query returns the total_horses field for all farms and orders the values in ascending order, matching the request for the total number of horses on farms.
spider_training_bucket
farm
What are the hosts of competitions whose theme is not "Aliens"?
SELECT farm_competition.hosts FROM spider_training_bucket.farm.farm_competition WHERE farm_competition.theme <> 'Aliens'
null
{ "rows": [ { "hosts": "Shaggy and Coco Lee" }, { "hosts": "Alicia Keys" }, { "hosts": "Vanness Wu and Michelle Branch" }, { "hosts": "Miley Cyrus Jared Leto and Karen Mok" }, { "hosts": "Leehom Wang and Kelly Rowland" } ], "row_count": 5, "e...
success
The query returns the hosts field for competitions whose theme is not 'Aliens'. The five returned documents contain host names, matching the requested information; the filtering condition is not visible in the output but is correctly applied in the query.
spider_training_bucket
farm
What are the themes of farm competitions sorted by year in ascending order?
SELECT farm_competition.theme FROM spider_training_bucket.farm.farm_competition ORDER BY farm_competition.year ASC
null
{ "rows": [ { "theme": "Aliens" }, { "theme": "MTV Cube" }, { "theme": "Valentine's Day" }, { "theme": "MTV Asia Aid" }, { "theme": "Codehunters" } ], "row_count": 6, "error": null, "projects_rows": true }
success
The query returns the farm competition themes and orders the rows by year in ascending order. The six theme values shown are consistent with the requested output.
spider_training_bucket
farm
Return the hosts of competitions for which the theme is not Aliens?
SELECT farm_competition.hosts FROM spider_training_bucket.farm.farm_competition WHERE farm_competition.theme <> 'Aliens'
null
{ "rows": [ { "hosts": "Alicia Keys" }, { "hosts": "Vanness Wu and Michelle Branch" }, { "hosts": "Miley Cyrus Jared Leto and Karen Mok" }, { "hosts": "Leehom Wang and Kelly Rowland" }, { "hosts": "Shaggy and Coco Lee" } ], "row_count": 5, "e...
success
The query returns the hosts field for competitions whose theme is not 'Aliens', and the five returned documents contain host names as requested. The theme filter cannot be independently verified from the output, but nothing visible contradicts the question.
spider_training_bucket
farm
What is the average number of working horses of farms with more than 5000 total number of horses?
SELECT AVG(farm.working_horses) FROM spider_training_bucket.farm.farm WHERE farm.total_horses > 5000
null
{ "rows": [ { "$1": 3977.75 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query computes the average working_horses for farms where total_horses exceeds 5000, and the single returned value represents that requested average.
spider_training_bucket
department_management
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?
SELECT T1.name, T1.num_employees FROM spider_training_bucket.department_management.department AS T1 JOIN spider_training_bucket.department_management.management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'
null
{ "rows": [ { "name": "Treasury", "num_employees": 115897 }, { "name": "Homeland Security", "num_employees": 208000 }, { "name": "Treasury", "num_employees": 115897 } ], "row_count": 3, "error": null, "projects_rows": true }
success
The returned rows contain the requested department names and employee counts, and the duplicate Treasury row could plausibly reflect multiple matching management records. Nothing visible contradicts the question.
spider_training_bucket
farm
Return the themes of farm competitions, sorted by year ascending.
SELECT farm_competition.theme FROM spider_training_bucket.farm.farm_competition ORDER BY farm_competition.year ASC
null
{ "rows": [ { "theme": "Aliens" }, { "theme": "MTV Cube" }, { "theme": "Valentine's Day" }, { "theme": "MTV Asia Aid" }, { "theme": "Codehunters" } ], "row_count": 6, "error": null, "projects_rows": true }
success
The results return the farm competition themes and sort the records by year in ascending order, matching the question.
spider_training_bucket
farm
What are the maximum and minimum number of cows across all farms.
SELECT MAX(farm.cows), MIN(farm.cows) FROM spider_training_bucket.farm.farm
null
{ "rows": [ { "$1": 3987, "$2": 2407.2 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns one row containing the maximum and minimum cow counts across farms. The values are plausibly ordered as MAX = 3987 and MIN = 2407.2, and the differing field names do not affect the result’s alignment with the question.
spider_training_bucket
farm
Return the maximum and minimum number of cows across all farms.
SELECT MAX(farm.cows), MIN(farm.cows) FROM spider_training_bucket.farm.farm
null
{ "rows": [ { "$1": 3987, "$2": 2407.2 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The result contains two aggregate values corresponding to the maximum and minimum cow counts across farms, matching the requested output shape and intent.
spider_training_bucket
farm
How many different statuses do cities have?
SELECT COUNT(DISTINCT city.status) FROM spider_training_bucket.farm.city
null
{ "rows": [ { "$1": 2 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query counts the distinct values of city.status, and the returned single value of 2 plausibly answers how many different statuses cities have.
spider_training_bucket
farm
Give the average number of working horses on farms with more than 5000 total horses.
SELECT AVG(farm.working_horses) FROM spider_training_bucket.farm.farm WHERE farm.total_horses > 5000
null
{ "rows": [ { "$1": 3977.75 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query computes the average of working_horses for farms filtered to total_horses greater than 5000, and the single returned value (3977.75) has the correct aggregate shape and is consistent with the question.
spider_training_bucket
farm
Count the number of different statuses.
SELECT COUNT(DISTINCT city.status) FROM spider_training_bucket.farm.city
null
{ "rows": [ { "$1": 2 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query counts distinct values of the status field, and the returned single value of 2 plausibly represents the number of different statuses.
spider_training_bucket
farm
List the official name and status of the city with the largest population.
SELECT city.official_name, city.status FROM spider_training_bucket.farm.city ORDER BY city.population DESC LIMIT 1
null
{ "rows": [ { "official_name": "Grand Falls/Grand-Sault", "status": "Town" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query orders cities by population descending and returns the top city’s official name and status. The single returned row contains both requested fields, so it plausibly answers the question.
spider_training_bucket
farm
What are the official names of cities, ordered descending by population?
SELECT city.official_name FROM spider_training_bucket.farm.city ORDER BY city.population DESC
null
{ "rows": [ { "official_name": "Grand Falls/Grand-Sault" }, { "official_name": "Perth-Andover" }, { "official_name": "Plaster Rock" }, { "official_name": "Drummond" }, { "official_name": "Aroostook" } ], "row_count": 5, "error": null, "proj...
success
The results contain official city names and are ordered by population descending as requested. The returned shape and values are consistent with the question.
spider_training_bucket
farm
List official names of cities in descending order of population.
SELECT city.official_name FROM spider_training_bucket.farm.city ORDER BY city.population DESC
null
{ "rows": [ { "official_name": "Grand Falls/Grand-Sault" }, { "official_name": "Perth-Andover" }, { "official_name": "Plaster Rock" }, { "official_name": "Drummond" }, { "official_name": "Aroostook" } ], "row_count": 5, "error": null, "proj...
success
The results return city official names and the query orders them by population in descending order, matching the question's requested fields and ordering.
spider_training_bucket
farm
Give the years and official names of the cities of each competition.
SELECT T2.year, T1.official_name FROM spider_training_bucket.farm.city AS T1 JOIN spider_training_bucket.farm.farm_competition AS T2 ON T1.city_id = T2.host_city_id
null
{ "rows": [ { "official_name": "Drummond", "year": 2004 }, { "official_name": "Plaster Rock", "year": 2005 }, { "official_name": "Aroostook", "year": 2003 }, { "official_name": "Aroostook", "year": 2002 }, { "official_name": "Gr...
success
The results provide a year and the official name of a city for each competition, matching the requested fields and one row per competition.
spider_training_bucket
farm
Show the official names of the cities that have hosted more than one competition.
SELECT T1.official_name FROM spider_training_bucket.farm.city AS T1 JOIN spider_training_bucket.farm.farm_competition AS T2 ON T1.city_id = T2.host_city_id GROUP BY T2.host_city_id, T1.official_name HAVING COUNT(*) > 1
null
{ "rows": [ { "official_name": "Aroostook" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query groups competitions by host city and filters to cities with more than one competition, returning the official name of the qualifying city. The single returned value, "Aroostook," has the requested field and plausible result shape.
spider_training_bucket
farm
What is the official name and status of the city with the most residents?
SELECT city.official_name, city.status FROM spider_training_bucket.farm.city ORDER BY city.population DESC LIMIT 1
null
{ "rows": [ { "official_name": "Grand Falls/Grand-Sault", "status": "Town" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query selects the official name and status of the city with the highest population, returning one plausible city record with both requested fields.
spider_training_bucket
farm
Show the years and the official names of the host cities of competitions.
SELECT T2.year, T1.official_name FROM spider_training_bucket.farm.city AS T1 JOIN spider_training_bucket.farm.farm_competition AS T2 ON T1.city_id = T2.host_city_id
null
{ "rows": [ { "official_name": "Plaster Rock", "year": 2005 }, { "official_name": "Aroostook", "year": 2002 }, { "official_name": "Perth-Andover", "year": 2006 }, { "official_name": "Drummond", "year": 2004 }, { "official_name":...
success
The results provide a year and an official name for each competition's host city, matching the requested fields and relationship. The values are plausible city names and years, and the row-oriented shape is appropriate.
spider_training_bucket
farm
Show the status of the city that has hosted the greatest number of competitions.
SELECT T1.status FROM spider_training_bucket.farm.city AS T1 JOIN spider_training_bucket.farm.farm_competition AS T2 ON T1.city_id = T2.host_city_id GROUP BY T2.host_city_id, T1.status ORDER BY COUNT(*) DESC LIMIT 1
null
{ "rows": [ { "status": "Village" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query identifies the city hosting the greatest number of competitions and returns its status. The single returned value, "Village," is a plausible city status and matches the requested output.
spider_training_bucket
farm
Please show the themes of competitions with host cities having populations larger than 1000.
SELECT T2.theme FROM spider_training_bucket.farm.city AS T1 JOIN spider_training_bucket.farm.farm_competition AS T2 ON T1.city_id = T2.host_city_id WHERE T1.population > 1000
null
{ "rows": [ { "theme": "MTV Asia Aid" }, { "theme": "Codehunters" }, { "theme": "Carnival M is back!" } ], "row_count": 3, "error": null, "projects_rows": true }
success
The query returns the requested competition themes, joined to cities with populations over 1000. The three theme values are consistent with the question and no required aggregation or additional fields are missing.
spider_training_bucket
farm
What are the official names of cities that have hosted more than one competition?
SELECT T1.official_name FROM spider_training_bucket.farm.city AS T1 JOIN spider_training_bucket.farm.farm_competition AS T2 ON T1.city_id = T2.host_city_id GROUP BY T2.host_city_id, T1.official_name HAVING COUNT(*) > 1
null
{ "rows": [ { "official_name": "Aroostook" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query groups competitions by hosting city, filters to cities with more than one competition, and returns their official names. The single returned city, Aroostook, matches the requested output shape and intent.
spider_training_bucket
farm
Please show the different statuses of cities and the average population of cities with each status.
SELECT city.status, AVG(city.population) FROM spider_training_bucket.farm.city GROUP BY city.status
null
{ "rows": [ { "$1": 1009.75, "status": "Village" }, { "$1": 5706, "status": "Town" } ], "row_count": 2, "error": null, "projects_rows": true }
success
The results list each city status and the corresponding average population, with one row for Village and one for Town. This matches the requested grouping and aggregation.
spider_training_bucket
farm
What are the themes of competitions that have corresponding host cities with more than 1000 residents?
SELECT T2.theme FROM spider_training_bucket.farm.city AS T1 JOIN spider_training_bucket.farm.farm_competition AS T2 ON T1.city_id = T2.host_city_id WHERE T1.population > 1000
null
{ "rows": [ { "theme": "MTV Asia Aid" }, { "theme": "Codehunters" }, { "theme": "Carnival M is back!" } ], "row_count": 3, "error": null, "projects_rows": true }
success
The query returns the theme field for competitions joined to host cities whose population exceeds 1000, matching the requested output and filtering intent. The three returned theme values are consistent with the question.
spider_training_bucket
farm
What is the status of the city that has hosted the most competitions?
SELECT T1.status FROM spider_training_bucket.farm.city AS T1 JOIN spider_training_bucket.farm.farm_competition AS T2 ON T1.city_id = T2.host_city_id GROUP BY T2.host_city_id, T1.status ORDER BY COUNT(*) DESC LIMIT 1
null
{ "rows": [ { "status": "Village" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query identifies the city hosting the most competitions by counting competitions per host city and returns that city's status. The single returned value, "Village," matches the requested information.
spider_training_bucket
farm
What are the statuses and average populations of each city?
SELECT city.status, AVG(city.population) FROM spider_training_bucket.farm.city GROUP BY city.status
null
{ "rows": [ { "$1": 1009.75, "status": "Village" }, { "$1": 5706, "status": "Town" } ], "row_count": 2, "error": null, "projects_rows": true }
success
The results provide each city status (Village and Town) along with the corresponding average population values, matching the requested grouping and aggregation. The aggregate field name '$1' is acceptable despite being generic.
spider_training_bucket
farm
Please show the different statuses, ordered by the number of cities that have each.
SELECT city.status FROM spider_training_bucket.farm.city GROUP BY city.status ORDER BY COUNT(*) ASC
null
{ "rows": [ { "status": "Town" }, { "status": "Village" } ], "row_count": 2, "error": null, "projects_rows": true }
success
The returned documents list the distinct city statuses, and the query orders those groups by the number of cities in ascending order. Although the counts are not included, they were not explicitly requested, so the results plausibly satisfy the question.
spider_training_bucket
farm
List the most common type of Status across cities.
SELECT city.status FROM spider_training_bucket.farm.city GROUP BY city.status ORDER BY COUNT(*) DESC LIMIT 1
null
{ "rows": [ { "status": "Village" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The result returns the status value with the highest frequency across city records, which directly answers the question: Village is the most common status type.
spider_training_bucket
farm
What are the official names of cities that have population over 1500 or less than 500?
SELECT city.official_name FROM spider_training_bucket.farm.city WHERE city.population > 1500 OR city.population < 500
null
{ "rows": [ { "official_name": "Aroostook" }, { "official_name": "Grand Falls/Grand-Sault" }, { "official_name": "Perth-Andover" } ], "row_count": 3, "error": null, "projects_rows": true }
success
The query selects official city names and filters for populations over 1500 or under 500, matching the question. The three returned documents have the requested field and plausible city-name values; population is not required in the output.
spider_training_bucket
farm
Find the official names of cities with population bigger than 1500 or smaller than 500.
SELECT city.official_name FROM spider_training_bucket.farm.city WHERE city.population > 1500 OR city.population < 500
null
{ "rows": [ { "official_name": "Aroostook" }, { "official_name": "Grand Falls/Grand-Sault" }, { "official_name": "Perth-Andover" } ], "row_count": 3, "error": null, "projects_rows": true }
success
The results contain city official names, matching the requested output, and the query applies the specified population condition. The population values are not shown, but nothing visible contradicts the question.
spider_training_bucket
farm
Return the different statuses of cities, ascending by frequency.
SELECT city.status FROM spider_training_bucket.farm.city GROUP BY city.status ORDER BY COUNT(*) ASC
null
{ "rows": [ { "status": "Town" }, { "status": "Village" } ], "row_count": 2, "error": null, "projects_rows": true }
success
The results list distinct city statuses, and the query orders those groups by their ascending frequency. The frequencies themselves were not requested as output columns, so their omission does not prevent the results from answering the question.
spider_training_bucket
farm
What is the most common status across all cities?
SELECT city.status FROM spider_training_bucket.farm.city GROUP BY city.status ORDER BY COUNT(*) DESC LIMIT 1
null
{ "rows": [ { "status": "Village" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query groups city records by status, orders the statuses by frequency, and returns the most common one. The returned value, "Village," plausibly answers the question.
spider_training_bucket
farm
Show the census ranking of cities whose status are not "Village".
SELECT city.census_ranking FROM spider_training_bucket.farm.city WHERE city.status <> 'Village'
null
{ "rows": [ { "census_ranking": "636 of 5008" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns the requested census_ranking field for cities filtered to exclude status 'Village'. The single returned ranking value is consistent with the question, and the excluded status is not required in the output.
spider_training_bucket
farm
Show the status shared by cities with population bigger than 1500 and smaller than 500.
SELECT city.status FROM spider_training_bucket.farm.city WHERE city.population > 1500 INTERSECT SELECT city.status FROM spider_training_bucket.farm.city WHERE city.population < 500
null
{ "rows": [ { "status": "Village" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns the status values shared between cities with populations over 1500 and under 500, and the single returned status, "Village," matches the requested output.
spider_training_bucket
farm
What are the census rankings of cities that do not have the status "Village"?
SELECT city.census_ranking FROM spider_training_bucket.farm.city WHERE city.status <> 'Village'
null
{ "rows": [ { "census_ranking": "636 of 5008" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns the requested census_ranking field for cities matching the status filter, and the single ranking value is consistent with the question. The city status is not included in the output, but that is not required to answer the question.
spider_training_bucket
student_assessment
which course has most number of registered students?
SELECT T1.course_name FROM spider_training_bucket.student_assessment.Courses AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Registrations AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id, T1.course_name ORDER BY COUNT(*) DESC LIMIT 1
null
{ "rows": [ { "course_name": "statistics" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query counts registrations per course, orders courses by the count descending, and returns the course name with the highest count. The single returned value, "statistics," plausibly answers which course has the most registered students.
spider_training_bucket
student_assessment
what are the first name and last name of all candidates?
SELECT T2.first_name, T2.last_name FROM spider_training_bucket.student_assessment.Candidates AS T1 JOIN spider_training_bucket.student_assessment.People AS T2 ON T1.candidate_id = T2.person_id
null
{ "rows": [ { "first_name": "Verna", "last_name": "Grant" }, { "first_name": "Nova", "last_name": "Feest" }, { "first_name": "Dariana", "last_name": "Bednar" }, { "first_name": "Mayra", "last_name": "Hartmann" }, { "first_name":...
success
The query returns first_name and last_name for all records identified as candidates, matching the requested information and row shape.
spider_training_bucket
student_assessment
What is the name of the course with the most registered students?
SELECT T1.course_name FROM spider_training_bucket.student_assessment.Courses AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Registrations AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id, T1.course_name ORDER BY COUNT(*) DESC LIMIT 1
null
{ "rows": [ { "course_name": "statistics" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query groups courses by name and counts registrations, returning the name of the course with the highest registration count. The single returned value, "statistics," appropriately answers the question.
spider_training_bucket
student_assessment
what is id of students who registered some courses but the least number of courses in these students?
SELECT Student_Course_Registrations.student_id FROM spider_training_bucket.student_assessment.Student_Course_Registrations GROUP BY Student_Course_Registrations.student_id ORDER BY COUNT(*) LIMIT 1
null
{ "rows": [ { "student_id": 161 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query groups registrations by student, orders students by the number of registered courses, and returns the student ID with the fewest courses. The returned student_id is consistent with the question.
spider_training_bucket
student_assessment
List the id of students who never attends courses?
SELECT Students.student_id FROM spider_training_bucket.student_assessment.Students WHERE NOT (Students.student_id IN (SELECT RAW Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance))
null
{ "rows": [ { "student_id": 131 }, { "student_id": 181 } ], "row_count": 2, "error": null, "projects_rows": true }
success
The query returns student IDs for students whose IDs do not appear in the course attendance records, which directly matches the request for students who never attend courses. The two returned IDs have the correct entity and output shape.
spider_training_bucket
student_assessment
What are the first and last names of all the candidates?
SELECT T2.first_name, T2.last_name FROM spider_training_bucket.student_assessment.Candidates AS T1 JOIN spider_training_bucket.student_assessment.People AS T2 ON T1.candidate_id = T2.person_id
null
{ "rows": [ { "first_name": "Verna", "last_name": "Grant" }, { "first_name": "Virginie", "last_name": "Hartmann" }, { "first_name": "Nova", "last_name": "Feest" }, { "first_name": "Mayra", "last_name": "Hartmann" }, { "first_nam...
success
The query returns first_name and last_name for all candidate records via a join between Candidates and People, matching the request for candidates' first and last names. The sample values and row shape are appropriate.
spider_training_bucket
student_assessment
List the id of students who attended some courses?
SELECT Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance
null
{ "rows": [ { "student_id": 121 }, { "student_id": 161 }, { "student_id": 141 }, { "student_id": 171 }, { "student_id": 151 } ], "row_count": 8, "error": null, "projects_rows": true }
success
The query returns student_id values from the Student_Course_Attendance table, which plausibly lists students who attended courses. The returned shape and fields directly match the request for student IDs.
spider_training_bucket
student_assessment
What are the ids of every student who has never attended a course?
SELECT Students.student_id FROM spider_training_bucket.student_assessment.Students WHERE NOT (Students.student_id IN (SELECT RAW Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance))
null
{ "rows": [ { "student_id": 181 }, { "student_id": 131 } ], "row_count": 2, "error": null, "projects_rows": true }
success
The query returns student IDs from the Students table whose IDs do not appear in the course attendance table, matching the request for every student who has never attended a course. The two returned student_id values have the correct entity and shape.
spider_training_bucket
student_assessment
What are the ids of all students for courses and what are the names of those courses?
SELECT T1.student_id, T2.course_name FROM spider_training_bucket.student_assessment.Student_Course_Registrations AS T1 JOIN spider_training_bucket.student_assessment.Courses AS T2 ON T1.course_id = T2.course_id
null
{ "rows": [ { "course_name": "data structure", "student_id": 151 }, { "course_name": "English", "student_id": 161 }, { "course_name": "English", "student_id": 141 }, { "course_name": "French", "student_id": 131 }, { "course_name...
success
The query returns student IDs paired with course names by joining student course registrations to courses, which directly matches the request. The visible rows have the appropriate fields and values, and the 9-row result plausibly represents all such associations.
spider_training_bucket
student_assessment
What is detail of the student who most recently registered course?
SELECT T2.student_details FROM spider_training_bucket.student_assessment.Student_Course_Registrations AS T1 JOIN spider_training_bucket.student_assessment.Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1
null
{ "rows": [ { "student_details": "Martin" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query selects the student details associated with the registration having the latest registration date and returns a single value, "Martin," which plausibly answers the question.
spider_training_bucket
student_assessment
What are the ids of all students who have attended at least one course?
SELECT Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance
null
{ "rows": [ { "student_id": 151 }, { "student_id": 121 }, { "student_id": 141 }, { "student_id": 141 }, { "student_id": 161 } ], "row_count": 8, "error": null, "projects_rows": true }
success
The results contain student_id values from the student course attendance table, which plausibly identifies students who attended at least one course. Duplicate IDs may reflect multiple attendance records and do not contradict the question.
spider_training_bucket
student_assessment
How many students attend course English?
SELECT COUNT(*) FROM spider_training_bucket.student_assessment.Courses AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = 'English'
null
{ "rows": [ { "$1": 0 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns a count of students associated with the English course, and a single numeric result is the appropriate shape for the question. A value of 0 is a plausible answer, with no visible contradiction.
spider_training_bucket
student_assessment
What details do we have on the students who registered for courses most recently?
SELECT T2.student_details FROM spider_training_bucket.student_assessment.Student_Course_Registrations AS T1 JOIN spider_training_bucket.student_assessment.Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1
null
{ "rows": [ { "student_details": "Martin" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns the student details for the single most recently registered student, and the result identifies that student as Martin. This plausibly answers what details are available about the most recent registrant.
spider_training_bucket
student_assessment
How many courses do the student whose id is 171 attend?
SELECT COUNT(*) FROM spider_training_bucket.student_assessment.Courses AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171
null
{ "rows": [ { "$1": 0 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query counts courses associated with student_id 171, and the single returned aggregate value of 0 plausibly answers how many courses that student attends.
spider_training_bucket
student_assessment
What are the ids of the students who registered for some courses but had the least number of courses for all students?
SELECT Student_Course_Registrations.student_id FROM spider_training_bucket.student_assessment.Student_Course_Registrations GROUP BY Student_Course_Registrations.student_id ORDER BY COUNT(*) LIMIT 1
null
{ "rows": [ { "student_id": 131 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The result contains a student_id for a student with registered courses, and the grouping and ordering by registration count plausibly identifies a student with the fewest courses. Although ties are not handled and only one ID is returned, the visible result is consistent with the question if the minimum is unique.
spider_training_bucket
student_assessment
Find id of the candidate whose email is stanley.monahan@example.org?
SELECT T2.candidate_id FROM spider_training_bucket.student_assessment.People AS T1 JOIN spider_training_bucket.student_assessment.Candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = 'stanley.monahan@example.org'
null
{ "rows": [ { "candidate_id": 151 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns a candidate_id value of 151 for the candidate associated with the specified email address, directly answering the request for the candidate's ID.
spider_training_bucket
student_assessment
What is the id of the candidate whose email is stanley.monahan@example.org?
SELECT T2.candidate_id FROM spider_training_bucket.student_assessment.People AS T1 JOIN spider_training_bucket.student_assessment.Candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = 'stanley.monahan@example.org'
null
{ "rows": [ { "candidate_id": 151 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns a single candidate_id, 151, for the candidate associated with the specified email address, which directly answers the question.
spider_training_bucket
student_assessment
Find id of the candidate who most recently accessed the course?
SELECT Candidate_Assessments.candidate_id FROM spider_training_bucket.student_assessment.Candidate_Assessments ORDER BY Candidate_Assessments.assessment_date DESC LIMIT 1
null
{ "rows": [ { "candidate_id": 121 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns a single candidate_id, 121, selected from the most recent assessment/access date, which plausibly answers the request for the candidate who most recently accessed the course.
spider_training_bucket
student_assessment
How many courses does the student with id 171 actually attend?
SELECT COUNT(*) FROM spider_training_bucket.student_assessment.Courses AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171
null
{ "rows": [ { "$1": 0 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query counts courses associated with student 171, and the single returned aggregate value of 0 plausibly answers how many courses the student attends.
spider_training_bucket
student_assessment
What is the id of the candidate who most recently accessed the course?
SELECT Candidate_Assessments.candidate_id FROM spider_training_bucket.student_assessment.Candidate_Assessments ORDER BY Candidate_Assessments.assessment_date DESC LIMIT 1
null
{ "rows": [ { "candidate_id": 121 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns a single candidate_id, 121, selected from the most recent assessment date, which plausibly identifies the candidate who most recently accessed the course.
spider_training_bucket
student_assessment
What is detail of the student who registered the most number of courses?
SELECT T1.student_details FROM spider_training_bucket.student_assessment.Students AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id, T1.student_details ORDER BY COUNT(*) DESC LIMIT 1
null
{ "rows": [ { "student_details": "Nikhil" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query identifies the student with the highest number of course registrations and returns that student's details. The result contains the student detail "Nikhil," which plausibly answers the question.
spider_training_bucket
student_assessment
For every student who is registered for some course, how many courses are they registered for?
SELECT T1.student_id, COUNT(*) FROM spider_training_bucket.student_assessment.Students AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id
null
{ "rows": [ { "$1": 1, "student_id": 171 }, { "$1": 1, "student_id": 131 }, { "$1": 1, "student_id": 111 }, { "$1": 2, "student_id": 121 }, { "$1": 1, "student_id": 151 } ], "row_count": 7, "error": null, "proj...
success
The query groups registered course records by student_id and counts the registrations, returning one row per student with the number of courses registered. The shown fields and values are consistent with the question.
spider_training_bucket
student_assessment
List the id of students who registered some courses and the number of their registered courses?
SELECT T1.student_id, COUNT(*) FROM spider_training_bucket.student_assessment.Students AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id
null
{ "rows": [ { "$1": 1, "student_id": 111 }, { "$1": 2, "student_id": 141 }, { "$1": 1, "student_id": 161 }, { "$1": 1, "student_id": 151 }, { "$1": 1, "student_id": 171 } ], "row_count": 7, "error": null, "proj...
success
The results include each student_id along with a count of their registered course records, matching the requested student IDs and number of registered courses.
spider_training_bucket
student_assessment
How many registed students do each course have? List course name and the number of their registered students?
SELECT T3.course_name, COUNT(*) FROM spider_training_bucket.student_assessment.Students AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id JOIN spider_training_bucket.student_assessment.Courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_...
null
{ "rows": [ { "$1": 4, "course_name": "statistics" }, { "$1": 2, "course_name": "English" }, { "$1": 2, "course_name": "French" }, { "$1": 1, "course_name": "data structure" } ], "row_count": 4, "error": null, "projects_rows": tru...
success
The results list each course name alongside a count of registered students, which directly matches the requested aggregation. The count field is returned as "$1" due to the SQL++ expression but still clearly represents the requested number.
spider_training_bucket
student_assessment
What are the details of the student who registered for the most number of courses?
SELECT T1.student_details FROM spider_training_bucket.student_assessment.Students AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id, T1.student_details ORDER BY COUNT(*) DESC LIMIT 1
null
{ "rows": [ { "student_details": "Martin" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query identifies the student with the highest number of course registrations and returns that student's details. The returned value, "Martin," is therefore consistent with the question.
spider_training_bucket
student_assessment
Find id of candidates whose assessment code is "Pass"?
SELECT Candidate_Assessments.candidate_id FROM spider_training_bucket.student_assessment.Candidate_Assessments WHERE Candidate_Assessments.asessment_outcome_code = 'Pass'
null
{ "rows": [ { "candidate_id": 151 }, { "candidate_id": 121 }, { "candidate_id": 111 }, { "candidate_id": 141 } ], "row_count": 4, "error": null, "projects_rows": true }
success
The query selects candidate_id values filtered by an assessment outcome code of 'Pass', and the returned documents contain four candidate IDs, which directly answers the question.
spider_training_bucket
student_assessment
What are the ids of the candidates that have an outcome code of Pass?
SELECT Candidate_Assessments.candidate_id FROM spider_training_bucket.student_assessment.Candidate_Assessments WHERE Candidate_Assessments.asessment_outcome_code = 'Pass'
null
{ "rows": [ { "candidate_id": 121 }, { "candidate_id": 141 }, { "candidate_id": 151 }, { "candidate_id": 111 } ], "row_count": 4, "error": null, "projects_rows": true }
success
The query selects candidate_id values from candidate assessments filtered to an outcome code of 'Pass', and the returned documents contain four candidate IDs. This directly answers the question.
spider_training_bucket
student_assessment
What are the id of students who registered course 301?
SELECT Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance WHERE Student_Course_Attendance.course_id = 301
null
{ "rows": [ { "student_id": 111 }, { "student_id": 121 }, { "student_id": 141 }, { "student_id": 171 } ], "row_count": 4, "error": null, "projects_rows": true }
success
The query returns student_id values for students associated with course_id 301, matching the request for the IDs of students who registered course 301. The four returned rows have the appropriate field and shape.
spider_training_bucket
student_assessment
What are the ids of the students who registered for course 301?
SELECT Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance WHERE Student_Course_Attendance.course_id = 301
null
{ "rows": [ { "student_id": 111 }, { "student_id": 141 }, { "student_id": 171 }, { "student_id": 121 } ], "row_count": 4, "error": null, "projects_rows": true }
success
The query returns student_id values for records where course_id is 301, matching the request for the IDs of students registered for course 301. The four returned IDs are appropriately shaped and relevant.
spider_training_bucket
student_assessment
What are the cell phone numbers of the candidates that received an assessment code of "Fail"?
SELECT T3.cell_mobile_number FROM spider_training_bucket.student_assessment.Candidates AS T1 JOIN spider_training_bucket.student_assessment.Candidate_Assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN spider_training_bucket.student_assessment.People AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_ou...
null
{ "rows": [ { "cell_mobile_number": "(262)347-9364x516" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns a cell mobile number for a candidate filtered by an assessment outcome code of 'Fail'. The single returned value has the appropriate phone-number format and matches the requested field, with no visible inconsistency.
spider_training_bucket
student_assessment
How many students are attending English courses?
SELECT COUNT(*) FROM spider_training_bucket.student_assessment.Courses AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = 'English'
null
{ "rows": [ { "$1": 0 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The result is a single aggregated count, which directly provides the number of attendance records for English courses. A value of 0 is a plausible answer, and nothing visible contradicts the question's intent.
spider_training_bucket
student_assessment
What is the id of the student who most recently registered course 301?
SELECT Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance WHERE Student_Course_Attendance.course_id = 301 ORDER BY Student_Course_Attendance.date_of_attendance DESC LIMIT 1
null
{ "rows": [ { "student_id": 171 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query selects the student_id for course 301, orders attendance/registration records by date descending, and returns the most recent one. The single returned value, 171, plausibly answers the question.
spider_training_bucket
student_assessment
Find the cell mobile number of the candidates whose assessment code is "Fail"?
SELECT T3.cell_mobile_number FROM spider_training_bucket.student_assessment.Candidates AS T1 JOIN spider_training_bucket.student_assessment.Candidate_Assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN spider_training_bucket.student_assessment.People AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_ou...
null
{ "rows": [ { "cell_mobile_number": "(262)347-9364x516" } ], "row_count": 1, "error": null, "projects_rows": true }
success
The query returns a cell mobile number for a candidate filtered by assessment outcome code 'Fail'. The single returned value has the appropriate phone-number format and matches the requested field and result shape.
spider_training_bucket
student_assessment
Find distinct cities of addresses of people?
SELECT DISTINCT T1.city FROM spider_training_bucket.student_assessment.Addresses AS T1 JOIN spider_training_bucket.student_assessment.People_Addresses AS T2 ON T1.address_id = T2.address_id
null
{ "rows": [ { "city": "O'Connellview" }, { "city": "Terencetown" }, { "city": "New Alta" }, { "city": "Lake Devon" }, { "city": "South Naomibury" } ], "row_count": 8, "error": null, "projects_rows": true }
success
The query returns distinct city values from addresses linked to people, matching the request for distinct cities of people's addresses. The one-column result shape and visible city names are appropriate.
spider_training_bucket
student_assessment
Find distinct cities of address of students?
SELECT DISTINCT T1.city FROM spider_training_bucket.student_assessment.Addresses AS T1 JOIN spider_training_bucket.student_assessment.People_Addresses AS T2 ON T1.address_id = T2.address_id JOIN spider_training_bucket.student_assessment.Students AS T3 ON T2.person_id = T3.student_id
null
{ "rows": [ { "city": "Linnealand" }, { "city": "South Minnie" }, { "city": "Lake Devon" }, { "city": "O'Connellview" }, { "city": "East Tavaresburgh" } ], "row_count": 8, "error": null, "projects_rows": true }
success
The query returns distinct city values from addresses associated with students, matching the request for distinct cities of student addresses. The result shape and sample values are appropriate.
spider_training_bucket
student_assessment
What are the different cities where students live?
SELECT DISTINCT T1.city FROM spider_training_bucket.student_assessment.Addresses AS T1 JOIN spider_training_bucket.student_assessment.People_Addresses AS T2 ON T1.address_id = T2.address_id JOIN spider_training_bucket.student_assessment.Students AS T3 ON T2.person_id = T3.student_id
null
{ "rows": [ { "city": "Terencetown" }, { "city": "Linnealand" }, { "city": "South Naomibury" }, { "city": "East Tavaresburgh" }, { "city": "South Minnie" } ], "row_count": 8, "error": null, "projects_rows": true }
success
The query returns distinct city names associated with students through the address and relationship tables. The document shape and values directly answer which cities students live in.
spider_training_bucket
student_assessment
What are the different cities where people live?
SELECT DISTINCT T1.city FROM spider_training_bucket.student_assessment.Addresses AS T1 JOIN spider_training_bucket.student_assessment.People_Addresses AS T2 ON T1.address_id = T2.address_id
null
{ "rows": [ { "city": "Linnealand" }, { "city": "East Tavaresburgh" }, { "city": "South Minnie" }, { "city": "New Alta" }, { "city": "O'Connellview" } ], "row_count": 8, "error": null, "projects_rows": true }
success
The query returns a distinct list of city values from addresses associated with people, which directly answers where people live. The result shape and visible city names are consistent with the question.
spider_training_bucket
student_assessment
List the first names of people in alphabetical order?
SELECT People.first_name FROM spider_training_bucket.student_assessment.People ORDER BY People.first_name
null
{ "rows": [ { "first_name": "Dariana" }, { "first_name": "Hoyt" }, { "first_name": "Lizeth" }, { "first_name": "Mayra" }, { "first_name": "Nova" } ], "row_count": 8, "error": null, "projects_rows": true }
success
The query returns people’s first names in ascending alphabetical order, matching the requested output and ordering.
spider_training_bucket
student_assessment
What are the ids of the students who registered for course 301 most recently?
SELECT Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance WHERE Student_Course_Attendance.course_id = 301 ORDER BY Student_Course_Attendance.date_of_attendance DESC LIMIT 1
null
{ "rows": [ { "student_id": 171 } ], "row_count": 1, "error": null, "projects_rows": true }
success
The result returns a student_id for a student associated with course 301, ordered by the most recent attendance date and limited to the latest record. The single returned ID, 171, plausibly answers which student registered most recently.
spider_training_bucket
student_assessment
What are the first names of the people in alphabetical order?
SELECT People.first_name FROM spider_training_bucket.student_assessment.People ORDER BY People.first_name
null
{ "rows": [ { "first_name": "Dariana" }, { "first_name": "Hoyt" }, { "first_name": "Lizeth" }, { "first_name": "Mayra" }, { "first_name": "Nova" } ], "row_count": 8, "error": null, "projects_rows": true }
success
The results contain people’s first names and are ordered alphabetically ascending, matching the question’s request. The visible rows are consistent with the stated query and intent.
spider_training_bucket
student_assessment
What are the id of students who registered courses or attended courses?
SELECT Student_Course_Registrations.student_id FROM spider_training_bucket.student_assessment.Student_Course_Registrations UNION SELECT Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance
null
{ "rows": [ { "student_id": 151 }, { "student_id": 111 }, { "student_id": 171 }, { "student_id": 131 }, { "student_id": 161 } ], "row_count": 7, "error": null, "projects_rows": true }
success
The query returns student_id values from the union of course registration and course attendance records, directly matching the requested IDs of students who registered for or attended courses. The returned shape and values are consistent with the question.
spider_training_bucket
student_assessment
What are all info of students who registered courses but not attended courses?
SELECT * FROM spider_training_bucket.student_assessment.Student_Course_Registrations WHERE NOT (Student_Course_Registrations.student_id IN (SELECT RAW Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance))
null
{ "rows": [ { "Student_Course_Registrations": { "__collection_name__": "Student_Course_Registrations", "__scope_name__": "student_assessment", "course_id": "303", "registration_date": "2008-11-05 10:35:13", "student_id": 131 } } ], "row_count": 1, "err...
success
The result contains a student course registration record with student_id, course_id, and registration_date, which plausibly represents a student who registered for a course and, according to the query's exclusion condition, has no attendance record. The returned shape and fields provide the requested registration infor...
spider_training_bucket
student_assessment
What are the ids of the students who either registered or attended a course?
SELECT Student_Course_Registrations.student_id FROM spider_training_bucket.student_assessment.Student_Course_Registrations UNION SELECT Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance
null
{ "rows": [ { "student_id": 151 }, { "student_id": 121 }, { "student_id": 111 }, { "student_id": 161 }, { "student_id": 141 } ], "row_count": 7, "error": null, "projects_rows": true }
success
The query returns student_id values from the union of students who registered for or attended a course, matching the requested entities and inclusive condition. The seven-row result shape is appropriate for listing the IDs.
spider_training_bucket
student_assessment
What are the ids of the courses that are registered or attended by the student whose id is 121?
SELECT Student_Course_Registrations.course_id FROM spider_training_bucket.student_assessment.Student_Course_Registrations WHERE Student_Course_Registrations.student_id = 121 UNION SELECT Student_Course_Attendance.course_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance WHERE Student_Course_Att...
null
{ "rows": [ { "course_id": 301 }, { "course_id": "303" }, { "course_id": 303 }, { "course_id": "301" } ], "row_count": 4, "error": null, "projects_rows": true }
success
The results contain course_id values for the student’s registrations or attendance, matching the requested course IDs. The duplicate-looking values differ by type (numeric versus string), but the returned fields and values are still relevant to the question.
spider_training_bucket
student_assessment
Find the id of courses which are registered or attended by student whose id is 121?
SELECT Student_Course_Registrations.course_id FROM spider_training_bucket.student_assessment.Student_Course_Registrations WHERE Student_Course_Registrations.student_id = 121 UNION SELECT Student_Course_Attendance.course_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance WHERE Student_Course_Att...
null
{ "rows": [ { "course_id": "303" }, { "course_id": "301" }, { "course_id": 303 }, { "course_id": 301 } ], "row_count": 4, "error": null, "projects_rows": true }
success
The results provide course_id values for student 121 from registrations and attendance. The duplicate entries and mixed string/number representations do not make the returned data irrelevant or inconsistent with the question.
spider_training_bucket
student_assessment
List the id of students who registered course statistics in the order of registration date.
SELECT T2.student_id FROM spider_training_bucket.student_assessment.Courses AS T1 JOIN spider_training_bucket.student_assessment.Student_Course_Registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = 'statistics' ORDER BY T2.registration_date
null
{ "rows": [ { "student_id": 121 }, { "student_id": 111 }, { "student_id": 171 }, { "student_id": 141 } ], "row_count": 4, "error": null, "projects_rows": true }
success
The query returns student IDs for students registered in the course named “statistics,” ordered by registration date. The four returned documents contain the requested student_id values in a plausible ordered list.
spider_training_bucket
student_assessment
What are all details of the students who registered but did not attend any course?
SELECT * FROM spider_training_bucket.student_assessment.Student_Course_Registrations WHERE NOT (Student_Course_Registrations.student_id IN (SELECT RAW Student_Course_Attendance.student_id FROM spider_training_bucket.student_assessment.Student_Course_Attendance))
null
{ "rows": [ { "Student_Course_Registrations": { "__collection_name__": "Student_Course_Registrations", "__scope_name__": "student_assessment", "course_id": "303", "registration_date": "2008-11-05 10:35:13", "student_id": 131 } } ], "row_count": 1, "err...
success
The returned document contains registration details for a student, and the query filters for students whose IDs do not appear in the attendance records. The fields and values are consistent with a student who registered but did not attend any course.
End of preview.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

v5.8.1 / verified

Seven JSONL files. Every file has a single consistent key-set, except the two noted below.

Schema

Field bird_minidev (500) cold_start (1,049) cold_start_with_feedback (1,149) feedback (836) paraphrased (24,348) train (21,753) train_with_improved_nl (21,753)
bucket_name ✓ ✓ ✓ ✓ ✓ ✓ ✓
scope_name ✓ ✓ ✓ ✓ ✓ ✓ ✓
nl ✓ ✓ ✓ ✓ ✓ ✓ ✓
sqlpp — ✓ ✓ ✓ ✓ ✓ ✓
sql ✓ — — — — — —
question_id ✓ — — — — — —
difficulty ✓ — — — — — —
thinking — ✓ ✓ ✓ — — —
thinking_style — — 100 ✓ — — —
prev_nl2sqlpp — — 100 ✓ — ✓ ✓
training_set_source — — — — ✓ — —
metadata — — — — ✓ — —
verification_result — — — — — ✓ ✓
verification_reason — — — — — ✓ ✓
disposition — — — — — ✓ ✓
original_nl — — — — — — 756
injected_values — — — — — — 756

A number instead of a ✓ means the field is present on only that many rows. nl and sqlpp are never empty. bucket_name is nullable (1,712 nulls in train).

Field notes

  • verification_result — object, always the same four keys: rows, row_count, error, projects_rows.
  • verification_reason — free text. Two fixed strings cover non-SELECT cases: non-projecting statement executed successfully (572) and DDL target already exists (idempotent success) (304); the rest are model-written justifications.
  • disposition — success on all 21,753 rows in both train files. No failures were kept.
  • prev_nl2sqlpp — prior turn's attempt; null on most rows (3,687 non-null of 21,753 in train).
  • metadata (paraphrased only) — {paraphrase_style, original_nl}.
  • injected_values — list of the literals spelled out in the rewritten nl.

File relationships

cold_start.jsonl (1,049)
    -- + 100 feedback-style rows --> cold_start_with_feedback.jsonl (1,149)

train.jsonl (21,753)
    -- 756 rows swapped from ../misc/improved_nl.jsonl --> train_with_improved_nl.jsonl (21,753)

cold_start_with_feedback.jsonl is cold_start.jsonl unchanged plus 100 rows that additionally carry prev_nl2sqlpp and thinking_style.

train_with_improved_nl.jsonl matches on original_nl → nl. The improved rows restate the question with concrete injected values spelled out (e.g. an explicit "YYYY-MM-DD" format string instead of "year-month-day"), keeping the same sqlpp and verification fields. They retain original_nl and injected_values — the only schema drift in the file; the other 20,997 rows are identical to train.jsonl. Drop those two fields if the consumer needs a uniform key-set.

Distributions

  • train buckets — spider_training_bucket 6,966 · bird_training_bucket 5,850 · training_bucket 4,491 · kaggle_bucket 2,299 · null 1,712 · travel-sample 435. 275 distinct (bucket, scope) pairs.
  • paraphrased.training_set_source — synthetic 10,019 · bird 7,971 · null 3,284 · scraped 3,074.
  • paraphrased.metadata.paraphrase_style — verbose 4,968 · caveman 4,860 · ambiguous 4,858 · concise 4,851 · split 4,811.
  • feedback.thinking_style — moderate 290 · concise 274 · exploratory 272. The 100 feedback rows in cold_start_with_feedback split exploratory 38 · concise 31 · moderate 31.
  • bird_minidev.difficulty — moderate 250 · simple 148 · challenging 102. All 500 rows sit in bird_eval_bucket.

Also here

bird_minidev.jsonl (500 rows) is the same shape as the one under rl_training/eval. train_without_cold_start.jsonl is gone — train.jsonl has the same 21,753 rows and still carries the three verification fields that were stripped from feedback.jsonl.

Downloads last month
26