id stringlengths 16 19 | request stringlengths 21 206 | program stringlengths 6 211 | input_text stringlengths 40 477 | expected_output stringlengths 2 276 | validation_input stringlengths 39 469 | validation_output stringlengths 0 298 | family stringclasses 39
values | difficulty int64 1 3 | split stringclasses 1
value | source stringclasses 3
values | license stringclasses 1
value | paraphrase_of stringlengths 16 16 ⌀ | paraphrase_model stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
awkweave-0047882-p1 | Treating the first row as a header, print the note column for all subsequent data rows. | NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]} | display_name region note record_id
r001 chen 18 active
r002 chen 24 failed
r003 dina 20 closed
r004 jules 10 paused
r005 ivan 3 failed
r006 alice 28 pending
r007 kim 21 closed
r008 hana 2 pending
r009 jules 21 ready
r010 bruno 16 closed
| 18
24
20
10
3
28
21
2
21
16
| display_name region note record_id
r001 ivan 12 active
r002 eli 29 paused
r003 chen 15 paused
r004 eli 2 pending
r005 dina 26 closed
r006 eli 5 paused
| 12
29
15
2
26
5
| header_projection | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047882 | qwen/qwen3.7-plus |
awkweave-0047883 | The first row is a header. Print display_name for data rows whose score is greater than 18. | NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]} | record_id display_name score state
r001 chen 23 ready
r002 lina 29 closed
r003 farah 3 pending
r004 lina 18 active
r005 farah 15 paused
r006 dina 2 failed
| chen
lina
| record_id display_name score state
r001 bruno 23 failed
r002 alice 11 active
r003 alice 4 closed
r004 lina 20 pending
r005 bruno 15 pending
r006 lina 21 active
| bruno
lina
lina
| header_filter | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047883-p1 | With the first row as a header, print the display_name for data rows where the score exceeds 18. | NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]} | record_id display_name score state
r001 chen 23 ready
r002 lina 29 closed
r003 farah 3 pending
r004 lina 18 active
r005 farah 15 paused
r006 dina 2 failed
| chen
lina
| record_id display_name score state
r001 bruno 23 failed
r002 alice 11 active
r003 alice 4 closed
r004 lina 20 pending
r005 bruno 15 pending
r006 lina 21 active
| bruno
lina
lina
| header_filter | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047883 | qwen/qwen3.7-plus |
awkweave-0047884 | The input is tab-separated. Print column 1 from every record. | BEGIN{FS=OFS="\t"}{print $1} | kim 11 pending
dina 5 closed
chen 8 ready
alice 26 failed
farah 25 ready
chen 24 ready
gus 8 closed
hana 25 closed
farah 25 closed
ivan 14 pending
| kim
dina
chen
alice
farah
chen
gus
hana
farah
ivan
| hana 17 closed
farah 11 ready
kim 1 active
alice 27 pending
alice 11 ready
bruno 15 paused
chen 27 active
lina 30 pending
| hana
farah
kim
alice
alice
bruno
chen
lina
| tsv_projection | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047884-p1 | The input is tab-separated. Print column 1 from every record. | BEGIN{FS=OFS="\t"}{print $1} | kim 11 pending
dina 5 closed
chen 8 ready
alice 26 failed
farah 25 ready
chen 24 ready
gus 8 closed
hana 25 closed
farah 25 closed
ivan 14 pending
| kim
dina
chen
alice
farah
chen
gus
hana
farah
ivan
| hana 17 closed
farah 11 ready
kim 1 active
alice 27 pending
alice 11 ready
bruno 15 paused
chen 27 active
lina 30 pending
| hana
farah
kim
alice
alice
bruno
chen
lina
| tsv_projection | 1 | train | original-grammar-copy | CC-BY-4.0 | awkweave-0047884 | qwen/qwen3.7-plus |
awkweave-0047885 | The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 14. | BEGIN{FS=OFS=","}$2>14{print $1} | kim,9,ready
jules,5,ready
ivan,9,failed
gus,12,active
lina,5,failed
lina,21,failed
| lina
| chen,22,ready
hana,13,ready
kim,5,paused
hana,21,ready
bruno,2,closed
hana,5,active
gus,7,active
eli,16,active
jules,2,closed
| chen
hana
eli
| csv_filter | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047885-p1 | For simple CSV input without quoted commas, output the first field only if the second field is greater than 14. | BEGIN{FS=OFS=","}$2>14{print $1} | kim,9,ready
jules,5,ready
ivan,9,failed
gus,12,active
lina,5,failed
lina,21,failed
| lina
| chen,22,ready
hana,13,ready
kim,5,paused
hana,21,ready
bruno,2,closed
hana,5,active
gus,7,active
eli,16,active
jules,2,closed
| chen
hana
eli
| csv_filter | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047885 | qwen/qwen3.7-plus |
awkweave-0047886 | Trim leading and trailing whitespace and collapse internal whitespace to single spaces. | {$1=$1;print} | jules grove 25
dina grove 92
dina amber 116
bruno juniper 59
alice cobalt 11
gus juniper 46
jules indigo 39
| jules grove 25
dina grove 92
dina amber 116
bruno juniper 59
alice cobalt 11
gus juniper 46
jules indigo 39
| gus harbor 78
eli ember 37
dina fable 14
lina ember 97
alice juniper 45
kim fable 109
kim juniper 22
dina cobalt 86
lina fable 76
| gus harbor 78
eli ember 37
dina fable 14
lina ember 97
alice juniper 45
kim fable 109
kim juniper 22
dina cobalt 86
lina fable 76
| normalize_whitespace | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047886-p1 | Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space. | {$1=$1;print} | jules grove 25
dina grove 92
dina amber 116
bruno juniper 59
alice cobalt 11
gus juniper 46
jules indigo 39
| jules grove 25
dina grove 92
dina amber 116
bruno juniper 59
alice cobalt 11
gus juniper 46
jules indigo 39
| gus harbor 78
eli ember 37
dina fable 14
lina ember 97
alice juniper 45
kim fable 109
kim juniper 22
dina cobalt 86
lina fable 76
| gus harbor 78
eli ember 37
dina fable 14
lina ember 97
alice juniper 45
kim fable 109
kim juniper 22
dina cobalt 86
lina fable 76
| normalize_whitespace | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047886 | qwen/qwen3.7-plus |
awkweave-0047887 | Find and print the longest input line; if tied, keep the earliest. | {if(length($0)>length(best))best=$0}END{print best} | ivan harbor 44 paused
ivan grove 106 active
hana indigo 60 pending
eli amber 20 closed
jules birch 21 active
chen delta 77 active
chen birch 92 paused
| hana indigo 60 pending
| kim grove 41 pending
chen indigo 4 failed
gus grove 4 ready
lina delta 73 paused
bruno juniper 87 ready
hana harbor 120 ready
eli amber 82 pending
hana amber 81 paused
jules indigo 22 failed
dina cobalt 86 active
| bruno juniper 87 ready
| longest_line | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047887-p1 | Identify and print the longest line in the input, selecting the first one encountered in case of a tie. | {if(length($0)>length(best))best=$0}END{print best} | ivan harbor 44 paused
ivan grove 106 active
hana indigo 60 pending
eli amber 20 closed
jules birch 21 active
chen delta 77 active
chen birch 92 paused
| hana indigo 60 pending
| kim grove 41 pending
chen indigo 4 failed
gus grove 4 ready
lina delta 73 paused
bruno juniper 87 ready
hana harbor 120 ready
eli amber 82 pending
hana amber 81 paused
jules indigo 22 failed
dina cobalt 86 active
| bruno juniper 87 ready
| longest_line | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047887 | qwen/qwen3.7-plus |
awkweave-0047888 | Print every 4th line starting at line 1 (then line 5, and so on). | NR%4==1 | farah 34
hana 43
gus 117
farah 90
hana 22
chen 3
hana 23
alice 103
| farah 34
hana 22
| gus 61
kim 115
kim 24
lina 16
ivan 22
farah 38
| gus 61
ivan 22
| every_nth | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047888-p1 | Output lines 1, 5, 9, and so on, effectively printing every fourth line starting from the first. | NR%4==1 | farah 34
hana 43
gus 117
farah 90
hana 22
chen 3
hana 23
alice 103
| farah 34
hana 22
| gus 61
kim 115
kim 24
lina 16
ivan 22
farah 38
| gus 61
ivan 22
| every_nth | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047888 | qwen/qwen3.7-plus |
awkweave-0047889 | Count the distinct values in column 2 and print only the count. | {if(!seen[$2]++)n++}END{print n+0} | beta cobalt 99
gamma indigo 114
alpha juniper 90
delta fable 97
alpha amber 9
alpha cobalt 84
delta amber 34
gamma amber 88
alpha delta 105
| 6
| delta indigo 94
beta delta 53
alpha indigo 7
alpha juniper 77
delta amber 40
beta indigo 88
gamma ember 105
| 5
| distinct_count | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047889-p1 | Determine the number of unique values in the second column and print just that count. | {if(!seen[$2]++)n++}END{print n+0} | beta cobalt 99
gamma indigo 114
alpha juniper 90
delta fable 97
alpha amber 9
alpha cobalt 84
delta amber 34
gamma amber 88
alpha delta 105
| 6
| delta indigo 94
beta delta 53
alpha indigo 7
alpha juniper 77
delta amber 40
beta indigo 88
gamma ember 105
| 5
| distinct_count | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047889 | qwen/qwen3.7-plus |
awkweave-0047900 | Output only the first 3 records. | NR <= 3 | chen 69 juniper
kim 64 delta
hana 4 amber
lina 74 harbor
hana 37 harbor
hana 8 grove
dina 42 delta
| chen 69 juniper
kim 64 delta
hana 4 amber
| eli 62 harbor
lina 95 juniper
farah 6 amber
dina 96 cobalt
jules 97 indigo
lina 93 harbor
gus 37 fable
eli 16 harbor
lina 1 indigo
| eli 62 harbor
lina 95 juniper
farah 6 amber
| first_n | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047900-p1 | Restrict the output to the first three records only. | NR <= 3 | chen 69 juniper
kim 64 delta
hana 4 amber
lina 74 harbor
hana 37 harbor
hana 8 grove
dina 42 delta
| chen 69 juniper
kim 64 delta
hana 4 amber
| eli 62 harbor
lina 95 juniper
farah 6 amber
dina 96 cobalt
jules 97 indigo
lina 93 harbor
gus 37 fable
eli 16 harbor
lina 1 indigo
| eli 62 harbor
lina 95 juniper
farah 6 amber
| first_n | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047900 | qwen/qwen3.7-plus |
awkweave-0047901 | Skip the first line and print every remaining line unchanged. | NR > 1 | chen 43 grove
dina 9 amber
lina 99 fable
dina 106 fable
bruno 17 cobalt
hana 62 cobalt
alice 96 birch
lina 82 grove
gus 2 cobalt
gus 91 amber
| dina 9 amber
lina 99 fable
dina 106 fable
bruno 17 cobalt
hana 62 cobalt
alice 96 birch
lina 82 grove
gus 2 cobalt
gus 91 amber
| chen 59 juniper
eli 75 birch
kim 95 fable
chen 20 harbor
gus 26 fable
bruno 5 harbor
kim 110 indigo
farah 0 cobalt
lina 27 fable
| eli 75 birch
kim 95 fable
chen 20 harbor
gus 26 fable
bruno 5 harbor
kim 110 indigo
farah 0 cobalt
lina 27 fable
| skip_header | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047901-p1 | Ignore the header line and print all subsequent lines exactly as they appear. | NR > 1 | chen 43 grove
dina 9 amber
lina 99 fable
dina 106 fable
bruno 17 cobalt
hana 62 cobalt
alice 96 birch
lina 82 grove
gus 2 cobalt
gus 91 amber
| dina 9 amber
lina 99 fable
dina 106 fable
bruno 17 cobalt
hana 62 cobalt
alice 96 birch
lina 82 grove
gus 2 cobalt
gus 91 amber
| chen 59 juniper
eli 75 birch
kim 95 fable
chen 20 harbor
gus 26 fable
bruno 5 harbor
kim 110 indigo
farah 0 cobalt
lina 27 fable
| eli 75 birch
kim 95 fable
chen 20 harbor
gus 26 fable
bruno 5 harbor
kim 110 indigo
farah 0 cobalt
lina 27 fable
| skip_header | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047901 | qwen/qwen3.7-plus |
awkweave-0047902 | Count how many records have closed in column 2. Print 0 if there are none. | $2 == "closed"{n++}END{print n+0} | dina closed 63
lina ready 1
eli ready 101
dina paused 112
farah closed 55
jules active 120
bruno active 9
alice paused 28
ivan ready 51
kim failed 82
| 2
| kim failed 80
eli closed 77
hana pending 119
jules paused 27
lina pending 25
gus closed 58
hana pending 98
farah ready 84
farah paused 44
| 2
| count_matches | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047902-p1 | Count the records where the second column contains 'closed', printing 0 if no such records exist. | $2 == "closed"{n++}END{print n+0} | dina closed 63
lina ready 1
eli ready 101
dina paused 112
farah closed 55
jules active 120
bruno active 9
alice paused 28
ivan ready 51
kim failed 82
| 2
| kim failed 80
eli closed 77
hana pending 119
jules paused 27
lina pending 25
gus closed 58
hana pending 98
farah ready 84
farah paused 44
| 2
| count_matches | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047902 | qwen/qwen3.7-plus |
awkweave-0047903 | Calculate and print the sum of the integers in column 1. | {s+=$1}END{print s+0} | 17 eli birch
11 ivan grove
6 dina grove
16 ivan amber
29 alice juniper
26 hana delta
25 dina cobalt
21 farah grove
9 kim harbor
4 ivan harbor
| 164
| 1 farah harbor
5 bruno indigo
19 alice cobalt
17 farah grove
28 ivan cobalt
20 dina harbor
3 bruno amber
21 dina fable
29 jules grove
26 kim delta
| 169
| sum_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047903-p1 | Compute and display the total sum of integer values found in the first column. | {s+=$1}END{print s+0} | 17 eli birch
11 ivan grove
6 dina grove
16 ivan amber
29 alice juniper
26 hana delta
25 dina cobalt
21 farah grove
9 kim harbor
4 ivan harbor
| 164
| 1 farah harbor
5 bruno indigo
19 alice cobalt
17 farah grove
28 ivan cobalt
20 dina harbor
3 bruno amber
21 dina fable
29 jules grove
26 kim delta
| 169
| sum_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047903 | qwen/qwen3.7-plus |
awkweave-0047904 | Print the arithmetic mean of column 2, rounded to exactly two decimal places. | {s+=$2;n++}END{printf "%.2f\n",s/n} | farah 25 amber
bruno 3 grove
farah 8 ember
ivan 6 harbor
gus 8 amber
kim 2 grove
| 8.67
| ivan 3 birch
gus 25 indigo
eli 30 indigo
ivan 2 grove
gus 6 harbor
eli 26 birch
gus 6 fable
| 14.00
| average_field | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047904-p1 | Calculate the average of the values in the second column and format the result to exactly two decimal places. | {s+=$2;n++}END{printf "%.2f\n",s/n} | farah 25 amber
bruno 3 grove
farah 8 ember
ivan 6 harbor
gus 8 amber
kim 2 grove
| 8.67
| ivan 3 birch
gus 25 indigo
eli 30 indigo
ivan 2 grove
gus 6 harbor
eli 26 birch
gus 6 fable
| 14.00
| average_field | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047904 | qwen/qwen3.7-plus |
awkweave-0047905 | Find and print the smallest numeric value in column 3. | NR==1||$3<extreme{extreme=$3}END{print extreme} | ivan delta 23
dina delta 16
gus harbor 30
hana amber 13
dina juniper 4
kim cobalt 9
farah juniper 21
kim birch 28
jules harbor 25
| 4
| ivan birch 13
eli delta 6
lina grove 5
hana delta 13
chen juniper 27
eli grove 8
dina harbor 20
ivan indigo 17
ivan harbor 11
kim cobalt 2
| 2
| min_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047905-p1 | Locate and print the minimum numeric value present in the third column. | NR==1||$3<extreme{extreme=$3}END{print extreme} | ivan delta 23
dina delta 16
gus harbor 30
hana amber 13
dina juniper 4
kim cobalt 9
farah juniper 21
kim birch 28
jules harbor 25
| 4
| ivan birch 13
eli delta 6
lina grove 5
hana delta 13
chen juniper 27
eli grove 8
dina harbor 20
ivan indigo 17
ivan harbor 11
kim cobalt 2
| 2
| min_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047905 | qwen/qwen3.7-plus |
awkweave-0047906 | Find and print the largest numeric value in column 2. | NR==1||$2>extreme{extreme=$2}END{print extreme} | jules 14 delta
eli 22 ember
dina 28 cobalt
bruno 26 cobalt
hana 14 cobalt
chen 21 juniper
| 28
| eli 11 fable
lina 16 amber
gus 1 fable
kim 17 harbor
jules 29 delta
lina 16 delta
| 29
| max_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047906-p1 | Identify and output the maximum number found in the second column. | NR==1||$2>extreme{extreme=$2}END{print extreme} | jules 14 delta
eli 22 ember
dina 28 cobalt
bruno 26 cobalt
hana 14 cobalt
chen 21 juniper
| 28
| eli 11 fable
lina 16 amber
gus 1 fable
kim 17 harbor
jules 29 delta
lina 16 delta
| 29
| max_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047906 | qwen/qwen3.7-plus |
awkweave-0047907 | Count all input records and print the total. | END{print NR} | eli 65
gus 85
chen 73
eli 2
alice 8
jules 89
| 6
| jules 47
lina 23
ivan 92
lina 53
chen 17
dina 13
ivan 93
| 7
| count_records | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047907-p1 | Calculate the total number of input records and display the count. | END{print NR} | eli 65
gus 85
chen 73
eli 2
alice 8
jules 89
| 6
| jules 47
lina 23
ivan 92
lina 53
chen 17
dina 13
ivan 93
| 7
| count_records | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047907 | qwen/qwen3.7-plus |
awkweave-0047908 | Remove exact duplicate lines, preserving the first occurrence and original order. | !seen[$0]++ | dina fable 104
dina fable 36
lina juniper 1
lina juniper 1
alice grove 81
gus harbor 98
dina harbor 51
| dina fable 104
dina fable 36
lina juniper 1
alice grove 81
gus harbor 98
dina harbor 51
| ivan amber 108
kim juniper 103
bruno fable 83
dina cobalt 107
farah amber 108
hana grove 19
farah juniper 51
alice juniper 120
kim juniper 103
gus amber 23
ivan juniper 24
| ivan amber 108
kim juniper 103
bruno fable 83
dina cobalt 107
farah amber 108
hana grove 19
farah juniper 51
alice juniper 120
gus amber 23
ivan juniper 24
| dedup_lines | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047908-p1 | Eliminate duplicate lines while keeping the first instance and maintaining the original sequence. | !seen[$0]++ | dina fable 104
dina fable 36
lina juniper 1
lina juniper 1
alice grove 81
gus harbor 98
dina harbor 51
| dina fable 104
dina fable 36
lina juniper 1
alice grove 81
gus harbor 98
dina harbor 51
| ivan amber 108
kim juniper 103
bruno fable 83
dina cobalt 107
farah amber 108
hana grove 19
farah juniper 51
alice juniper 120
kim juniper 103
gus amber 23
ivan juniper 24
| ivan amber 108
kim juniper 103
bruno fable 83
dina cobalt 107
farah amber 108
hana grove 19
farah juniper 51
alice juniper 120
gus amber 23
ivan juniper 24
| dedup_lines | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047908 | qwen/qwen3.7-plus |
awkweave-0047909 | Keep only the first line for each distinct value in column 1; preserve input order. | !seen[$1]++ | kim amber 90
eli juniper 25
jules indigo 3
alice birch 63
dina harbor 56
kim fable 21
lina birch 43
eli ember 81
jules birch 115
hana amber 44
| kim amber 90
eli juniper 25
jules indigo 3
alice birch 63
dina harbor 56
lina birch 43
hana amber 44
| jules delta 76
dina juniper 113
gus delta 97
chen grove 119
alice birch 18
bruno cobalt 105
kim birch 65
bruno cobalt 90
| jules delta 76
dina juniper 113
gus delta 97
chen grove 119
alice birch 18
bruno cobalt 105
kim birch 65
| dedup_field | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047909-p1 | Retain only the initial line for every unique value in the first column, keeping the original order. | !seen[$1]++ | kim amber 90
eli juniper 25
jules indigo 3
alice birch 63
dina harbor 56
kim fable 21
lina birch 43
eli ember 81
jules birch 115
hana amber 44
| kim amber 90
eli juniper 25
jules indigo 3
alice birch 63
dina harbor 56
lina birch 43
hana amber 44
| jules delta 76
dina juniper 113
gus delta 97
chen grove 119
alice birch 18
bruno cobalt 105
kim birch 65
bruno cobalt 90
| jules delta 76
dina juniper 113
gus delta 97
chen grove 119
alice birch 18
bruno cobalt 105
kim birch 65
| dedup_field | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047909 | qwen/qwen3.7-plus |
awkweave-0047910 | For each record, print column 1 and the running sum of column 2, separated by a space. | {s+=$2;print $1,s} | dina 17 indigo
bruno 17 ember
farah 1 indigo
farah 13 amber
lina 9 harbor
chen 16 amber
ivan 2 delta
farah 12 ember
gus 26 birch
| dina 17
bruno 34
farah 35
farah 48
lina 57
chen 73
ivan 75
farah 87
gus 113
| jules 27 cobalt
ivan 12 ember
ivan 1 birch
kim 28 amber
farah 8 harbor
kim 14 fable
| jules 27
ivan 39
ivan 40
kim 68
farah 76
kim 90
| running_total | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047910-p1 | Output the first column alongside the cumulative sum of the second column for each record, separated by a space. | {s+=$2;print $1,s} | dina 17 indigo
bruno 17 ember
farah 1 indigo
farah 13 amber
lina 9 harbor
chen 16 amber
ivan 2 delta
farah 12 ember
gus 26 birch
| dina 17
bruno 34
farah 35
farah 48
lina 57
chen 73
ivan 75
farah 87
gus 113
| jules 27 cobalt
ivan 12 ember
ivan 1 birch
kim 28 amber
farah 8 harbor
kim 14 fable
| jules 27
ivan 39
ivan 40
kim 68
farah 76
kim 90
| running_total | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047910 | qwen/qwen3.7-plus |
awkweave-0047911 | For every row, print field 1 followed by the sum of fields 2 and 3. | {print $1,$2+$3} | jules 30 20 cobalt
jules 4 13 indigo
farah 22 13 harbor
gus 26 13 grove
hana 16 6 ember
farah 5 29 fable
alice 27 18 birch
hana 18 14 fable
kim 23 18 amber
| jules 50
jules 17
farah 35
gus 39
hana 22
farah 34
alice 45
hana 32
kim 41
| jules 1 9 indigo
dina 30 5 ember
eli 11 26 delta
chen 13 22 fable
bruno 15 30 harbor
eli 17 19 fable
| jules 10
dina 35
eli 37
chen 35
bruno 45
eli 36
| computed_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047911-p1 | For each row, display the first field followed by the sum of the second and third fields. | {print $1,$2+$3} | jules 30 20 cobalt
jules 4 13 indigo
farah 22 13 harbor
gus 26 13 grove
hana 16 6 ember
farah 5 29 fable
alice 27 18 birch
hana 18 14 fable
kim 23 18 amber
| jules 50
jules 17
farah 35
gus 39
hana 22
farah 34
alice 45
hana 32
kim 41
| jules 1 9 indigo
dina 30 5 ember
eli 11 26 delta
chen 13 22 fable
bruno 15 30 harbor
eli 17 19 fable
| jules 10
dina 35
eli 37
chen 35
bruno 45
eli 36
| computed_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047911 | qwen/qwen3.7-plus |
awkweave-0047912 | Print column 1 and pass when column 2 is at least 25; otherwise print fail. | {print $1,($2>=25?"pass":"fail")} | ivan 21
lina 28
ivan 9
gus 30
alice 16
dina 15
eli 2
| ivan fail
lina pass
ivan fail
gus pass
alice fail
dina fail
eli fail
| bruno 16
kim 16
gus 1
lina 26
alice 22
jules 11
jules 24
| bruno fail
kim fail
gus fail
lina pass
alice fail
jules fail
jules fail
| conditional_label | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047912-p1 | Output the first column and print 'pass' if the second column is 25 or greater; otherwise, print 'fail'. | {print $1,($2>=25?"pass":"fail")} | ivan 21
lina 28
ivan 9
gus 30
alice 16
dina 15
eli 2
| ivan fail
lina pass
ivan fail
gus pass
alice fail
dina fail
eli fail
| bruno 16
kim 16
gus 1
lina 26
alice 22
jules 11
jules 24
| bruno fail
kim fail
gus fail
lina pass
alice fail
jules fail
jules fail
| conditional_label | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047912 | qwen/qwen3.7-plus |
awkweave-0047913 | Convert column 2 to uppercase and print only that column. | {print toupper($2)} | alice birch 51
hana ember 93
hana cobalt 89
hana indigo 12
bruno ember 110
kim harbor 88
chen cobalt 112
| BIRCH
EMBER
COBALT
INDIGO
EMBER
HARBOR
COBALT
| alice cobalt 72
chen harbor 57
lina delta 38
ivan birch 37
ivan grove 58
eli birch 29
alice ember 109
ivan juniper 90
kim birch 90
bruno harbor 44
| COBALT
HARBOR
DELTA
BIRCH
GROVE
BIRCH
EMBER
JUNIPER
BIRCH
HARBOR
| uppercase | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047913-p1 | Transform the second column to uppercase and output only that column. | {print toupper($2)} | alice birch 51
hana ember 93
hana cobalt 89
hana indigo 12
bruno ember 110
kim harbor 88
chen cobalt 112
| BIRCH
EMBER
COBALT
INDIGO
EMBER
HARBOR
COBALT
| alice cobalt 72
chen harbor 57
lina delta 38
ivan birch 37
ivan grove 58
eli birch 29
alice ember 109
ivan juniper 90
kim birch 90
bruno harbor 44
| COBALT
HARBOR
DELTA
BIRCH
GROVE
BIRCH
EMBER
JUNIPER
BIRCH
HARBOR
| uppercase | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047913 | qwen/qwen3.7-plus |
awkweave-0047914 | From column 1, print 3 characters starting at character 3. | {print substr($1,3,3)} | ember 33
ember 108
fable 95
harbor 62
birch 94
birch 43
| ber
ber
ble
rbo
rch
rch
| harbor 31
juniper 13
birch 48
juniper 65
cobalt 103
fable 56
| rbo
nip
rch
nip
bal
ble
| substring | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047914-p1 | Extract and print a substring of 3 characters from the first column, starting at the third character. | {print substr($1,3,3)} | ember 33
ember 108
fable 95
harbor 62
birch 94
birch 43
| ber
ber
ble
rbo
rch
rch
| harbor 31
juniper 13
birch 48
juniper 65
cobalt 103
fable 56
| rbo
nip
rch
nip
bal
ble
| substring | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047914 | qwen/qwen3.7-plus |
awkweave-0047915 | Replace every underscore in column 1 with a space and print the resulting values. | {gsub(/_/," ",$1);print $1} | juniper_ember 82
harbor_fable 80
amber_amber 54
fable_birch 99
delta_birch 61
indigo_harbor 99
ember_fable 73
grove_birch 119
juniper_grove 1
ember_cobalt 52
| juniper ember
harbor fable
amber amber
fable birch
delta birch
indigo harbor
ember fable
grove birch
juniper grove
ember cobalt
| harbor_birch 84
amber_juniper 89
amber_ember 6
indigo_delta 50
grove_indigo 58
harbor_birch 32
birch_ember 56
grove_cobalt 7
delta_harbor 31
| harbor birch
amber juniper
amber ember
indigo delta
grove indigo
harbor birch
birch ember
grove cobalt
delta harbor
| replace_underscores | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047915-p1 | Substitute all underscores in the first column with spaces and print the modified values. | {gsub(/_/," ",$1);print $1} | juniper_ember 82
harbor_fable 80
amber_amber 54
fable_birch 99
delta_birch 61
indigo_harbor 99
ember_fable 73
grove_birch 119
juniper_grove 1
ember_cobalt 52
| juniper ember
harbor fable
amber amber
fable birch
delta birch
indigo harbor
ember fable
grove birch
juniper grove
ember cobalt
| harbor_birch 84
amber_juniper 89
amber_ember 6
indigo_delta 50
grove_indigo 58
harbor_birch 32
birch_ember 56
grove_cobalt 7
delta_harbor 31
| harbor birch
amber juniper
amber ember
indigo delta
grove indigo
harbor birch
birch ember
grove cobalt
delta harbor
| replace_underscores | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047915 | qwen/qwen3.7-plus |
awkweave-0047916 | Reverse the order of fields on every line and print all fields. | {for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)} | ivan harbor 101 paused
farah harbor 31 pending
dina indigo 111 failed
chen birch 2 ready
ivan indigo 68 failed
eli ember 87 active
eli ember 44 failed
| paused 101 harbor ivan
pending 31 harbor farah
failed 111 indigo dina
ready 2 birch chen
failed 68 indigo ivan
active 87 ember eli
failed 44 ember eli
| alice birch 101 closed
lina birch 102 paused
hana indigo 5 ready
gus ember 65 pending
bruno juniper 42 failed
kim grove 9 pending
hana delta 20 failed
kim cobalt 99 closed
eli indigo 119 active
| closed 101 birch alice
paused 102 birch lina
ready 5 indigo hana
pending 65 ember gus
failed 42 juniper bruno
pending 9 grove kim
failed 20 delta hana
closed 99 cobalt kim
active 119 indigo eli
| reverse_fields | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047916-p1 | Reverse the sequence of fields for every line and print all fields. | {for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)} | ivan harbor 101 paused
farah harbor 31 pending
dina indigo 111 failed
chen birch 2 ready
ivan indigo 68 failed
eli ember 87 active
eli ember 44 failed
| paused 101 harbor ivan
pending 31 harbor farah
failed 111 indigo dina
ready 2 birch chen
failed 68 indigo ivan
active 87 ember eli
failed 44 ember eli
| alice birch 101 closed
lina birch 102 paused
hana indigo 5 ready
gus ember 65 pending
bruno juniper 42 failed
kim grove 9 pending
hana delta 20 failed
kim cobalt 99 closed
eli indigo 119 active
| closed 101 birch alice
paused 102 birch lina
ready 5 indigo hana
pending 65 ember gus
failed 42 juniper bruno
pending 9 grove kim
failed 20 delta hana
closed 99 cobalt kim
active 119 indigo eli
| reverse_fields | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047916 | qwen/qwen3.7-plus |
awkweave-0047917 | Print the number of whitespace-separated fields on each line. | {print NF} | dina birch 97 paused
farah fable 77 active
gus cobalt 14 pending
gus amber 84 paused
jules harbor 32 active
bruno harbor 116 paused
gus cobalt 84 paused
alice grove 6 paused
dina cobalt 12 closed
farah birch 46 pending
| 4
4
4
4
4
4
4
4
4
4
| hana fable 10 pending
hana juniper 34 ready
farah amber 59 paused
jules birch 91 paused
eli indigo 15 failed
bruno indigo 64 active
kim fable 33 paused
alice ember 68 paused
hana harbor 5 failed
| 4
4
4
4
4
4
4
4
4
| field_count | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047917-p1 | Display the count of whitespace-delimited fields for each line. | {print NF} | dina birch 97 paused
farah fable 77 active
gus cobalt 14 pending
gus amber 84 paused
jules harbor 32 active
bruno harbor 116 paused
gus cobalt 84 paused
alice grove 6 paused
dina cobalt 12 closed
farah birch 46 pending
| 4
4
4
4
4
4
4
4
4
4
| hana fable 10 pending
hana juniper 34 ready
farah amber 59 paused
jules birch 91 paused
eli indigo 15 failed
bruno indigo 64 active
kim fable 33 paused
alice ember 68 paused
hana harbor 5 failed
| 4
4
4
4
4
4
4
4
4
| field_count | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047917 | qwen/qwen3.7-plus |
awkweave-0047918 | Count records for each value in column 2. Print each value and its count in order of first appearance. | {if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]} | gus gamma 92
alice alpha 9
hana delta 117
ivan alpha 30
chen gamma 22
hana gamma 35
gus alpha 40
| gamma 3
alpha 3
delta 1
| jules beta 45
hana beta 12
ivan alpha 112
kim gamma 4
gus gamma 79
jules beta 27
jules alpha 19
kim beta 80
kim gamma 113
kim alpha 14
| beta 4
alpha 3
gamma 3
| count_by_key | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047918-p1 | Tally the occurrences of each unique value in the second column and output the value alongside its count, maintaining the order in which they first appear. | {if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]} | gus gamma 92
alice alpha 9
hana delta 117
ivan alpha 30
chen gamma 22
hana gamma 35
gus alpha 40
| gamma 3
alpha 3
delta 1
| jules beta 45
hana beta 12
ivan alpha 112
kim gamma 4
gus gamma 79
jules beta 27
jules alpha 19
kim beta 80
kim gamma 113
kim alpha 14
| beta 4
alpha 3
gamma 3
| count_by_key | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047918 | qwen/qwen3.7-plus |
awkweave-0047919 | Sum column 3 for each category in column 2, printing groups in order of first appearance. | {if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]} | alice delta 8
dina beta 9
jules delta 3
kim beta 4
farah alpha 1
dina beta 18
dina beta 8
eli gamma 10
| delta 11
beta 39
alpha 1
gamma 10
| dina beta 7
farah gamma 23
ivan gamma 18
dina beta 6
dina alpha 7
ivan delta 19
dina gamma 13
| beta 13
gamma 54
alpha 7
delta 19
| sum_by_key | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047919-p1 | Calculate the sum of the third column for every distinct category found in the second column, listing the results in the order the categories first appear. | {if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]} | alice delta 8
dina beta 9
jules delta 3
kim beta 4
farah alpha 1
dina beta 18
dina beta 8
eli gamma 10
| delta 11
beta 39
alpha 1
gamma 10
| dina beta 7
farah gamma 23
ivan gamma 18
dina beta 6
dina alpha 7
ivan delta 19
dina gamma 13
| beta 13
gamma 54
alpha 7
delta 19
| sum_by_key | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047919 | qwen/qwen3.7-plus |
awkweave-0047920 | Print each repeated value from column 1 with its number of occurrences, in first-appearance order. | {if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]} | gamma delta 83
beta juniper 13
gamma indigo 109
gamma birch 46
delta juniper 117
beta juniper 31
gamma grove 113
alpha cobalt 44
gamma grove 90
| gamma 5
beta 2
| alpha birch 113
delta birch 78
beta indigo 25
delta birch 55
gamma harbor 49
alpha indigo 100
gamma amber 68
beta amber 12
gamma amber 88
delta indigo 105
| alpha 2
delta 3
beta 2
gamma 3
| duplicates_only | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047920-p1 | Identify duplicate entries in the first column, then print each repeated value along with its total occurrence count, sorted by their initial appearance. | {if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]} | gamma delta 83
beta juniper 13
gamma indigo 109
gamma birch 46
delta juniper 117
beta juniper 31
gamma grove 113
alpha cobalt 44
gamma grove 90
| gamma 5
beta 2
| alpha birch 113
delta birch 78
beta indigo 25
delta birch 55
gamma harbor 49
alpha indigo 100
gamma amber 68
beta amber 12
gamma amber 88
delta indigo 105
| alpha 2
delta 3
beta 2
gamma 3
| duplicates_only | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047920 | qwen/qwen3.7-plus |
awkweave-0047921 | The first row is a header. Print the region column for every data row. | NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]} | display_name record_id state region
r001 lina 12 failed
r002 alice 19 closed
r003 gus 16 closed
r004 dina 30 active
r005 bruno 8 ready
r006 dina 5 failed
| failed
closed
closed
active
ready
failed
| display_name record_id state region
r001 bruno 29 active
r002 gus 17 failed
r003 gus 24 pending
r004 bruno 3 failed
r005 eli 13 closed
r006 ivan 8 pending
r007 hana 26 closed
r008 dina 4 failed
r009 ivan 21 pending
| active
failed
pending
failed
closed
pending
closed
failed
pending
| header_projection | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047921-p1 | Assuming the first line is a header, extract and display the region column for all subsequent data rows. | NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]} | display_name record_id state region
r001 lina 12 failed
r002 alice 19 closed
r003 gus 16 closed
r004 dina 30 active
r005 bruno 8 ready
r006 dina 5 failed
| failed
closed
closed
active
ready
failed
| display_name record_id state region
r001 bruno 29 active
r002 gus 17 failed
r003 gus 24 pending
r004 bruno 3 failed
r005 eli 13 closed
r006 ivan 8 pending
r007 hana 26 closed
r008 dina 4 failed
r009 ivan 21 pending
| active
failed
pending
failed
closed
pending
closed
failed
pending
| header_projection | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047921 | qwen/qwen3.7-plus |
awkweave-0047922 | The first row is a header. Print display_name for data rows whose score is greater than 22. | NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]} | record_id display_name score state
r001 jules 10 paused
r002 farah 2 closed
r003 ivan 9 active
r004 lina 30 failed
r005 dina 29 closed
r006 alice 3 active
r007 alice 15 active
| lina
dina
| record_id display_name score state
r001 chen 17 closed
r002 farah 16 paused
r003 ivan 15 paused
r004 gus 6 failed
r005 chen 7 active
r006 ivan 11 paused
r007 jules 30 active
| jules
| header_filter | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047922-p1 | With the first row serving as a header, output the display_name field for any data row where the score exceeds 22. | NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]} | record_id display_name score state
r001 jules 10 paused
r002 farah 2 closed
r003 ivan 9 active
r004 lina 30 failed
r005 dina 29 closed
r006 alice 3 active
r007 alice 15 active
| lina
dina
| record_id display_name score state
r001 chen 17 closed
r002 farah 16 paused
r003 ivan 15 paused
r004 gus 6 failed
r005 chen 7 active
r006 ivan 11 paused
r007 jules 30 active
| jules
| header_filter | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047922 | qwen/qwen3.7-plus |
awkweave-0047923 | The input is tab-separated. Print column 2 from every record. | BEGIN{FS=OFS="\t"}{print $2} | eli 2 pending
bruno 22 failed
dina 15 paused
lina 10 failed
eli 19 active
lina 26 active
farah 11 paused
dina 1 ready
| 2
22
15
10
19
26
11
1
| hana 4 pending
gus 14 paused
chen 27 ready
alice 5 pending
hana 5 ready
chen 17 closed
bruno 25 ready
| 4
14
27
5
5
17
25
| tsv_projection | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047923-p1 | Given tab-separated input, extract and print the second column from every record. | BEGIN{FS=OFS="\t"}{print $2} | eli 2 pending
bruno 22 failed
dina 15 paused
lina 10 failed
eli 19 active
lina 26 active
farah 11 paused
dina 1 ready
| 2
22
15
10
19
26
11
1
| hana 4 pending
gus 14 paused
chen 27 ready
alice 5 pending
hana 5 ready
chen 17 closed
bruno 25 ready
| 4
14
27
5
5
17
25
| tsv_projection | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047923 | qwen/qwen3.7-plus |
awkweave-0047924 | The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 22. | BEGIN{FS=OFS=","}$2>22{print $1} | chen,5,ready
farah,22,ready
gus,26,failed
lina,1,closed
lina,7,failed
hana,30,ready
chen,20,closed
farah,23,active
chen,16,active
chen,20,failed
| gus
hana
farah
| jules,29,failed
dina,10,failed
kim,12,active
lina,8,paused
lina,17,failed
hana,6,paused
| jules
| csv_filter | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047924-p1 | For simple comma-separated data without quoted commas, print the first column only if the value in the second column is greater than 22. | BEGIN{FS=OFS=","}$2>22{print $1} | chen,5,ready
farah,22,ready
gus,26,failed
lina,1,closed
lina,7,failed
hana,30,ready
chen,20,closed
farah,23,active
chen,16,active
chen,20,failed
| gus
hana
farah
| jules,29,failed
dina,10,failed
kim,12,active
lina,8,paused
lina,17,failed
hana,6,paused
| jules
| csv_filter | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047924 | qwen/qwen3.7-plus |
awkweave-0047925 | Trim leading and trailing whitespace and collapse internal whitespace to single spaces. | {$1=$1;print} | hana indigo 21
ivan fable 108
bruno indigo 117
hana juniper 104
hana amber 28
chen cobalt 66
| hana indigo 21
ivan fable 108
bruno indigo 117
hana juniper 104
hana amber 28
chen cobalt 66
| dina amber 6
hana birch 0
dina fable 100
hana harbor 98
gus harbor 78
hana indigo 16
ivan delta 27
| dina amber 6
hana birch 0
dina fable 100
hana harbor 98
gus harbor 78
hana indigo 16
ivan delta 27
| normalize_whitespace | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047925-p1 | Remove leading and trailing whitespace from the input, and replace any sequence of internal whitespace characters with a single space. | {$1=$1;print} | hana indigo 21
ivan fable 108
bruno indigo 117
hana juniper 104
hana amber 28
chen cobalt 66
| hana indigo 21
ivan fable 108
bruno indigo 117
hana juniper 104
hana amber 28
chen cobalt 66
| dina amber 6
hana birch 0
dina fable 100
hana harbor 98
gus harbor 78
hana indigo 16
ivan delta 27
| dina amber 6
hana birch 0
dina fable 100
hana harbor 98
gus harbor 78
hana indigo 16
ivan delta 27
| normalize_whitespace | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047925 | qwen/qwen3.7-plus |
awkweave-0047926 | Find and print the longest input line; if tied, keep the earliest. | {if(length($0)>length(best))best=$0}END{print best} | alice juniper 48 pending
farah juniper 112 failed
kim amber 74 active
lina harbor 90 active
eli juniper 48 pending
gus fable 92 paused
| alice juniper 48 pending
| jules grove 16 active
kim indigo 15 failed
gus cobalt 73 failed
chen indigo 87 paused
ivan amber 84 closed
jules grove 97 closed
lina grove 75 closed
eli cobalt 37 closed
farah delta 77 failed
| jules grove 16 active
| longest_line | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047926-p1 | Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest. | {if(length($0)>length(best))best=$0}END{print best} | alice juniper 48 pending
farah juniper 112 failed
kim amber 74 active
lina harbor 90 active
eli juniper 48 pending
gus fable 92 paused
| alice juniper 48 pending
| jules grove 16 active
kim indigo 15 failed
gus cobalt 73 failed
chen indigo 87 paused
ivan amber 84 closed
jules grove 97 closed
lina grove 75 closed
eli cobalt 37 closed
farah delta 77 failed
| jules grove 16 active
| longest_line | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047926 | qwen/qwen3.7-plus |
awkweave-0047927 | Print every 2nd line starting at line 2 (then line 4, and so on). | NR%2==0 | dina 4
bruno 47
ivan 35
dina 52
kim 62
ivan 119
bruno 64
chen 24
kim 71
hana 24
| bruno 47
dina 52
ivan 119
chen 24
hana 24
| gus 60
hana 20
alice 95
chen 61
gus 82
lina 61
eli 78
ivan 105
dina 101
| hana 20
chen 61
lina 61
ivan 105
| every_nth | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047927-p1 | Output every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, etc.). | NR%2==0 | dina 4
bruno 47
ivan 35
dina 52
kim 62
ivan 119
bruno 64
chen 24
kim 71
hana 24
| bruno 47
dina 52
ivan 119
chen 24
hana 24
| gus 60
hana 20
alice 95
chen 61
gus 82
lina 61
eli 78
ivan 105
dina 101
| hana 20
chen 61
lina 61
ivan 105
| every_nth | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047927 | qwen/qwen3.7-plus |
awkweave-0047928 | Count the distinct values in column 2 and print only the count. | {if(!seen[$2]++)n++}END{print n+0} | beta fable 105
gamma harbor 43
gamma indigo 15
beta grove 102
delta grove 26
beta grove 83
beta grove 64
beta birch 29
delta ember 75
| 6
| gamma grove 99
delta cobalt 35
alpha juniper 49
alpha fable 74
beta amber 14
delta harbor 11
beta grove 120
gamma fable 28
beta ember 77
delta cobalt 76
| 7
| distinct_count | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047928-p1 | Determine the number of unique values present in the second column and print only this total count. | {if(!seen[$2]++)n++}END{print n+0} | beta fable 105
gamma harbor 43
gamma indigo 15
beta grove 102
delta grove 26
beta grove 83
beta grove 64
beta birch 29
delta ember 75
| 6
| gamma grove 99
delta cobalt 35
alpha juniper 49
alpha fable 74
beta amber 14
delta harbor 11
beta grove 120
gamma fable 28
beta ember 77
delta cobalt 76
| 7
| distinct_count | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047928 | qwen/qwen3.7-plus |
awkweave-0047929 | For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero. | {if($3!=0)printf "%s %.2f\n",$1,$2/$3} | kim 30 0
kim 28 10
alice 8 23
hana 16 30
lina 24 27
eli 27 6
hana 14 26
ivan 24 20
| kim 2.80
alice 0.35
hana 0.53
lina 0.89
eli 4.50
hana 0.54
ivan 1.20
| bruno 26 0
hana 30 1
bruno 28 6
chen 11 3
bruno 29 25
ivan 17 15
dina 16 21
hana 23 18
| hana 30.00
bruno 4.67
chen 3.67
bruno 1.16
ivan 1.13
dina 0.76
hana 1.28
| ratio | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047929-p1 | For each row, output the first column and the result of dividing the second column by the third column formatted to two decimal places, omitting any rows where the third column is zero. | {if($3!=0)printf "%s %.2f\n",$1,$2/$3} | kim 30 0
kim 28 10
alice 8 23
hana 16 30
lina 24 27
eli 27 6
hana 14 26
ivan 24 20
| kim 2.80
alice 0.35
hana 0.53
lina 0.89
eli 4.50
hana 0.54
ivan 1.20
| bruno 26 0
hana 30 1
bruno 28 6
chen 11 3
bruno 29 25
ivan 17 15
dina 16 21
hana 23 18
| hana 30.00
bruno 4.67
chen 3.67
bruno 1.16
ivan 1.13
dina 0.76
hana 1.28
| ratio | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047929 | qwen/qwen3.7-plus |
awkweave-0047930 | Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties. | {value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]} | gus cobalt 9
jules indigo 11
jules cobalt 25
dina cobalt 5
hana indigo 21
hana delta 10
gus cobalt 12
| jules cobalt 25
hana indigo 21
gus cobalt 12
| ivan fable 19
ivan indigo 12
kim ember 29
hana grove 28
chen grove 11
lina juniper 14
bruno juniper 27
dina grove 4
kim birch 26
| kim ember 29
hana grove 28
bruno juniper 27
| top_three | 3 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047930-p1 | Display the top 3 full records based on the highest numeric values in column 3, sorted in descending order, while maintaining the original input sequence for any ties. | {value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]} | gus cobalt 9
jules indigo 11
jules cobalt 25
dina cobalt 5
hana indigo 21
hana delta 10
gus cobalt 12
| jules cobalt 25
hana indigo 21
gus cobalt 12
| ivan fable 19
ivan indigo 12
kim ember 29
hana grove 28
chen grove 11
lina juniper 14
bruno juniper 27
dina grove 4
kim birch 26
| kim ember 29
hana grove 28
bruno juniper 27
| top_three | 3 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047930 | qwen/qwen3.7-plus |
awkweave-0047931 | For each line, output fields 5 and 2, in that order. | {print $5, $2} | ember 44 gus delta 19 12
ember 4 ivan harbor 51 55
delta 30 kim delta 17 117
amber 102 kim grove 95 105
ember 50 alice cobalt 39 69
delta 37 alice ember 111 109
| 19 44
51 4
17 30
95 102
39 50
111 37
| delta 10 hana birch 93 28
birch 27 dina amber 2 105
grove 94 eli juniper 80 98
harbor 50 lina harbor 81 65
juniper 54 lina grove 3 40
amber 2 lina amber 119 82
indigo 32 hana fable 108 109
| 93 10
2 27
80 94
81 50
3 54
119 2
108 32
| project_fields | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047931-p1 | For every line, print field 5 followed by field 2. | {print $5, $2} | ember 44 gus delta 19 12
ember 4 ivan harbor 51 55
delta 30 kim delta 17 117
amber 102 kim grove 95 105
ember 50 alice cobalt 39 69
delta 37 alice ember 111 109
| 19 44
51 4
17 30
95 102
39 50
111 37
| delta 10 hana birch 93 28
birch 27 dina amber 2 105
grove 94 eli juniper 80 98
harbor 50 lina harbor 81 65
juniper 54 lina grove 3 40
amber 2 lina amber 119 82
indigo 32 hana fable 108 109
| 93 10
2 27
80 94
81 50
3 54
119 2
108 32
| project_fields | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047931 | qwen/qwen3.7-plus |
awkweave-0047932 | Print the last field of every input line. | {print $NF} | amber hana 51 26
delta ivan 98 19
cobalt dina 12 90
indigo farah 75 20
fable hana 80 120
birch ivan 23 106
| 26
19
90
20
120
106
| harbor eli 48 5
harbor bruno 58 89
juniper bruno 70 99
indigo alice 3 106
harbor alice 84 94
indigo ivan 84 91
cobalt jules 31 109
| 5
89
99
106
94
91
109
| last_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047932-p1 | Output the final field from each input line. | {print $NF} | amber hana 51 26
delta ivan 98 19
cobalt dina 12 90
indigo farah 75 20
fable hana 80 120
birch ivan 23 106
| 26
19
90
20
120
106
| harbor eli 48 5
harbor bruno 58 89
juniper bruno 70 99
indigo alice 3 106
harbor alice 84 94
indigo ivan 84 91
cobalt jules 31 109
| 5
89
99
106
94
91
109
| last_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047932 | qwen/qwen3.7-plus |
awkweave-0047933 | Print the complete records where column 2 is greater than 47. | $2 > 47 | harbor 41 fable alice
cobalt 108 harbor hana
fable 93 amber bruno
indigo 91 grove alice
delta 115 grove gus
cobalt 96 juniper dina
cobalt 120 delta hana
ember 39 grove bruno
fable 4 juniper hana
| cobalt 108 harbor hana
fable 93 amber bruno
indigo 91 grove alice
delta 115 grove gus
cobalt 96 juniper dina
cobalt 120 delta hana
| harbor 44 delta gus
delta 92 harbor dina
indigo 33 amber chen
indigo 21 amber lina
cobalt 61 indigo farah
cobalt 104 fable ivan
delta 105 harbor kim
grove 22 ember alice
harbor 118 indigo eli
| delta 92 harbor dina
cobalt 61 indigo farah
cobalt 104 fable ivan
delta 105 harbor kim
harbor 118 indigo eli
| numeric_filter | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047933-p1 | Print the entire records where the value in column 2 exceeds 47. | $2 > 47 | harbor 41 fable alice
cobalt 108 harbor hana
fable 93 amber bruno
indigo 91 grove alice
delta 115 grove gus
cobalt 96 juniper dina
cobalt 120 delta hana
ember 39 grove bruno
fable 4 juniper hana
| cobalt 108 harbor hana
fable 93 amber bruno
indigo 91 grove alice
delta 115 grove gus
cobalt 96 juniper dina
cobalt 120 delta hana
| harbor 44 delta gus
delta 92 harbor dina
indigo 33 amber chen
indigo 21 amber lina
cobalt 61 indigo farah
cobalt 104 fable ivan
delta 105 harbor kim
grove 22 ember alice
harbor 118 indigo eli
| delta 92 harbor dina
cobalt 61 indigo farah
cobalt 104 fable ivan
delta 105 harbor kim
harbor 118 indigo eli
| numeric_filter | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047933 | qwen/qwen3.7-plus |
awkweave-0047934 | Show whole lines whose 1st field is between 8 and 23, inclusive. | $1 >= 8 && $1 <= 23 | 7 ready lina birch
25 pending jules juniper
2 failed jules grove
22 paused jules grove
20 closed gus juniper
12 closed gus harbor
2 paused lina cobalt
17 closed kim harbor
15 active kim ember
| 22 paused jules grove
20 closed gus juniper
12 closed gus harbor
17 closed kim harbor
15 active kim ember
| 23 active gus birch
16 pending jules cobalt
12 closed alice amber
15 ready farah harbor
14 closed chen delta
6 paused jules juniper
3 ready eli ember
| 23 active gus birch
16 pending jules cobalt
12 closed alice amber
15 ready farah harbor
14 closed chen delta
| numeric_range | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047934-p1 | Display complete lines where the first field falls within the inclusive range of 8 to 23. | $1 >= 8 && $1 <= 23 | 7 ready lina birch
25 pending jules juniper
2 failed jules grove
22 paused jules grove
20 closed gus juniper
12 closed gus harbor
2 paused lina cobalt
17 closed kim harbor
15 active kim ember
| 22 paused jules grove
20 closed gus juniper
12 closed gus harbor
17 closed kim harbor
15 active kim ember
| 23 active gus birch
16 pending jules cobalt
12 closed alice amber
15 ready farah harbor
14 closed chen delta
6 paused jules juniper
3 ready eli ember
| 23 active gus birch
16 pending jules cobalt
12 closed alice amber
15 ready farah harbor
14 closed chen delta
| numeric_range | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047934 | qwen/qwen3.7-plus |
awkweave-0047935 | Print column 4 only for rows where column 3 is exactly failed. | $3 == "failed"{print $4} | cobalt 4 failed ivan
cobalt 22 active lina
delta 51 ready jules
birch 106 active ivan
fable 116 active bruno
birch 34 pending hana
ember 73 active eli
ember 2 closed ivan
| ivan
| birch 56 ready ivan
juniper 13 active kim
fable 98 paused hana
ember 65 closed alice
indigo 114 ready bruno
amber 81 closed chen
indigo 57 paused ivan
ember 7 failed kim
ember 48 ready farah
| kim
| string_filter | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047935-p1 | Output only column 4 for rows where column 3 contains the exact value failed. | $3 == "failed"{print $4} | cobalt 4 failed ivan
cobalt 22 active lina
delta 51 ready jules
birch 106 active ivan
fable 116 active bruno
birch 34 pending hana
ember 73 active eli
ember 2 closed ivan
| ivan
| birch 56 ready ivan
juniper 13 active kim
fable 98 paused hana
ember 65 closed alice
indigo 114 ready bruno
amber 81 closed chen
indigo 57 paused ivan
ember 7 failed kim
ember 48 ready farah
| kim
| string_filter | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047935 | qwen/qwen3.7-plus |
awkweave-0047936 | Print all fields from lines where field 2 begins with ERROR. | $2 ~ /^ERROR/ | 16 ERROR birch
33 DEBUG harbor
113 DEBUG amber
32 WARN fable
75 DEBUG juniper
102 DEBUG indigo
| 16 ERROR birch
| 98 DEBUG indigo
111 WARN grove
26 ERROR juniper
116 ERROR cobalt
108 INFO ember
23 WARN birch
| 26 ERROR juniper
116 ERROR cobalt
| regex_filter | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047936-p1 | Print all fields from lines where the second field starts with ERROR. | $2 ~ /^ERROR/ | 16 ERROR birch
33 DEBUG harbor
113 DEBUG amber
32 WARN fable
75 DEBUG juniper
102 DEBUG indigo
| 16 ERROR birch
| 98 DEBUG indigo
111 WARN grove
26 ERROR juniper
116 ERROR cobalt
108 INFO ember
23 WARN birch
| 26 ERROR juniper
116 ERROR cobalt
| regex_filter | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047936 | qwen/qwen3.7-plus |
awkweave-0047937 | Print every line except those containing the exact text birch. | $0 !~ /birch/ | harbor 41 paused
ember 84 ready
fable 66 failed
delta 108 active
fable 15 ready
delta 15 pending
fable 18 failed
ember 118 active
birch 999 active
| harbor 41 paused
ember 84 ready
fable 66 failed
delta 108 active
fable 15 ready
delta 15 pending
fable 18 failed
ember 118 active
| amber 103 failed
delta 15 ready
ember 11 ready
indigo 60 closed
juniper 36 ready
amber 103 ready
grove 118 closed
birch 999 active
| amber 103 failed
delta 15 ready
ember 11 ready
indigo 60 closed
juniper 36 ready
amber 103 ready
grove 118 closed
| exclude_regex | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047937-p1 | Print every line that does not contain the exact string birch. | $0 !~ /birch/ | harbor 41 paused
ember 84 ready
fable 66 failed
delta 108 active
fable 15 ready
delta 15 pending
fable 18 failed
ember 118 active
birch 999 active
| harbor 41 paused
ember 84 ready
fable 66 failed
delta 108 active
fable 15 ready
delta 15 pending
fable 18 failed
ember 118 active
| amber 103 failed
delta 15 ready
ember 11 ready
indigo 60 closed
juniper 36 ready
amber 103 ready
grove 118 closed
birch 999 active
| amber 103 failed
delta 15 ready
ember 11 ready
indigo 60 closed
juniper 36 ready
amber 103 ready
grove 118 closed
| exclude_regex | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047937 | qwen/qwen3.7-plus |
awkweave-0047938 | Print lines 3 through 6, including both endpoints. | NR >= 3 && NR <= 6 | gus indigo 97
chen harbor 45
alice indigo 66
eli harbor 109
ivan ember 92
jules grove 75
bruno fable 84
ivan amber 44
farah harbor 93
farah amber 31
| alice indigo 66
eli harbor 109
ivan ember 92
jules grove 75
| eli birch 91
eli ember 101
jules cobalt 95
chen grove 22
chen birch 76
alice delta 3
hana grove 25
gus fable 100
| jules cobalt 95
chen grove 22
chen birch 76
alice delta 3
| line_range | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047938-p1 | Output lines 3 through 6, inclusive. | NR >= 3 && NR <= 6 | gus indigo 97
chen harbor 45
alice indigo 66
eli harbor 109
ivan ember 92
jules grove 75
bruno fable 84
ivan amber 44
farah harbor 93
farah amber 31
| alice indigo 66
eli harbor 109
ivan ember 92
jules grove 75
| eli birch 91
eli ember 101
jules cobalt 95
chen grove 22
chen birch 76
alice delta 3
hana grove 25
gus fable 100
| jules cobalt 95
chen grove 22
chen birch 76
alice delta 3
| line_range | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047938 | qwen/qwen3.7-plus |
awkweave-0047939 | Output only the first 5 records. | NR <= 5 | jules 84 indigo
jules 33 delta
hana 74 grove
bruno 82 juniper
chen 45 fable
kim 91 fable
ivan 52 amber
chen 16 cobalt
farah 10 fable
| jules 84 indigo
jules 33 delta
hana 74 grove
bruno 82 juniper
chen 45 fable
| kim 11 amber
ivan 6 indigo
chen 94 birch
alice 81 grove
bruno 85 harbor
gus 13 harbor
hana 61 cobalt
farah 46 ember
| kim 11 amber
ivan 6 indigo
chen 94 birch
alice 81 grove
bruno 85 harbor
| first_n | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047939-p1 | Display only the first 5 records. | NR <= 5 | jules 84 indigo
jules 33 delta
hana 74 grove
bruno 82 juniper
chen 45 fable
kim 91 fable
ivan 52 amber
chen 16 cobalt
farah 10 fable
| jules 84 indigo
jules 33 delta
hana 74 grove
bruno 82 juniper
chen 45 fable
| kim 11 amber
ivan 6 indigo
chen 94 birch
alice 81 grove
bruno 85 harbor
gus 13 harbor
hana 61 cobalt
farah 46 ember
| kim 11 amber
ivan 6 indigo
chen 94 birch
alice 81 grove
bruno 85 harbor
| first_n | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047939 | qwen/qwen3.7-plus |
awkweave-0047940 | Skip the first line and print every remaining line unchanged. | NR > 1 | farah 12 cobalt
lina 29 indigo
lina 97 ember
ivan 22 birch
chen 77 delta
ivan 9 cobalt
dina 28 ember
| lina 29 indigo
lina 97 ember
ivan 22 birch
chen 77 delta
ivan 9 cobalt
dina 28 ember
| kim 5 grove
alice 93 fable
lina 67 delta
bruno 63 indigo
hana 75 delta
gus 33 juniper
gus 99 harbor
bruno 89 ember
| alice 93 fable
lina 67 delta
bruno 63 indigo
hana 75 delta
gus 33 juniper
gus 99 harbor
bruno 89 ember
| skip_header | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047940-p1 | Ignore the first line and print all subsequent lines exactly as they appear. | NR > 1 | farah 12 cobalt
lina 29 indigo
lina 97 ember
ivan 22 birch
chen 77 delta
ivan 9 cobalt
dina 28 ember
| lina 29 indigo
lina 97 ember
ivan 22 birch
chen 77 delta
ivan 9 cobalt
dina 28 ember
| kim 5 grove
alice 93 fable
lina 67 delta
bruno 63 indigo
hana 75 delta
gus 33 juniper
gus 99 harbor
bruno 89 ember
| alice 93 fable
lina 67 delta
bruno 63 indigo
hana 75 delta
gus 33 juniper
gus 99 harbor
bruno 89 ember
| skip_header | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047940 | qwen/qwen3.7-plus |
awkweave-0047941 | Count how many records have active in column 2. Print 0 if there are none. | $2 == "active"{n++}END{print n+0} | bruno ready 36
kim ready 22
lina closed 36
dina active 34
eli active 109
hana ready 31
ivan pending 53
alice paused 31
chen ready 3
eli pending 51
| 2
| jules paused 114
lina failed 12
ivan ready 31
gus closed 28
jules ready 29
lina active 84
| 1
| count_matches | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0047941-p1 | Count the number of records where column 2 is active, and output 0 if no such records exist. | $2 == "active"{n++}END{print n+0} | bruno ready 36
kim ready 22
lina closed 36
dina active 34
eli active 109
hana ready 31
ivan pending 53
alice paused 31
chen ready 3
eli pending 51
| 2
| jules paused 114
lina failed 12
ivan ready 31
gus closed 28
jules ready 29
lina active 84
| 1
| count_matches | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0047941 | qwen/qwen3.7-plus |
awkweave-0047942 | Calculate and print the sum of the integers in column 1. | {s+=$1}END{print s+0} | 29 eli birch
3 gus amber
6 eli birch
17 bruno indigo
14 eli ember
23 bruno amber
25 hana indigo
| 117
| 13 eli ember
12 bruno delta
16 eli cobalt
27 jules amber
28 chen fable
20 dina fable
| 116
| sum_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.