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: the sum of the attendance record of all rows is 771872 .
Output:
| [
"round_eq { sum { all_rows ; attendance } ; 771872 }"
] | task210-15b3f300b5bc46538470d9f7dbc3d141 |
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 date record of all rows is september 18 , 2005 .
Output:
| [
"eq { nth_max { all_rows ; date ; 3 } ; september 18 , 2005 }"
] | task210-d4427714b59b426cb29466c697eff73b |
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 melbourne . among these rows , select the rows whose crowd record is greater than 10000 . there is only one such row in the table . the venue record of this unqiue row is mcg .
Output:
| [
"and { only { filter_greater { filter_eq { all_rows ; home team ; melbourne } ; crowd ; 10000 } } ; eq { hop { filter_greater { filter_eq { all_rows ; home team ; melbourne } ; crowd ; 10000 } ; venue } ; mcg } }"
] | task210-736bb8e081cb4ed08834a1750db74e30 |
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 christian wellisch . take the round record of this row . select the rows whose opponent record fuzzily matches to pat harmon . take the round record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; opponent ; christian wellisch } ; round } ; hop { filter_eq { all_rows ; opponent ; pat harmon } ; round } }"
] | task210-c0639e3e0946456e9b98b78fe8d5c618 |
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 number of families record of all rows is 30630 .
Output:
| [
"round_eq { sum { all_rows ; number of families } ; 30630 }"
] | task210-9bdb45f591684322a01782d9f9ec8124 |
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 college record fuzzily matches to nu . there is only one such row in the table . the player record of this unqiue row is rey mendoza .
Output:
| [
"and { only { filter_eq { all_rows ; college ; nu } } ; eq { hop { filter_eq { all_rows ; college ; nu } ; player } ; rey mendoza } }"
] | task210-c8e8a54af1084575be5ca2d054dbdb89 |
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 belgium . take the total record of this row . select the rows whose country record fuzzily matches to brazil . take the total record of this row . the first record is less than the second record .
Output:
| [
"less { hop { filter_eq { all_rows ; country ; belgium } ; total } ; hop { filter_eq { all_rows ; country ; brazil } ; total } }"
] | task210-50f26761f9bd41f9925991498e3168ad |
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 density square record of all rows is 1st maximum . the municipality record of this row is malmö .
Output:
| [
"eq { hop { nth_argmax { all_rows ; density square ; 1 } ; municipality } ; malmö }"
] | task210-d99503f397be42a291a7ac04c59880df |
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 blackberry record of all rows is 3.19 % .
Output:
| [
"round_eq { avg { all_rows ; blackberry } ; 3.19 % }"
] | task210-ccc3ec6652584586acb8264e1b690b34 |
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 tournament record fuzzily matches to hamburg . take the week record of this row . select the rows whose tournament record fuzzily matches to rome . take the week record of this row . the first record is 7 days larger than the second record . the week record of the first row is may 14 . the week record of the second row is may 7 .
Output:
| [
"and { eq { diff { hop { filter_eq { all_rows ; tournament ; hamburg } ; week } ; hop { filter_eq { all_rows ; tournament ; rome } ; week } } ; 7 days } ; and { eq { hop { filter_eq { all_rows ; tournament ; hamburg } ; week } ; may 14 } ; eq { hop { filter_eq { all_rows ; tournament ; rome } ; week } ; may 7 } } }"
] | task210-3d3b3673cfe842f3aafaba03ab3345bf |
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 competition or tour records of all rows , most of them fuzzily match to friendly .
Output:
| [
"most_eq { all_rows ; competition or tour ; friendly }"
] | task210-5ec2a84254bb44c18669fa273bb8427a |
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 year record of all rows is 2nd maximum . the new jersey record of this row is paramus ll paramus .
Output:
| [
"eq { hop { nth_argmax { all_rows ; year ; 2 } ; new jersey } ; paramus ll paramus }"
] | task210-9b98d53d7cab4803866d6e39bc836aa6 |
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 october 20 , 2008 record fuzzily matches to 2010 . the number of such rows is 6 .
Output:
| [
"eq { count { filter_eq { all_rows ; october 20 , 2008 ; 2010 } } ; 6 }"
] | task210-3690e2760f6849648b06f0ec265724cc |
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 best score record of all rows is 37 .
Output:
| [
"round_eq { avg { all_rows ; best score } ; 37 }"
] | task210-e8c806811f8c466ba3aeb02b260969c7 |
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 friendly . the sum of the result record of these rows is 4 .
Output:
| [
"round_eq { sum { filter_eq { all_rows ; competition ; friendly } ; result } ; 4 }"
] | task210-33e34cfd7f0341b6b70deb3fa4898617 |
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 general classification record fuzzily matches to igor antón . among these rows , select the rows whose winner record fuzzily matches to markus fothen . there is only one such row in the table . the stage record of this unqiue row is 5 .
Output:
| [
"and { only { filter_eq { filter_eq { all_rows ; general classification ; igor antón } ; winner ; markus fothen } } ; eq { hop { filter_eq { filter_eq { all_rows ; general classification ; igor antón } ; winner ; markus fothen } ; stage } ; 5 } }"
] | task210-ca72ba173f1d49a4a1bd8933154dc2ca |
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 away team score record is less than 20 . among these rows , select the rows whose crowd record is greater than 20000 . the number of such rows is 3 .
Output:
| [
"eq { count { filter_greater { filter_less { all_rows ; away team score ; 20 } ; crowd ; 20000 } } ; 3 }"
] | task210-dce4681f458a41a18f52bd02abe33de0 |
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 platform record fuzzily matches to wii . the number of such rows is 5 .
Output:
| [
"eq { count { filter_eq { all_rows ; platform ; wii } } ; 5 }"
] | task210-eeebb7f82c5f49a5856a22c9280dcf07 |
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 class records of all rows , most of them fuzzily match to cat a .
Output:
| [
"most_eq { all_rows ; class ; cat a }"
] | task210-0e5aec4a30cf4cbd85f2e3403c3e23f6 |
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 club record fuzzily matches to fk valmiera . take the position record of this row . select the rows whose club record fuzzily matches to fk auda kekava . take the position record of this row . the first record is less than the second record .
Output:
| [
"less { hop { filter_eq { all_rows ; club ; fk valmiera } ; position } ; hop { filter_eq { all_rows ; club ; fk auda kekava } ; position } }"
] | task210-022897150a474a548b75a35f91cb0e9f |
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 john sullivan . the number of such rows is 4 .
Output:
| [
"eq { count { filter_eq { all_rows ; written by ; john sullivan } } ; 4 }"
] | task210-c743168c0de0456eb8e13d4d65c3d470 |
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 enrollment record of all rows is 44185 .
Output:
| [
"round_eq { sum { all_rows ; enrollment } ; 44185 }"
] | task210-8dc3d08b1cdb4533956cc95b7b73237d |
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 innings records of all rows , most of them are greater than 20 .
Output:
| [
"most_greater { all_rows ; innings ; 20 }"
] | task210-add08ccb844247908366003b7ddde27a |
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 of license record fuzzily matches to syracuse , ny . there is only one such row in the table . the call sign record of this unqiue row is wmhr .
Output:
| [
"and { only { filter_eq { all_rows ; city of license ; syracuse , ny } } ; eq { hop { filter_eq { all_rows ; city of license ; syracuse , ny } ; call sign } ; wmhr } }"
] | task210-6a80228274434668a91813a4e6df312c |
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 top - 10 record of all rows is 3.75 .
Output:
| [
"round_eq { avg { all_rows ; top - 10 } ; 3.75 }"
] | task210-8750f78b292242af992f649e3185ad04 |
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 engine record fuzzily matches to 112 degree v4 ' big bang ' ( 2 - stroke ) . take the crankshaft record of this row . select the rows whose engine record fuzzily matches to 90 degree v4 ' twin pulse ' . take the crankshaft record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; engine ; 112 degree v4 ' big bang ' ( 2 - stroke ) } ; crankshaft } ; hop { filter_eq { all_rows ; engine ; 90 degree v4 ' twin pulse ' } ; crankshaft } }"
] | task210-5a177bca13ea43b98f586d179281461e |
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 running back . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; position ; running back } } ; 2 }"
] | task210-b09dad223ff8411cb92fbb0fdfb90614 |
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 label records of all rows , all of them fuzzily match to linfair records .
Output:
| [
"all_eq { all_rows ; label ; linfair records }"
] | task210-e2390cbe49414b50a619f9e490070df6 |
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 round record is equal to 3 . there is only one such row in the table . the opponent record of this unqiue row is ian freeman .
Output:
| [
"and { only { filter_eq { all_rows ; round ; 3 } } ; eq { hop { filter_eq { all_rows ; round ; 3 } ; opponent } ; ian freeman } }"
] | task210-952f3b8ddc024d9d8f3dd65ff04d4797 |
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 power ( kw ) record fuzzily matches to 10 kw . among these rows , select the rows whose frequency record is greater than 100.0 . the number of such rows is 2 .
Output:
| [
"eq { count { filter_greater { filter_eq { all_rows ; power ( kw ) ; 10 kw } ; frequency ; 100.0 } } ; 2 }"
] | task210-fb1d6b0851f5469ea050e9cca69c0120 |
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 points record of all rows is maximum . the artist record of this row is niamh kavanagh .
Output:
| [
"eq { hop { argmax { all_rows ; points } ; artist } ; niamh kavanagh }"
] | task210-075c30bc54da402aae9b5bc1ec6e2f64 |
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 gore % record of all rows is maximum . the county record of this row is clark .
Output:
| [
"eq { hop { argmax { all_rows ; gore % } ; county } ; clark }"
] | task210-96dc91cc6b0543cd8827e7b9c7b73484 |
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 0 . among these rows , select the rows whose silver record is equal to 1 . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { filter_eq { all_rows ; gold ; 0 } ; silver ; 1 } } ; 2 }"
] | task210-c4a17954b41b44908aebe9464ce49cb0 |
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 manner of departure records of all rows , most of them fuzzily match to resigned .
Output:
| [
"most_eq { all_rows ; manner of departure ; resigned }"
] | task210-defb3c808d894fcd8e5044a9d6026b3d |
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 . the number of such rows is 3 .
Output:
| [
"eq { count { filter_greater { all_rows ; crowd ; 20000 } } ; 3 }"
] | task210-3eb3f01f279448d08b2442edbbbffa48 |
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 version record fuzzily matches to maxi remix . take the length record of this row . select the rows whose version record fuzzily matches to single version . take the length record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; version ; maxi remix } ; length } ; hop { filter_eq { all_rows ; version ; single version } ; length } }"
] | task210-0900315a45104cd0960eec701e143277 |
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 2007 records of all rows , most of them fuzzily match to a .
Output:
| [
"most_eq { all_rows ; 2007 ; a }"
] | task210-53945929b34c468c9a577b4ec6283f85 |
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 margin of victory record fuzzily matches to 4 strokes . there is only one such row in the table . the tournament record of this unqiue row is barclays scottish open .
Output:
| [
"and { only { filter_eq { all_rows ; margin of victory ; 4 strokes } } ; eq { hop { filter_eq { all_rows ; margin of victory ; 4 strokes } ; tournament } ; barclays scottish open } }"
] | task210-3e53d6de532d455b94721909e9a367b8 |
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 constellation record fuzzily matches to hydra . there is only one such row in the table . the ngc number record of this unqiue row is 5078 .
Output:
| [
"and { only { filter_eq { all_rows ; constellation ; hydra } } ; eq { hop { filter_eq { all_rows ; constellation ; hydra } ; ngc number } ; 5078 } }"
] | task210-7d555dac6e8e401b9bc96b5140a32e6c |
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 juliane schenk . the number of such rows is 3 .
Output:
| [
"eq { count { filter_eq { all_rows ; women 's singles ; juliane schenk } } ; 3 }"
] | task210-fa25d66f399447c6a6e59c43cdd70baf |
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 high school record fuzzily matches to lincoln . take the enrollment record of this row . select the rows whose high school record fuzzily matches to tacoma school of the arts . take the enrollment record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; high school ; lincoln } ; enrollment } ; hop { filter_eq { all_rows ; high school ; tacoma school of the arts } ; enrollment } }"
] | task210-6e6d9b9f6bc041219de3fec9942d5e85 |
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 scored record of all rows is maximum . the club record of this row is fbk kaunas .
Output:
| [
"eq { hop { argmax { all_rows ; goals scored } ; club } ; fbk kaunas }"
] | task210-4e9b1853050c478fb8cc3908c34060a1 |
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 place record fuzzily matches to pietersburg . take the population record of this row . select the rows whose place record fuzzily matches to alldays . take the population record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; place ; pietersburg } ; population } ; hop { filter_eq { all_rows ; place ; alldays } ; population } }"
] | task210-7780f45c07aa4423958fef6e925b02d1 |
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 stage ( winner ) record fuzzily matches to mark cavendish . the number of such rows is 3 .
Output:
| [
"eq { count { filter_eq { all_rows ; stage ( winner ) ; mark cavendish } } ; 3 }"
] | task210-74e9c27083494af89e5cb492b0e0fd7b |
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 score record of all rows is maximum . the team 1 record of this row is as monaco ( d1 ) .
Output:
| [
"eq { hop { argmax { all_rows ; score } ; team 1 } ; as monaco ( d1 ) }"
] | task210-e7765625011045c480a664d29781c9ea |
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 points record of all rows is 57 .
Output:
| [
"round_eq { avg { all_rows ; points } ; 57 }"
] | task210-a8bb6ec4f3ec4311a8e995f7b7cac327 |
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 equal to 1990 . the sum of the pages record of these rows is 1135 .
Output:
| [
"round_eq { sum { filter_eq { all_rows ; year ; 1990 } ; pages } ; 1135 }"
] | task210-f6773309861d4bff920794c8e297c3a4 |
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 opposing teams record fuzzily matches to scotland . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; opposing teams ; scotland } } ; 2 }"
] | task210-950bfcdac1bf4e1ba0d735b7dc4a4c1c |
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 pole position record fuzzily matches to ayrton senna . the number of such rows is 13 .
Output:
| [
"eq { count { filter_eq { all_rows ; pole position ; ayrton senna } } ; 13 }"
] | task210-6790e20e40d64430829abcabfca83c00 |
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 50 . the number of such rows is 3 .
Output:
| [
"eq { count { filter_greater { all_rows ; points ; 50 } } ; 3 }"
] | task210-5f4d383623e94285abd5f42016e53778 |
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 sept . the sum of the wildcats points record of these rows is 40 .
Output:
| [
"round_eq { sum { filter_eq { all_rows ; date ; sept } ; wildcats points } ; 40 }"
] | task210-552ea8ee7d44493e99d60da1ec02dd5a |
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 pieces record of all rows is maximum . the release record of this row is 1981 .
Output:
| [
"eq { hop { argmax { all_rows ; pieces } ; release } ; 1981 }"
] | task210-ddceaf85c32a4f7d8e61b78b0af01ab9 |
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 chassis records of all rows , most of them fuzzily match to bmw sauber .
Output:
| [
"most_eq { all_rows ; chassis ; bmw sauber }"
] | task210-4c64264eed2c4e3da0deeeb54c4dadec |
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 fuzzily matches to wu yanan . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; gold ; wu yanan } } ; 2 }"
] | task210-481446c06d2241da977f22a048c7b1f2 |
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 founded record is greater than 2000 . among these rows , select the rows whose seasons in prsl record fuzzily matches to 2009 . the number of such rows is 3 .
Output:
| [
"eq { count { filter_eq { filter_greater { all_rows ; founded ; 2000 } ; seasons in prsl ; 2009 } } ; 3 }"
] | task210-966683d9075646c2835fb313c4877149 |
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 record fuzzily matches to minnesota . among these rows , select the rows whose attendance record is greater than or equal to 19360 . the number of such rows is 2 .
Output:
| [
"eq { count { filter_greater_eq { filter_eq { all_rows ; home ; minnesota } ; attendance ; 19360 } } ; 2 }"
] | task210-4a8b3bf6d2934ea2aff0c70ae762b63d |
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 blocks per game record of all rows is maximum . the month record of this row is december 2007 .
Output:
| [
"eq { hop { argmax { all_rows ; blocks per game } ; month } ; december 2007 }"
] | task210-b5034e02f3af4bf18cd8df51e401dcfb |
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 tonnage record of all rows is 2nd maximum . the name record of this row is ocean rover .
Output:
| [
"eq { hop { nth_argmax { all_rows ; tonnage ; 2 } ; name } ; ocean rover }"
] | task210-9d196589a4ea4177939f36bdd55f8bb5 |
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 crowd record of all rows is 2nd maximum . the home team record of this row is footscray . the date record of this row is 20 june 1942 .
Output:
| [
"and { eq { hop { nth_argmax { all_rows ; crowd ; 2 } ; home team } ; footscray } ; eq { hop { nth_argmax { all_rows ; crowd ; 2 } ; date } ; 20 june 1942 } }"
] | task210-3d21acdfcdff435c9cfc3063961b3d6b |
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 floors record is greater than 30 . the number of such rows is 3 .
Output:
| [
"eq { count { filter_greater { all_rows ; floors ; 30 } } ; 3 }"
] | task210-6a58b0620aa741208e8460db3591f696 |
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 rufus guest record fuzzily matches to jimmy carr . the number of such rows is 1 .
Output:
| [
"eq { count { filter_eq { all_rows ; rufus guest ; jimmy carr } } ; 1 }"
] | task210-772293e45add47d0b7242a1c0950b2bd |
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 score record of all rows is 1st maximum . the ground record of this row is humber college north .
Output:
| [
"eq { hop { nth_argmax { all_rows ; score ; 1 } ; ground } ; humber college north }"
] | task210-15a74073cfda4ff6989b721dc440909a |
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 winner record fuzzily matches to new york jets . among these rows , select the rows whose location record fuzzily matches to shea stadium . the number of such rows is 7 .
Output:
| [
"eq { count { filter_eq { filter_eq { all_rows ; winner ; new york jets } ; location ; shea stadium } } ; 7 }"
] | task210-e722fd4d60ff4c3ea5625974aa1fcd8c |
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 maximum . the opponent record of this row is osvaldo castuera .
Output:
| [
"eq { hop { argmax { all_rows ; date } ; opponent } ; osvaldo castuera }"
] | task210-6b0f605125af403692985aaf73857da3 |
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 headquarters records of all rows , most of them fuzzily match to united states .
Output:
| [
"most_eq { all_rows ; headquarters ; united states }"
] | task210-34536d343c0747bfb94885216e302c6c |
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 feet record of all rows is 2968 .
Output:
| [
"round_eq { sum { all_rows ; feet } ; 2968 }"
] | task210-8a728433306e41199466df1210512a47 |
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 apps record of all rows is 137 .
Output:
| [
"round_eq { sum { all_rows ; apps } ; 137 }"
] | task210-9d5f29a6b5df4e50843e9b4cd4a1568d |
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 format record fuzzily matches to limited edition . the number of such rows is 5 .
Output:
| [
"eq { count { filter_eq { all_rows ; format ; limited edition } } ; 5 }"
] | task210-40780700712342a6b8eb519177ad6549 |
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 frequency record fuzzily matches to fm . the number of such rows is 9 .
Output:
| [
"eq { count { filter_eq { all_rows ; frequency ; fm } } ; 9 }"
] | task210-af31056d96804843b9df6f6aa76b0ab7 |
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 won record of all rows is 26 .
Output:
| [
"round_eq { avg { all_rows ; won } ; 26 }"
] | task210-e447104bbd444f44aeb08dc4194fb91c |
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 guy norman bee . take the episode record of this row . select the rows whose directed by record fuzzily matches to james head . take the episode record of this row . the first record is less than the second record .
Output:
| [
"less { hop { filter_eq { all_rows ; directed by ; guy norman bee } ; episode } ; hop { filter_eq { all_rows ; directed by ; james head } ; episode } }"
] | task210-939d3dcc1384466db2ca5dcdfe879f7d |
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 highest record of all rows is maximum . the team record of this row is st johnstone .
Output:
| [
"eq { hop { argmax { all_rows ; highest } ; team } ; st johnstone }"
] | task210-7315520bc864426fbff654f1fa41b4a5 |
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 april . the number of such rows is 4 .
Output:
| [
"eq { count { filter_eq { all_rows ; date ; april } } ; 4 }"
] | task210-29aef458a24f4a1ab2d32a4c9bd20dae |
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 money records of all rows , most of them are greater than or equal to 400 .
Output:
| [
"most_greater_eq { all_rows ; money ; 400 }"
] | task210-e61e2906363e41399ea2ba301a4da91a |
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 diameter ( km ) record of all rows is 512.6 .
Output:
| [
"round_eq { avg { all_rows ; diameter ( km ) } ; 512.6 }"
] | task210-6d9a9bf29298405d9ece8edfa2d0a244 |
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 of which currently forests , km square record is greater than 1000 . there is only one such row in the table .
Output:
| [
"only { filter_greater { all_rows ; of which currently forests , km square ; 1000 } }"
] | task210-2822f6cc1e0b46e788d7fd90700a6d98 |
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 area ( km square ) record is greater than 1000000 . for the population ( millions , 2011 ) records of these rows , most of them are greater than 6 .
Output:
| [
"most_greater { filter_greater { all_rows ; area ( km square ) ; 1000000 } ; population ( millions , 2011 ) ; 6 }"
] | task210-03eccdfe289e45198bd7767deb32a987 |
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 name record fuzzily matches to warrick . take the population ( 2010 ) ( rank ) record of this row . select the rows whose county name record fuzzily matches to perry . take the population ( 2010 ) ( rank ) record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; county name ; warrick } ; population ( 2010 ) ( rank ) } ; hop { filter_eq { all_rows ; county name ; perry } ; population ( 2010 ) ( rank ) } }"
] | task210-d5b205b819f04eaa8aaf60e7b5c8cf1d |
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 april 18 . take the score record of this row . select the rows whose date record fuzzily matches to april 21 . take the score record of this row . the first record is less than the second record .
Output:
| [
"less { hop { filter_eq { all_rows ; date ; april 18 } ; score } ; hop { filter_eq { all_rows ; date ; april 21 } ; score } }"
] | task210-6f6239a0308d4190a158c1e2da24f335 |
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 ( 2011 ) record of all rows is 2nd maximum . the settlement record of this row is aleksandrovo .
Output:
| [
"eq { hop { nth_argmax { all_rows ; population ( 2011 ) ; 2 } ; settlement } ; aleksandrovo }"
] | task210-88c8bc345fa043879b84478598c12e8b |
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 peterborough united . take the date record of this row . select the rows whose opponent record fuzzily matches to villarreal . take the date record of this row . the first record is less than the second record .
Output:
| [
"less { hop { filter_eq { all_rows ; opponent ; peterborough united } ; date } ; hop { filter_eq { all_rows ; opponent ; villarreal } ; date } }"
] | task210-21b370557fcd46c4891ef4545e3c972f |
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 laps record of all rows is 2nd minimum . the driver record of this row is graham hill .
Output:
| [
"eq { hop { nth_argmin { all_rows ; laps ; 2 } ; driver } ; graham hill }"
] | task210-fc6b3b67633646aa803a03d02481cf87 |
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 reason for termination record fuzzily matches to not confirmed . there is only one such row in the table . the judge record of this unqiue row is clinton woodbury howard .
Output:
| [
"and { only { filter_eq { all_rows ; reason for termination ; not confirmed } } ; eq { hop { filter_eq { all_rows ; reason for termination ; not confirmed } ; judge } ; clinton woodbury howard } }"
] | task210-828d06bf4fbb4009852e139534341f24 |
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 fate record fuzzily matches to damaged . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; fate ; damaged } } ; 2 }"
] | task210-e819cc379f004777bc34abb0c38ae652 |
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 home team record of this row is milton keynes dons .
Output:
| [
"eq { hop { nth_argmax { all_rows ; attendance ; 2 } ; home team } ; milton keynes dons }"
] | task210-8d149025646948adabddc36d6c49fed2 |
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 nation record fuzzily matches to mexico . take the total record of this row . select the rows whose nation record fuzzily matches to canada . take the total record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; nation ; mexico } ; total } ; hop { filter_eq { all_rows ; nation ; canada } ; total } }"
] | task210-33f8d26d97184136a839df54eafa37cb |
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 fatalities record of all rows is 899 .
Output:
| [
"round_eq { sum { all_rows ; fatalities } ; 899 }"
] | task210-25ccd21a54a54446a6c2276f0745513d |
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 election record fuzzily matches to 2001 . take the of candidates nominated record of this row . select the rows whose election record fuzzily matches to 2004 . take the of candidates nominated record of this row . the second record is 39 larger than the first record . the of candidates nominated record of the first row is 10 . the of candidates nominated record of the second row is 49 .
Output:
| [
"and { eq { diff { hop { filter_eq { all_rows ; election ; 2001 } ; of candidates nominated } ; hop { filter_eq { all_rows ; election ; 2004 } ; of candidates nominated } } ; -39 } ; and { eq { hop { filter_eq { all_rows ; election ; 2001 } ; of candidates nominated } ; 10 } ; eq { hop { filter_eq { all_rows ; election ; 2004 } ; of candidates nominated } ; 49 } } }"
] | task210-625527c5a54b46cfb31bff6a5d6c97d1 |
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 quarterback . the number of such rows is 2 .
Output:
| [
"eq { count { filter_eq { all_rows ; position ; quarterback } } ; 2 }"
] | task210-083bd0a827e04d5f974393be582d4952 |
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 february 2 . take the attendance record of this row . select the rows whose date record fuzzily matches to february 29 . take the attendance record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; date ; february 2 } ; attendance } ; hop { filter_eq { all_rows ; date ; february 29 } ; attendance } }"
] | task210-d5b22eeeba144239bc1aac52424f259e |
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 events record of all rows is 2nd maximum . the tournament record of this row is pga championship .
Output:
| [
"eq { hop { nth_argmax { all_rows ; events ; 2 } ; tournament } ; pga championship }"
] | task210-5e3d6921f3c74eb89e7918ae64496e74 |
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 first elected record fuzzily matches to 193 . among these rows , select the rows whose candidates record fuzzily matches to unopposed . the number of such rows is 1 .
Output:
| [
"eq { count { filter_eq { filter_eq { all_rows ; first elected ; 193 } ; candidates ; unopposed } } ; 1 }"
] | task210-ceeddaee084b49778ce2d3341f02612a |
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 height metres / ft record of all rows is maximum . the name record of this row is shard london bridge .
Output:
| [
"eq { hop { argmax { all_rows ; height metres / ft } ; name } ; shard london bridge }"
] | task210-8268db4a12164a6598e105fd599fc5d2 |
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 rushing yards record is less than 1000 . there is only one such row in the table . the year record of this unqiue row is 1989 .
Output:
| [
"and { only { filter_less { all_rows ; rushing yards ; 1000 } } ; eq { hop { filter_less { all_rows ; rushing yards ; 1000 } ; year } ; 1989 } }"
] | task210-342fb7dc60c04ff88b31406404bfc5a9 |
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 week record fuzzily matches to 8 . take the attendance record of this row . select the rows whose week record fuzzily matches to 10 . take the attendance record of this row . the first record is greater than the second record .
Output:
| [
"greater { hop { filter_eq { all_rows ; week ; 8 } ; attendance } ; hop { filter_eq { all_rows ; week ; 10 } ; attendance } }"
] | task210-d8268437c9214138b574976698d9aec2 |
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 first elected record is equal to 1824 . the number of such rows is 3 .
Output:
| [
"eq { count { filter_eq { all_rows ; first elected ; 1824 } } ; 3 }"
] | task210-77222c5dff4549f69311472688986d4f |
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 venue record fuzzily matches to lake oval . there is only one such row in the table . the home team record of this unqiue row is south melbourne .
Output:
| [
"and { only { filter_eq { all_rows ; venue ; lake oval } } ; eq { hop { filter_eq { all_rows ; venue ; lake oval } ; home team } ; south melbourne } }"
] | task210-1615aa7583dc41d19234b627d573d72e |
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 enrollment record of all rows is maximum . the location record of this row is mercer island .
Output:
| [
"eq { hop { argmax { all_rows ; enrollment } ; location } ; mercer island }"
] | task210-6c1a7f74a31748a7b0b71f2de0f08026 |
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 european cup . the number of such rows is 4 .
Output:
| [
"eq { count { filter_eq { all_rows ; competition ; european cup } } ; 4 }"
] | task210-09d8f639587c47b5985c0bbf4242abda |
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 first store record of all rows is 3rd minimum . the country record of this row is spain .
Output:
| [
"eq { hop { nth_argmin { all_rows ; first store ; 3 } ; country } ; spain }"
] | task210-9d4e3bd8108045f3a9e1171cf962d30a |