Datasets:
db_id stringclasses 140
values | parent_question stringlengths 24 224 ⌀ | question stringlengths 16 224 | prefix_qpl stringlengths 0 2.75k | op stringclasses 9
values | qpl_line stringlengths 38 281 | cot stringclasses 1
value |
|---|---|---|---|---|---|---|
department_management | How many heads of the departments are older than 56 ? | List 1 for each head of the departments that is older than 56. | Scan | #1 = Scan Table [ head ] Predicate [ age > 56.0 ] Output [ age ] | ||
department_management | null | How many heads of the departments are older than 56 ? | #1 = Scan Table [ head ] Predicate [ age > 56.0 ] Output [ age ] ; -- List 1 for each head of the departments that is older than 56. | Aggregate | #2 = Aggregate [ #1 ] Output [ countstar AS Count_Star ] | |
department_management | List the name, born state and age of the heads of departments ordered by age. | List the name, born state and age of the heads of departments. | Scan | #1 = Scan Table [ head ] Output [ name , born_state , age ] | ||
department_management | null | List the name, born state and age of the heads of departments ordered by age. | #1 = Scan Table [ head ] Output [ name , born_state , age ] ; -- List the name, born state and age of the heads of departments. | Sort | #2 = Sort [ #1 ] OrderBy [ age ASC ] Output [ name , born_state , age ] | |
department_management | null | List the creation year, name and budget of each department. | Scan | #1 = Scan Table [ department ] Output [ Budget_in_Billions , Creation , Name ] | ||
department_management | What are the maximum and minimum budget of the departments? | What are the budgets of the departments? | Scan | #1 = Scan Table [ department ] Output [ Budget_in_Billions ] | ||
department_management | null | What are the maximum and minimum budget of the departments? | #1 = Scan Table [ department ] Output [ Budget_in_Billions ] ; -- What are the budgets of the departments? | Aggregate | #2 = Aggregate [ #1 ] Output [ MAX(Budget_in_Billions) AS Max_Budget_in_Billions , MIN(Budget_in_Billions) AS Min_Budget_in_Billions ] | |
department_management | What is the average number of employees of the departments whose rank is between 10 and 15? | What are the numbers of employees of the departments whose rank is between 10 and 15? | Scan | #1 = Scan Table [ department ] Predicate [ Ranking >= 10 AND Ranking <= 15 ] Output [ Num_Employees , Ranking ] | ||
department_management | null | What is the average number of employees of the departments whose rank is between 10 and 15? | #1 = Scan Table [ department ] Predicate [ Ranking >= 10 AND Ranking <= 15 ] Output [ Num_Employees , Ranking ] ; -- What are the numbers of employees of the departments whose rank is between 10 and 15? | Aggregate | #2 = Aggregate [ #1 ] Output [ AVG(Num_Employees) AS Avg_Num_Employees ] | |
department_management | null | What are the names of the heads who are born outside the California state? | Scan | #1 = Scan Table [ head ] Predicate [ born_state <> 'California' ] Output [ name , born_state ] | ||
department_management | What are the ids of the departments managed by a secretary born in state 'Alabama'? | What are the ids of secretaries that were born in state 'Alabama'? | Scan | #1 = Scan Table [ head ] Predicate [ born_state = 'Alabama' ] Output [ head_ID , born_state ] | ||
department_management | What are the ids of the departments managed by a secretary born in state 'Alabama'? | What are the secretary ids and department ids of all management? | Scan | #2 = Scan Table [ management ] Output [ head_ID , department_ID ] | ||
department_management | What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'? | What are the ids of the departments managed by a secretary born in state 'Alabama'? | #1 = Scan Table [ head ] Predicate [ born_state = 'Alabama' ] Output [ head_ID , born_state ] ; -- What are the ids of secretaries that were born in state 'Alabama'?
#2 = Scan Table [ management ] Output [ head_ID , department_ID ] ; -- What are the secretary ids and department ids of all management? | Join | #3 = Join [ #1 , #2 ] Predicate [ #1.head_ID = #2.head_ID ] Output [ #2.department_ID ] | |
department_management | What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'? | What are the ids and creation years of all departments? | Scan | #4 = Scan Table [ department ] Output [ Creation , Department_ID ] | ||
department_management | null | What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'? | #1 = Scan Table [ head ] Predicate [ born_state = 'Alabama' ] Output [ head_ID , born_state ] ; -- What are the ids of secretaries that were born in state 'Alabama'?
#2 = Scan Table [ management ] Output [ head_ID , department_ID ] ; -- What are the secretary ids and department ids of all management?
#3 = Join [ #1 , #... | Join | #5 = Join [ #3 , #4 ] Predicate [ #3.department_ID = #4.Department_ID ] Distinct [ true ] Output [ #4.Creation ] | |
department_management | What are the different born states and the number of heads born there? | What are the born states of all heads? | Scan | #1 = Scan Table [ head ] Output [ born_state ] | ||
department_management | What are the names of the states where at least 3 heads were born? | What are the different born states and the number of heads born there? | #1 = Scan Table [ head ] Output [ born_state ] ; -- What are the born states of all heads? | Aggregate | #2 = Aggregate [ #1 ] GroupBy [ born_state ] Output [ countstar AS Count_Star , born_state ] | |
department_management | What is the number of departments established for each establishment year? | What is the establishment year of all departments? | Scan | #1 = Scan Table [ department ] Output [ Creation ] | ||
department_management | In which year were most departments established? | What is the number of departments established for each establishment year? | #1 = Scan Table [ department ] Output [ Creation ] ; -- What is the establishment year of all departments? | Aggregate | #2 = Aggregate [ #1 ] GroupBy [ Creation ] Output [ countstar AS Count_Star , Creation ] | |
department_management | null | In which year were most departments established? | #1 = Scan Table [ department ] Output [ Creation ] ; -- What is the establishment year of all departments?
#2 = Aggregate [ #1 ] GroupBy [ Creation ] Output [ countstar AS Count_Star , Creation ] ; -- What is the number of departments established for each establishment year? | TopSort | #3 = TopSort [ #2 ] Rows [ 1 ] OrderBy [ Count_Star DESC ] Output [ Count_Star , Creation ] | |
department_management | Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'? | Show the ids of the departments managed by heads whose temporary acting value is 'Yes'. | Scan | #1 = Scan Table [ management ] Predicate [ temporary_acting = 'Yes' ] Output [ department_ID , temporary_acting ] | ||
department_management | Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'? | Show the id, name and number of employees of all departments. | Scan | #2 = Scan Table [ department ] Output [ Num_Employees , Name , Department_ID ] | ||
department_management | null | Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'? | #1 = Scan Table [ management ] Predicate [ temporary_acting = 'Yes' ] Output [ department_ID , temporary_acting ] ; -- Show the ids of the departments managed by heads whose temporary acting value is 'Yes'.
#2 = Scan Table [ department ] Output [ Num_Employees , Name , Department_ID ] ; -- Show the id, name and number ... | Join | #3 = Join [ #1 , #2 ] Predicate [ #1.department_ID = #2.Department_ID ] Output [ #2.Name , #2.Num_Employees ] | |
department_management | How many acting statuses are there? | List the different acting statuses. | Scan | #1 = Scan Table [ management ] Distinct [ true ] Output [ temporary_acting ] | ||
department_management | null | How many acting statuses are there? | #1 = Scan Table [ management ] Distinct [ true ] Output [ temporary_acting ] ; -- List the different acting statuses. | Aggregate | #2 = Aggregate [ #1 ] Output [ COUNT(DISTINCT temporary_acting) AS Count_Dist_temporary_acting ] | |
department_management | List 1 for each department led by heads who are not mentioned. | Find the ids of all departments. | Scan | #1 = Scan Table [ department ] Output [ Department_ID ] | ||
department_management | Find the different department ids that are led by heads who are mentioned. | Find the department ids that are led by heads who are mentioned. | Scan | #2 = Scan Table [ management ] Output [ department_ID ] | ||
department_management | List 1 for each department led by heads who are not mentioned. | Find the different department ids that are led by heads who are mentioned. | #2 = Scan Table [ management ] Output [ department_ID ] ; -- Find the department ids that are led by heads who are mentioned. | Aggregate | #3 = Aggregate [ #2 ] GroupBy [ department_ID ] Output [ department_ID ] | |
department_management | null | How many departments are led by heads who are not mentioned? | #1 = Scan Table [ department ] Output [ Department_ID ] ; -- Find the ids of all departments.
#2 = Scan Table [ management ] Output [ department_ID ] ; -- Find the department ids that are led by heads who are mentioned.
#3 = Aggregate [ #2 ] GroupBy [ department_ID ] Output [ department_ID ] ; -- Find the different dep... | Aggregate | #5 = Aggregate [ #4 ] Output [ countstar AS Count_Star ] | |
department_management | What are the distinct ages of the heads who are acting? | What are the ids of the heads who are acting? | Scan | #1 = Scan Table [ management ] Predicate [ temporary_acting = 'Yes' ] Output [ head_ID , temporary_acting ] | ||
department_management | What are the distinct ages of the heads who are acting? | What are the ids and ages of all heads? | Scan | #2 = Scan Table [ head ] Output [ head_ID , age ] | ||
department_management | null | What are the distinct ages of the heads who are acting? | #1 = Scan Table [ management ] Predicate [ temporary_acting = 'Yes' ] Output [ head_ID , temporary_acting ] ; -- What are the ids of the heads who are acting?
#2 = Scan Table [ head ] Output [ head_ID , age ] ; -- What are the ids and ages of all heads? | Join | #3 = Join [ #1 , #2 ] Predicate [ #1.head_ID = #2.head_ID ] Distinct [ true ] Output [ #2.age ] | |
department_management | List the secretary id of the 'Treasury' department. | List the id of the 'Treasury' department. | Scan | #1 = Scan Table [ department ] Predicate [ Name = 'Treasury' ] Output [ Name , Department_ID ] | ||
department_management | List the secretary id of the 'Treasury' department. | List the department ids and their secretary ids. | Scan | #2 = Scan Table [ management ] Output [ head_ID , department_ID ] | ||
department_management | List the state where the secretary of the 'Treasury' department was born. | List the secretary id of the 'Treasury' department. | #1 = Scan Table [ department ] Predicate [ Name = 'Treasury' ] Output [ Name , Department_ID ] ; -- List the id of the 'Treasury' department.
#2 = Scan Table [ management ] Output [ head_ID , department_ID ] ; -- List the department ids and their secretary ids. | Join | #3 = Join [ #1 , #2 ] Predicate [ #1.Department_ID = #2.department_ID ] Output [ #2.head_ID ] | |
department_management | List the state where the secretary of the 'Treasury' department was born. | List the secretary ids and born states of all heads. | Scan | #4 = Scan Table [ head ] Output [ head_ID , born_state ] | ||
department_management | List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born. | List the state where the secretary of the 'Treasury' department was born. | #1 = Scan Table [ department ] Predicate [ Name = 'Treasury' ] Output [ Name , Department_ID ] ; -- List the id of the 'Treasury' department.
#2 = Scan Table [ management ] Output [ head_ID , department_ID ] ; -- List the department ids and their secretary ids.
#3 = Join [ #1 , #2 ] Predicate [ #1.Department_ID = #2.de... | Join | #5 = Join [ #3 , #4 ] Predicate [ #3.head_ID = #4.head_ID ] Distinct [ true ] Output [ #4.born_state ] | |
department_management | List the secretary id of the 'Homeland Security' department. | List the id of the 'Homeland Security' department. | Scan | #6 = Scan Table [ department ] Predicate [ Name = 'Homeland Security' ] Output [ Name , Department_ID ] | ||
department_management | List the secretary id of the 'Homeland Security' department. | List the department ids and their secretary ids. | Scan | #7 = Scan Table [ management ] Output [ head_ID , department_ID ] | ||
department_management | List the state where the secretary of the 'Homeland Security' department was born. | List the secretary id of the 'Homeland Security' department. | #6 = Scan Table [ department ] Predicate [ Name = 'Homeland Security' ] Output [ Name , Department_ID ] ; -- List the id of the 'Homeland Security' department.
#7 = Scan Table [ management ] Output [ head_ID , department_ID ] ; -- List the department ids and their secretary ids. | Join | #8 = Join [ #6 , #7 ] Predicate [ #6.Department_ID = #7.department_ID ] Output [ #7.head_ID ] | |
department_management | List the state where the secretary of the 'Homeland Security' department was born. | List the secretary ids and born states of all heads. | Scan | #9 = Scan Table [ head ] Output [ head_ID , born_state ] | ||
department_management | List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born. | List the state where the secretary of the 'Homeland Security' department was born. | #6 = Scan Table [ department ] Predicate [ Name = 'Homeland Security' ] Output [ Name , Department_ID ] ; -- List the id of the 'Homeland Security' department.
#7 = Scan Table [ management ] Output [ head_ID , department_ID ] ; -- List the department ids and their secretary ids.
#8 = Join [ #6 , #7 ] Predicate [ #6.Dep... | Join | #10 = Join [ #8 , #9 ] Predicate [ #8.head_ID = #9.head_ID ] Output [ #9.born_state ] | |
department_management | null | List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born. | #1 = Scan Table [ department ] Predicate [ Name = 'Treasury' ] Output [ Name , Department_ID ] ; -- List the id of the 'Treasury' department.
#2 = Scan Table [ management ] Output [ head_ID , department_ID ] ; -- List the department ids and their secretary ids.
#3 = Join [ #1 , #2 ] Predicate [ #1.Department_ID = #2.de... | Intersect | #11 = Intersect [ #5 , #10 ] Predicate [ #5.born_state = #10.born_state ] Output [ #5.born_state ] | |
department_management | null | Which head's name has the substring 'Ha'? List the id and name. | Scan | #1 = Scan Table [ head ] Predicate [ name like '%Ha%' ] Output [ head_ID , name ] | ||
farm | How many farms are there? | List 1 for each farm. | Scan | #1 = Scan Table [ farm ] Output [ 1 AS One ] | ||
farm | null | How many farms are there? | #1 = Scan Table [ farm ] Output [ 1 AS One ] ; -- List 1 for each farm. | Aggregate | #2 = Aggregate [ #1 ] Output [ countstar AS Count_Star ] | |
farm | null | Count the number of farms. | #1 = Scan Table [ farm ] Output [ 1 AS One ] ; -- List 1 for each farm. | Aggregate | #2 = Aggregate [ #1 ] Output [ countstar AS Count_Star ] | |
farm | List the total number of horses on farms in ascending order. | List the total number of horses of all farms. | Scan | #1 = Scan Table [ farm ] Output [ Total_Horses ] | ||
farm | null | What is the total horses record for each farm, sorted ascending? | #1 = Scan Table [ farm ] Output [ Total_Horses ] ; -- List the total number of horses of all farms. | Sort | #2 = Sort [ #1 ] OrderBy [ Total_Horses ASC ] Output [ Total_Horses ] | |
farm | null | What are the hosts of competitions whose theme is not "Aliens"? | Scan | #1 = Scan Table [ farm_competition ] Predicate [ Theme <> 'Aliens' ] Output [ Hosts , Theme ] | ||
farm | null | Return the hosts of competitions for which the theme is not Aliens? | Scan | #1 = Scan Table [ farm_competition ] Predicate [ Theme <> 'Aliens' ] Output [ Hosts , Theme ] | ||
farm | What are the themes of farm competitions sorted by year in ascending order? | What are the themes and years of all farm competitions? | Scan | #1 = Scan Table [ farm_competition ] Output [ Year , Theme ] | ||
farm | null | What are the themes of farm competitions sorted by year in ascending order? | #1 = Scan Table [ farm_competition ] Output [ Year , Theme ] ; -- What are the themes and years of all farm competitions? | Sort | #2 = Sort [ #1 ] OrderBy [ Year ASC ] Output [ Year , Theme ] | |
farm | null | Return the themes of farm competitions, sorted by year ascending. | #1 = Scan Table [ farm_competition ] Output [ Year , Theme ] ; -- What are the themes and years of all farm competitions? | Sort | #2 = Sort [ #1 ] OrderBy [ Year ASC ] Output [ Year , Theme ] | |
farm | What is the average number of working horses of farms with more than 5000 total number of horses? | Give the number of working horses of all farms with more than 5000 total horses. | Scan | #1 = Scan Table [ farm ] Predicate [ Total_Horses > 5000.0 ] Output [ Working_Horses , Total_Horses ] | ||
farm | null | What is the average number of working horses of farms with more than 5000 total number of horses? | #1 = Scan Table [ farm ] Predicate [ Total_Horses > 5000.0 ] Output [ Working_Horses , Total_Horses ] ; -- Give the number of working horses of all farms with more than 5000 total horses. | Aggregate | #2 = Aggregate [ #1 ] Output [ AVG(Working_Horses) AS Avg_Working_Horses ] | |
farm | null | Give the average number of working horses on farms with more than 5000 total horses. | #1 = Scan Table [ farm ] Predicate [ Total_Horses > 5000.0 ] Output [ Working_Horses , Total_Horses ] ; -- Give the number of working horses of all farms with more than 5000 total horses. | Aggregate | #2 = Aggregate [ #1 ] Output [ AVG(Working_Horses) AS Avg_Working_Horses ] | |
farm | What are the maximum and minimum number of cows across all farms. | Return the number of cows of all farms. | Scan | #1 = Scan Table [ farm ] Output [ Cows ] | ||
farm | null | What are the maximum and minimum number of cows across all farms. | #1 = Scan Table [ farm ] Output [ Cows ] ; -- Return the number of cows of all farms. | Aggregate | #2 = Aggregate [ #1 ] Output [ MAX(Cows) AS Max_Cows , MIN(Cows) AS Min_Cows ] | |
farm | null | Return the maximum and minimum number of cows across all farms. | #1 = Scan Table [ farm ] Output [ Cows ] ; -- Return the number of cows of all farms. | Aggregate | #2 = Aggregate [ #1 ] Output [ MAX(Cows) AS Max_Cows , MIN(Cows) AS Min_Cows ] | |
farm | How many different statuses do cities have? | List the different statuses. | Scan | #1 = Scan Table [ city ] Distinct [ true ] Output [ Status ] | ||
farm | null | How many different statuses do cities have? | #1 = Scan Table [ city ] Distinct [ true ] Output [ Status ] ; -- List the different statuses. | Aggregate | #2 = Aggregate [ #1 ] Output [ COUNT(DISTINCT Status) AS Count_Dist_Status ] | |
farm | null | Count the number of different statuses. | #1 = Scan Table [ city ] Distinct [ true ] Output [ Status ] ; -- List the different statuses. | Aggregate | #2 = Aggregate [ #1 ] Output [ COUNT(DISTINCT Status) AS Count_Dist_Status ] | |
farm | List official names of cities in descending order of population. | What are the official names and population of all cities? | Scan | #1 = Scan Table [ city ] Output [ Official_Name , Population ] | ||
farm | null | List official names of cities in descending order of population. | #1 = Scan Table [ city ] Output [ Official_Name , Population ] ; -- What are the official names and population of all cities? | Sort | #2 = Sort [ #1 ] OrderBy [ Population DESC ] Output [ Official_Name , Population ] | |
farm | null | What are the official names of cities, ordered descending by population? | #1 = Scan Table [ city ] Output [ Official_Name , Population ] ; -- What are the official names and population of all cities? | Sort | #2 = Sort [ #1 ] OrderBy [ Population DESC ] Output [ Official_Name , Population ] | |
farm | List the official name and status of the city with the largest population. | List the official name, status and population of all cities. | Scan | #1 = Scan Table [ city ] Output [ Status , Official_Name , Population ] | ||
farm | null | List the official name and status of the city with the largest population. | #1 = Scan Table [ city ] Output [ Status , Official_Name , Population ] ; -- List the official name, status and population of all cities. | TopSort | #2 = TopSort [ #1 ] Rows [ 1 ] OrderBy [ Population DESC ] Output [ Status , Official_Name , Population ] | |
farm | null | What is the official name and status of the city with the most residents? | #1 = Scan Table [ city ] Output [ Status , Official_Name , Population ] ; -- List the official name, status and population of all cities. | TopSort | #2 = TopSort [ #1 ] Rows [ 1 ] OrderBy [ Population DESC ] Output [ Status , Official_Name , Population ] | |
farm | Show the years and the official names of the host cities of competitions. | Show the years and the ids of the host cities of competitions. | Scan | #1 = Scan Table [ farm_competition ] Output [ Year , Host_city_ID ] | ||
farm | Show the years and the official names of the host cities of competitions. | Show the ids and official names of all cities. | Scan | #2 = Scan Table [ city ] Output [ Official_Name , City_ID ] | ||
farm | null | Show the years and the official names of the host cities of competitions. | #1 = Scan Table [ farm_competition ] Output [ Year , Host_city_ID ] ; -- Show the years and the ids of the host cities of competitions.
#2 = Scan Table [ city ] Output [ Official_Name , City_ID ] ; -- Show the ids and official names of all cities. | Join | #3 = Join [ #1 , #2 ] Predicate [ #1.Host_city_ID = #2.City_ID ] Output [ #1.Year , #2.Official_Name ] | |
farm | null | Give the years and official names of the cities of each competition. | #1 = Scan Table [ farm_competition ] Output [ Year , Host_city_ID ] ; -- Show the years and the ids of the host cities of competitions.
#2 = Scan Table [ city ] Output [ Official_Name , City_ID ] ; -- Show the ids and official names of all cities. | Join | #3 = Join [ #1 , #2 ] Predicate [ #1.Host_city_ID = #2.City_ID ] Output [ #1.Year , #2.Official_Name ] | |
farm | Show the host city ids and official names of all competitions. | Show the host city ids of all competitions. | Scan | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] | ||
farm | Show the host city ids and official names of all competitions. | Show the ids and official names of all the cities. | Scan | #2 = Scan Table [ city ] Output [ Official_Name , City_ID ] | ||
farm | Show the official names of the cities and the number of competitions they have hosted for each host city id. | Show the host city ids and official names of all competitions. | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] ; -- Show the host city ids of all competitions.
#2 = Scan Table [ city ] Output [ Official_Name , City_ID ] ; -- Show the ids and official names of all the cities. | Join | #3 = Join [ #1 , #2 ] Predicate [ #1.Host_city_ID = #2.City_ID ] Output [ #2.Official_Name , #2.City_ID , #1.Host_city_ID ] | |
farm | Show the official names of the cities that have hosted more than one competition. | Show the official names of the cities and the number of competitions they have hosted for each host city id. | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] ; -- Show the host city ids of all competitions.
#2 = Scan Table [ city ] Output [ Official_Name , City_ID ] ; -- Show the ids and official names of all the cities.
#3 = Join [ #1 , #2 ] Predicate [ #1.Host_city_ID = #2.City_ID ] Output [ #2.Official_Name , #... | Aggregate | #4 = Aggregate [ #3 ] GroupBy [ Host_city_ID ] Output [ countstar AS Count_Star , Official_Name ] | |
farm | null | Show the official names of the cities that have hosted more than one competition. | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] ; -- Show the host city ids of all competitions.
#2 = Scan Table [ city ] Output [ Official_Name , City_ID ] ; -- Show the ids and official names of all the cities.
#3 = Join [ #1 , #2 ] Predicate [ #1.Host_city_ID = #2.City_ID ] Output [ #2.Official_Name , #... | Filter | #5 = Filter [ #4 ] Predicate [ Count_Star > 1 ] Output [ Official_Name ] | |
farm | null | What are the official names of cities that have hosted more than one competition? | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] ; -- Show the host city ids of all competitions.
#2 = Scan Table [ city ] Output [ Official_Name , City_ID ] ; -- Show the ids and official names of all the cities.
#3 = Join [ #1 , #2 ] Predicate [ #1.Host_city_ID = #2.City_ID ] Output [ #2.Official_Name , #... | Filter | #5 = Filter [ #4 ] Predicate [ Count_Star > 1 ] Output [ Official_Name ] | |
farm | What are the different host city ids and the number of competitions each has hosted? | What is the host city id of all competitions? | Scan | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] | ||
farm | For each host city id, what is the status of the city and the number of competitions it has hosted? | What are the different host city ids and the number of competitions each has hosted? | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] ; -- What is the host city id of all competitions? | Aggregate | #2 = Aggregate [ #1 ] GroupBy [ Host_city_ID ] Output [ countstar AS Count_Star , Host_city_ID ] | |
farm | For each host city id, what is the status of the city and the number of competitions it has hosted? | What is the id and status of all cities? | Scan | #3 = Scan Table [ city ] Output [ Status , City_ID ] | ||
farm | Show the status of the city that has hosted the greatest number of competitions. | For each host city id, what is the status of the city and the number of competitions it has hosted? | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] ; -- What is the host city id of all competitions?
#2 = Aggregate [ #1 ] GroupBy [ Host_city_ID ] Output [ countstar AS Count_Star , Host_city_ID ] ; -- What are the different host city ids and the number of competitions each has hosted?
#3 = Scan Table [ cit... | Join | #4 = Join [ #2 , #3 ] Predicate [ #2.Host_city_ID = #3.City_ID ] Output [ #3.Status , #2.Count_Star ] | |
farm | null | Show the status of the city that has hosted the greatest number of competitions. | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] ; -- What is the host city id of all competitions?
#2 = Aggregate [ #1 ] GroupBy [ Host_city_ID ] Output [ countstar AS Count_Star , Host_city_ID ] ; -- What are the different host city ids and the number of competitions each has hosted?
#3 = Scan Table [ cit... | TopSort | #5 = TopSort [ #4 ] Rows [ 1 ] OrderBy [ Count_Star DESC ] Output [ Count_Star , Status ] | |
farm | null | What is the status of the city that has hosted the most competitions? | #1 = Scan Table [ farm_competition ] Output [ Host_city_ID ] ; -- What is the host city id of all competitions?
#2 = Aggregate [ #1 ] GroupBy [ Host_city_ID ] Output [ countstar AS Count_Star , Host_city_ID ] ; -- What are the different host city ids and the number of competitions each has hosted?
#3 = Scan Table [ cit... | TopSort | #5 = TopSort [ #4 ] Rows [ 1 ] OrderBy [ Count_Star DESC ] Output [ Count_Star , Status ] | |
farm | Please show the themes of competitions with host cities having populations larger than 1000. | What are the city ids of cities with more than 1000 residents? | Scan | #1 = Scan Table [ city ] Predicate [ Population > 1000.0 ] Output [ Population , City_ID ] | ||
farm | Please show the themes of competitions with host cities having populations larger than 1000. | What are the themes and host city ids of all competitions? | Scan | #2 = Scan Table [ farm_competition ] Output [ Theme , Host_city_ID ] | ||
farm | null | Please show the themes of competitions with host cities having populations larger than 1000. | #1 = Scan Table [ city ] Predicate [ Population > 1000.0 ] Output [ Population , City_ID ] ; -- What are the city ids of cities with more than 1000 residents?
#2 = Scan Table [ farm_competition ] Output [ Theme , Host_city_ID ] ; -- What are the themes and host city ids of all competitions? | Join | #3 = Join [ #1 , #2 ] Predicate [ #1.City_ID = #2.Host_city_ID ] Output [ #2.Theme ] | |
farm | null | What are the themes of competitions that have corresponding host cities with more than 1000 residents? | #1 = Scan Table [ city ] Predicate [ Population > 1000.0 ] Output [ Population , City_ID ] ; -- What are the city ids of cities with more than 1000 residents?
#2 = Scan Table [ farm_competition ] Output [ Theme , Host_city_ID ] ; -- What are the themes and host city ids of all competitions? | Join | #3 = Join [ #1 , #2 ] Predicate [ #1.City_ID = #2.Host_city_ID ] Output [ #2.Theme ] | |
farm | Please show the different statuses of cities and the average population of cities with each status. | Please show the statuses and population of cities. | Scan | #1 = Scan Table [ city ] Output [ Status , Population ] | ||
farm | null | Please show the different statuses of cities and the average population of cities with each status. | #1 = Scan Table [ city ] Output [ Status , Population ] ; -- Please show the statuses and population of cities. | Aggregate | #2 = Aggregate [ #1 ] GroupBy [ Status ] Output [ AVG(Population) AS Avg_Population , Status ] | |
farm | null | What are the statuses and average populations of each city? | #1 = Scan Table [ city ] Output [ Status , Population ] ; -- Please show the statuses and population of cities. | Aggregate | #2 = Aggregate [ #1 ] GroupBy [ Status ] Output [ AVG(Population) AS Avg_Population , Status ] | |
farm | Return the different statuses and their frequency. | Return the status of all cities. | Scan | #1 = Scan Table [ city ] Output [ Status ] | ||
farm | Please show the different statuses, ordered by the number of cities that have each. | Return the different statuses and their frequency. | #1 = Scan Table [ city ] Output [ Status ] ; -- Return the status of all cities. | Aggregate | #2 = Aggregate [ #1 ] GroupBy [ Status ] Output [ countstar AS Count_Star , Status ] | |
farm | null | Please show the different statuses, ordered by the number of cities that have each. | #1 = Scan Table [ city ] Output [ Status ] ; -- Return the status of all cities.
#2 = Aggregate [ #1 ] GroupBy [ Status ] Output [ countstar AS Count_Star , Status ] ; -- Return the different statuses and their frequency. | Sort | #3 = Sort [ #2 ] OrderBy [ Count_Star ASC ] Output [ Count_Star , Status ] | |
farm | null | Return the different statuses of cities, ascending by frequency. | #1 = Scan Table [ city ] Output [ Status ] ; -- Return the status of all cities.
#2 = Aggregate [ #1 ] GroupBy [ Status ] Output [ countstar AS Count_Star , Status ] ; -- Return the different statuses and their frequency. | Sort | #3 = Sort [ #2 ] OrderBy [ Count_Star ASC ] Output [ Count_Star , Status ] | |
farm | List the different statuses and the number of cities that have each. | List the status of all cities. | Scan | #1 = Scan Table [ city ] Output [ Status ] | ||
farm | List the most common type of Status across cities. | List the different statuses and the number of cities that have each. | #1 = Scan Table [ city ] Output [ Status ] ; -- List the status of all cities. | Aggregate | #2 = Aggregate [ #1 ] GroupBy [ Status ] Output [ countstar AS Count_Star , Status ] | |
farm | null | List the most common type of Status across cities. | #1 = Scan Table [ city ] Output [ Status ] ; -- List the status of all cities.
#2 = Aggregate [ #1 ] GroupBy [ Status ] Output [ countstar AS Count_Star , Status ] ; -- List the different statuses and the number of cities that have each. | TopSort | #3 = TopSort [ #2 ] Rows [ 1 ] OrderBy [ Count_Star DESC ] Output [ Count_Star , Status ] | |
farm | null | What is the most common status across all cities? | #1 = Scan Table [ city ] Output [ Status ] ; -- List the status of all cities.
#2 = Aggregate [ #1 ] GroupBy [ Status ] Output [ countstar AS Count_Star , Status ] ; -- List the different statuses and the number of cities that have each. | TopSort | #3 = TopSort [ #2 ] Rows [ 1 ] OrderBy [ Count_Star DESC ] Output [ Count_Star , Status ] |
Audited QPL Completer CoT
This dataset is the completer view of the audited QPL decomposer-completer dataset. It is structured for the project's existing completer processor and can be selected by dataset ID in the training and evaluation wrappers.
Splits
train: audited training rows after removing prompts reserved for cold-start SFT;cotis empty.validation: audited validation rows;cotis empty.cold_start: 300 manually reviewed, unchanged training examples with byte-identical source CoT. Use this split for cold-start SFT before GRPO.
The project accepts cold-start in its CLI and maps it to the stored Hugging Face split cold_start (the Hub split-name format does not allow hyphens). Cold-start prompts are disjoint from this task's train and validation prompts.
Fields
db_id, parent_question, question, prefix_qpl, op, qpl_line, cot
Cold-start examples are selected across QPL operators and three QPL plan-size bands (1, 2–3, and 4+ lines in the node's prefix plus target line). Plan size is used as a complexity proxy; it is not Spider's official easy/medium/hard label. Operator counts are max-min balanced among individually reviewed, accepted CoTs; rare operators may have lower counts when the reviewed source pool is limited.
The original audited source contains a small number of known engine-specific date representation differences documented in its dataset card. The new task views preserve the audited QPL and use it as the decomposer execution reference.
Cleaned cold-start splits
These extra splits hold a cleaned cold start. The original splits are unchanged.
cold_start_clean: the cold start with low-quality rows replaced (9 Except rows withIS NULL ORpredicates). Seven replacements are Except rows; the other two are a Filter and a Join, because no other clean Except row with good reasoning remained. The replacements are audited train rows whose existing CoT was rated excellent in a strict review of both the QPL line and the reasoning.train_clean: train with the replacement prompts removed and the removed cold-start prompts returned (without a CoT). Use it for GRPO after SFT on a clean cold start, so the two stay disjoint.
The training CLI accepts hyphenated names (cold-start-clean, train-clean).
- Downloads last month
- 332