input
stringlengths 3.68k
4.11k
| output
sequencelengths 1
1
| id
stringlengths 40
40
|
---|---|---|
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: for the winner records of all rows , most of them fuzzily match to aus .
Output:
| [
"most_eq { all_rows ; winner ; aus }"
] | task210-954608757fa3457797ebf39ef37f1e8f |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose location / attendance record fuzzily matches to the omni . the maximum score record of these rows is w 124 - 91 .
Output:
| [
"eq { max { filter_eq { all_rows ; location / attendance ; the omni } ; score } ; w 124 - 91 }"
] | task210-dd311b2c55a843878535952f4798c0b8 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose home team record fuzzily matches to south melbourne . take the home team score record of this row . select the rows whose home team record fuzzily matches to north melbourne . take the home team score record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; home team ; south melbourne } ; home team score } ; hop { filter_eq { all_rows ; home team ; north melbourne } ; home team score } }"
] | task210-e0cdf468ed7f4bc5a281249650228ce5 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the average of the attendance record of all rows is 15720 .
Output:
| [
"round_eq { avg { all_rows ; attendance } ; 15720 }"
] | task210-b42f7a6f8fea4a3faa7fe16d015f46cf |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose co - drivers record fuzzily matches to olivier pla guy smith . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; co - drivers ; olivier pla guy smith } } ; 2 }"
] | task210-6ed1624929124bb785307b1d7c1095d9 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the average of the attendance record of all rows is 28,610 .
Output:
| [
"round_eq { avg { all_rows ; attendance } ; 28,610 }"
] | task210-13d74449c1094a4c8d738d70b7cfc62d |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose county record fuzzily matches to kilkenny . the number of such rows is 4 .
Output:
| [
"eq { count { filter_eq { all_rows ; county ; kilkenny } } ; 4 }"
] | task210-c83322e22c834d68b9745b3a7f534159 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose year record fuzzily matches to 1967 . take the laps record of this row . select the rows whose year record fuzzily matches to 1971 . take the laps record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; year ; 1967 } ; laps } ; hop { filter_eq { all_rows ; year ; 1971 } ; laps } }"
] | task210-f9ef85b740744b689e188c87c74ae8d0 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: for the tv time records of all rows , most of them fuzzily match to cbs .
Output:
| [
"most_eq { all_rows ; tv time ; cbs }"
] | task210-6082b7ed06f1488980ebed00a6fc0daf |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: for the first elected records of all rows , most of them are equal to 1948 .
Output:
| [
"most_eq { all_rows ; first elected ; 1948 }"
] | task210-73ae587ed3a7474297a86c044f0e09a1 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose result record fuzzily matches to nominated . the number of such rows is 4 .
Output:
| [
"eq { count { filter_eq { all_rows ; result ; nominated } } ; 4 }"
] | task210-6d3c0c4ed6ee4493b439d8fd11c9d92f |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose country record fuzzily matches to united kingdom . for the points records of these rows , most of them are less than 10 .
Output:
| [
"most_less { filter_eq { all_rows ; country ; united kingdom } ; points ; 10 }"
] | task210-cb62a08135bc456baf7a0677528204a6 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose supercopa sudamericana 1996 record fuzzily matches to did not qualify . among these rows , select the rows whose copa conmebol 1996 record fuzzily matches to semifinals . there is only one such row in the table . the team record of this unqiue row is vasco . the copa libertadores 1996 record of this unqiue row is did not qualify .
Output:
| [
"and { only { filter_eq { filter_eq { all_rows ; supercopa sudamericana 1996 ; did not qualify } ; copa conmebol 1996 ; semifinals } } ; and { eq { hop { filter_eq { filter_eq { all_rows ; supercopa sudamericana 1996 ; did not qualify } ; copa conmebol 1996 ; semifinals } ; team } ; vasco } ; eq { hop { filter_eq { filter_eq { all_rows ; supercopa sudamericana 1996 ; did not qualify } ; copa conmebol 1996 ; semifinals } ; copa libertadores 1996 } ; did not qualify } } }"
] | task210-57d3408a55914cf089580188acee0ceb |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose growth rate record is less than 0 . there is only one such row in the table . the district record of this unqiue row is kolkata .
Output:
| [
"and { only { filter_less { all_rows ; growth rate ; 0 } } ; eq { hop { filter_less { all_rows ; growth rate ; 0 } ; district } ; kolkata } }"
] | task210-6a02c1fc95ad450baf84c92e16bb9dd0 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose attendance record of all rows is 2nd maximum . the date record of this row is november 12 , 2000 .
Output:
| [
"eq { hop { nth_argmax { all_rows ; attendance ; 2 } ; date } ; november 12 , 2000 }"
] | task210-26248fa88f6a44b7a4d30951f0489620 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose time record of all rows is minimum . the name record of this row is massimiliano rosolino .
Output:
| [
"eq { hop { argmin { all_rows ; time } ; name } ; massimiliano rosolino }"
] | task210-c75a4cf88841437faba3bbe611826fd3 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: for the nationality records of all rows , all of them fuzzily match to united states .
Output:
| [
"all_eq { all_rows ; nationality ; united states }"
] | task210-9bec0d28ebfa462b9438a0e9c78249a9 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose result record fuzzily matches to lost re - election republican gain . there is only one such row in the table . the district record of this unqiue row is illinois 21 .
Output:
| [
"and { only { filter_eq { all_rows ; result ; lost re - election republican gain } } ; eq { hop { filter_eq { all_rows ; result ; lost re - election republican gain } ; district } ; illinois 21 } }"
] | task210-8778a55f361f4ed79a3d93b9784643cb |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose points record is greater than 90 . the number of such rows is 2 .
Output:
| [
"eq { count { filter_greater { all_rows ; points ; 90 } } ; 2 }"
] | task210-f080289e5a124a48831085093151c19f |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose black knights points record of all rows is 4th minimum . the date record of this row is oct 20 .
Output:
| [
"eq { hop { nth_argmin { all_rows ; black knights points ; 4 } ; date } ; oct 20 }"
] | task210-b3684fe6c1f24affb67393caf250ddad |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the 1st minimum date record of all rows is 18 may 1993 .
Output:
| [
"eq { nth_min { all_rows ; date ; 1 } ; 18 may 1993 }"
] | task210-747b2ec3523d4b36bac800ae61f39440 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose home team score record is greater than 5 . for the crowd records of these rows , most of them are greater than 20000 .
Output:
| [
"most_greater { filter_greater { all_rows ; home team score ; 5 } ; crowd ; 20000 }"
] | task210-a61e289f3ce84d24b8634e66bcce41ab |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose county record fuzzily matches to oppland . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; county ; oppland } } ; 2 }"
] | task210-d02d8178d66b4b5c8240cbe8c0d3ef4b |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose manner of departure record fuzzily matches to signed by fc fredericia . there is only one such row in the table . the team record of this unqiue row is fc hjørring .
Output:
| [
"and { only { filter_eq { all_rows ; manner of departure ; signed by fc fredericia } } ; eq { hop { filter_eq { all_rows ; manner of departure ; signed by fc fredericia } ; team } ; fc hjørring } }"
] | task210-55a7bb1b0d714efabcd9612276747112 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose opponent record fuzzily matches to jason st louis . take the time record of this row . select the rows whose opponent record fuzzily matches to mike swick . take the time record of this row . the first record is less than the second record .
Output:
| [
"less { hop { filter_eq { all_rows ; opponent ; jason st louis } ; time } ; hop { filter_eq { all_rows ; opponent ; mike swick } ; time } }"
] | task210-20fb1ca3c17f42cd8c4b3b12c5269467 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the sum of the issue price record of all rows is 395.1 .
Output:
| [
"round_eq { sum { all_rows ; issue price } ; 395.1 }"
] | task210-47d91f526cd1408a911b86eb73beb5f7 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the average of the capacity record of all rows is 1732 .
Output:
| [
"round_eq { avg { all_rows ; capacity } ; 1732 }"
] | task210-a76e8a0faba1486a8830aab4883f7859 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose school record fuzzily matches to martinsville . take the enrollment record of this row . select the rows whose school record fuzzily matches to mooresville . take the enrollment record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; school ; martinsville } ; enrollment } ; hop { filter_eq { all_rows ; school ; mooresville } ; enrollment } }"
] | task210-a9c42a7537104bdbb463794027d5d30c |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose nationality record fuzzily matches to bosnia and herzegovina . there is only one such row in the table . the previous team record of this unqiue row is golden state warriors .
Output:
| [
"and { only { filter_eq { all_rows ; nationality ; bosnia and herzegovina } } ; eq { hop { filter_eq { all_rows ; nationality ; bosnia and herzegovina } ; previous team } ; golden state warriors } }"
] | task210-ad8f78a236d749e1860a75b4deb1b0f5 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose sport record fuzzily matches to w gymnastics . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; sport ; w gymnastics } } ; 2 }"
] | task210-b5b3c656b3b947fd841d3e4840d9a830 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose event record fuzzily matches to ufc . among these rows , select the rows whose res record fuzzily matches to win . the number of such rows is 8 .
Output:
| [
"eq { count { filter_eq { filter_eq { all_rows ; event ; ufc } ; res ; win } } ; 8 }"
] | task210-260db1308275462f90bbcdfc103c4636 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose wins record of all rows is 2nd maximum . the year record of this row is 1994 .
Output:
| [
"eq { hop { nth_argmax { all_rows ; wins ; 2 } ; year } ; 1994 }"
] | task210-8752d9ac11f74843b2fe8bb228cc794a |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose medal record fuzzily matches to silver . the number of such rows is 6 .
Output:
| [
"eq { count { filter_eq { all_rows ; medal ; silver } } ; 6 }"
] | task210-6e5199715bf54f2cae3a68d2a98f979a |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose % of votes khuzestan record of all rows is 2nd maximum . the candidates record of this row is akbar hashemi rafsanjani .
Output:
| [
"eq { hop { nth_argmax { all_rows ; % of votes khuzestan ; 2 } ; candidates } ; akbar hashemi rafsanjani }"
] | task210-bb6fb4b2f6d8412e9bb35094735e74dd |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the maximum points record of all rows is 51 . the club record of the row with superlative points record is rodiklis kaunas .
Output:
| [
"and { eq { max { all_rows ; points } ; 51 } ; eq { hop { argmax { all_rows ; points } ; club } ; rodiklis kaunas } }"
] | task210-c25b97b6a7f342ffa79d6550f8e4ebad |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the average of the wkts record of all rows is 12.91 .
Output:
| [
"round_eq { avg { all_rows ; wkts } ; 12.91 }"
] | task210-37bbf43986844282acc48ba36428e9db |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose won record is less than or equal to 5 . the sum of the points record of these rows is 75 .
Output:
| [
"round_eq { sum { filter_less_eq { all_rows ; won ; 5 } ; points } ; 75 }"
] | task210-5e65b59dcc744933ba0d41aa265d514a |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose competition record fuzzily matches to 1994 fifa world cup qualification . for the venue records of these rows , most of them fuzzily match to estadio cuscatlán , san salvador , el salvador .
Output:
| [
"most_eq { filter_eq { all_rows ; competition ; 1994 fifa world cup qualification } ; venue ; estadio cuscatlán , san salvador , el salvador }"
] | task210-e1c49295992b4115bd640b4274a72735 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose country record fuzzily matches to england . the number of such rows is 4 .
Output:
| [
"eq { count { filter_eq { all_rows ; country ; england } } ; 4 }"
] | task210-08f8c25cee2846f387fd354184dc0448 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose candidates record of all rows is maximum . the incumbent record of this row is bill clay .
Output:
| [
"eq { hop { argmax { all_rows ; candidates } ; incumbent } ; bill clay }"
] | task210-eeb3bce795414592b2812118416a9b59 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose player record fuzzily matches to eric king . take the round record of this row . select the rows whose player record fuzzily matches to lionel gates . take the round record of this row . the first record is less than the second record .
Output:
| [
"less { hop { filter_eq { all_rows ; player ; eric king } ; round } ; hop { filter_eq { all_rows ; player ; lionel gates } ; round } }"
] | task210-253f24a1d51c46bc8f7d6af801578d55 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose position record fuzzily matches to forward . among these rows , select the rows whose years in orlando record is greater than or equal to 2000 . the number of such rows is 3 .
Output:
| [
"eq { count { filter_greater_eq { filter_eq { all_rows ; position ; forward } ; years in orlando ; 2000 } } ; 3 }"
] | task210-5116906a886d4f708de8cd6dab1463a2 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose city district record fuzzily matches to santiago . take the population 2007 census ( hab ) record of this row . select the rows whose city district record fuzzily matches to wanchaq . take the population 2007 census ( hab ) record of this row . the first record is 11753 larger than the second record .
Output:
| [
"eq { diff { hop { filter_eq { all_rows ; city district ; santiago } ; population 2007 census ( hab ) } ; hop { filter_eq { all_rows ; city district ; wanchaq } ; population 2007 census ( hab ) } } ; 11753 }"
] | task210-37e5237d23b44442b78e01222f975a69 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose home team score record is less than 14.0 . among these rows , select the rows whose date record fuzzily matches to 28 april 1973 . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { filter_less { all_rows ; home team score ; 14.0 } ; date ; 28 april 1973 } } ; 2 }"
] | task210-2d506eb0d17f4406805082efe7ebde0c |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose overall wc points ( rank ) record of all rows is maximum . the name record of this row is thomas morgenstern .
Output:
| [
"eq { hop { argmax { all_rows ; overall wc points ( rank ) } ; name } ; thomas morgenstern }"
] | task210-00d01e77f8614f509a3a9b91f9d0ada5 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose crowd record is greater than 20000 . among these rows , select the rows whose venue record fuzzily matches to victoria park . there is only one such row in the table . the home team record of this unqiue row is collingwood .
Output:
| [
"and { only { filter_eq { filter_greater { all_rows ; crowd ; 20000 } ; venue ; victoria park } } ; eq { hop { filter_eq { filter_greater { all_rows ; crowd ; 20000 } ; venue ; victoria park } ; home team } ; collingwood } }"
] | task210-bc29c916cca646d195e3eed8a2a396a5 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose score record is equal to 0 . the number of such rows is 7 .
Output:
| [
"eq { count { filter_eq { all_rows ; score ; 0 } } ; 7 }"
] | task210-f2d5192c1a134b18a6f045d6cb32bb6a |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the sum of the scored record of all rows is 28 .
Output:
| [
"round_eq { sum { all_rows ; scored } ; 28 }"
] | task210-00c4b07586ef48afae23006551189572 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose wins record is not equal to 0 . there is only one such row in the table . the tournament record of this unqiue row is pga championship .
Output:
| [
"and { only { filter_not_eq { all_rows ; wins ; 0 } } ; eq { hop { filter_not_eq { all_rows ; wins ; 0 } ; tournament } ; pga championship } }"
] | task210-b5413882d0f84e34a29b8810df7732e1 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose population served record of all rows is maximum . the location record of this row is marcala , hon .
Output:
| [
"eq { hop { argmax { all_rows ; population served } ; location } ; marcala , hon }"
] | task210-58fe0bd8031c4e8bb1d881f59ec12bb2 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose leading scorer record fuzzily matches to roy : . the average of the leading scorer record of these rows is 25.75 .
Output:
| [
"round_eq { avg { filter_eq { all_rows ; leading scorer ; roy : } ; leading scorer } ; 25.75 }"
] | task210-6ac5f8580f8f4624a2f912726ddfe1a6 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose pick record of all rows is 4th maximum . the player record of this row is alvin mckinley .
Output:
| [
"eq { hop { nth_argmax { all_rows ; pick ; 4 } ; player } ; alvin mckinley }"
] | task210-f75ee4e4be024bb1888b5b2ffedd2ef3 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose results record fuzzily matches to re - elected . the number of such rows is 7 .
Output:
| [
"eq { count { filter_eq { all_rows ; results ; re - elected } } ; 7 }"
] | task210-ae7abe81eeda49188c2244935e93d3e9 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose writer record fuzzily matches to ed roe . there is only one such row in the table . the production code record of this unqiue row is 402 .
Output:
| [
"and { only { filter_eq { all_rows ; writer ; ed roe } } ; eq { hop { filter_eq { all_rows ; writer ; ed roe } ; production code } ; 402 } }"
] | task210-19fe38489a24422c93a21ccb66368b79 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose joined record is equal to 2007 . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; joined ; 2007 } } ; 2 }"
] | task210-8e754df8adfe4d44b1619ea86028a7a7 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose entrant record fuzzily matches to team lotus . take the points record of this row . select the rows whose entrant record fuzzily matches to team lotus . take the points record of this row . the first record is equal to the second record .
Output:
| [
"eq { hop { filter_eq { all_rows ; entrant ; team lotus } ; points } ; hop { filter_eq { all_rows ; entrant ; team lotus } ; points } }"
] | task210-024cbf16baeb4d25ba6efa5e5975aa02 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose elevated record fuzzily matches to 1117 . the number of such rows is 3 .
Output:
| [
"eq { count { filter_eq { all_rows ; elevated ; 1117 } } ; 3 }"
] | task210-062e12978dbf4a849c8196d897b91e8e |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose against record of all rows is maximum . the opposing teams record of this row is argentina .
Output:
| [
"eq { hop { argmax { all_rows ; against } ; opposing teams } ; argentina }"
] | task210-5b3a2630874340eba3470e76f2021f6e |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose date record of all rows is 1st minimum . the race name record of this row is datsun twin 200 .
Output:
| [
"eq { hop { nth_argmin { all_rows ; date ; 1 } ; race name } ; datsun twin 200 }"
] | task210-ace65b7c332548148bf2caffaaa10fac |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose time record of all rows is 1st minimum . the rank record of this row is 1 .
Output:
| [
"eq { hop { nth_argmin { all_rows ; time ; 1 } ; rank } ; 1 }"
] | task210-843cc8d4c2a74b4c99b6418a22beeca1 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: for the draws records of all rows , most of them are greater than or equal to 5 .
Output:
| [
"most_greater_eq { all_rows ; draws ; 5 }"
] | task210-b7cb7a30cdbd4baa84c5adc048c2594a |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose homeport ( as of july 2013 ) record fuzzily matches to portsmouth . the number of such rows is 6 .
Output:
| [
"eq { count { filter_eq { all_rows ; homeport ( as of july 2013 ) ; portsmouth } } ; 6 }"
] | task210-a8faed9e6fae4b84919c60aa256666e9 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose worldwide gross record of all rows is 4th maximum . the title record of this row is the hobbit : an unexpected journey .
Output:
| [
"eq { hop { nth_argmax { all_rows ; worldwide gross ; 4 } ; title } ; the hobbit : an unexpected journey }"
] | task210-5185768df7d842b282e2b75d432bbef1 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose gold record is equal to 7 . there is only one such row in the table . the nation record of this unqiue row is brazil ( bra ) .
Output:
| [
"and { only { filter_eq { all_rows ; gold ; 7 } } ; eq { hop { filter_eq { all_rows ; gold ; 7 } ; nation } ; brazil ( bra ) } }"
] | task210-4d262db47f724a4da38c250a052b657e |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose women 's singles record fuzzily matches to sara persson . there is only one such row in the table . the year record of this unqiue row is 2006 .
Output:
| [
"and { only { filter_eq { all_rows ; women 's singles ; sara persson } } ; eq { hop { filter_eq { all_rows ; women 's singles ; sara persson } ; year } ; 2006 } }"
] | task210-d22f467c745c4cada37bfcea6a67fb63 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose wickets record fuzzily matches to none . the number of such rows is 5 .
Output:
| [
"eq { count { filter_eq { all_rows ; wickets ; none } } ; 5 }"
] | task210-95474306c7ab4ecb98d68ed42974ace0 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose year record is less than 1998 . among these rows , select the rows whose country record fuzzily matches to sweden . the number of such rows is 1 .
Output:
| [
"eq { count { filter_eq { filter_less { all_rows ; year ; 1998 } ; country ; sweden } } ; 1 }"
] | task210-7742dd739c7b47d6b85f78fbb2e9f4df |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose attendance record is greater than 70000 . among these rows , select the rows whose tv time record fuzzily matches to nbc . the number of such rows is 4 .
Output:
| [
"eq { count { filter_eq { filter_greater { all_rows ; attendance ; 70000 } ; tv time ; nbc } } ; 4 }"
] | task210-1f5a48286f2c46888e7d98b226d4b324 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose year record fuzzily matches to 2009 . take the finish position record of this row . select the rows whose year record fuzzily matches to 2008 . take the finish position record of this row . the first record is less than the second record . the finish position record of the first row is 31st . the finish position record of the second row is 33rd .
Output:
| [
"and { less { hop { filter_eq { all_rows ; year ; 2009 } ; finish position } ; hop { filter_eq { all_rows ; year ; 2008 } ; finish position } } ; and { eq { hop { filter_eq { all_rows ; year ; 2009 } ; finish position } ; 31st } ; eq { hop { filter_eq { all_rows ; year ; 2008 } ; finish position } ; 33rd } } }"
] | task210-5c54b88c9bfb45b5ba99587faf13ea6d |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose driver record fuzzily matches to clint bowyer . take the average speed ( mph ) record of this row . select the rows whose driver record fuzzily matches to greg biffle . take the average speed ( mph ) record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; driver ; clint bowyer } ; average speed ( mph ) } ; hop { filter_eq { all_rows ; driver ; greg biffle } ; average speed ( mph ) } }"
] | task210-0db65fd2f9f745cb835c913113d1eba2 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose written by record fuzzily matches to amy engelberg & wendy engelberg . there is only one such row in the table . the title record of this unqiue row is dead model walking .
Output:
| [
"and { only { filter_eq { all_rows ; written by ; amy engelberg & wendy engelberg } } ; eq { hop { filter_eq { all_rows ; written by ; amy engelberg & wendy engelberg } ; title } ; dead model walking } }"
] | task210-8a5ccf1d21f9407f9a564da9e13b3ba0 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose position record fuzzily matches to hb . the number of such rows is 4 .
Output:
| [
"eq { count { filter_eq { all_rows ; position ; hb } } ; 4 }"
] | task210-224f1612681e4c3cb0d41e8ef1979509 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the 3rd maximum silver record of all rows is 42 . the rank record of the row with 3rd maximum silver record is 2 .
Output:
| [
"and { eq { nth_max { all_rows ; silver ; 3 } ; 42 } ; eq { hop { nth_argmax { all_rows ; silver ; 3 } ; rank } ; 2 } }"
] | task210-bca4182726004ad99d42677e74dad20a |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose agricultural panel record is equal to 0 . there is only one such row in the table . the party record of this unqiue row is independent .
Output:
| [
"and { only { filter_eq { all_rows ; agricultural panel ; 0 } } ; eq { hop { filter_eq { all_rows ; agricultural panel ; 0 } ; party } ; independent } }"
] | task210-5030eedd95fa41ca825477b839d09a7f |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the average of the attendance record of all rows is 16013 .
Output:
| [
"round_eq { avg { all_rows ; attendance } ; 16013 }"
] | task210-a5f7e2302d814f79aac03b429ffc42a0 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose goals record of all rows is maximum . the club record of this row is real madrid .
Output:
| [
"eq { hop { argmax { all_rows ; goals } ; club } ; real madrid }"
] | task210-4ecd2fa127914a6da1e08ec1bf01dbfa |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose attendance record is greater than 59000 . there is only one such row in the table . the date record of this unqiue row is october 30 , 1977 .
Output:
| [
"and { only { filter_greater { all_rows ; attendance ; 59000 } } ; eq { hop { filter_greater { all_rows ; attendance ; 59000 } ; date } ; october 30 , 1977 } }"
] | task210-a9e21a9bb7834c7bb84f256675494b94 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose date record fuzzily matches to december . for the final score records of these rows , most of them are greater than or equal to 20 for both teams .
Output:
| [
"most_greater_eq { filter_eq { all_rows ; date ; december } ; final score ; 20 for both teams }"
] | task210-a48f7e0a7bb44a26bbd23f79dfdb5dd5 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose date record fuzzily matches to august . the sum of the attendance record of these rows is 83969 .
Output:
| [
"round_eq { sum { filter_eq { all_rows ; date ; august } ; attendance } ; 83969 }"
] | task210-2e9bdd8d76e54d43894ee44129abeee0 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose time record of all rows is 5th minimum . the athlete record of this row is craig virgin .
Output:
| [
"eq { hop { nth_argmin { all_rows ; time ; 5 } ; athlete } ; craig virgin }"
] | task210-64c24b7b0009454b9b74ffc35da73eb9 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose currency record fuzzily matches to latvian lats . take the official target date record of this row . select the rows whose currency record fuzzily matches to lithuanian litas . take the official target date record of this row . the first record is less than the second record .
Output:
| [
"less { hop { filter_eq { all_rows ; currency ; latvian lats } ; official target date } ; hop { filter_eq { all_rows ; currency ; lithuanian litas } ; official target date } }"
] | task210-b646dc14c13b4bb4a373880fc6533388 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose bronze record is equal to 8 . there is only one such row in the table . the rank record of this unqiue row is 3 .
Output:
| [
"and { only { filter_eq { all_rows ; bronze ; 8 } } ; eq { hop { filter_eq { all_rows ; bronze ; 8 } ; rank } ; 3 } }"
] | task210-c801822a90184eceab75f574285152b0 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: the sum of the population record of all rows is 46350 .
Output:
| [
"round_eq { sum { all_rows ; population } ; 46350 }"
] | task210-45fbc9dd08414492b47199638e0d91e1 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose country record fuzzily matches to spain . there is only one such row in the table . the player record of this unqiue row is josé maría olazábal .
Output:
| [
"and { only { filter_eq { all_rows ; country ; spain } } ; eq { hop { filter_eq { all_rows ; country ; spain } ; player } ; josé maría olazábal } }"
] | task210-9fd2cb6c419e47aa99e3d00029f3b88b |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose date record fuzzily matches to 11 october . take the result record of this row . select the rows whose date record fuzzily matches to 19 october . take the result record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; date ; 11 october } ; result } ; hop { filter_eq { all_rows ; date ; 19 october } ; result } }"
] | task210-3105e4aeb793458aa4e4d4e00e66aa3d |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose points record is equal to 6 . among these rows , select the rows whose difference record is equal to -10 . there is only one such row in the table . the team record of this unqiue row is amãrica .
Output:
| [
"and { only { filter_eq { filter_eq { all_rows ; points ; 6 } ; difference ; -10 } } ; eq { hop { filter_eq { filter_eq { all_rows ; points ; 6 } ; difference ; -10 } ; team } ; amãrica } }"
] | task210-bcfa281a5c5040248644e99302fa6824 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: for the high rebounds records of all rows , all of them fuzzily match to duncan .
Output:
| [
"all_eq { all_rows ; high rebounds ; duncan }"
] | task210-9d4a59026e85479e914fc247e5126151 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: for the power kw records of all rows , most of them fuzzily match to 10 kw .
Output:
| [
"most_eq { all_rows ; power kw ; 10 kw }"
] | task210-1447a73bacb54ae59f08f7648a86b23c |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose opponent record fuzzily matches to st louis blues . there is only one such row in the table .
Output:
| [
"only { filter_eq { all_rows ; opponent ; st louis blues } }"
] | task210-4dd88ea2d51e4c28914a9736a8f853f6 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose spacecraft record fuzzily matches to venera . the sum of the time elapsed record of these rows is 205 .
Output:
| [
"round_eq { sum { filter_eq { all_rows ; spacecraft ; venera } ; time elapsed } ; 205 }"
] | task210-27683cc2c8034ad6b5efc1e2eb74cbc5 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose location attendance record fuzzily matches to at & t center . the average of the location attendance record of these rows is 18797 .
Output:
| [
"round_eq { avg { filter_eq { all_rows ; location attendance ; at & t center } ; location attendance } ; 18797 }"
] | task210-b18fcb8c7d384f48917a06366b014473 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose attendance record of all rows is maximum . the venue record of this row is gosford .
Output:
| [
"eq { hop { argmax { all_rows ; attendance } ; venue } ; gosford }"
] | task210-76483325e83840c491ed717b0eec7e2b |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose directed by record fuzzily matches to allan arkush . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; directed by ; allan arkush } } ; 2 }"
] | task210-c338abc8c6cf4a81b5cb364ddfe46793 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose attendance record of all rows is maximum . the date record of this row is sunday , may 29 .
Output:
| [
"eq { hop { argmax { all_rows ; attendance } ; date } ; sunday , may 29 }"
] | task210-6837f6ae144f483b86b624d429b03c59 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: for the starts records of all rows , most of them are greater than 33 .
Output:
| [
"most_greater { all_rows ; starts ; 33 }"
] | task210-643de3b74b1b46ea8631155c3d3514c2 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose difference record is equal to 6 . there is only one such row in the table . the team record of this unqiue row is santos .
Output:
| [
"and { only { filter_eq { all_rows ; difference ; 6 } } ; eq { hop { filter_eq { all_rows ; difference ; 6 } ; team } ; santos } }"
] | task210-dab3b8676b734ba5af1b11d6b8bf6459 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the rows whose team record fuzzily matches to aa das palmeiras . take the drawn record of this row . select the rows whose team record fuzzily matches to minas gerais . take the drawn record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; team ; aa das palmeiras } ; drawn } ; hop { filter_eq { all_rows ; team ; minas gerais } ; drawn } }"
] | task210-0c9352aa68a84b209f5f754548b8c6b0 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose overall record of all rows is 2nd maximum . the name record of this row is wayne millner .
Output:
| [
"eq { hop { nth_argmax { all_rows ; overall ; 2 } ; name } ; wayne millner }"
] | task210-d90d8ee85f2b4cdf8a709ad1c9a3d10e |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose games record of all rows is 2nd maximum . the player record of this row is david gonzalvez .
Output:
| [
"eq { hop { nth_argmax { all_rows ; games ; 2 } ; player } ; david gonzalvez }"
] | task210-c51e5b32bd274bc79140c249d7811700 |
Definition: In this task, you are given a natural language interpretation of commands (consist of logical operations) to select relevant rows from the given table. Your job is to generate command (in terms of logical operations) from given natural language interpretation. Define body (contains a collection of statements that define what the this logical operator does) of each logical operator between '{}' parenthesis. Here are the definitions of logical operators that you can use while generating command:
1. count: returns the number of rows in the view.
2. only: returns whether there is exactly one row in the view.
3. hop: returns the value under the header column of the row.
4. and: returns the boolean operation result of two arguments.
5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column.
6. nth_max/nth_min: returns the n-th max/n-th min of the values under the header column.
7. argmax/argmin: returns the row with the max/min value in header column.
8. nth_argmax/nth_argmin: returns the row with the n-th max/min value in header column.
9. eq/not_eq: returns if the two arguments are equal.
10. round_eq: returns if the two arguments are roughly equal under certain tolerance.
11. greater/less: returns if the first argument is greater/less than the second argument.
12. diff: returns the difference between two arguments.
13. filter_eq/ filter_not_eq: returns the subview whose values under the header column is equal/not equal to the third argument.
14. filter_greater/filter_less: returns the subview whose values under the header column is greater/less than the third argument.
15. filter_greater_eq /filter_less_eq: returns the subview whose values under the header column is greater/less or equal than the third argument.
16. filter_all: returns the view itself for the case of describing the whole table
17. all_eq/not_eq: returns whether all the values under the header column are equal/not equal to the third argument.
18. all_greater/less: returns whether all the values under the header column are greater/less than the third argument.
19. all_greater_eq/less_eq: returns whether all the values under the header column are greater/less or equal to the third argument.
20. most_eq/not_eq: returns whether most of the values under the header column are equal/not equal to the third argument.
21. most_greater/less: returns whether most of the values under the header column are greater/less than the third argument.
22. most_greater_eq/less_eq: returns whether most of the values under the header column are greater/less or equal to the third argument.
Positive Example 1 -
Input: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Output: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 }
Positive Example 2 -
Input: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
Output: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard }
Negative Example 1 -
Input: select the row whose total record of all rows is 3rd maximum . the club record of this row is maidstone united .
Output: eq { hop { nth_argmax { all_rows ; total ; 3 } } ; maidstone united }
Negative Example 2 -
Input: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
Output: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china }
Now complete the following example -
Input: select the row whose mintage record of all rows is maximum . the theme record of this row is steam buggy .
Output:
| [
"eq { hop { argmax { all_rows ; mintage } ; theme } ; steam buggy }"
] | task210-a37636ed6d6d4b19b1257c6c4bddc5c6 |