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-0016880-p1
For simple comma-separated data without quoted commas, print column 1 if column 2 is greater than 22.
BEGIN{FS=OFS=","}$2>22{print $1}
lina,30,active bruno,27,ready jules,1,failed lina,26,paused lina,2,pending eli,24,closed dina,3,failed kim,29,closed hana,9,active dina,21,pending
lina bruno lina eli kim
jules,24,pending chen,6,pending hana,16,pending dina,22,active bruno,22,closed kim,23,paused gus,12,closed
jules kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016880
qwen/qwen3.7-plus
awkweave-0016881
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina birch 37 hana ember 70 jules birch 115 gus amber 56 lina cobalt 51 ivan ember 59 bruno cobalt 14
lina birch 37 hana ember 70 jules birch 115 gus amber 56 lina cobalt 51 ivan ember 59 bruno cobalt 14
kim birch 80 bruno indigo 35 hana fable 114 farah ember 13 farah harbor 12 chen birch 48 dina birch 116 dina delta 34
kim birch 80 bruno indigo 35 hana fable 114 farah ember 13 farah harbor 12 chen birch 48 dina birch 116 dina delta 34
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016881-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with single spaces.
{$1=$1;print}
lina birch 37 hana ember 70 jules birch 115 gus amber 56 lina cobalt 51 ivan ember 59 bruno cobalt 14
lina birch 37 hana ember 70 jules birch 115 gus amber 56 lina cobalt 51 ivan ember 59 bruno cobalt 14
kim birch 80 bruno indigo 35 hana fable 114 farah ember 13 farah harbor 12 chen birch 48 dina birch 116 dina delta 34
kim birch 80 bruno indigo 35 hana fable 114 farah ember 13 farah harbor 12 chen birch 48 dina birch 116 dina delta 34
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016881
qwen/qwen3.7-plus
awkweave-0016882
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan juniper 108 pending jules amber 18 ready dina cobalt 71 ready kim ember 118 ready ivan indigo 29 failed gus cobalt 9 pending dina fable 13 active ivan harbor 95 closed alice harbor 52 active gus fable 36 active
ivan juniper 108 pending
lina harbor 93 active gus harbor 94 pending chen grove 61 failed eli indigo 31 ready alice fable 27 paused bruno fable 67 paused ivan harbor 15 active
lina harbor 93 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016882-p1
Identify and print the longest input line, retaining the earliest one in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
ivan juniper 108 pending jules amber 18 ready dina cobalt 71 ready kim ember 118 ready ivan indigo 29 failed gus cobalt 9 pending dina fable 13 active ivan harbor 95 closed alice harbor 52 active gus fable 36 active
ivan juniper 108 pending
lina harbor 93 active gus harbor 94 pending chen grove 61 failed eli indigo 31 ready alice fable 27 paused bruno fable 67 paused ivan harbor 15 active
lina harbor 93 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016882
qwen/qwen3.7-plus
awkweave-0016883
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
lina 20 dina 37 lina 2 chen 53 jules 48 eli 7 dina 100
lina 20 lina 2 jules 48 dina 100
jules 113 lina 76 farah 100 farah 51 chen 83 bruno 88
jules 113 farah 100 chen 83
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016883-p1
Print every second line, beginning with line 1 (i.e., lines 1, 3, etc.).
NR%2==1
lina 20 dina 37 lina 2 chen 53 jules 48 eli 7 dina 100
lina 20 lina 2 jules 48 dina 100
jules 113 lina 76 farah 100 farah 51 chen 83 bruno 88
jules 113 farah 100 chen 83
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016883
qwen/qwen3.7-plus
awkweave-0016884
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta grove 117 gamma harbor 3 alpha harbor 50 alpha harbor 86 alpha juniper 59 alpha juniper 36 gamma indigo 84
3
beta birch 0 gamma harbor 30 gamma indigo 63 beta grove 12 alpha indigo 87 gamma amber 116 delta delta 59 alpha indigo 45 beta juniper 60
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016884-p1
Output the total number of unique entries found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
beta grove 117 gamma harbor 3 alpha harbor 50 alpha harbor 86 alpha juniper 59 alpha juniper 36 gamma indigo 84
3
beta birch 0 gamma harbor 30 gamma indigo 63 beta grove 12 alpha indigo 87 gamma amber 116 delta delta 59 alpha indigo 45 beta juniper 60
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016884
qwen/qwen3.7-plus
awkweave-0016885
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}
ivan 17 0 alice 11 9 bruno 16 4 lina 12 10 kim 3 30 hana 28 4 alice 10 27
alice 1.22 bruno 4.00 lina 1.20 kim 0.10 hana 7.00 alice 0.37
eli 15 0 alice 3 11 farah 26 11 eli 6 10 kim 14 13 gus 5 8 kim 8 18 jules 16 30 chen 24 2 gus 5 12
alice 0.27 farah 2.36 eli 0.60 kim 1.08 gus 0.62 kim 0.44 jules 0.53 chen 12.00 gus 0.42
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016885-p1
For every row where the third column is non-zero, display the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 17 0 alice 11 9 bruno 16 4 lina 12 10 kim 3 30 hana 28 4 alice 10 27
alice 1.22 bruno 4.00 lina 1.20 kim 0.10 hana 7.00 alice 0.37
eli 15 0 alice 3 11 farah 26 11 eli 6 10 kim 14 13 gus 5 8 kim 8 18 jules 16 30 chen 24 2 gus 5 12
alice 0.27 farah 2.36 eli 0.60 kim 1.08 gus 0.62 kim 0.44 jules 0.53 chen 12.00 gus 0.42
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016885
qwen/qwen3.7-plus
awkweave-0016886
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]}
lina harbor 17 alice amber 27 jules delta 13 lina indigo 21 bruno harbor 17 farah birch 17 ivan harbor 10 ivan amber 9 jules amber 29
jules amber 29 alice amber 27 lina indigo 21
jules harbor 28 eli amber 27 bruno juniper 10 chen grove 22 alice cobalt 30 gus delta 3
alice cobalt 30 jules harbor 28 eli amber 27
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016886-p1
Display the top three records with the highest values in column 3, sorted in descending order; maintain the original input sequence for any tied values.
{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]}
lina harbor 17 alice amber 27 jules delta 13 lina indigo 21 bruno harbor 17 farah birch 17 ivan harbor 10 ivan amber 9 jules amber 29
jules amber 29 alice amber 27 lina indigo 21
jules harbor 28 eli amber 27 bruno juniper 10 chen grove 22 alice cobalt 30 gus delta 3
alice cobalt 30 jules harbor 28 eli amber 27
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016886
qwen/qwen3.7-plus
awkweave-0016887
Print column 4 followed by column 2 for every record.
{print $4, $2}
grove ready failed gus birch closed paused hana harbor failed failed kim fable pending failed ivan amber pending ready alice cobalt failed failed hana birch ready closed kim ember failed failed bruno
gus ready hana closed kim failed ivan pending alice pending hana failed kim ready bruno failed
harbor active active bruno juniper active paused alice cobalt pending failed lina indigo closed pending alice delta ready ready ivan ember ready active dina birch ready paused ivan ember closed paused gus fable pending pending lina
bruno active alice active lina pending alice closed ivan ready dina ready ivan ready gus closed lina pending
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016887-p1
Output the fourth column followed by the second column for each record.
{print $4, $2}
grove ready failed gus birch closed paused hana harbor failed failed kim fable pending failed ivan amber pending ready alice cobalt failed failed hana birch ready closed kim ember failed failed bruno
gus ready hana closed kim failed ivan pending alice pending hana failed kim ready bruno failed
harbor active active bruno juniper active paused alice cobalt pending failed lina indigo closed pending alice delta ready ready ivan ember ready active dina birch ready paused ivan ember closed paused gus fable pending pending lina
bruno active alice active lina pending alice closed ivan ready dina ready ivan ready gus closed lina pending
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016887
qwen/qwen3.7-plus
awkweave-0016888
Print the last field of every input line.
{print $NF}
eli amber active 113 failed gus bruno harbor paused 107 paused chen farah ember pending 57 active dina chen grove pending 50 failed lina kim indigo ready 32 ready dina dina ember paused 14 ready hana
gus chen dina lina dina hana
jules fable closed 42 failed farah alice grove pending 11 ready gus jules fable paused 50 failed chen lina harbor pending 94 paused bruno farah amber ready 22 closed gus gus indigo failed 80 paused ivan gus indigo failed 48 failed chen eli birch ready 98 ready hana
farah gus chen bruno gus ivan chen hana
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016888-p1
Print the final field from every line of input.
{print $NF}
eli amber active 113 failed gus bruno harbor paused 107 paused chen farah ember pending 57 active dina chen grove pending 50 failed lina kim indigo ready 32 ready dina dina ember paused 14 ready hana
gus chen dina lina dina hana
jules fable closed 42 failed farah alice grove pending 11 ready gus jules fable paused 50 failed chen lina harbor pending 94 paused bruno farah amber ready 22 closed gus gus indigo failed 80 paused ivan gus indigo failed 48 failed chen eli birch ready 98 ready hana
farah gus chen bruno gus ivan chen hana
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016888
qwen/qwen3.7-plus
awkweave-0016889
Print the complete records where column 2 is at least 59.
$2 >= 59
jules 5 pending active bruno 86 ready active eli 120 pending active kim 86 active closed farah 53 pending failed lina 43 paused closed alice 81 ready paused alice 3 paused paused gus 39 closed failed
bruno 86 ready active eli 120 pending active kim 86 active closed alice 81 ready paused
kim 44 paused ready jules 91 closed failed eli 104 pending pending bruno 90 paused pending bruno 71 active paused alice 102 paused closed dina 80 ready failed
jules 91 closed failed eli 104 pending pending bruno 90 paused pending bruno 71 active paused alice 102 paused closed dina 80 ready failed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016889-p1
Output all full records where the value in the second column is greater than or equal to 59.
$2 >= 59
jules 5 pending active bruno 86 ready active eli 120 pending active kim 86 active closed farah 53 pending failed lina 43 paused closed alice 81 ready paused alice 3 paused paused gus 39 closed failed
bruno 86 ready active eli 120 pending active kim 86 active closed alice 81 ready paused
kim 44 paused ready jules 91 closed failed eli 104 pending pending bruno 90 paused pending bruno 71 active paused alice 102 paused closed dina 80 ready failed
jules 91 closed failed eli 104 pending pending bruno 90 paused pending bruno 71 active paused alice 102 paused closed dina 80 ready failed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016889
qwen/qwen3.7-plus
awkweave-0016900
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
2 gus grove 18 hana amber 28 alice harbor 11 hana birch 29 jules cobalt 16 kim ember 3 jules cobalt 26 bruno ember
2
16 alice grove 16 ivan fable 23 lina birch 2 kim delta 7 farah ember 30 jules birch 2 dina fable 9 farah amber
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016900-p1
Identify and print the minimum numeric value present in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
2 gus grove 18 hana amber 28 alice harbor 11 hana birch 29 jules cobalt 16 kim ember 3 jules cobalt 26 bruno ember
2
16 alice grove 16 ivan fable 23 lina birch 2 kim delta 7 farah ember 30 jules birch 2 dina fable 9 farah amber
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016900
qwen/qwen3.7-plus
awkweave-0016901
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
12 grove kim 12 fable gus 23 grove jules 21 birch jules 21 delta jules 16 indigo kim 14 harbor dina 27 cobalt bruno 17 amber lina 23 ember jules
27
20 amber alice 9 ember bruno 4 delta eli 27 ember kim 19 amber ivan 21 juniper gus 10 amber bruno 20 grove eli 10 birch lina 19 delta chen
27
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016901-p1
Identify and print the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
12 grove kim 12 fable gus 23 grove jules 21 birch jules 21 delta jules 16 indigo kim 14 harbor dina 27 cobalt bruno 17 amber lina 23 ember jules
27
20 amber alice 9 ember bruno 4 delta eli 27 ember kim 19 amber ivan 21 juniper gus 10 amber bruno 20 grove eli 10 birch lina 19 delta chen
27
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016901
qwen/qwen3.7-plus
awkweave-0016902
Count all input records and print the total.
END{print NR}
alice 82 lina 53 bruno 16 alice 98 farah 108 dina 80 dina 100
7
farah 83 lina 4 chen 71 bruno 116 farah 59 eli 89 eli 87
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016902-p1
Calculate and print the total number of input records.
END{print NR}
alice 82 lina 53 bruno 16 alice 98 farah 108 dina 80 dina 100
7
farah 83 lina 4 chen 71 bruno 116 farah 59 eli 89 eli 87
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016902
qwen/qwen3.7-plus
awkweave-0016903
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
farah juniper 20 dina harbor 79 chen delta 113 eli grove 112 kim grove 29 ivan indigo 91 kim grove 29 hana juniper 104 gus delta 46 eli indigo 69 lina delta 32
farah juniper 20 dina harbor 79 chen delta 113 eli grove 112 kim grove 29 ivan indigo 91 hana juniper 104 gus delta 46 eli indigo 69 lina delta 32
bruno delta 72 farah grove 116 gus ember 104 chen birch 44 farah grove 116 kim birch 26 bruno fable 108 dina fable 6 chen harbor 56 eli harbor 66 hana amber 32
bruno delta 72 farah grove 116 gus ember 104 chen birch 44 kim birch 26 bruno fable 108 dina fable 6 chen harbor 56 eli harbor 66 hana amber 32
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016903-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original order.
!seen[$0]++
farah juniper 20 dina harbor 79 chen delta 113 eli grove 112 kim grove 29 ivan indigo 91 kim grove 29 hana juniper 104 gus delta 46 eli indigo 69 lina delta 32
farah juniper 20 dina harbor 79 chen delta 113 eli grove 112 kim grove 29 ivan indigo 91 hana juniper 104 gus delta 46 eli indigo 69 lina delta 32
bruno delta 72 farah grove 116 gus ember 104 chen birch 44 farah grove 116 kim birch 26 bruno fable 108 dina fable 6 chen harbor 56 eli harbor 66 hana amber 32
bruno delta 72 farah grove 116 gus ember 104 chen birch 44 kim birch 26 bruno fable 108 dina fable 6 chen harbor 56 eli harbor 66 hana amber 32
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016903
qwen/qwen3.7-plus
awkweave-0016904
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
lina indigo 42 hana birch 73 alice amber 7 dina ember 46 kim fable 91 eli fable 32 chen amber 92 alice fable 120
lina indigo 42 hana birch 73 alice amber 7 dina ember 46 kim fable 91
ivan cobalt 53 alice harbor 25 jules harbor 98 dina delta 78 farah juniper 33 bruno indigo 66 chen amber 6 kim amber 49 jules harbor 30 bruno amber 108
ivan cobalt 53 alice harbor 25 dina delta 78 farah juniper 33 bruno indigo 66 chen amber 6
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016904-p1
Retain only the first occurrence for each unique value in column 2, preserving the initial input order.
!seen[$2]++
lina indigo 42 hana birch 73 alice amber 7 dina ember 46 kim fable 91 eli fable 32 chen amber 92 alice fable 120
lina indigo 42 hana birch 73 alice amber 7 dina ember 46 kim fable 91
ivan cobalt 53 alice harbor 25 jules harbor 98 dina delta 78 farah juniper 33 bruno indigo 66 chen amber 6 kim amber 49 jules harbor 30 bruno amber 108
ivan cobalt 53 alice harbor 25 dina delta 78 farah juniper 33 bruno indigo 66 chen amber 6
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016904
qwen/qwen3.7-plus
awkweave-0016905
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 21 indigo bruno 3 birch bruno 30 ember dina 19 birch hana 8 cobalt bruno 6 delta dina 23 fable
farah 21 bruno 24 bruno 54 dina 73 hana 81 bruno 87 dina 110
bruno 30 cobalt kim 2 harbor kim 6 amber bruno 18 delta gus 25 birch bruno 28 ember bruno 3 cobalt ivan 13 harbor dina 24 fable chen 16 juniper
bruno 30 kim 32 kim 38 bruno 56 gus 81 bruno 109 bruno 112 ivan 125 dina 149 chen 165
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016905-p1
For each record, output the first column and the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
farah 21 indigo bruno 3 birch bruno 30 ember dina 19 birch hana 8 cobalt bruno 6 delta dina 23 fable
farah 21 bruno 24 bruno 54 dina 73 hana 81 bruno 87 dina 110
bruno 30 cobalt kim 2 harbor kim 6 amber bruno 18 delta gus 25 birch bruno 28 ember bruno 3 cobalt ivan 13 harbor dina 24 fable chen 16 juniper
bruno 30 kim 32 kim 38 bruno 56 gus 81 bruno 109 bruno 112 ivan 125 dina 149 chen 165
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016905
qwen/qwen3.7-plus
awkweave-0016906
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 2 3 indigo farah 1 19 grove dina 7 24 ember gus 2 22 juniper alice 10 29 harbor bruno 12 10 amber farah 16 12 birch bruno 12 25 cobalt gus 5 10 amber
jules 5 farah 20 dina 31 gus 24 alice 39 bruno 22 farah 28 bruno 37 gus 15
kim 24 16 amber bruno 22 27 harbor gus 2 7 grove bruno 16 17 ember jules 22 30 ember jules 22 18 cobalt lina 26 8 ember
kim 40 bruno 49 gus 9 bruno 33 jules 52 jules 40 lina 34
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016906-p1
Output the first field and the total of the second and third fields for each line.
{print $1,$2+$3}
jules 2 3 indigo farah 1 19 grove dina 7 24 ember gus 2 22 juniper alice 10 29 harbor bruno 12 10 amber farah 16 12 birch bruno 12 25 cobalt gus 5 10 amber
jules 5 farah 20 dina 31 gus 24 alice 39 bruno 22 farah 28 bruno 37 gus 15
kim 24 16 amber bruno 22 27 harbor gus 2 7 grove bruno 16 17 ember jules 22 30 ember jules 22 18 cobalt lina 26 8 ember
kim 40 bruno 49 gus 9 bruno 33 jules 52 jules 40 lina 34
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016906
qwen/qwen3.7-plus
awkweave-0016907
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
alice 26 farah 16 ivan 3 kim 8 jules 24 ivan 19 kim 29
alice pass farah fail ivan fail kim fail jules fail ivan fail kim pass
chen 27 alice 9 farah 5 kim 12 bruno 24 gus 22 eli 19
chen pass alice fail farah fail kim fail bruno fail gus fail eli fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016907-p1
Display the first column; if the second column is 25 or higher, output pass, otherwise output fail.
{print $1,($2>=25?"pass":"fail")}
alice 26 farah 16 ivan 3 kim 8 jules 24 ivan 19 kim 29
alice pass farah fail ivan fail kim fail jules fail ivan fail kim pass
chen 27 alice 9 farah 5 kim 12 bruno 24 gus 22 eli 19
chen pass alice fail farah fail kim fail bruno fail gus fail eli fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016907
qwen/qwen3.7-plus
awkweave-0016908
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
chen harbor 13 bruno fable 71 chen grove 10 ivan indigo 47 alice juniper 44 ivan juniper 27
CHEN BRUNO CHEN IVAN ALICE IVAN
chen ember 105 eli indigo 40 hana delta 102 ivan ember 91 chen cobalt 61 dina birch 47
CHEN ELI HANA IVAN CHEN DINA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016908-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
chen harbor 13 bruno fable 71 chen grove 10 ivan indigo 47 alice juniper 44 ivan juniper 27
CHEN BRUNO CHEN IVAN ALICE IVAN
chen ember 105 eli indigo 40 hana delta 102 ivan ember 91 chen cobalt 61 dina birch 47
CHEN ELI HANA IVAN CHEN DINA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016908
qwen/qwen3.7-plus
awkweave-0016909
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
delta 120 ember 20 amber 110 birch 55 indigo 54 fable 109 ember 120 harbor 84 cobalt 87 ember 62
de em am bi in fa em ha co em
juniper 50 harbor 76 amber 24 juniper 65 juniper 99 grove 29 amber 69
ju ha am ju ju gr am
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016909-p1
Extract and print the first 2 characters from the first column.
{print substr($1,1,2)}
delta 120 ember 20 amber 110 birch 55 indigo 54 fable 109 ember 120 harbor 84 cobalt 87 ember 62
de em am bi in fa em ha co em
juniper 50 harbor 76 amber 24 juniper 65 juniper 99 grove 29 amber 69
ju ha am ju ju gr am
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016909
qwen/qwen3.7-plus
awkweave-0016910
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
harbor_harbor 85 ember_birch 115 juniper_indigo 39 harbor_delta 99 juniper_delta 72 birch_indigo 17
harbor harbor ember birch juniper indigo harbor delta juniper delta birch indigo
juniper_harbor 34 birch_juniper 20 ember_juniper 75 fable_harbor 23 fable_juniper 59 harbor_juniper 87 harbor_amber 73 birch_grove 119 fable_juniper 1 grove_ember 57
juniper harbor birch juniper ember juniper fable harbor fable juniper harbor juniper harbor amber birch grove fable juniper grove ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016910-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
harbor_harbor 85 ember_birch 115 juniper_indigo 39 harbor_delta 99 juniper_delta 72 birch_indigo 17
harbor harbor ember birch juniper indigo harbor delta juniper delta birch indigo
juniper_harbor 34 birch_juniper 20 ember_juniper 75 fable_harbor 23 fable_juniper 59 harbor_juniper 87 harbor_amber 73 birch_grove 119 fable_juniper 1 grove_ember 57
juniper harbor birch juniper ember juniper fable harbor fable juniper harbor juniper harbor amber birch grove fable juniper grove ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016910
qwen/qwen3.7-plus
awkweave-0016911
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)}
lina amber 32 paused bruno delta 120 failed ivan ember 11 active jules amber 57 failed chen delta 117 active dina cobalt 2 closed gus delta 4 failed kim ember 117 active chen birch 7 pending
paused 32 amber lina failed 120 delta bruno active 11 ember ivan failed 57 amber jules active 117 delta chen closed 2 cobalt dina failed 4 delta gus active 117 ember kim pending 7 birch chen
chen indigo 49 closed farah grove 85 ready jules fable 111 active eli cobalt 46 closed bruno delta 59 failed hana indigo 117 ready chen delta 48 active gus juniper 90 closed
closed 49 indigo chen ready 85 grove farah active 111 fable jules closed 46 cobalt eli failed 59 delta bruno ready 117 indigo hana active 48 delta chen closed 90 juniper gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016911-p1
Reverse the sequence of fields on each line and output all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina amber 32 paused bruno delta 120 failed ivan ember 11 active jules amber 57 failed chen delta 117 active dina cobalt 2 closed gus delta 4 failed kim ember 117 active chen birch 7 pending
paused 32 amber lina failed 120 delta bruno active 11 ember ivan failed 57 amber jules active 117 delta chen closed 2 cobalt dina failed 4 delta gus active 117 ember kim pending 7 birch chen
chen indigo 49 closed farah grove 85 ready jules fable 111 active eli cobalt 46 closed bruno delta 59 failed hana indigo 117 ready chen delta 48 active gus juniper 90 closed
closed 49 indigo chen ready 85 grove farah active 111 fable jules closed 46 cobalt eli failed 59 delta bruno ready 117 indigo hana active 48 delta chen closed 90 juniper gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016911
qwen/qwen3.7-plus
awkweave-0016912
Print the number of whitespace-separated fields on each line.
{print NF}
farah birch 1 paused alice cobalt 31 closed hana juniper 76 closed gus amber 85 failed gus cobalt 98 pending hana harbor 100 ready
4 4 4 4 4 4
chen indigo 66 ready bruno birch 105 paused kim harbor 56 pending bruno indigo 15 pending lina fable 77 ready bruno delta 73 paused bruno indigo 100 pending jules harbor 52 ready bruno fable 104 paused hana delta 92 pending
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016912-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
farah birch 1 paused alice cobalt 31 closed hana juniper 76 closed gus amber 85 failed gus cobalt 98 pending hana harbor 100 ready
4 4 4 4 4 4
chen indigo 66 ready bruno birch 105 paused kim harbor 56 pending bruno indigo 15 pending lina fable 77 ready bruno delta 73 paused bruno indigo 100 pending jules harbor 52 ready bruno fable 104 paused hana delta 92 pending
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016912
qwen/qwen3.7-plus
awkweave-0016913
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]]}
ivan alpha 83 kim alpha 102 chen delta 73 jules beta 120 hana beta 73 jules alpha 1 lina gamma 38
alpha 3 delta 1 beta 2 gamma 1
eli gamma 15 alice delta 56 eli delta 71 farah beta 39 lina alpha 17 bruno delta 44 hana alpha 59
gamma 1 delta 3 beta 1 alpha 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016913-p1
Tally the records for each unique value in the second column and print the value alongside its count, maintaining the 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]]}
ivan alpha 83 kim alpha 102 chen delta 73 jules beta 120 hana beta 73 jules alpha 1 lina gamma 38
alpha 3 delta 1 beta 2 gamma 1
eli gamma 15 alice delta 56 eli delta 71 farah beta 39 lina alpha 17 bruno delta 44 hana alpha 59
gamma 1 delta 3 beta 1 alpha 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016913
qwen/qwen3.7-plus
awkweave-0016914
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]]}
lina alpha 12 lina beta 29 bruno alpha 1 alice alpha 2 lina alpha 25 gus beta 2 lina alpha 14 eli beta 15
alpha 54 beta 46
alice alpha 9 kim gamma 3 kim beta 24 chen alpha 8 hana delta 14 bruno beta 26 gus beta 22 bruno beta 18
alpha 17 gamma 3 beta 90 delta 14
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016914-p1
Calculate the sum of the third column for each group defined by the second column, printing the results in the order groups 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]]}
lina alpha 12 lina beta 29 bruno alpha 1 alice alpha 2 lina alpha 25 gus beta 2 lina alpha 14 eli beta 15
alpha 54 beta 46
alice alpha 9 kim gamma 3 kim beta 24 chen alpha 8 hana delta 14 bruno beta 26 gus beta 22 bruno beta 18
alpha 17 gamma 3 beta 90 delta 14
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016914
qwen/qwen3.7-plus
awkweave-0016915
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 grove 51 gamma harbor 81 alpha fable 106 alpha ember 20 alpha grove 64 gamma fable 4 gamma harbor 0 delta delta 75 alpha grove 85
gamma 4 alpha 4
gamma delta 52 gamma birch 25 delta cobalt 68 gamma indigo 81 beta indigo 3 beta harbor 6 gamma amber 117 gamma juniper 111 alpha amber 1 delta delta 80
gamma 5 delta 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016915-p1
List each duplicate value from the first column along with its frequency, ordered 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]]}
gamma grove 51 gamma harbor 81 alpha fable 106 alpha ember 20 alpha grove 64 gamma fable 4 gamma harbor 0 delta delta 75 alpha grove 85
gamma 4 alpha 4
gamma delta 52 gamma birch 25 delta cobalt 68 gamma indigo 81 beta indigo 3 beta harbor 6 gamma amber 117 gamma juniper 111 alpha amber 1 delta delta 80
gamma 5 delta 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016915
qwen/qwen3.7-plus
awkweave-0016916
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note record_id region score r001 chen 11 ready r002 bruno 10 pending r003 gus 22 closed r004 chen 6 failed r005 jules 28 failed r006 jules 30 active r007 farah 8 ready
chen bruno gus chen jules jules farah
note record_id region score r001 farah 5 ready r002 farah 23 closed r003 kim 14 closed r004 ivan 20 closed r005 chen 17 closed r006 jules 17 active r007 ivan 3 paused r008 lina 18 active r009 kim 1 paused
farah farah kim ivan chen jules ivan lina kim
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016916-p1
Treating the first row as a header, output the record_id column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note record_id region score r001 chen 11 ready r002 bruno 10 pending r003 gus 22 closed r004 chen 6 failed r005 jules 28 failed r006 jules 30 active r007 farah 8 ready
chen bruno gus chen jules jules farah
note record_id region score r001 farah 5 ready r002 farah 23 closed r003 kim 14 closed r004 ivan 20 closed r005 chen 17 closed r006 jules 17 active r007 ivan 3 paused r008 lina 18 active r009 kim 1 paused
farah farah kim ivan chen jules ivan lina kim
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016916
qwen/qwen3.7-plus
awkweave-0016917
The first row is a header. Print display_name for data rows whose score is greater than 23.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>23{print $h["display_name"]}
record_id display_name score state r001 chen 28 failed r002 farah 14 pending r003 jules 12 closed r004 bruno 20 ready r005 kim 18 paused r006 eli 8 closed r007 farah 13 active r008 dina 22 active r009 kim 18 failed r010 alice 28 closed
chen alice
record_id display_name score state r001 kim 27 pending r002 kim 17 closed r003 lina 24 active r004 lina 23 closed r005 lina 25 pending r006 chen 23 paused r007 farah 1 pending r008 chen 5 active r009 lina 22 closed r010 hana 18 active
kim lina lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016917-p1
With the first row as a header, output the display_name for data rows where the score exceeds 23.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>23{print $h["display_name"]}
record_id display_name score state r001 chen 28 failed r002 farah 14 pending r003 jules 12 closed r004 bruno 20 ready r005 kim 18 paused r006 eli 8 closed r007 farah 13 active r008 dina 22 active r009 kim 18 failed r010 alice 28 closed
chen alice
record_id display_name score state r001 kim 27 pending r002 kim 17 closed r003 lina 24 active r004 lina 23 closed r005 lina 25 pending r006 chen 23 paused r007 farah 1 pending r008 chen 5 active r009 lina 22 closed r010 hana 18 active
kim lina lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016917
qwen/qwen3.7-plus
awkweave-0016918
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 16 paused bruno 4 closed kim 17 pending lina 16 closed ivan 16 closed eli 20 ready lina 18 active
paused closed pending closed closed ready active
lina 27 pending chen 25 paused jules 25 paused bruno 5 failed hana 22 failed jules 24 closed farah 1 active dina 21 ready
pending paused paused failed failed closed active ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016918-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 16 paused bruno 4 closed kim 17 pending lina 16 closed ivan 16 closed eli 20 ready lina 18 active
paused closed pending closed closed ready active
lina 27 pending chen 25 paused jules 25 paused bruno 5 failed hana 22 failed jules 24 closed farah 1 active dina 21 ready
pending paused paused failed failed closed active ready
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0016918
qwen/qwen3.7-plus
awkweave-0016919
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}
alice,15,ready gus,9,failed jules,14,paused alice,21,ready ivan,1,paused lina,19,pending gus,25,closed chen,30,failed eli,24,failed
alice gus jules alice lina gus chen eli
lina,23,closed eli,25,pending kim,28,ready ivan,13,closed farah,13,active dina,21,paused
lina eli kim ivan farah dina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016919-p1
Output the first field of comma-separated records where the second field is greater than 8, assuming no quoted commas.
BEGIN{FS=OFS=","}$2>8{print $1}
alice,15,ready gus,9,failed jules,14,paused alice,21,ready ivan,1,paused lina,19,pending gus,25,closed chen,30,failed eli,24,failed
alice gus jules alice lina gus chen eli
lina,23,closed eli,25,pending kim,28,ready ivan,13,closed farah,13,active dina,21,paused
lina eli kim ivan farah dina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016919
qwen/qwen3.7-plus
awkweave-0016920
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus fable 37 kim indigo 117 eli cobalt 91 hana ember 71 eli amber 26 dina indigo 78 gus juniper 84 farah grove 17 farah juniper 63
gus fable 37 kim indigo 117 eli cobalt 91 hana ember 71 eli amber 26 dina indigo 78 gus juniper 84 farah grove 17 farah juniper 63
bruno delta 98 dina grove 44 ivan grove 30 lina juniper 118 dina harbor 88 kim birch 36 lina ember 71 kim fable 27
bruno delta 98 dina grove 44 ivan grove 30 lina juniper 118 dina harbor 88 kim birch 36 lina ember 71 kim fable 27
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016920-p1
Remove leading and trailing whitespace and replace sequences of internal whitespace with a single space.
{$1=$1;print}
gus fable 37 kim indigo 117 eli cobalt 91 hana ember 71 eli amber 26 dina indigo 78 gus juniper 84 farah grove 17 farah juniper 63
gus fable 37 kim indigo 117 eli cobalt 91 hana ember 71 eli amber 26 dina indigo 78 gus juniper 84 farah grove 17 farah juniper 63
bruno delta 98 dina grove 44 ivan grove 30 lina juniper 118 dina harbor 88 kim birch 36 lina ember 71 kim fable 27
bruno delta 98 dina grove 44 ivan grove 30 lina juniper 118 dina harbor 88 kim birch 36 lina ember 71 kim fable 27
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016920
qwen/qwen3.7-plus
awkweave-0016921
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen birch 56 active bruno ember 37 pending alice cobalt 112 failed jules fable 13 closed chen birch 85 pending ivan delta 112 closed
alice cobalt 112 failed
bruno grove 21 active farah birch 29 ready kim ember 87 active chen cobalt 111 closed hana grove 109 paused dina birch 40 active
chen cobalt 111 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016921-p1
Identify and print the longest line in the input, selecting the first one encountered if there are ties in length.
{if(length($0)>length(best))best=$0}END{print best}
chen birch 56 active bruno ember 37 pending alice cobalt 112 failed jules fable 13 closed chen birch 85 pending ivan delta 112 closed
alice cobalt 112 failed
bruno grove 21 active farah birch 29 ready kim ember 87 active chen cobalt 111 closed hana grove 109 paused dina birch 40 active
chen cobalt 111 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016921
qwen/qwen3.7-plus
awkweave-0016922
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
chen 102 hana 23 hana 38 lina 100 alice 108 eli 103 dina 46 ivan 72 hana 19 gus 33
lina 100 ivan 72
jules 103 gus 35 hana 91 farah 7 hana 94 gus 30
farah 7
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016922-p1
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
chen 102 hana 23 hana 38 lina 100 alice 108 eli 103 dina 46 ivan 72 hana 19 gus 33
lina 100 ivan 72
jules 103 gus 35 hana 91 farah 7 hana 94 gus 30
farah 7
every_nth
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0016922
qwen/qwen3.7-plus
awkweave-0016923
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta cobalt 41 alpha harbor 3 beta juniper 102 gamma amber 101 beta harbor 60 beta cobalt 63
4
beta birch 90 alpha harbor 7 delta harbor 57 alpha amber 104 gamma birch 54 beta delta 63 delta fable 65 beta fable 30 alpha harbor 59 gamma birch 80
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016923-p1
Calculate and output only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
beta cobalt 41 alpha harbor 3 beta juniper 102 gamma amber 101 beta harbor 60 beta cobalt 63
4
beta birch 90 alpha harbor 7 delta harbor 57 alpha amber 104 gamma birch 54 beta delta 63 delta fable 65 beta fable 30 alpha harbor 59 gamma birch 80
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016923
qwen/qwen3.7-plus
awkweave-0016924
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}
farah 5 0 chen 11 8 lina 20 23 dina 4 22 bruno 15 16 gus 10 9 kim 14 11 chen 20 17
chen 1.38 lina 0.87 dina 0.18 bruno 0.94 gus 1.11 kim 1.27 chen 1.18
farah 13 0 hana 25 11 lina 1 8 gus 16 5 dina 7 26 gus 7 15
hana 2.27 lina 0.12 gus 3.20 dina 0.27 gus 0.47
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016924-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 5 0 chen 11 8 lina 20 23 dina 4 22 bruno 15 16 gus 10 9 kim 14 11 chen 20 17
chen 1.38 lina 0.87 dina 0.18 bruno 0.94 gus 1.11 kim 1.27 chen 1.18
farah 13 0 hana 25 11 lina 1 8 gus 16 5 dina 7 26 gus 7 15
hana 2.27 lina 0.12 gus 3.20 dina 0.27 gus 0.47
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016924
qwen/qwen3.7-plus
awkweave-0016925
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 fable 16 hana birch 28 farah cobalt 29 dina delta 7 jules birch 28 gus amber 9 alice cobalt 17
farah cobalt 29 hana birch 28 jules birch 28
ivan harbor 18 ivan indigo 11 bruno fable 13 eli delta 20 ivan indigo 18 chen delta 28
chen delta 28 eli delta 20 ivan harbor 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016925-p1
Display the top three records with the highest numeric values in column 3, sorted in descending order, while maintaining 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]}
gus fable 16 hana birch 28 farah cobalt 29 dina delta 7 jules birch 28 gus amber 9 alice cobalt 17
farah cobalt 29 hana birch 28 jules birch 28
ivan harbor 18 ivan indigo 11 bruno fable 13 eli delta 20 ivan indigo 18 chen delta 28
chen delta 28 eli delta 20 ivan harbor 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016925
qwen/qwen3.7-plus
awkweave-0016926
Select the 5th and 4th fields in that order.
{print $5, $4}
10 dina 104 63 114 110 chen 119 37 0 93 alice 9 93 47 107 dina 63 81 58 55 farah 20 111 106 101 gus 65 51 39 84 jules 89 43 105 110 jules 45 30 10
114 63 0 37 47 93 58 81 106 111 39 51 105 43 10 30
26 gus 68 66 94 0 dina 101 25 114 7 chen 23 114 54 76 lina 3 55 40 58 farah 34 63 105 114 farah 92 41 6
94 66 114 25 54 114 40 55 105 63 6 41
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016926-p1
Output the fifth field followed by the fourth field for each record.
{print $5, $4}
10 dina 104 63 114 110 chen 119 37 0 93 alice 9 93 47 107 dina 63 81 58 55 farah 20 111 106 101 gus 65 51 39 84 jules 89 43 105 110 jules 45 30 10
114 63 0 37 47 93 58 81 106 111 39 51 105 43 10 30
26 gus 68 66 94 0 dina 101 25 114 7 chen 23 114 54 76 lina 3 55 40 58 farah 34 63 105 114 farah 92 41 6
94 66 114 25 54 114 40 55 105 63 6 41
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016926
qwen/qwen3.7-plus
awkweave-0016927
Print the last field of every input line.
{print $NF}
birch chen pending ember eli ready amber bruno pending ember alice ready indigo jules pending grove dina pending
pending ready pending ready pending pending
amber farah active juniper gus ready indigo ivan pending indigo hana closed delta lina closed indigo dina pending cobalt ivan active
active ready pending closed closed pending active
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016927-p1
Print the final field from every line of input.
{print $NF}
birch chen pending ember eli ready amber bruno pending ember alice ready indigo jules pending grove dina pending
pending ready pending ready pending pending
amber farah active juniper gus ready indigo ivan pending indigo hana closed delta lina closed indigo dina pending cobalt ivan active
active ready pending closed closed pending active
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016927
qwen/qwen3.7-plus
awkweave-0016928
Print the complete records where column 2 is at most 31.
$2 <= 31
juniper 17 grove grove 25 grove harbor 71 ember grove 64 grove fable 64 amber ember 12 delta
juniper 17 grove grove 25 grove ember 12 delta
fable 99 birch harbor 110 indigo ember 32 juniper amber 120 juniper harbor 13 harbor juniper 38 ember
harbor 13 harbor
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016928-p1
Output full records where the value in the second column is less than or equal to 31.
$2 <= 31
juniper 17 grove grove 25 grove harbor 71 ember grove 64 grove fable 64 amber ember 12 delta
juniper 17 grove grove 25 grove ember 12 delta
fable 99 birch harbor 110 indigo ember 32 juniper amber 120 juniper harbor 13 harbor juniper 38 ember
harbor 13 harbor
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016928
qwen/qwen3.7-plus
awkweave-0016929
Show whole lines whose 1st field is between 4 and 23, inclusive.
$1 >= 4 && $1 <= 23
14 grove jules closed 8 indigo alice closed 28 indigo farah pending 28 cobalt bruno pending 15 birch gus failed 6 indigo ivan failed 1 amber kim ready 4 ember eli ready 17 amber jules pending
14 grove jules closed 8 indigo alice closed 15 birch gus failed 6 indigo ivan failed 4 ember eli ready 17 amber jules pending
14 juniper jules failed 18 amber alice active 19 fable farah pending 2 indigo chen pending 28 juniper gus active 1 ember bruno paused
14 juniper jules failed 18 amber alice active 19 fable farah pending
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016929-p1
Display entire lines where the first field falls within the inclusive range of 4 to 23.
$1 >= 4 && $1 <= 23
14 grove jules closed 8 indigo alice closed 28 indigo farah pending 28 cobalt bruno pending 15 birch gus failed 6 indigo ivan failed 1 amber kim ready 4 ember eli ready 17 amber jules pending
14 grove jules closed 8 indigo alice closed 15 birch gus failed 6 indigo ivan failed 4 ember eli ready 17 amber jules pending
14 juniper jules failed 18 amber alice active 19 fable farah pending 2 indigo chen pending 28 juniper gus active 1 ember bruno paused
14 juniper jules failed 18 amber alice active 19 fable farah pending
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016929
qwen/qwen3.7-plus
awkweave-0016930
Print column 3 only for rows where column 4 is exactly closed.
$4 == "closed"{print $3}
16 harbor bruno failed 38 ember chen closed 73 ember ivan paused 62 ember eli ready 13 indigo gus active 34 juniper lina failed 32 ember alice closed
chen alice
116 birch gus ready 105 indigo chen closed 29 delta farah active 78 birch dina ready 44 ember chen ready 41 birch hana ready 75 indigo lina ready 118 juniper alice paused 109 ember ivan ready 34 juniper eli closed
chen eli
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016930-p1
Display only the third column for rows where the fourth column matches 'closed' exactly.
$4 == "closed"{print $3}
16 harbor bruno failed 38 ember chen closed 73 ember ivan paused 62 ember eli ready 13 indigo gus active 34 juniper lina failed 32 ember alice closed
chen alice
116 birch gus ready 105 indigo chen closed 29 delta farah active 78 birch dina ready 44 ember chen ready 41 birch hana ready 75 indigo lina ready 118 juniper alice paused 109 ember ivan ready 34 juniper eli closed
chen eli
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016930
qwen/qwen3.7-plus
awkweave-0016931
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
grove 53 WARN amber 22 ERROR ember 99 DEBUG grove 95 WARN harbor 51 DEBUG indigo 60 INFO grove 65 WARN birch 25 INFO
amber 22 ERROR
delta 33 ERROR delta 119 ERROR harbor 115 WARN grove 111 ERROR indigo 114 ERROR amber 13 DEBUG fable 37 DEBUG fable 85 WARN
delta 33 ERROR delta 119 ERROR grove 111 ERROR indigo 114 ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016931-p1
Output every field from lines whose third field starts with 'ERROR'.
$3 ~ /^ERROR/
grove 53 WARN amber 22 ERROR ember 99 DEBUG grove 95 WARN harbor 51 DEBUG indigo 60 INFO grove 65 WARN birch 25 INFO
amber 22 ERROR
delta 33 ERROR delta 119 ERROR harbor 115 WARN grove 111 ERROR indigo 114 ERROR amber 13 DEBUG fable 37 DEBUG fable 85 WARN
delta 33 ERROR delta 119 ERROR grove 111 ERROR indigo 114 ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016931
qwen/qwen3.7-plus
awkweave-0016932
Print every line except those containing the exact text fable.
$0 !~ /fable/
amber 69 ready harbor 70 closed amber 33 failed indigo 47 failed ember 26 paused cobalt 103 failed juniper 37 active ember 0 active fable 999 active
amber 69 ready harbor 70 closed amber 33 failed indigo 47 failed ember 26 paused cobalt 103 failed juniper 37 active ember 0 active
cobalt 44 paused indigo 30 failed indigo 3 pending fable 52 closed indigo 80 ready juniper 38 active fable 999 active
cobalt 44 paused indigo 30 failed indigo 3 pending indigo 80 ready juniper 38 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016932-p1
Print all lines that do not contain the exact string 'fable'.
$0 !~ /fable/
amber 69 ready harbor 70 closed amber 33 failed indigo 47 failed ember 26 paused cobalt 103 failed juniper 37 active ember 0 active fable 999 active
amber 69 ready harbor 70 closed amber 33 failed indigo 47 failed ember 26 paused cobalt 103 failed juniper 37 active ember 0 active
cobalt 44 paused indigo 30 failed indigo 3 pending fable 52 closed indigo 80 ready juniper 38 active fable 999 active
cobalt 44 paused indigo 30 failed indigo 3 pending indigo 80 ready juniper 38 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016932
qwen/qwen3.7-plus
awkweave-0016933
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
jules grove 45 hana amber 4 dina juniper 86 farah delta 13 hana juniper 11 eli indigo 63 gus ember 106 dina juniper 95
farah delta 13 hana juniper 11 eli indigo 63 gus ember 106
gus birch 48 gus grove 21 alice harbor 52 hana fable 40 alice cobalt 26 chen harbor 82
hana fable 40 alice cobalt 26 chen harbor 82
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016933-p1
Output lines 4 to 7, inclusive of both endpoints.
NR >= 4 && NR <= 7
jules grove 45 hana amber 4 dina juniper 86 farah delta 13 hana juniper 11 eli indigo 63 gus ember 106 dina juniper 95
farah delta 13 hana juniper 11 eli indigo 63 gus ember 106
gus birch 48 gus grove 21 alice harbor 52 hana fable 40 alice cobalt 26 chen harbor 82
hana fable 40 alice cobalt 26 chen harbor 82
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016933
qwen/qwen3.7-plus
awkweave-0016934
Output only the first 2 records.
NR <= 2
farah 108 grove eli 113 ember alice 59 harbor gus 35 cobalt lina 106 ember farah 86 fable kim 16 fable dina 109 harbor
farah 108 grove eli 113 ember
alice 49 cobalt bruno 14 grove dina 18 amber kim 91 indigo jules 119 delta bruno 106 birch bruno 119 fable
alice 49 cobalt bruno 14 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016934-p1
Display only the first two records.
NR <= 2
farah 108 grove eli 113 ember alice 59 harbor gus 35 cobalt lina 106 ember farah 86 fable kim 16 fable dina 109 harbor
farah 108 grove eli 113 ember
alice 49 cobalt bruno 14 grove dina 18 amber kim 91 indigo jules 119 delta bruno 106 birch bruno 119 fable
alice 49 cobalt bruno 14 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016934
qwen/qwen3.7-plus
awkweave-0016935
Skip the first line and print every remaining line unchanged.
NR > 1
bruno 12 harbor lina 88 harbor eli 92 cobalt eli 82 cobalt gus 96 indigo hana 112 amber dina 38 ember dina 64 fable dina 55 ember
lina 88 harbor eli 92 cobalt eli 82 cobalt gus 96 indigo hana 112 amber dina 38 ember dina 64 fable dina 55 ember
bruno 116 indigo hana 118 fable dina 107 juniper gus 93 delta ivan 58 birch dina 59 indigo jules 83 birch alice 52 juniper eli 103 amber
hana 118 fable dina 107 juniper gus 93 delta ivan 58 birch dina 59 indigo jules 83 birch alice 52 juniper eli 103 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016935-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
bruno 12 harbor lina 88 harbor eli 92 cobalt eli 82 cobalt gus 96 indigo hana 112 amber dina 38 ember dina 64 fable dina 55 ember
lina 88 harbor eli 92 cobalt eli 82 cobalt gus 96 indigo hana 112 amber dina 38 ember dina 64 fable dina 55 ember
bruno 116 indigo hana 118 fable dina 107 juniper gus 93 delta ivan 58 birch dina 59 indigo jules 83 birch alice 52 juniper eli 103 amber
hana 118 fable dina 107 juniper gus 93 delta ivan 58 birch dina 59 indigo jules 83 birch alice 52 juniper eli 103 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016935
qwen/qwen3.7-plus
awkweave-0016936
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
bruno active 114 ivan active 87 dina pending 94 bruno failed 6 kim paused 116 kim ready 27 jules failed 74 farah closed 15
1
ivan ready 18 alice closed 100 ivan closed 63 ivan closed 8 dina ready 91 ivan closed 114
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016936-p1
Count the number of records with 'ready' in the second column, printing 0 if none exist.
$2 == "ready"{n++}END{print n+0}
bruno active 114 ivan active 87 dina pending 94 bruno failed 6 kim paused 116 kim ready 27 jules failed 74 farah closed 15
1
ivan ready 18 alice closed 100 ivan closed 63 ivan closed 8 dina ready 91 ivan closed 114
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016936
qwen/qwen3.7-plus
awkweave-0016937
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
19 jules juniper 9 lina birch 1 hana juniper 1 bruno grove 7 jules cobalt 1 jules fable 29 eli amber 18 lina juniper 18 bruno grove 23 farah juniper
126
26 kim juniper 16 dina harbor 7 ivan indigo 19 hana harbor 9 gus cobalt 22 hana fable 12 lina harbor
111
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016937-p1
Compute and display the sum of integer values in the first column.
{s+=$1}END{print s+0}
19 jules juniper 9 lina birch 1 hana juniper 1 bruno grove 7 jules cobalt 1 jules fable 29 eli amber 18 lina juniper 18 bruno grove 23 farah juniper
126
26 kim juniper 16 dina harbor 7 ivan indigo 19 hana harbor 9 gus cobalt 22 hana fable 12 lina harbor
111
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016937
qwen/qwen3.7-plus
awkweave-0016938
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
lina ember 16 bruno juniper 30 lina harbor 24 gus fable 11 farah indigo 3 kim harbor 9 lina cobalt 26
17.00
kim indigo 17 farah juniper 16 farah cobalt 24 kim cobalt 6 alice cobalt 30 gus fable 23 farah cobalt 8
17.71
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016938-p1
Print the average of the third column, rounded to precisely two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
lina ember 16 bruno juniper 30 lina harbor 24 gus fable 11 farah indigo 3 kim harbor 9 lina cobalt 26
17.00
kim indigo 17 farah juniper 16 farah cobalt 24 kim cobalt 6 alice cobalt 30 gus fable 23 farah cobalt 8
17.71
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016938
qwen/qwen3.7-plus
awkweave-0016939
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
indigo farah 23 harbor bruno 3 grove chen 16 juniper farah 15 harbor dina 22 grove lina 29 fable kim 25 fable alice 17 juniper bruno 14
3
indigo bruno 19 fable alice 19 harbor kim 13 birch chen 18 birch dina 7 grove gus 2 cobalt dina 18 delta eli 22 juniper gus 18
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016939-p1
Identify and output the minimum numeric value found in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
indigo farah 23 harbor bruno 3 grove chen 16 juniper farah 15 harbor dina 22 grove lina 29 fable kim 25 fable alice 17 juniper bruno 14
3
indigo bruno 19 fable alice 19 harbor kim 13 birch chen 18 birch dina 7 grove gus 2 cobalt dina 18 delta eli 22 juniper gus 18
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016939
qwen/qwen3.7-plus
awkweave-0016940
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
7 cobalt jules 21 ember farah 8 birch dina 25 fable alice 10 grove eli 29 delta dina 1 amber dina
29
19 birch ivan 12 grove bruno 12 cobalt gus 3 birch gus 6 grove kim 23 indigo ivan 14 harbor kim 12 fable lina 13 grove ivan 15 delta alice
23
max_field
1
train
original-grammar
CC-BY-4.0
null
null