Task: In this task, you are given commands (in terms of logical operations) to select relevant rows from the given table. Your job is to generate a natural language interpretation of the given command. 
 Here are the definitions of logical operators: 
 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 argument 1 is greater/less than argument 2 
 12. diff: returns the difference between two arguments 
 13. filter eq/not eq: returns the subview whose values under the header column is equal/not equal to argument 3 
 14. filter greater/less: returns the subview whose values under the header column is greater/less than argument 3 
 15. filter greater eq /less eq: returns the subview whose values under the header column is greater/less or equal than argument 3 
 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 argument 3 
 18. all greater/less: returns whether all the values under the header column are greater/less than argument 3 
 19. all greater eq/less eq: returns whether all the values under the header column are greater/less or equal to argument 3 
 20. most eq/not eq: returns whether most of the values under the header column are equal/not equal to argument 3 
 21. most greater/less: returns whether most of the values under the header column are greater/less than argument 3 
 22. most greater eq/less eq: returns whether most of the values under the header column are greater/less or equal to argument 3
Categories: Code to Text
Domains: Code -> Language -> SQL
Reasoning: Logical Reasoning -> Reasoning with Symbols

Positive examples:
input: eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 } = true
output: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
explanation: Here, the generated sentence interprets given logical form correctly that 3rd maximum should be selected from given table rows.; input: eq { hop { argmax { all_rows ; duration } ; actor } ; lesley saweard } = true
output: select the row whose duration record of all rows is maximum. the actor record of this row is lesley saweard.
explanation: Here, the generated sentence interprets given logical form correctly that the maximum duration should be selected from the given table rows.; input: most_eq { all_rows ; points ; 0 } = true
output: for the points records of all rows, most of them are equal to 0.
explanation: Here, the generated sentence interprets given logical form correctly that the most of the point records are zero.; input: and { only { filter_eq { all_rows ; acquisition via ; rookie draft } } ; eq { hop { filter_eq { all_rows ; acquisition via ; rookie draft } ; name } ; reynel hugnatan } } = true
output: select the rows whose acquisition via record fuzzily matches to rookie draft. there is only one such row in the table. the name record of this unqiue row is reynel hugnatan.
explanation: Here, the generated sentence interprets given logical form correctly that there exists only one row whose acquisition record fuzzily matches to rookie draft.

Negative examples:
input: round_eq { avg { filter_eq { all_rows ; country ; united states } ; to par } ; -7.6 } = true
output: select the rows whose name of county record fuzzily matches to veszprém. take the area (km square) record of this row. select the rows whose name of county record fuzzily matches to tolna.
explanation: Given logic form and generated sentence are miss matched completely.; input: eq { hop { nth_argmax { all_rows ; goal gain ; 3 } ; team } ; south china } = true
output: select the row whose goal gain record of all rows is 3rd maximum. the team record of this row is india.
explanation: In the generated sentence, it is correctly interpreted that 3rd maximum should be selected from given table rows, but the interpretation of answer 'india' is wrong. It should be south china.