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-0048882-p1
Print the total number of records in the input.
END{print NR}
jules 111 lina 103 eli 43 farah 114 chen 53 jules 114
6
lina 62 dina 48 kim 53 ivan 111 eli 60 bruno 94
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048882
qwen/qwen3.7-plus
awkweave-0048883
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen fable 49 bruno amber 67 jules fable 71 kim delta 85 dina birch 109 bruno harbor 21 chen amber 109 dina amber 12 alice harbor 36 bruno amber 67
chen fable 49 bruno amber 67 jules fable 71 kim delta 85 dina birch 109 bruno harbor 21 chen amber 109 dina amber 12 alice harbor 36
eli amber 96 dina juniper 50 alice cobalt 2 lina birch 68 kim birch 116 bruno juniper 90 ivan harbor 19 alice cobalt 2 alice amber 82 bruno indigo 10
eli amber 96 dina juniper 50 alice cobalt 2 lina birch 68 kim birch 116 bruno juniper 90 ivan harbor 19 alice amber 82 bruno indigo 10
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048883-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
chen fable 49 bruno amber 67 jules fable 71 kim delta 85 dina birch 109 bruno harbor 21 chen amber 109 dina amber 12 alice harbor 36 bruno amber 67
chen fable 49 bruno amber 67 jules fable 71 kim delta 85 dina birch 109 bruno harbor 21 chen amber 109 dina amber 12 alice harbor 36
eli amber 96 dina juniper 50 alice cobalt 2 lina birch 68 kim birch 116 bruno juniper 90 ivan harbor 19 alice cobalt 2 alice amber 82 bruno indigo 10
eli amber 96 dina juniper 50 alice cobalt 2 lina birch 68 kim birch 116 bruno juniper 90 ivan harbor 19 alice amber 82 bruno indigo 10
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048883
qwen/qwen3.7-plus
awkweave-0048884
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
kim grove 99 eli delta 49 dina harbor 25 hana cobalt 31 ivan grove 120 lina amber 28 alice amber 53 bruno cobalt 68 dina grove 34
kim grove 99 eli delta 49 dina harbor 25 hana cobalt 31 ivan grove 120 lina amber 28 alice amber 53 bruno cobalt 68
bruno delta 14 kim indigo 37 ivan juniper 47 jules indigo 78 alice harbor 28 chen harbor 50 farah delta 5
bruno delta 14 kim indigo 37 ivan juniper 47 jules indigo 78 alice harbor 28 chen harbor 50 farah delta 5
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048884-p1
Retain only the first occurrence of each unique value in column 1, maintaining the original input order.
!seen[$1]++
kim grove 99 eli delta 49 dina harbor 25 hana cobalt 31 ivan grove 120 lina amber 28 alice amber 53 bruno cobalt 68 dina grove 34
kim grove 99 eli delta 49 dina harbor 25 hana cobalt 31 ivan grove 120 lina amber 28 alice amber 53 bruno cobalt 68
bruno delta 14 kim indigo 37 ivan juniper 47 jules indigo 78 alice harbor 28 chen harbor 50 farah delta 5
bruno delta 14 kim indigo 37 ivan juniper 47 jules indigo 78 alice harbor 28 chen harbor 50 farah delta 5
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048884
qwen/qwen3.7-plus
awkweave-0048885
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 6 harbor alice 25 grove alice 7 fable lina 12 fable alice 21 cobalt gus 18 delta chen 25 delta kim 11 delta
kim 6 alice 31 alice 38 lina 50 alice 71 gus 89 chen 114 kim 125
chen 20 cobalt ivan 28 juniper lina 22 juniper bruno 21 grove bruno 26 fable lina 14 delta ivan 18 harbor farah 16 grove
chen 20 ivan 48 lina 70 bruno 91 bruno 117 lina 131 ivan 149 farah 165
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048885-p1
Output column 1 alongside the cumulative sum of column 2 for each record, separated by a space.
{s+=$2;print $1,s}
kim 6 harbor alice 25 grove alice 7 fable lina 12 fable alice 21 cobalt gus 18 delta chen 25 delta kim 11 delta
kim 6 alice 31 alice 38 lina 50 alice 71 gus 89 chen 114 kim 125
chen 20 cobalt ivan 28 juniper lina 22 juniper bruno 21 grove bruno 26 fable lina 14 delta ivan 18 harbor farah 16 grove
chen 20 ivan 48 lina 70 bruno 91 bruno 117 lina 131 ivan 149 farah 165
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048885
qwen/qwen3.7-plus
awkweave-0048886
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 14 14 fable bruno 21 22 ember kim 14 23 amber alice 27 1 ember jules 16 25 cobalt farah 29 21 grove kim 20 18 amber
kim 28 bruno 43 kim 37 alice 28 jules 41 farah 50 kim 38
chen 12 26 delta lina 2 2 grove kim 27 26 delta alice 22 26 ember jules 25 24 delta dina 28 1 juniper
chen 38 lina 4 kim 53 alice 48 jules 49 dina 29
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048886-p1
For each row, display field 1 followed by the total of fields 2 and 3.
{print $1,$2+$3}
kim 14 14 fable bruno 21 22 ember kim 14 23 amber alice 27 1 ember jules 16 25 cobalt farah 29 21 grove kim 20 18 amber
kim 28 bruno 43 kim 37 alice 28 jules 41 farah 50 kim 38
chen 12 26 delta lina 2 2 grove kim 27 26 delta alice 22 26 ember jules 25 24 delta dina 28 1 juniper
chen 38 lina 4 kim 53 alice 48 jules 49 dina 29
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048886
qwen/qwen3.7-plus
awkweave-0048887
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
jules 8 farah 28 gus 3 gus 17 ivan 15 ivan 8 farah 7 ivan 17 dina 28 jules 7
jules fail farah pass gus fail gus fail ivan fail ivan fail farah fail ivan fail dina pass jules fail
bruno 8 bruno 29 hana 8 farah 10 dina 4 chen 29
bruno fail bruno pass hana fail farah fail dina fail chen pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048887-p1
Output column 1 with 'pass' if column 2 is 24 or greater; otherwise, output 'fail'.
{print $1,($2>=24?"pass":"fail")}
jules 8 farah 28 gus 3 gus 17 ivan 15 ivan 8 farah 7 ivan 17 dina 28 jules 7
jules fail farah pass gus fail gus fail ivan fail ivan fail farah fail ivan fail dina pass jules fail
bruno 8 bruno 29 hana 8 farah 10 dina 4 chen 29
bruno fail bruno pass hana fail farah fail dina fail chen pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048887
qwen/qwen3.7-plus
awkweave-0048888
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
bruno ember 114 dina juniper 82 lina cobalt 20 dina indigo 33 jules birch 89 ivan fable 115 dina birch 50
EMBER JUNIPER COBALT INDIGO BIRCH FABLE BIRCH
dina birch 65 farah birch 95 farah indigo 112 farah indigo 36 dina juniper 88 chen birch 93 bruno ember 84 lina harbor 67
BIRCH BIRCH INDIGO INDIGO JUNIPER BIRCH EMBER HARBOR
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048888-p1
Transform column 2 to uppercase and output only that column.
{print toupper($2)}
bruno ember 114 dina juniper 82 lina cobalt 20 dina indigo 33 jules birch 89 ivan fable 115 dina birch 50
EMBER JUNIPER COBALT INDIGO BIRCH FABLE BIRCH
dina birch 65 farah birch 95 farah indigo 112 farah indigo 36 dina juniper 88 chen birch 93 bruno ember 84 lina harbor 67
BIRCH BIRCH INDIGO INDIGO JUNIPER BIRCH EMBER HARBOR
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048888
qwen/qwen3.7-plus
awkweave-0048889
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
cobalt 102 grove 78 amber 12 indigo 52 cobalt 14 fable 61
bal ove ber dig bal ble
harbor 65 grove 26 indigo 104 indigo 105 fable 8 grove 7 ember 58 ember 93
rbo ove dig dig ble ove ber ber
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048889-p1
Extract and print a 3-character substring from column 1, beginning at the 3rd character.
{print substr($1,3,3)}
cobalt 102 grove 78 amber 12 indigo 52 cobalt 14 fable 61
bal ove ber dig bal ble
harbor 65 grove 26 indigo 104 indigo 105 fable 8 grove 7 ember 58 ember 93
rbo ove dig dig ble ove ber ber
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048889
qwen/qwen3.7-plus
awkweave-0048900
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen juniper 115 bruno amber 112 dina grove 60 gus delta 67 kim cobalt 22 gus cobalt 9
chen juniper 115 bruno amber 112 dina grove 60 gus delta 67 kim cobalt 22 gus cobalt 9
lina indigo 69 hana harbor 76 farah fable 21 bruno cobalt 87 jules ember 30 lina delta 38 alice indigo 119 lina fable 73 chen juniper 18
lina indigo 69 hana harbor 76 farah fable 21 bruno cobalt 87 jules ember 30 lina delta 38 alice indigo 119 lina fable 73 chen juniper 18
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048900-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with single spaces.
{$1=$1;print}
chen juniper 115 bruno amber 112 dina grove 60 gus delta 67 kim cobalt 22 gus cobalt 9
chen juniper 115 bruno amber 112 dina grove 60 gus delta 67 kim cobalt 22 gus cobalt 9
lina indigo 69 hana harbor 76 farah fable 21 bruno cobalt 87 jules ember 30 lina delta 38 alice indigo 119 lina fable 73 chen juniper 18
lina indigo 69 hana harbor 76 farah fable 21 bruno cobalt 87 jules ember 30 lina delta 38 alice indigo 119 lina fable 73 chen juniper 18
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048900
qwen/qwen3.7-plus
awkweave-0048901
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina juniper 69 failed alice grove 89 failed eli amber 29 paused farah cobalt 75 active ivan amber 75 paused farah amber 119 ready chen cobalt 46 active chen cobalt 76 ready dina amber 102 failed jules juniper 108 ready
jules juniper 108 ready
ivan birch 97 paused chen harbor 90 active ivan delta 90 paused gus ember 106 pending ivan birch 32 closed gus fable 92 ready ivan indigo 30 failed kim ember 15 pending
chen harbor 90 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048901-p1
Identify and print the longest line from the input; in case of a tie, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
dina juniper 69 failed alice grove 89 failed eli amber 29 paused farah cobalt 75 active ivan amber 75 paused farah amber 119 ready chen cobalt 46 active chen cobalt 76 ready dina amber 102 failed jules juniper 108 ready
jules juniper 108 ready
ivan birch 97 paused chen harbor 90 active ivan delta 90 paused gus ember 106 pending ivan birch 32 closed gus fable 92 ready ivan indigo 30 failed kim ember 15 pending
chen harbor 90 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048901
qwen/qwen3.7-plus
awkweave-0048902
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
kim 114 bruno 17 lina 98 alice 78 bruno 55 kim 87 ivan 68 eli 34
bruno 17 alice 78 kim 87 eli 34
alice 108 hana 87 bruno 47 kim 43 eli 36 bruno 8 gus 70
hana 87 kim 43 bruno 8
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048902-p1
Print every second line, starting from line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
kim 114 bruno 17 lina 98 alice 78 bruno 55 kim 87 ivan 68 eli 34
bruno 17 alice 78 kim 87 eli 34
alice 108 hana 87 bruno 47 kim 43 eli 36 bruno 8 gus 70
hana 87 kim 43 bruno 8
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048902
qwen/qwen3.7-plus
awkweave-0048903
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha amber 117 alpha cobalt 17 delta amber 87 alpha cobalt 48 gamma fable 65 beta cobalt 0
4
beta birch 16 beta indigo 37 alpha ember 70 beta delta 101 delta amber 1 beta juniper 76 alpha amber 5 alpha birch 24 delta ember 8 gamma fable 97
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048903-p1
Calculate and print the count of unique values found in column 1.
{if(!seen[$1]++)n++}END{print n+0}
alpha amber 117 alpha cobalt 17 delta amber 87 alpha cobalt 48 gamma fable 65 beta cobalt 0
4
beta birch 16 beta indigo 37 alpha ember 70 beta delta 101 delta amber 1 beta juniper 76 alpha amber 5 alpha birch 24 delta ember 8 gamma fable 97
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048903
qwen/qwen3.7-plus
awkweave-0048904
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}
lina 6 0 hana 8 20 gus 25 1 bruno 11 26 hana 28 1 kim 20 3
hana 0.40 gus 25.00 bruno 0.42 hana 28.00 kim 6.67
kim 20 0 jules 30 10 farah 23 12 lina 23 19 ivan 16 27 hana 9 5 lina 18 19 alice 18 4 ivan 29 8
jules 3.00 farah 1.92 lina 1.21 ivan 0.59 hana 1.80 lina 0.95 alice 4.50 ivan 3.62
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048904-p1
For each row where column 3 is non-zero, print column 1 and the result of column 2 divided by column 3, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
lina 6 0 hana 8 20 gus 25 1 bruno 11 26 hana 28 1 kim 20 3
hana 0.40 gus 25.00 bruno 0.42 hana 28.00 kim 6.67
kim 20 0 jules 30 10 farah 23 12 lina 23 19 ivan 16 27 hana 9 5 lina 18 19 alice 18 4 ivan 29 8
jules 3.00 farah 1.92 lina 1.21 ivan 0.59 hana 1.80 lina 0.95 alice 4.50 ivan 3.62
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048904
qwen/qwen3.7-plus
awkweave-0048905
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]}
jules harbor 17 chen indigo 19 eli amber 30 eli harbor 18 alice indigo 20 alice indigo 8
eli amber 30 alice indigo 20 chen indigo 19
hana cobalt 11 farah fable 7 alice indigo 27 gus ember 6 dina grove 5 kim grove 21 gus indigo 18
alice indigo 27 kim grove 21 gus indigo 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048905-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; preserve the original input order 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]}
jules harbor 17 chen indigo 19 eli amber 30 eli harbor 18 alice indigo 20 alice indigo 8
eli amber 30 alice indigo 20 chen indigo 19
hana cobalt 11 farah fable 7 alice indigo 27 gus ember 6 dina grove 5 kim grove 21 gus indigo 18
alice indigo 27 kim grove 21 gus indigo 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048905
qwen/qwen3.7-plus
awkweave-0048906
Select the 4th and 2nd fields in that order.
{print $4, $2}
paused kim closed indigo 39 jules closed eli active indigo 51 kim active alice active grove 50 kim paused bruno failed indigo 86 dina failed eli ready amber 95 farah failed hana closed ember 108 dina ready gus paused harbor 111 kim active bruno closed birch 62 eli failed ivan failed cobalt 16 eli
indigo kim indigo eli grove alice indigo bruno amber eli ember hana harbor gus birch bruno cobalt ivan
failed dina active cobalt 67 ivan failed dina closed delta 106 jules active chen active indigo 31 bruno pending bruno ready indigo 92 chen active chen failed fable 37 gus closed lina ready indigo 73 kim paused alice failed birch 41 bruno
cobalt dina delta dina indigo chen indigo bruno fable chen indigo lina birch alice
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048906-p1
Extract the fourth field followed by the second field.
{print $4, $2}
paused kim closed indigo 39 jules closed eli active indigo 51 kim active alice active grove 50 kim paused bruno failed indigo 86 dina failed eli ready amber 95 farah failed hana closed ember 108 dina ready gus paused harbor 111 kim active bruno closed birch 62 eli failed ivan failed cobalt 16 eli
indigo kim indigo eli grove alice indigo bruno amber eli ember hana harbor gus birch bruno cobalt ivan
failed dina active cobalt 67 ivan failed dina closed delta 106 jules active chen active indigo 31 bruno pending bruno ready indigo 92 chen active chen failed fable 37 gus closed lina ready indigo 73 kim paused alice failed birch 41 bruno
cobalt dina delta dina indigo chen indigo bruno fable chen indigo lina birch alice
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048906
qwen/qwen3.7-plus
awkweave-0048907
Print the last field of every input line.
{print $NF}
ready paused delta ready active harbor failed ready ember active failed delta ready paused indigo ready failed indigo
delta harbor ember delta indigo indigo
closed paused delta paused pending ember pending active amber active closed amber active paused ember pending active cobalt closed ready indigo
delta ember amber amber ember cobalt indigo
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048907-p1
Output the final field from each input line.
{print $NF}
ready paused delta ready active harbor failed ready ember active failed delta ready paused indigo ready failed indigo
delta harbor ember delta indigo indigo
closed paused delta paused pending ember pending active amber active closed amber active paused ember pending active cobalt closed ready indigo
delta ember amber amber ember cobalt indigo
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048907
qwen/qwen3.7-plus
awkweave-0048908
Print the complete records where column 2 is less than 41.
$2 < 41
ready 109 ready closed 20 failed paused 101 active active 6 closed closed 112 failed closed 95 ready
closed 20 failed active 6 closed
active 42 ready paused 87 pending ready 75 pending closed 98 pending closed 119 ready failed 26 active closed 38 active
failed 26 active closed 38 active
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048908-p1
Display full records where the value in the second column is strictly less than 41.
$2 < 41
ready 109 ready closed 20 failed paused 101 active active 6 closed closed 112 failed closed 95 ready
closed 20 failed active 6 closed
active 42 ready paused 87 pending ready 75 pending closed 98 pending closed 119 ready failed 26 active closed 38 active
failed 26 active closed 38 active
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048908
qwen/qwen3.7-plus
awkweave-0048909
Show whole lines whose 3rd field is between 6 and 18, inclusive.
$3 >= 6 && $3 <= 18
failed ready 12 active ready active 2 ready ready closed 26 closed ready closed 2 closed failed active 9 ready paused pending 30 ready active paused 27 paused ready ready 1 pending closed pending 17 active ready pending 13 paused
failed ready 12 active failed active 9 ready closed pending 17 active ready pending 13 paused
pending failed 8 pending paused ready 21 active pending ready 28 failed failed ready 30 pending pending pending 28 failed closed pending 14 pending failed active 3 paused pending closed 29 pending
pending failed 8 pending closed pending 14 pending
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048909-p1
Show entire lines where the third field falls within the inclusive range of 6 to 18.
$3 >= 6 && $3 <= 18
failed ready 12 active ready active 2 ready ready closed 26 closed ready closed 2 closed failed active 9 ready paused pending 30 ready active paused 27 paused ready ready 1 pending closed pending 17 active ready pending 13 paused
failed ready 12 active failed active 9 ready closed pending 17 active ready pending 13 paused
pending failed 8 pending paused ready 21 active pending ready 28 failed failed ready 30 pending pending pending 28 failed closed pending 14 pending failed active 3 paused pending closed 29 pending
pending failed 8 pending closed pending 14 pending
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048909
qwen/qwen3.7-plus
awkweave-0048910
Print column 4 only for rows where column 1 is exactly failed.
$1 == "failed"{print $4}
failed 21 delta chen paused 3 harbor alice paused 42 delta alice closed 72 grove gus ready 46 juniper ivan paused 118 delta farah active 45 harbor farah active 41 cobalt hana closed 111 harbor chen
chen
failed 11 ember gus paused 3 fable dina closed 60 indigo kim closed 63 birch chen closed 80 cobalt farah paused 74 indigo kim pending 89 delta bruno failed 55 cobalt ivan
gus ivan
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048910-p1
Output only the fourth column for rows where the first column matches 'failed' exactly.
$1 == "failed"{print $4}
failed 21 delta chen paused 3 harbor alice paused 42 delta alice closed 72 grove gus ready 46 juniper ivan paused 118 delta farah active 45 harbor farah active 41 cobalt hana closed 111 harbor chen
chen
failed 11 ember gus paused 3 fable dina closed 60 indigo kim closed 63 birch chen closed 80 cobalt farah paused 74 indigo kim pending 89 delta bruno failed 55 cobalt ivan
gus ivan
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048910
qwen/qwen3.7-plus
awkweave-0048911
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
amber 106 WARN ember 49 WARN amber 91 WARN ember 45 DEBUG cobalt 84 INFO juniper 60 INFO amber 46 WARN birch 20 ERROR
birch 20 ERROR
harbor 116 INFO birch 66 DEBUG juniper 25 DEBUG harbor 22 DEBUG cobalt 0 ERROR birch 5 ERROR ember 91 DEBUG indigo 106 ERROR birch 74 DEBUG cobalt 94 INFO
cobalt 0 ERROR birch 5 ERROR indigo 106 ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048911-p1
Print all fields for lines where the third field starts with the string 'ERROR'.
$3 ~ /^ERROR/
amber 106 WARN ember 49 WARN amber 91 WARN ember 45 DEBUG cobalt 84 INFO juniper 60 INFO amber 46 WARN birch 20 ERROR
birch 20 ERROR
harbor 116 INFO birch 66 DEBUG juniper 25 DEBUG harbor 22 DEBUG cobalt 0 ERROR birch 5 ERROR ember 91 DEBUG indigo 106 ERROR birch 74 DEBUG cobalt 94 INFO
cobalt 0 ERROR birch 5 ERROR indigo 106 ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048911
qwen/qwen3.7-plus
awkweave-0048912
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
amber 119 active juniper 22 pending harbor 58 paused fable 120 failed fable 106 closed birch 20 closed cobalt 99 paused cobalt 999 active
amber 119 active juniper 22 pending harbor 58 paused fable 120 failed fable 106 closed birch 20 closed
fable 26 pending ember 95 active fable 102 active birch 88 failed indigo 81 active fable 32 paused amber 111 paused juniper 74 failed cobalt 999 active
fable 26 pending ember 95 active fable 102 active birch 88 failed indigo 81 active fable 32 paused amber 111 paused juniper 74 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048912-p1
Output every line that does not contain the exact substring 'cobalt'.
$0 !~ /cobalt/
amber 119 active juniper 22 pending harbor 58 paused fable 120 failed fable 106 closed birch 20 closed cobalt 99 paused cobalt 999 active
amber 119 active juniper 22 pending harbor 58 paused fable 120 failed fable 106 closed birch 20 closed
fable 26 pending ember 95 active fable 102 active birch 88 failed indigo 81 active fable 32 paused amber 111 paused juniper 74 failed cobalt 999 active
fable 26 pending ember 95 active fable 102 active birch 88 failed indigo 81 active fable 32 paused amber 111 paused juniper 74 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048912
qwen/qwen3.7-plus
awkweave-0048913
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
farah grove 15 lina harbor 99 ivan juniper 98 hana delta 75 farah indigo 32 eli birch 17 dina grove 48
hana delta 75 farah indigo 32 eli birch 17 dina grove 48
eli amber 60 eli indigo 56 bruno indigo 112 kim harbor 18 eli indigo 29 dina amber 64 alice juniper 55
kim harbor 18 eli indigo 29 dina amber 64 alice juniper 55
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048913-p1
Print lines 4 through 7, inclusive of both the start and end lines.
NR >= 4 && NR <= 7
farah grove 15 lina harbor 99 ivan juniper 98 hana delta 75 farah indigo 32 eli birch 17 dina grove 48
hana delta 75 farah indigo 32 eli birch 17 dina grove 48
eli amber 60 eli indigo 56 bruno indigo 112 kim harbor 18 eli indigo 29 dina amber 64 alice juniper 55
kim harbor 18 eli indigo 29 dina amber 64 alice juniper 55
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048913
qwen/qwen3.7-plus
awkweave-0048914
Output only the first 4 records.
NR <= 4
hana 19 fable bruno 103 fable eli 90 grove alice 43 amber kim 7 fable bruno 57 ember jules 66 grove gus 42 delta
hana 19 fable bruno 103 fable eli 90 grove alice 43 amber
hana 120 harbor gus 53 indigo ivan 104 cobalt jules 101 birch lina 22 birch jules 2 harbor hana 104 fable farah 75 amber
hana 120 harbor gus 53 indigo ivan 104 cobalt jules 101 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048914-p1
Output only the first 4 records from the input.
NR <= 4
hana 19 fable bruno 103 fable eli 90 grove alice 43 amber kim 7 fable bruno 57 ember jules 66 grove gus 42 delta
hana 19 fable bruno 103 fable eli 90 grove alice 43 amber
hana 120 harbor gus 53 indigo ivan 104 cobalt jules 101 birch lina 22 birch jules 2 harbor hana 104 fable farah 75 amber
hana 120 harbor gus 53 indigo ivan 104 cobalt jules 101 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048914
qwen/qwen3.7-plus
awkweave-0048915
Skip the first line and print every remaining line unchanged.
NR > 1
farah 81 amber gus 89 indigo gus 73 ember jules 22 fable lina 71 grove chen 48 indigo alice 78 amber kim 12 ember
gus 89 indigo gus 73 ember jules 22 fable lina 71 grove chen 48 indigo alice 78 amber kim 12 ember
hana 24 delta eli 77 cobalt ivan 30 ember hana 93 juniper lina 98 ember lina 117 birch
eli 77 cobalt ivan 30 ember hana 93 juniper lina 98 ember lina 117 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048915-p1
Ignore the first line and print all subsequent lines without modification.
NR > 1
farah 81 amber gus 89 indigo gus 73 ember jules 22 fable lina 71 grove chen 48 indigo alice 78 amber kim 12 ember
gus 89 indigo gus 73 ember jules 22 fable lina 71 grove chen 48 indigo alice 78 amber kim 12 ember
hana 24 delta eli 77 cobalt ivan 30 ember hana 93 juniper lina 98 ember lina 117 birch
eli 77 cobalt ivan 30 ember hana 93 juniper lina 98 ember lina 117 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048915
qwen/qwen3.7-plus
awkweave-0048916
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
dina paused 20 gus active 21 alice closed 68 jules active 69 alice active 10 gus pending 38 eli paused 87 gus active 56 gus active 36
1
lina active 62 lina paused 31 dina failed 100 eli closed 64 dina active 61 bruno ready 39 jules ready 86 lina closed 52 bruno pending 84 alice ready 84
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048916-p1
Count the number of records where the second column is 'closed', outputting 0 if no such records exist.
$2 == "closed"{n++}END{print n+0}
dina paused 20 gus active 21 alice closed 68 jules active 69 alice active 10 gus pending 38 eli paused 87 gus active 56 gus active 36
1
lina active 62 lina paused 31 dina failed 100 eli closed 64 dina active 61 bruno ready 39 jules ready 86 lina closed 52 bruno pending 84 alice ready 84
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048916
qwen/qwen3.7-plus
awkweave-0048917
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
dina cobalt 24 farah fable 27 ivan juniper 6 dina juniper 28 kim birch 3 bruno harbor 3 chen juniper 18 gus amber 29 hana birch 17 hana fable 12
167
ivan juniper 20 chen fable 5 eli harbor 23 bruno cobalt 29 jules indigo 18 jules amber 5 gus grove 7 kim grove 12
119
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048917-p1
Compute and display the sum of all integer values found in the third column.
{s+=$3}END{print s+0}
dina cobalt 24 farah fable 27 ivan juniper 6 dina juniper 28 kim birch 3 bruno harbor 3 chen juniper 18 gus amber 29 hana birch 17 hana fable 12
167
ivan juniper 20 chen fable 5 eli harbor 23 bruno cobalt 29 jules indigo 18 jules amber 5 gus grove 7 kim grove 12
119
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048917
qwen/qwen3.7-plus
awkweave-0048918
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
jules amber 5 dina cobalt 12 alice birch 20 gus delta 15 farah amber 22 jules amber 6 eli delta 1 gus ember 30 eli fable 10 hana amber 11
13.20
eli ember 11 kim birch 11 ivan amber 27 dina juniper 17 kim juniper 29 ivan indigo 14 eli harbor 17
18.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048918-p1
Calculate the average of the third column and display it with two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
jules amber 5 dina cobalt 12 alice birch 20 gus delta 15 farah amber 22 jules amber 6 eli delta 1 gus ember 30 eli fable 10 hana amber 11
13.20
eli ember 11 kim birch 11 ivan amber 27 dina juniper 17 kim juniper 29 ivan indigo 14 eli harbor 17
18.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048918
qwen/qwen3.7-plus
awkweave-0048919
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
jules 26 grove eli 16 amber ivan 25 birch bruno 21 fable lina 9 harbor eli 25 ember jules 12 amber dina 19 juniper hana 13 cobalt eli 21 birch
9
alice 23 indigo chen 13 birch farah 25 indigo gus 17 ember eli 1 delta lina 11 delta
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048919-p1
Identify and output the minimum number found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
jules 26 grove eli 16 amber ivan 25 birch bruno 21 fable lina 9 harbor eli 25 ember jules 12 amber dina 19 juniper hana 13 cobalt eli 21 birch
9
alice 23 indigo chen 13 birch farah 25 indigo gus 17 ember eli 1 delta lina 11 delta
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048919
qwen/qwen3.7-plus
awkweave-0048920
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
harbor 10 jules fable 21 ivan fable 25 lina delta 14 lina birch 21 farah juniper 20 bruno fable 10 alice fable 23 dina indigo 21 chen
25
juniper 24 chen indigo 16 ivan indigo 7 kim amber 5 chen juniper 27 lina grove 7 kim amber 9 chen harbor 25 alice
27
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048920-p1
Identify and output the maximum number found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
harbor 10 jules fable 21 ivan fable 25 lina delta 14 lina birch 21 farah juniper 20 bruno fable 10 alice fable 23 dina indigo 21 chen
25
juniper 24 chen indigo 16 ivan indigo 7 kim amber 5 chen juniper 27 lina grove 7 kim amber 9 chen harbor 25 alice
27
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048920
qwen/qwen3.7-plus
awkweave-0048921
Count all input records and print the total.
END{print NR}
eli 82 kim 81 gus 58 chen 88 lina 115 hana 116 bruno 31
7
dina 33 alice 54 jules 113 farah 111 gus 80 hana 92 ivan 87
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048921-p1
Count the total number of input lines and print the result.
END{print NR}
eli 82 kim 81 gus 58 chen 88 lina 115 hana 116 bruno 31
7
dina 33 alice 54 jules 113 farah 111 gus 80 hana 92 ivan 87
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048921
qwen/qwen3.7-plus
awkweave-0048922
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
kim fable 19 kim fable 3 alice grove 38 eli harbor 0 gus grove 97 hana juniper 25 kim cobalt 18 eli harbor 0
kim fable 19 kim fable 3 alice grove 38 eli harbor 0 gus grove 97 hana juniper 25 kim cobalt 18
farah ember 38 dina ember 37 eli birch 5 eli fable 72 gus cobalt 29 dina ember 37 gus amber 97 hana cobalt 4 farah delta 57 hana juniper 115
farah ember 38 dina ember 37 eli birch 5 eli fable 72 gus cobalt 29 gus amber 97 hana cobalt 4 farah delta 57 hana juniper 115
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048922-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
kim fable 19 kim fable 3 alice grove 38 eli harbor 0 gus grove 97 hana juniper 25 kim cobalt 18 eli harbor 0
kim fable 19 kim fable 3 alice grove 38 eli harbor 0 gus grove 97 hana juniper 25 kim cobalt 18
farah ember 38 dina ember 37 eli birch 5 eli fable 72 gus cobalt 29 dina ember 37 gus amber 97 hana cobalt 4 farah delta 57 hana juniper 115
farah ember 38 dina ember 37 eli birch 5 eli fable 72 gus cobalt 29 gus amber 97 hana cobalt 4 farah delta 57 hana juniper 115
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048922
qwen/qwen3.7-plus
awkweave-0048923
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
chen delta 45 chen delta 27 lina ember 89 gus birch 77 dina harbor 26 jules fable 56 kim harbor 104 gus indigo 72
chen delta 45 chen delta 27 lina ember 89 gus birch 77 dina harbor 26 jules fable 56 kim harbor 104 gus indigo 72
farah fable 92 lina harbor 87 dina birch 70 bruno ember 19 kim birch 45 bruno fable 6 chen harbor 3 eli delta 77 lina birch 89 gus amber 115
farah fable 92 lina harbor 87 dina birch 70 bruno ember 19 kim birch 45 bruno fable 6 chen harbor 3 eli delta 77 lina birch 89 gus amber 115
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048923-p1
Retain only the initial line for every unique value in the third column, keeping the original order.
!seen[$3]++
chen delta 45 chen delta 27 lina ember 89 gus birch 77 dina harbor 26 jules fable 56 kim harbor 104 gus indigo 72
chen delta 45 chen delta 27 lina ember 89 gus birch 77 dina harbor 26 jules fable 56 kim harbor 104 gus indigo 72
farah fable 92 lina harbor 87 dina birch 70 bruno ember 19 kim birch 45 bruno fable 6 chen harbor 3 eli delta 77 lina birch 89 gus amber 115
farah fable 92 lina harbor 87 dina birch 70 bruno ember 19 kim birch 45 bruno fable 6 chen harbor 3 eli delta 77 lina birch 89 gus amber 115
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048923
qwen/qwen3.7-plus
awkweave-0048924
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 23 grove jules 21 amber bruno 11 cobalt eli 11 grove alice 26 ember ivan 6 birch hana 3 indigo dina 8 fable
jules 23 jules 44 bruno 55 eli 66 alice 92 ivan 98 hana 101 dina 109
hana 14 cobalt jules 12 birch alice 11 indigo hana 3 indigo lina 16 juniper dina 15 fable
hana 14 jules 26 alice 37 hana 40 lina 56 dina 71
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048924-p1
Output the first column alongside the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
jules 23 grove jules 21 amber bruno 11 cobalt eli 11 grove alice 26 ember ivan 6 birch hana 3 indigo dina 8 fable
jules 23 jules 44 bruno 55 eli 66 alice 92 ivan 98 hana 101 dina 109
hana 14 cobalt jules 12 birch alice 11 indigo hana 3 indigo lina 16 juniper dina 15 fable
hana 14 jules 26 alice 37 hana 40 lina 56 dina 71
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048924
qwen/qwen3.7-plus
awkweave-0048925
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 19 10 ember gus 5 3 grove chen 16 19 ember gus 23 7 indigo chen 26 4 harbor lina 22 29 amber eli 25 18 fable eli 18 22 juniper lina 23 26 indigo
hana 29 gus 8 chen 35 gus 30 chen 30 lina 51 eli 43 eli 40 lina 49
chen 13 3 harbor jules 6 3 harbor farah 4 2 cobalt gus 23 21 indigo dina 17 22 delta dina 14 8 birch dina 9 28 birch eli 24 27 birch
chen 16 jules 9 farah 6 gus 44 dina 39 dina 22 dina 37 eli 51
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048925-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
hana 19 10 ember gus 5 3 grove chen 16 19 ember gus 23 7 indigo chen 26 4 harbor lina 22 29 amber eli 25 18 fable eli 18 22 juniper lina 23 26 indigo
hana 29 gus 8 chen 35 gus 30 chen 30 lina 51 eli 43 eli 40 lina 49
chen 13 3 harbor jules 6 3 harbor farah 4 2 cobalt gus 23 21 indigo dina 17 22 delta dina 14 8 birch dina 9 28 birch eli 24 27 birch
chen 16 jules 9 farah 6 gus 44 dina 39 dina 22 dina 37 eli 51
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048925
qwen/qwen3.7-plus
awkweave-0048926
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
gus 2 jules 17 alice 12 hana 18 lina 14 bruno 26 farah 23 bruno 5 kim 2
gus fail jules fail alice fail hana fail lina fail bruno pass farah pass bruno fail kim fail
chen 19 kim 28 kim 24 dina 24 bruno 30 kim 19
chen fail kim pass kim pass dina pass bruno pass kim fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048926-p1
Print the first column and output 'pass' if the second column is 20 or greater; otherwise, output 'fail'.
{print $1,($2>=20?"pass":"fail")}
gus 2 jules 17 alice 12 hana 18 lina 14 bruno 26 farah 23 bruno 5 kim 2
gus fail jules fail alice fail hana fail lina fail bruno pass farah pass bruno fail kim fail
chen 19 kim 28 kim 24 dina 24 bruno 30 kim 19
chen fail kim pass kim pass dina pass bruno pass kim fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048926
qwen/qwen3.7-plus
awkweave-0048927
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
bruno harbor 24 alice fable 24 alice fable 8 ivan grove 50 dina indigo 95 gus birch 57 chen juniper 29
BRUNO ALICE ALICE IVAN DINA GUS CHEN
alice delta 28 gus indigo 105 jules harbor 5 kim fable 60 bruno ember 47 hana juniper 111 farah harbor 19
ALICE GUS JULES KIM BRUNO HANA FARAH
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048927-p1
Transform the first column to uppercase and print only that column.
{print toupper($1)}
bruno harbor 24 alice fable 24 alice fable 8 ivan grove 50 dina indigo 95 gus birch 57 chen juniper 29
BRUNO ALICE ALICE IVAN DINA GUS CHEN
alice delta 28 gus indigo 105 jules harbor 5 kim fable 60 bruno ember 47 hana juniper 111 farah harbor 19
ALICE GUS JULES KIM BRUNO HANA FARAH
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048927
qwen/qwen3.7-plus
awkweave-0048928
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
delta 76 amber 28 juniper 5 juniper 29 indigo 43 harbor 42 juniper 15
delt ambe juni juni indi harb juni
amber 39 indigo 89 grove 30 juniper 14 ember 107 ember 111 delta 74 delta 23 grove 64
ambe indi grov juni embe embe delt delt grov
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048928-p1
Extract and print the first four characters from the first column.
{print substr($1,1,4)}
delta 76 amber 28 juniper 5 juniper 29 indigo 43 harbor 42 juniper 15
delt ambe juni juni indi harb juni
amber 39 indigo 89 grove 30 juniper 14 ember 107 ember 111 delta 74 delta 23 grove 64
ambe indi grov juni embe embe delt delt grov
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048928
qwen/qwen3.7-plus
awkweave-0048929
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_fable 76 fable_indigo 5 juniper_grove 64 cobalt_delta 115 delta_indigo 56 cobalt_harbor 79
cobalt fable fable indigo juniper grove cobalt delta delta indigo cobalt harbor
delta_cobalt 43 juniper_fable 102 fable_indigo 87 harbor_amber 111 birch_juniper 106 grove_indigo 110 harbor_juniper 9 delta_ember 43 delta_birch 5
delta cobalt juniper fable fable indigo harbor amber birch juniper grove indigo harbor juniper delta ember delta birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048929-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_fable 76 fable_indigo 5 juniper_grove 64 cobalt_delta 115 delta_indigo 56 cobalt_harbor 79
cobalt fable fable indigo juniper grove cobalt delta delta indigo cobalt harbor
delta_cobalt 43 juniper_fable 102 fable_indigo 87 harbor_amber 111 birch_juniper 106 grove_indigo 110 harbor_juniper 9 delta_ember 43 delta_birch 5
delta cobalt juniper fable fable indigo harbor amber birch juniper grove indigo harbor juniper delta ember delta birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048929
qwen/qwen3.7-plus
awkweave-0048930
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)}
farah harbor 120 active dina fable 24 failed chen amber 13 closed dina juniper 100 active gus amber 88 pending ivan fable 85 paused ivan fable 100 pending chen delta 114 pending lina juniper 91 paused dina harbor 2 closed
active 120 harbor farah failed 24 fable dina closed 13 amber chen active 100 juniper dina pending 88 amber gus paused 85 fable ivan pending 100 fable ivan pending 114 delta chen paused 91 juniper lina closed 2 harbor dina
ivan birch 13 paused lina delta 80 ready gus cobalt 81 pending hana amber 98 paused kim juniper 79 active eli indigo 43 active jules fable 32 failed
paused 13 birch ivan ready 80 delta lina pending 81 cobalt gus paused 98 amber hana active 79 juniper kim active 43 indigo eli failed 32 fable jules
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048930-p1
Reverse the field sequence on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
farah harbor 120 active dina fable 24 failed chen amber 13 closed dina juniper 100 active gus amber 88 pending ivan fable 85 paused ivan fable 100 pending chen delta 114 pending lina juniper 91 paused dina harbor 2 closed
active 120 harbor farah failed 24 fable dina closed 13 amber chen active 100 juniper dina pending 88 amber gus paused 85 fable ivan pending 100 fable ivan pending 114 delta chen paused 91 juniper lina closed 2 harbor dina
ivan birch 13 paused lina delta 80 ready gus cobalt 81 pending hana amber 98 paused kim juniper 79 active eli indigo 43 active jules fable 32 failed
paused 13 birch ivan ready 80 delta lina pending 81 cobalt gus paused 98 amber hana active 79 juniper kim active 43 indigo eli failed 32 fable jules
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048930
qwen/qwen3.7-plus
awkweave-0048931
Print the number of whitespace-separated fields on each line.
{print NF}
lina fable 39 ready bruno indigo 75 paused hana birch 52 active gus ember 93 failed alice harbor 52 failed gus ember 46 closed farah ember 77 paused ivan amber 118 failed dina fable 91 ready gus delta 16 paused
4 4 4 4 4 4 4 4 4 4
ivan delta 41 closed lina juniper 77 paused bruno juniper 0 pending chen amber 10 active eli indigo 112 active kim birch 40 active gus amber 91 paused jules indigo 115 pending farah delta 77 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048931-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
lina fable 39 ready bruno indigo 75 paused hana birch 52 active gus ember 93 failed alice harbor 52 failed gus ember 46 closed farah ember 77 paused ivan amber 118 failed dina fable 91 ready gus delta 16 paused
4 4 4 4 4 4 4 4 4 4
ivan delta 41 closed lina juniper 77 paused bruno juniper 0 pending chen amber 10 active eli indigo 112 active kim birch 40 active gus amber 91 paused jules indigo 115 pending farah delta 77 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048931
qwen/qwen3.7-plus
awkweave-0048932
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]]}
farah beta 7 bruno delta 80 farah gamma 97 farah delta 69 farah alpha 24 eli gamma 33
beta 1 delta 2 gamma 2 alpha 1
alice beta 58 lina beta 105 lina alpha 56 bruno beta 94 jules delta 104 chen alpha 38 eli alpha 103 alice alpha 38
beta 3 alpha 4 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048932-p1
Tally records by the value in column 2, listing each value and its total in the order 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]]}
farah beta 7 bruno delta 80 farah gamma 97 farah delta 69 farah alpha 24 eli gamma 33
beta 1 delta 2 gamma 2 alpha 1
alice beta 58 lina beta 105 lina alpha 56 bruno beta 94 jules delta 104 chen alpha 38 eli alpha 103 alice alpha 38
beta 3 alpha 4 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048932
qwen/qwen3.7-plus
awkweave-0048933
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]]}
ivan delta 10 farah beta 12 chen delta 7 bruno gamma 23 eli beta 20 ivan gamma 28 lina gamma 18 hana alpha 9 dina beta 11
delta 17 beta 43 gamma 69 alpha 9
kim alpha 3 hana beta 30 ivan alpha 23 dina delta 15 dina alpha 25 eli alpha 6 chen alpha 27 dina delta 10
alpha 84 beta 30 delta 25
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048933-p1
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]]}
ivan delta 10 farah beta 12 chen delta 7 bruno gamma 23 eli beta 20 ivan gamma 28 lina gamma 18 hana alpha 9 dina beta 11
delta 17 beta 43 gamma 69 alpha 9
kim alpha 3 hana beta 30 ivan alpha 23 dina delta 15 dina alpha 25 eli alpha 6 chen alpha 27 dina delta 10
alpha 84 beta 30 delta 25
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0048933
qwen/qwen3.7-plus
awkweave-0048934
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]]}
beta harbor 38 gamma delta 119 alpha indigo 18 alpha delta 5 delta delta 35 alpha harbor 118 alpha ember 24 alpha grove 48 delta delta 112
alpha 5 delta 2
gamma fable 97 delta delta 59 alpha birch 11 delta amber 45 gamma juniper 51 gamma birch 68 gamma fable 69 delta amber 78
gamma 4 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048934-p1
List duplicate values from column 1 alongside their frequency, sorted by first 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]]}
beta harbor 38 gamma delta 119 alpha indigo 18 alpha delta 5 delta delta 35 alpha harbor 118 alpha ember 24 alpha grove 48 delta delta 112
alpha 5 delta 2
gamma fable 97 delta delta 59 alpha birch 11 delta amber 45 gamma juniper 51 gamma birch 68 gamma fable 69 delta amber 78
gamma 4 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048934
qwen/qwen3.7-plus
awkweave-0048935
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 state record_id region r001 eli 17 active r002 chen 11 pending r003 hana 17 active r004 jules 7 ready r005 jules 15 failed r006 ivan 28 ready r007 eli 17 active r008 chen 16 failed
active pending active ready failed ready active failed
display_name state record_id region r001 bruno 1 failed r002 bruno 8 pending r003 ivan 12 closed r004 jules 16 failed r005 gus 16 active r006 kim 4 paused r007 gus 14 closed r008 bruno 25 closed r009 lina 20 active
failed pending closed failed active paused closed closed active
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048935-p1
Skip the header row and output the region column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
display_name state record_id region r001 eli 17 active r002 chen 11 pending r003 hana 17 active r004 jules 7 ready r005 jules 15 failed r006 ivan 28 ready r007 eli 17 active r008 chen 16 failed
active pending active ready failed ready active failed
display_name state record_id region r001 bruno 1 failed r002 bruno 8 pending r003 ivan 12 closed r004 jules 16 failed r005 gus 16 active r006 kim 4 paused r007 gus 14 closed r008 bruno 25 closed r009 lina 20 active
failed pending closed failed active paused closed closed active
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048935
qwen/qwen3.7-plus
awkweave-0048936
The first row is a header. Print display_name for data rows whose score is greater than 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 bruno 7 paused r002 hana 24 failed r003 eli 19 ready r004 hana 21 active r005 farah 10 ready r006 jules 14 active r007 dina 7 paused r008 dina 12 paused r009 ivan 7 active
hana hana
record_id display_name score state r001 chen 20 paused r002 eli 24 ready r003 lina 22 failed r004 dina 29 active r005 chen 21 ready r006 bruno 12 active r007 hana 27 pending r008 chen 7 ready r009 eli 4 paused
eli lina dina chen hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048936-p1
Ignoring the header, print the display_name for rows where the score is above 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 bruno 7 paused r002 hana 24 failed r003 eli 19 ready r004 hana 21 active r005 farah 10 ready r006 jules 14 active r007 dina 7 paused r008 dina 12 paused r009 ivan 7 active
hana hana
record_id display_name score state r001 chen 20 paused r002 eli 24 ready r003 lina 22 failed r004 dina 29 active r005 chen 21 ready r006 bruno 12 active r007 hana 27 pending r008 chen 7 ready r009 eli 4 paused
eli lina dina chen hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048936
qwen/qwen3.7-plus
awkweave-0048937
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 9 pending bruno 6 pending eli 29 ready kim 2 failed gus 10 paused jules 23 pending dina 16 paused eli 23 pending
pending pending ready failed paused pending paused pending
alice 15 ready lina 26 paused farah 24 ready bruno 14 closed bruno 8 closed jules 30 ready eli 9 failed hana 14 failed ivan 26 paused lina 19 ready
ready paused ready closed closed ready failed failed paused ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048937-p1
Extract and print the third column from tab-separated input records.
BEGIN{FS=OFS="\t"}{print $3}
jules 9 pending bruno 6 pending eli 29 ready kim 2 failed gus 10 paused jules 23 pending dina 16 paused eli 23 pending
pending pending ready failed paused pending paused pending
alice 15 ready lina 26 paused farah 24 ready bruno 14 closed bruno 8 closed jules 30 ready eli 9 failed hana 14 failed ivan 26 paused lina 19 ready
ready paused ready closed closed ready failed failed paused ready
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048937
qwen/qwen3.7-plus
awkweave-0048938
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
farah,1,closed ivan,8,pending ivan,25,closed ivan,12,paused lina,4,paused lina,8,active jules,5,failed gus,16,paused
ivan ivan gus
ivan,9,ready hana,20,active bruno,5,active farah,21,active ivan,24,ready bruno,7,active dina,29,paused hana,16,closed kim,15,pending hana,17,active
ivan hana farah ivan dina hana kim hana
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048938-p1
For comma-separated input without quoted commas, output column 1 if column 2 is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
farah,1,closed ivan,8,pending ivan,25,closed ivan,12,paused lina,4,paused lina,8,active jules,5,failed gus,16,paused
ivan ivan gus
ivan,9,ready hana,20,active bruno,5,active farah,21,active ivan,24,ready bruno,7,active dina,29,paused hana,16,closed kim,15,pending hana,17,active
ivan hana farah ivan dina hana kim hana
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048938
qwen/qwen3.7-plus
awkweave-0048939
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus juniper 99 bruno juniper 64 chen amber 0 dina harbor 17 ivan harbor 43 eli harbor 100 bruno amber 35 jules birch 56 gus delta 52 chen juniper 105
gus juniper 99 bruno juniper 64 chen amber 0 dina harbor 17 ivan harbor 43 eli harbor 100 bruno amber 35 jules birch 56 gus delta 52 chen juniper 105
lina grove 24 alice birch 0 lina delta 7 alice grove 49 chen grove 105 farah fable 112 gus indigo 3 kim indigo 8
lina grove 24 alice birch 0 lina delta 7 alice grove 49 chen grove 105 farah fable 112 gus indigo 3 kim indigo 8
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048939-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with a single space.
{$1=$1;print}
gus juniper 99 bruno juniper 64 chen amber 0 dina harbor 17 ivan harbor 43 eli harbor 100 bruno amber 35 jules birch 56 gus delta 52 chen juniper 105
gus juniper 99 bruno juniper 64 chen amber 0 dina harbor 17 ivan harbor 43 eli harbor 100 bruno amber 35 jules birch 56 gus delta 52 chen juniper 105
lina grove 24 alice birch 0 lina delta 7 alice grove 49 chen grove 105 farah fable 112 gus indigo 3 kim indigo 8
lina grove 24 alice birch 0 lina delta 7 alice grove 49 chen grove 105 farah fable 112 gus indigo 3 kim indigo 8
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048939
qwen/qwen3.7-plus
awkweave-0048940
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah ember 73 ready ivan birch 105 pending alice amber 17 closed ivan amber 77 paused chen amber 116 ready hana birch 79 active
ivan birch 105 pending
eli fable 65 failed bruno indigo 75 pending alice indigo 110 closed alice delta 38 active hana fable 2 ready lina harbor 63 active
bruno indigo 75 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048940-p1
Identify and print the longest line from the input, selecting the first one in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
farah ember 73 ready ivan birch 105 pending alice amber 17 closed ivan amber 77 paused chen amber 116 ready hana birch 79 active
ivan birch 105 pending
eli fable 65 failed bruno indigo 75 pending alice indigo 110 closed alice delta 38 active hana fable 2 ready lina harbor 63 active
bruno indigo 75 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048940
qwen/qwen3.7-plus
awkweave-0048941
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
dina 85 chen 56 chen 32 alice 110 lina 21 gus 90 bruno 97
chen 32 gus 90
alice 80 kim 42 dina 78 gus 4 bruno 40 hana 5
dina 78 hana 5
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048941-p1
Output every third line, beginning with line 3 (i.e., lines 3, 6, 9, ...).
NR%3==0
dina 85 chen 56 chen 32 alice 110 lina 21 gus 90 bruno 97
chen 32 gus 90
alice 80 kim 42 dina 78 gus 4 bruno 40 hana 5
dina 78 hana 5
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048941
qwen/qwen3.7-plus
awkweave-0048942
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta amber 108 alpha ember 70 delta harbor 73 gamma fable 78 beta amber 60 gamma fable 38 alpha ember 13 beta cobalt 59 delta cobalt 32
5
beta fable 111 delta ember 113 gamma cobalt 93 gamma delta 76 alpha fable 97 alpha delta 34
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null