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-0048662-p1
Treating the first row as a header, extract and print the content of the note column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
display_name region note state r001 lina 20 closed r002 ivan 1 active r003 farah 22 pending r004 gus 27 pending r005 ivan 30 closed r006 hana 18 active r007 kim 4 paused
20 1 22 27 30 18 4
display_name region note state r001 chen 6 ready r002 eli 21 paused r003 eli 19 paused r004 bruno 15 paused r005 dina 6 closed r006 alice 10 pending r007 farah 29 active
6 21 19 15 6 10 29
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048662
qwen/qwen3.7-plus
awkweave-0048663
The first row is a header. Print display_name for data rows whose score is greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 hana 17 paused r002 dina 17 pending r003 lina 22 pending r004 gus 2 paused r005 eli 8 paused r006 lina 18 ready
hana dina lina lina
record_id display_name score state r001 gus 16 ready r002 gus 11 pending r003 alice 10 paused r004 dina 19 active r005 lina 22 pending r006 jules 8 ready r007 hana 3 active r008 gus 28 pending r009 alice 24 closed r010 lina 30 ready
gus dina lina gus alice lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048663-p1
With the first row serving as a header, output the display_name field for every data row where the score value is strictly greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 hana 17 paused r002 dina 17 pending r003 lina 22 pending r004 gus 2 paused r005 eli 8 paused r006 lina 18 ready
hana dina lina lina
record_id display_name score state r001 gus 16 ready r002 gus 11 pending r003 alice 10 paused r004 dina 19 active r005 lina 22 pending r006 jules 8 ready r007 hana 3 active r008 gus 28 pending r009 alice 24 closed r010 lina 30 ready
gus dina lina gus alice lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048663
qwen/qwen3.7-plus
awkweave-0048664
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
kim 17 ready eli 2 active ivan 10 failed kim 20 failed alice 2 ready alice 13 failed ivan 11 paused gus 15 ready hana 22 closed
kim eli ivan kim alice alice ivan gus hana
jules 1 closed bruno 23 ready alice 24 failed jules 26 closed lina 25 failed dina 13 failed lina 11 ready gus 18 ready dina 25 paused
jules bruno alice jules lina dina lina gus dina
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048664-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
kim 17 ready eli 2 active ivan 10 failed kim 20 failed alice 2 ready alice 13 failed ivan 11 paused gus 15 ready hana 22 closed
kim eli ivan kim alice alice ivan gus hana
jules 1 closed bruno 23 ready alice 24 failed jules 26 closed lina 25 failed dina 13 failed lina 11 ready gus 18 ready dina 25 paused
jules bruno alice jules lina dina lina gus dina
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048664
qwen/qwen3.7-plus
awkweave-0048665
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 24.
BEGIN{FS=OFS=","}$2>24{print $1}
bruno,12,pending chen,18,failed kim,1,pending bruno,5,pending ivan,23,active eli,28,failed bruno,1,pending bruno,20,pending kim,18,failed
eli
jules,10,ready kim,14,pending eli,16,ready chen,24,active ivan,29,closed dina,18,failed
ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048665-p1
For simple comma-separated input without quoted commas, print the first column only if the value in the second column is greater than 24.
BEGIN{FS=OFS=","}$2>24{print $1}
bruno,12,pending chen,18,failed kim,1,pending bruno,5,pending ivan,23,active eli,28,failed bruno,1,pending bruno,20,pending kim,18,failed
eli
jules,10,ready kim,14,pending eli,16,ready chen,24,active ivan,29,closed dina,18,failed
ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048665
qwen/qwen3.7-plus
awkweave-0048666
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
eli birch 4 gus delta 119 eli birch 27 jules amber 35 kim cobalt 75 kim harbor 6 chen indigo 5 alice birch 88 lina cobalt 112
eli birch 4 gus delta 119 eli birch 27 jules amber 35 kim cobalt 75 kim harbor 6 chen indigo 5 alice birch 88 lina cobalt 112
chen grove 101 lina birch 71 alice cobalt 45 hana cobalt 108 alice harbor 70 lina grove 101 bruno fable 69 gus birch 102 hana fable 1
chen grove 101 lina birch 71 alice cobalt 45 hana cobalt 108 alice harbor 70 lina grove 101 bruno fable 69 gus birch 102 hana fable 1
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048666-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
eli birch 4 gus delta 119 eli birch 27 jules amber 35 kim cobalt 75 kim harbor 6 chen indigo 5 alice birch 88 lina cobalt 112
eli birch 4 gus delta 119 eli birch 27 jules amber 35 kim cobalt 75 kim harbor 6 chen indigo 5 alice birch 88 lina cobalt 112
chen grove 101 lina birch 71 alice cobalt 45 hana cobalt 108 alice harbor 70 lina grove 101 bruno fable 69 gus birch 102 hana fable 1
chen grove 101 lina birch 71 alice cobalt 45 hana cobalt 108 alice harbor 70 lina grove 101 bruno fable 69 gus birch 102 hana fable 1
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048666
qwen/qwen3.7-plus
awkweave-0048667
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen juniper 28 paused hana cobalt 83 failed ivan amber 113 ready eli grove 106 pending jules fable 42 paused ivan fable 30 failed kim harbor 66 failed
chen juniper 28 paused
eli juniper 116 paused chen juniper 69 failed ivan birch 91 paused farah fable 75 ready bruno birch 22 active chen harbor 44 pending bruno delta 96 ready
eli juniper 116 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048667-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen juniper 28 paused hana cobalt 83 failed ivan amber 113 ready eli grove 106 pending jules fable 42 paused ivan fable 30 failed kim harbor 66 failed
chen juniper 28 paused
eli juniper 116 paused chen juniper 69 failed ivan birch 91 paused farah fable 75 ready bruno birch 22 active chen harbor 44 pending bruno delta 96 ready
eli juniper 116 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048667
qwen/qwen3.7-plus
awkweave-0048668
Print every 4th line starting at line 1 (then line 5, and so on).
NR%4==1
farah 70 gus 53 alice 76 chen 23 kim 99 lina 56
farah 70 kim 99
gus 6 dina 23 dina 80 alice 106 farah 45 lina 36 ivan 4 kim 29 jules 47 eli 47
gus 6 farah 45 jules 47
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048668-p1
Output every fourth line of the input, beginning with line 1 (i.e., lines 1, 5, 9, etc.).
NR%4==1
farah 70 gus 53 alice 76 chen 23 kim 99 lina 56
farah 70 kim 99
gus 6 dina 23 dina 80 alice 106 farah 45 lina 36 ivan 4 kim 29 jules 47 eli 47
gus 6 farah 45 jules 47
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048668
qwen/qwen3.7-plus
awkweave-0048669
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta ember 38 alpha birch 61 gamma grove 6 gamma birch 90 alpha ember 2 alpha fable 65 gamma cobalt 15
3
beta indigo 85 delta juniper 69 alpha grove 30 delta birch 93 delta ember 9 beta amber 69 gamma juniper 58 gamma indigo 14 delta fable 89
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048669-p1
Determine the number of unique values present in column 1 and print only this total count.
{if(!seen[$1]++)n++}END{print n+0}
beta ember 38 alpha birch 61 gamma grove 6 gamma birch 90 alpha ember 2 alpha fable 65 gamma cobalt 15
3
beta indigo 85 delta juniper 69 alpha grove 30 delta birch 93 delta ember 9 beta amber 69 gamma juniper 58 gamma indigo 14 delta fable 89
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048669
qwen/qwen3.7-plus
awkweave-0048670
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 25 0 ivan 16 9 bruno 25 26 jules 9 21 lina 3 5 jules 25 25 eli 4 23 bruno 26 14 gus 16 27 gus 13 12
ivan 1.78 bruno 0.96 jules 0.43 lina 0.60 jules 1.00 eli 0.17 bruno 1.86 gus 0.59 gus 1.08
chen 21 0 gus 19 14 eli 16 23 lina 12 9 alice 3 27 dina 11 23 hana 18 9
gus 1.36 eli 0.70 lina 1.33 alice 0.11 dina 0.48 hana 2.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048670-p1
For each row, output column 1 and the result of dividing column 2 by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
lina 25 0 ivan 16 9 bruno 25 26 jules 9 21 lina 3 5 jules 25 25 eli 4 23 bruno 26 14 gus 16 27 gus 13 12
ivan 1.78 bruno 0.96 jules 0.43 lina 0.60 jules 1.00 eli 0.17 bruno 1.86 gus 0.59 gus 1.08
chen 21 0 gus 19 14 eli 16 23 lina 12 9 alice 3 27 dina 11 23 hana 18 9
gus 1.36 eli 0.70 lina 1.33 alice 0.11 dina 0.48 hana 2.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048670
qwen/qwen3.7-plus
awkweave-0048671
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 amber 6 lina ember 30 bruno delta 26 dina harbor 18 bruno harbor 15 farah fable 30 bruno cobalt 29 gus grove 28 dina delta 14 gus delta 12
lina ember 30 farah fable 30 bruno cobalt 29
jules ember 9 alice fable 13 jules cobalt 1 alice juniper 6 lina cobalt 1 kim juniper 26 hana ember 11 eli amber 9
kim juniper 26 alice fable 13 hana ember 11
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048671-p1
Select the three records with the highest numeric values in column 3, sorted in descending order, while maintaining the original input order 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 amber 6 lina ember 30 bruno delta 26 dina harbor 18 bruno harbor 15 farah fable 30 bruno cobalt 29 gus grove 28 dina delta 14 gus delta 12
lina ember 30 farah fable 30 bruno cobalt 29
jules ember 9 alice fable 13 jules cobalt 1 alice juniper 6 lina cobalt 1 kim juniper 26 hana ember 11 eli amber 9
kim juniper 26 alice fable 13 hana ember 11
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048671
qwen/qwen3.7-plus
awkweave-0048672
Print column 2 followed by column 1 for every record.
{print $2, $1}
grove birch hana bruno 67 ember harbor delta chen kim 62 ember cobalt harbor ivan ivan 43 juniper ember amber chen dina 46 harbor fable ember kim farah 16 delta cobalt juniper kim kim 78 indigo amber fable kim kim 24 harbor fable indigo alice bruno 116 indigo harbor cobalt farah alice 96 delta harbor cobalt ivan jules ...
birch grove delta harbor harbor cobalt amber ember ember fable juniper cobalt fable amber indigo fable cobalt harbor cobalt harbor
indigo ember gus dina 103 fable juniper amber bruno farah 85 cobalt delta cobalt ivan lina 40 ember grove fable farah dina 66 cobalt ember birch chen kim 77 delta ember birch chen bruno 112 cobalt grove birch alice eli 113 juniper delta birch lina hana 80 fable grove indigo farah chen 94 birch delta amber chen ivan 53 ...
ember indigo amber juniper cobalt delta fable grove birch ember birch ember birch grove birch delta indigo grove amber delta
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048672-p1
For each record, output the second column followed by the first column.
{print $2, $1}
grove birch hana bruno 67 ember harbor delta chen kim 62 ember cobalt harbor ivan ivan 43 juniper ember amber chen dina 46 harbor fable ember kim farah 16 delta cobalt juniper kim kim 78 indigo amber fable kim kim 24 harbor fable indigo alice bruno 116 indigo harbor cobalt farah alice 96 delta harbor cobalt ivan jules ...
birch grove delta harbor harbor cobalt amber ember ember fable juniper cobalt fable amber indigo fable cobalt harbor cobalt harbor
indigo ember gus dina 103 fable juniper amber bruno farah 85 cobalt delta cobalt ivan lina 40 ember grove fable farah dina 66 cobalt ember birch chen kim 77 delta ember birch chen bruno 112 cobalt grove birch alice eli 113 juniper delta birch lina hana 80 fable grove indigo farah chen 94 birch delta amber chen ivan 53 ...
ember indigo amber juniper cobalt delta fable grove birch ember birch ember birch grove birch delta indigo grove amber delta
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048672
qwen/qwen3.7-plus
awkweave-0048673
Print the last field of every input line.
{print $NF}
ivan 77 closed 61 lina ivan 35 closed 120 gus kim 113 closed 18 farah chen 15 ready 2 dina dina 47 active 4 bruno alice 80 pending 64 kim
lina gus farah dina bruno kim
ivan 8 ready 82 ivan jules 96 paused 27 farah dina 41 closed 54 farah ivan 89 failed 100 bruno gus 18 paused 59 dina gus 56 pending 68 ivan lina 86 active 70 lina dina 35 ready 51 kim chen 118 active 92 hana jules 53 closed 71 farah
ivan farah farah bruno dina ivan lina kim hana farah
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048673-p1
Output the final field of every input line.
{print $NF}
ivan 77 closed 61 lina ivan 35 closed 120 gus kim 113 closed 18 farah chen 15 ready 2 dina dina 47 active 4 bruno alice 80 pending 64 kim
lina gus farah dina bruno kim
ivan 8 ready 82 ivan jules 96 paused 27 farah dina 41 closed 54 farah ivan 89 failed 100 bruno gus 18 paused 59 dina gus 56 pending 68 ivan lina 86 active 70 lina dina 35 ready 51 kim chen 118 active 92 hana jules 53 closed 71 farah
ivan farah farah bruno dina ivan lina kim hana farah
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048673
qwen/qwen3.7-plus
awkweave-0048674
Print the complete records where column 1 is at least 45.
$1 >= 45
59 ready ember paused 24 ready fable closed 113 closed grove ready 64 pending harbor paused 25 pending ember failed 30 pending harbor ready 95 pending birch active 64 paused cobalt ready
59 ready ember paused 113 closed grove ready 64 pending harbor paused 95 pending birch active 64 paused cobalt ready
81 paused delta closed 83 active birch closed 56 paused grove failed 5 ready fable pending 90 failed indigo paused 41 failed harbor pending 3 closed harbor failed 14 paused cobalt pending
81 paused delta closed 83 active birch closed 56 paused grove failed 90 failed indigo paused
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048674-p1
Display full records where the value in the first column is greater than or equal to 45.
$1 >= 45
59 ready ember paused 24 ready fable closed 113 closed grove ready 64 pending harbor paused 25 pending ember failed 30 pending harbor ready 95 pending birch active 64 paused cobalt ready
59 ready ember paused 113 closed grove ready 64 pending harbor paused 95 pending birch active 64 paused cobalt ready
81 paused delta closed 83 active birch closed 56 paused grove failed 5 ready fable pending 90 failed indigo paused 41 failed harbor pending 3 closed harbor failed 14 paused cobalt pending
81 paused delta closed 83 active birch closed 56 paused grove failed 90 failed indigo paused
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048674
qwen/qwen3.7-plus
awkweave-0048675
Show whole lines whose 1st field is between 9 and 24, inclusive.
$1 >= 9 && $1 <= 24
12 harbor dina fable 24 indigo bruno grove 9 delta hana amber 14 delta hana delta 29 birch lina grove 16 grove gus cobalt 2 juniper bruno indigo
12 harbor dina fable 24 indigo bruno grove 9 delta hana amber 14 delta hana delta 16 grove gus cobalt
14 ember lina indigo 13 ember jules delta 13 juniper gus harbor 27 birch chen cobalt 3 ember gus ember 28 birch chen juniper 27 indigo eli grove 28 ember eli grove 19 cobalt chen juniper
14 ember lina indigo 13 ember jules delta 13 juniper gus harbor 19 cobalt chen juniper
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048675-p1
Show entire lines where the first field falls within the inclusive range of 9 to 24.
$1 >= 9 && $1 <= 24
12 harbor dina fable 24 indigo bruno grove 9 delta hana amber 14 delta hana delta 29 birch lina grove 16 grove gus cobalt 2 juniper bruno indigo
12 harbor dina fable 24 indigo bruno grove 9 delta hana amber 14 delta hana delta 16 grove gus cobalt
14 ember lina indigo 13 ember jules delta 13 juniper gus harbor 27 birch chen cobalt 3 ember gus ember 28 birch chen juniper 27 indigo eli grove 28 ember eli grove 19 cobalt chen juniper
14 ember lina indigo 13 ember jules delta 13 juniper gus harbor 19 cobalt chen juniper
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048675
qwen/qwen3.7-plus
awkweave-0048676
Print column 4 only for rows where column 1 is exactly closed.
$1 == "closed"{print $4}
failed amber 54 dina ready fable 30 ivan ready birch 39 gus paused birch 37 gus pending delta 83 eli closed amber 45 lina active delta 49 farah pending cobalt 116 kim closed birch 99 farah failed juniper 12 lina
lina farah
failed birch 87 farah paused harbor 17 jules paused grove 35 hana paused juniper 85 gus closed delta 60 hana paused harbor 81 lina active indigo 96 hana paused juniper 110 farah
hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048676-p1
Output only the fourth column for rows where the first column is exactly closed.
$1 == "closed"{print $4}
failed amber 54 dina ready fable 30 ivan ready birch 39 gus paused birch 37 gus pending delta 83 eli closed amber 45 lina active delta 49 farah pending cobalt 116 kim closed birch 99 farah failed juniper 12 lina
lina farah
failed birch 87 farah paused harbor 17 jules paused grove 35 hana paused juniper 85 gus closed delta 60 hana paused harbor 81 lina active indigo 96 hana paused juniper 110 farah
hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048676
qwen/qwen3.7-plus
awkweave-0048677
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
69 WARN cobalt 96 DEBUG ember 31 ERROR grove 41 INFO grove 91 INFO ember 98 INFO cobalt 74 ERROR ember 56 WARN delta 36 ERROR birch
31 ERROR grove 74 ERROR ember 36 ERROR birch
52 ERROR fable 25 INFO amber 117 DEBUG delta 81 ERROR cobalt 63 INFO fable 68 ERROR ember 36 WARN ember 110 DEBUG delta 107 DEBUG juniper
52 ERROR fable 81 ERROR cobalt 68 ERROR ember
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048677-p1
Print all fields from lines where the second field starts with ERROR.
$2 ~ /^ERROR/
69 WARN cobalt 96 DEBUG ember 31 ERROR grove 41 INFO grove 91 INFO ember 98 INFO cobalt 74 ERROR ember 56 WARN delta 36 ERROR birch
31 ERROR grove 74 ERROR ember 36 ERROR birch
52 ERROR fable 25 INFO amber 117 DEBUG delta 81 ERROR cobalt 63 INFO fable 68 ERROR ember 36 WARN ember 110 DEBUG delta 107 DEBUG juniper
52 ERROR fable 81 ERROR cobalt 68 ERROR ember
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048677
qwen/qwen3.7-plus
awkweave-0048678
Print every line except those containing the exact text delta.
$0 !~ /delta/
indigo 78 failed ember 73 failed birch 10 pending cobalt 14 active cobalt 27 pending ember 94 ready harbor 109 paused delta 31 closed cobalt 41 ready fable 75 ready delta 999 active
indigo 78 failed ember 73 failed birch 10 pending cobalt 14 active cobalt 27 pending ember 94 ready harbor 109 paused cobalt 41 ready fable 75 ready
grove 65 closed birch 83 pending grove 22 active fable 60 active harbor 43 active cobalt 64 active indigo 43 ready grove 101 pending grove 114 paused delta 999 active
grove 65 closed birch 83 pending grove 22 active fable 60 active harbor 43 active cobalt 64 active indigo 43 ready grove 101 pending grove 114 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048678-p1
Output every line that does not contain the exact string delta.
$0 !~ /delta/
indigo 78 failed ember 73 failed birch 10 pending cobalt 14 active cobalt 27 pending ember 94 ready harbor 109 paused delta 31 closed cobalt 41 ready fable 75 ready delta 999 active
indigo 78 failed ember 73 failed birch 10 pending cobalt 14 active cobalt 27 pending ember 94 ready harbor 109 paused cobalt 41 ready fable 75 ready
grove 65 closed birch 83 pending grove 22 active fable 60 active harbor 43 active cobalt 64 active indigo 43 ready grove 101 pending grove 114 paused delta 999 active
grove 65 closed birch 83 pending grove 22 active fable 60 active harbor 43 active cobalt 64 active indigo 43 ready grove 101 pending grove 114 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048678
qwen/qwen3.7-plus
awkweave-0048679
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
lina birch 13 farah juniper 117 eli juniper 30 gus harbor 93 chen harbor 98 bruno juniper 80 lina ember 16 ivan ember 90
eli juniper 30 gus harbor 93 chen harbor 98
dina fable 101 kim cobalt 56 lina birch 26 eli birch 115 kim indigo 115 chen indigo 36 kim cobalt 61 jules indigo 76 alice amber 83
lina birch 26 eli birch 115 kim indigo 115
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048679-p1
Print lines 3 through 5, inclusive of both endpoints.
NR >= 3 && NR <= 5
lina birch 13 farah juniper 117 eli juniper 30 gus harbor 93 chen harbor 98 bruno juniper 80 lina ember 16 ivan ember 90
eli juniper 30 gus harbor 93 chen harbor 98
dina fable 101 kim cobalt 56 lina birch 26 eli birch 115 kim indigo 115 chen indigo 36 kim cobalt 61 jules indigo 76 alice amber 83
lina birch 26 eli birch 115 kim indigo 115
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048679
qwen/qwen3.7-plus
awkweave-0048680
Output only the first 4 records.
NR <= 4
ivan 24 delta ivan 53 delta bruno 41 grove eli 28 indigo chen 85 harbor ivan 70 grove jules 33 ember dina 68 cobalt
ivan 24 delta ivan 53 delta bruno 41 grove eli 28 indigo
ivan 25 cobalt gus 74 grove dina 37 delta ivan 25 juniper hana 89 indigo jules 57 amber gus 111 fable gus 4 delta
ivan 25 cobalt gus 74 grove dina 37 delta ivan 25 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048680-p1
Output only the first 4 records.
NR <= 4
ivan 24 delta ivan 53 delta bruno 41 grove eli 28 indigo chen 85 harbor ivan 70 grove jules 33 ember dina 68 cobalt
ivan 24 delta ivan 53 delta bruno 41 grove eli 28 indigo
ivan 25 cobalt gus 74 grove dina 37 delta ivan 25 juniper hana 89 indigo jules 57 amber gus 111 fable gus 4 delta
ivan 25 cobalt gus 74 grove dina 37 delta ivan 25 juniper
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0048680
qwen/qwen3.7-plus
awkweave-0048681
Skip the first line and print every remaining line unchanged.
NR > 1
farah 61 amber eli 106 juniper ivan 57 cobalt ivan 69 harbor farah 46 indigo jules 12 indigo
eli 106 juniper ivan 57 cobalt ivan 69 harbor farah 46 indigo jules 12 indigo
farah 66 harbor eli 76 cobalt chen 106 indigo chen 39 birch bruno 54 amber ivan 21 birch ivan 3 juniper bruno 92 harbor
eli 76 cobalt chen 106 indigo chen 39 birch bruno 54 amber ivan 21 birch ivan 3 juniper bruno 92 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048681-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
farah 61 amber eli 106 juniper ivan 57 cobalt ivan 69 harbor farah 46 indigo jules 12 indigo
eli 106 juniper ivan 57 cobalt ivan 69 harbor farah 46 indigo jules 12 indigo
farah 66 harbor eli 76 cobalt chen 106 indigo chen 39 birch bruno 54 amber ivan 21 birch ivan 3 juniper bruno 92 harbor
eli 76 cobalt chen 106 indigo chen 39 birch bruno 54 amber ivan 21 birch ivan 3 juniper bruno 92 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048681
qwen/qwen3.7-plus
awkweave-0048682
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
gus active 41 gus pending 100 lina ready 93 jules ready 120 alice pending 89 kim active 19
0
jules paused 1 lina ready 21 alice closed 69 farah ready 38 farah active 26 alice closed 86 dina active 113 lina active 62 dina pending 100 lina active 14
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048682-p1
Count the number of records where column 2 contains paused, printing 0 if none are found.
$2 == "paused"{n++}END{print n+0}
gus active 41 gus pending 100 lina ready 93 jules ready 120 alice pending 89 kim active 19
0
jules paused 1 lina ready 21 alice closed 69 farah ready 38 farah active 26 alice closed 86 dina active 113 lina active 62 dina pending 100 lina active 14
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048682
qwen/qwen3.7-plus
awkweave-0048683
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
22 gus juniper 8 alice birch 15 kim birch 8 kim cobalt 24 kim birch 29 jules indigo 23 kim juniper 6 gus fable 26 dina grove
161
1 dina fable 17 dina juniper 8 alice juniper 29 chen indigo 4 alice ember 24 gus birch
83
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048683-p1
Compute and display the sum of all integer values in column 1.
{s+=$1}END{print s+0}
22 gus juniper 8 alice birch 15 kim birch 8 kim cobalt 24 kim birch 29 jules indigo 23 kim juniper 6 gus fable 26 dina grove
161
1 dina fable 17 dina juniper 8 alice juniper 29 chen indigo 4 alice ember 24 gus birch
83
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048683
qwen/qwen3.7-plus
awkweave-0048684
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
ember eli 9 juniper farah 18 birch lina 19 delta farah 11 harbor chen 24 fable chen 17
16.33
grove jules 14 birch chen 14 harbor dina 18 harbor farah 6 indigo gus 16 indigo bruno 17 delta dina 21
15.14
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048684-p1
Compute and display the average of the third column, formatted to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
ember eli 9 juniper farah 18 birch lina 19 delta farah 11 harbor chen 24 fable chen 17
16.33
grove jules 14 birch chen 14 harbor dina 18 harbor farah 6 indigo gus 16 indigo bruno 17 delta dina 21
15.14
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048684
qwen/qwen3.7-plus
awkweave-0048685
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
jules 19 cobalt jules 5 birch chen 28 cobalt jules 6 harbor jules 19 birch dina 27 fable ivan 26 delta kim 8 juniper
5
alice 20 juniper gus 10 harbor eli 23 juniper lina 29 grove chen 15 harbor lina 21 fable bruno 23 amber hana 17 juniper ivan 8 birch
8
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048685-p1
Identify and output the minimum numerical value found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
jules 19 cobalt jules 5 birch chen 28 cobalt jules 6 harbor jules 19 birch dina 27 fable ivan 26 delta kim 8 juniper
5
alice 20 juniper gus 10 harbor eli 23 juniper lina 29 grove chen 15 harbor lina 21 fable bruno 23 amber hana 17 juniper ivan 8 birch
8
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048685
qwen/qwen3.7-plus
awkweave-0048686
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
7 amber gus 30 cobalt hana 23 ember chen 7 indigo gus 19 ember chen 26 cobalt lina
30
13 delta eli 14 delta jules 19 cobalt hana 16 harbor eli 1 indigo lina 3 birch kim 29 fable gus 10 grove lina
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048686-p1
Identify and output the maximum numerical value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
7 amber gus 30 cobalt hana 23 ember chen 7 indigo gus 19 ember chen 26 cobalt lina
30
13 delta eli 14 delta jules 19 cobalt hana 16 harbor eli 1 indigo lina 3 birch kim 29 fable gus 10 grove lina
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048686
qwen/qwen3.7-plus
awkweave-0048687
Count all input records and print the total.
END{print NR}
kim 57 farah 29 farah 92 alice 98 dina 71 ivan 108 bruno 47
7
lina 69 kim 36 farah 57 farah 119 kim 89 hana 10 lina 68 farah 76
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048687-p1
Calculate the total number of input records and print the count.
END{print NR}
kim 57 farah 29 farah 92 alice 98 dina 71 ivan 108 bruno 47
7
lina 69 kim 36 farah 57 farah 119 kim 89 hana 10 lina 68 farah 76
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048687
qwen/qwen3.7-plus
awkweave-0048688
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
alice indigo 69 gus delta 20 alice juniper 21 ivan grove 13 dina juniper 101 gus ember 94 gus amber 47 ivan grove 13 chen harbor 51 dina amber 35
alice indigo 69 gus delta 20 alice juniper 21 ivan grove 13 dina juniper 101 gus ember 94 gus amber 47 chen harbor 51 dina amber 35
bruno birch 79 alice amber 91 jules indigo 54 ivan cobalt 39 jules indigo 54 farah fable 2 kim birch 41 dina amber 115
bruno birch 79 alice amber 91 jules indigo 54 ivan cobalt 39 farah fable 2 kim birch 41 dina amber 115
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048688-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
alice indigo 69 gus delta 20 alice juniper 21 ivan grove 13 dina juniper 101 gus ember 94 gus amber 47 ivan grove 13 chen harbor 51 dina amber 35
alice indigo 69 gus delta 20 alice juniper 21 ivan grove 13 dina juniper 101 gus ember 94 gus amber 47 chen harbor 51 dina amber 35
bruno birch 79 alice amber 91 jules indigo 54 ivan cobalt 39 jules indigo 54 farah fable 2 kim birch 41 dina amber 115
bruno birch 79 alice amber 91 jules indigo 54 ivan cobalt 39 farah fable 2 kim birch 41 dina amber 115
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048688
qwen/qwen3.7-plus
awkweave-0048689
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
hana birch 2 farah indigo 99 farah cobalt 41 jules amber 51 ivan grove 24 alice amber 79 bruno fable 94
hana birch 2 farah indigo 99 farah cobalt 41 jules amber 51 ivan grove 24 bruno fable 94
eli ember 110 farah fable 85 lina amber 76 chen birch 50 dina juniper 65 kim amber 118 dina fable 11 chen grove 5 lina juniper 49
eli ember 110 farah fable 85 lina amber 76 chen birch 50 dina juniper 65 chen grove 5
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048689-p1
Retain only the initial line for every unique value in column 2, while preserving the input order.
!seen[$2]++
hana birch 2 farah indigo 99 farah cobalt 41 jules amber 51 ivan grove 24 alice amber 79 bruno fable 94
hana birch 2 farah indigo 99 farah cobalt 41 jules amber 51 ivan grove 24 bruno fable 94
eli ember 110 farah fable 85 lina amber 76 chen birch 50 dina juniper 65 kim amber 118 dina fable 11 chen grove 5 lina juniper 49
eli ember 110 farah fable 85 lina amber 76 chen birch 50 dina juniper 65 chen grove 5
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048689
qwen/qwen3.7-plus
awkweave-0048700
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]]}
delta fable 52 delta delta 48 beta fable 73 beta grove 114 delta fable 66 alpha ember 48 alpha harbor 95 gamma ember 83 alpha birch 26
delta 3 beta 2 alpha 3
delta ember 13 alpha fable 90 delta amber 117 alpha cobalt 86 beta indigo 50 alpha amber 52 gamma grove 26 alpha delta 59 delta juniper 29 delta harbor 75
delta 4 alpha 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048700-p1
List each recurring value from column 1 alongside 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]]}
delta fable 52 delta delta 48 beta fable 73 beta grove 114 delta fable 66 alpha ember 48 alpha harbor 95 gamma ember 83 alpha birch 26
delta 3 beta 2 alpha 3
delta ember 13 alpha fable 90 delta amber 117 alpha cobalt 86 beta indigo 50 alpha amber 52 gamma grove 26 alpha delta 59 delta juniper 29 delta harbor 75
delta 4 alpha 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048700
qwen/qwen3.7-plus
awkweave-0048701
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
state score note display_name r001 farah 16 failed r002 kim 18 pending r003 jules 1 closed r004 ivan 4 paused r005 bruno 19 pending r006 lina 15 active r007 jules 27 pending
farah kim jules ivan bruno lina jules
state score note display_name r001 eli 20 active r002 hana 21 ready r003 jules 10 ready r004 lina 5 closed r005 ivan 1 failed r006 alice 6 ready
eli hana jules lina ivan alice
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048701-p1
Treating the first row as a header, output the values from the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
state score note display_name r001 farah 16 failed r002 kim 18 pending r003 jules 1 closed r004 ivan 4 paused r005 bruno 19 pending r006 lina 15 active r007 jules 27 pending
farah kim jules ivan bruno lina jules
state score note display_name r001 eli 20 active r002 hana 21 ready r003 jules 10 ready r004 lina 5 closed r005 ivan 1 failed r006 alice 6 ready
eli hana jules lina ivan alice
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048701
qwen/qwen3.7-plus
awkweave-0048702
The first row is a header. Print display_name for data rows whose score is greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 jules 4 pending r002 lina 15 pending r003 alice 28 active r004 chen 23 closed r005 farah 28 paused r006 gus 26 paused r007 bruno 25 failed r008 kim 21 failed r009 ivan 14 ready
alice chen farah gus bruno
record_id display_name score state r001 ivan 1 closed r002 chen 1 pending r003 chen 30 paused r004 kim 10 paused r005 lina 28 failed r006 kim 14 pending r007 alice 30 active
chen lina alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048702-p1
With the first row as a header, print the display_name field for data rows where the score is strictly greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 jules 4 pending r002 lina 15 pending r003 alice 28 active r004 chen 23 closed r005 farah 28 paused r006 gus 26 paused r007 bruno 25 failed r008 kim 21 failed r009 ivan 14 ready
alice chen farah gus bruno
record_id display_name score state r001 ivan 1 closed r002 chen 1 pending r003 chen 30 paused r004 kim 10 paused r005 lina 28 failed r006 kim 14 pending r007 alice 30 active
chen lina alice
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048702
qwen/qwen3.7-plus
awkweave-0048703
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
farah 17 failed farah 17 ready bruno 20 pending lina 13 active bruno 25 paused gus 14 failed bruno 6 active
17 17 20 13 25 14 6
jules 21 paused chen 18 closed ivan 18 failed dina 3 failed farah 9 paused dina 10 closed
21 18 18 3 9 10
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048703-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
farah 17 failed farah 17 ready bruno 20 pending lina 13 active bruno 25 paused gus 14 failed bruno 6 active
17 17 20 13 25 14 6
jules 21 paused chen 18 closed ivan 18 failed dina 3 failed farah 9 paused dina 10 closed
21 18 18 3 9 10
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0048703
qwen/qwen3.7-plus
awkweave-0048704
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
farah,4,active ivan,5,paused hana,22,pending chen,2,pending dina,11,closed hana,8,failed eli,25,active farah,27,paused lina,20,ready
hana eli farah lina
chen,7,closed bruno,2,paused bruno,7,pending kim,18,ready ivan,24,failed ivan,10,active dina,12,pending
kim ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048704-p1
For simple comma-separated input without quoted fields, print the first column if the second column value is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
farah,4,active ivan,5,paused hana,22,pending chen,2,pending dina,11,closed hana,8,failed eli,25,active farah,27,paused lina,20,ready
hana eli farah lina
chen,7,closed bruno,2,paused bruno,7,pending kim,18,ready ivan,24,failed ivan,10,active dina,12,pending
kim ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048704
qwen/qwen3.7-plus
awkweave-0048705
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana delta 9 ivan cobalt 44 chen amber 59 jules fable 46 ivan amber 115 lina amber 12 jules indigo 105 chen ember 67 farah cobalt 88
hana delta 9 ivan cobalt 44 chen amber 59 jules fable 46 ivan amber 115 lina amber 12 jules indigo 105 chen ember 67 farah cobalt 88
gus ember 15 jules indigo 65 chen cobalt 114 ivan delta 43 dina birch 8 kim delta 35 dina harbor 0 eli fable 64
gus ember 15 jules indigo 65 chen cobalt 114 ivan delta 43 dina birch 8 kim delta 35 dina harbor 0 eli fable 64
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048705-p1
Strip leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
hana delta 9 ivan cobalt 44 chen amber 59 jules fable 46 ivan amber 115 lina amber 12 jules indigo 105 chen ember 67 farah cobalt 88
hana delta 9 ivan cobalt 44 chen amber 59 jules fable 46 ivan amber 115 lina amber 12 jules indigo 105 chen ember 67 farah cobalt 88
gus ember 15 jules indigo 65 chen cobalt 114 ivan delta 43 dina birch 8 kim delta 35 dina harbor 0 eli fable 64
gus ember 15 jules indigo 65 chen cobalt 114 ivan delta 43 dina birch 8 kim delta 35 dina harbor 0 eli fable 64
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048705
qwen/qwen3.7-plus
awkweave-0048706
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah amber 95 active kim indigo 46 ready eli delta 35 closed alice amber 97 pending gus fable 27 ready hana grove 20 ready hana cobalt 60 closed ivan fable 84 failed
alice amber 97 pending
chen cobalt 34 ready farah fable 11 pending ivan ember 53 failed kim cobalt 29 failed kim amber 62 failed chen delta 49 pending chen harbor 103 paused alice delta 59 active jules juniper 11 ready lina juniper 99 closed
farah fable 11 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048706-p1
Output the longest line from the input, selecting the first occurrence if multiple lines share the maximum length.
{if(length($0)>length(best))best=$0}END{print best}
farah amber 95 active kim indigo 46 ready eli delta 35 closed alice amber 97 pending gus fable 27 ready hana grove 20 ready hana cobalt 60 closed ivan fable 84 failed
alice amber 97 pending
chen cobalt 34 ready farah fable 11 pending ivan ember 53 failed kim cobalt 29 failed kim amber 62 failed chen delta 49 pending chen harbor 103 paused alice delta 59 active jules juniper 11 ready lina juniper 99 closed
farah fable 11 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048706
qwen/qwen3.7-plus
awkweave-0048707
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
lina 80 alice 94 alice 41 chen 45 farah 3 dina 66 lina 34 jules 61
lina 80 chen 45 lina 34
chen 25 jules 19 ivan 61 kim 101 bruno 22 kim 4 eli 108 kim 76 lina 19
chen 25 kim 101 eli 108
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048707-p1
Print lines 1, 4, 7, and so on, effectively outputting every third line starting from the first.
NR%3==1
lina 80 alice 94 alice 41 chen 45 farah 3 dina 66 lina 34 jules 61
lina 80 chen 45 lina 34
chen 25 jules 19 ivan 61 kim 101 bruno 22 kim 4 eli 108 kim 76 lina 19
chen 25 kim 101 eli 108
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048707
qwen/qwen3.7-plus
awkweave-0048708
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha indigo 66 delta indigo 45 delta harbor 119 delta birch 69 delta delta 21 alpha grove 38
2
beta amber 30 alpha ember 33 delta amber 36 alpha birch 105 beta ember 85 delta harbor 94 delta fable 66 gamma juniper 29 gamma juniper 118 gamma amber 25
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048708-p1
Calculate and display only the total number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
alpha indigo 66 delta indigo 45 delta harbor 119 delta birch 69 delta delta 21 alpha grove 38
2
beta amber 30 alpha ember 33 delta amber 36 alpha birch 105 beta ember 85 delta harbor 94 delta fable 66 gamma juniper 29 gamma juniper 118 gamma amber 25
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048708
qwen/qwen3.7-plus
awkweave-0048709
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}
hana 27 0 bruno 8 21 ivan 4 5 lina 15 26 jules 27 29 bruno 23 9 chen 2 21
bruno 0.38 ivan 0.80 lina 0.58 jules 0.93 bruno 2.56 chen 0.10
eli 19 0 bruno 9 10 hana 23 8 farah 9 11 chen 22 27 eli 17 12 alice 9 21
bruno 0.90 hana 2.88 farah 0.82 chen 0.81 eli 1.42 alice 0.43
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048709-p1
For each row where the third column is not zero, print the first column followed by 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}
hana 27 0 bruno 8 21 ivan 4 5 lina 15 26 jules 27 29 bruno 23 9 chen 2 21
bruno 0.38 ivan 0.80 lina 0.58 jules 0.93 bruno 2.56 chen 0.10
eli 19 0 bruno 9 10 hana 23 8 farah 9 11 chen 22 27 eli 17 12 alice 9 21
bruno 0.90 hana 2.88 farah 0.82 chen 0.81 eli 1.42 alice 0.43
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048709
qwen/qwen3.7-plus
awkweave-0048710
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]}
kim harbor 18 hana amber 9 ivan indigo 30 bruno birch 24 lina fable 30 kim harbor 19 eli cobalt 24 alice harbor 11 hana juniper 28 eli grove 4
ivan indigo 30 lina fable 30 hana juniper 28
chen amber 10 lina indigo 24 chen cobalt 16 alice harbor 19 jules fable 26 chen harbor 9
jules fable 26 lina indigo 24 alice harbor 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048710-p1
Display the full records corresponding to the top three highest numeric values in column 3, sorted in descending order; maintain 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]}
kim harbor 18 hana amber 9 ivan indigo 30 bruno birch 24 lina fable 30 kim harbor 19 eli cobalt 24 alice harbor 11 hana juniper 28 eli grove 4
ivan indigo 30 lina fable 30 hana juniper 28
chen amber 10 lina indigo 24 chen cobalt 16 alice harbor 19 jules fable 26 chen harbor 9
jules fable 26 lina indigo 24 alice harbor 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048710
qwen/qwen3.7-plus
awkweave-0048711
For each line, output fields 2 and 1, in that order.
{print $2, $1}
85 failed failed delta 103 paused paused birch 8 active closed delta 67 active pending harbor 92 paused active harbor 86 pending failed harbor 10 failed pending grove
failed 85 paused 103 active 8 active 67 paused 92 pending 86 failed 10
79 failed paused delta 105 pending closed birch 26 failed ready harbor 23 failed failed indigo 34 paused closed harbor 77 failed ready ember 57 failed active birch 23 active ready ember 98 ready failed amber
failed 79 pending 105 failed 26 failed 23 paused 34 failed 77 failed 57 active 23 ready 98
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048711-p1
Output the second field followed by the first field for every line.
{print $2, $1}
85 failed failed delta 103 paused paused birch 8 active closed delta 67 active pending harbor 92 paused active harbor 86 pending failed harbor 10 failed pending grove
failed 85 paused 103 active 8 active 67 paused 92 pending 86 failed 10
79 failed paused delta 105 pending closed birch 26 failed ready harbor 23 failed failed indigo 34 paused closed harbor 77 failed ready ember 57 failed active birch 23 active ready ember 98 ready failed amber
failed 79 pending 105 failed 26 failed 23 paused 34 failed 77 failed 57 active 23 ready 98
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048711
qwen/qwen3.7-plus
awkweave-0048712
Print the last field of every input line.
{print $NF}
amber ready active 95 lina 28 harbor active paused 28 jules 103 harbor paused failed 64 alice 54 ember ready failed 88 dina 29 juniper failed ready 3 kim 20 fable failed failed 5 alice 100
28 103 54 29 20 100
juniper closed closed 28 chen 6 juniper closed paused 21 gus 32 indigo paused ready 61 chen 47 harbor ready active 81 gus 0 juniper active pending 31 dina 107 delta closed pending 113 hana 8
6 32 47 0 107 8
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048712-p1
Print the final field from each input line.
{print $NF}
amber ready active 95 lina 28 harbor active paused 28 jules 103 harbor paused failed 64 alice 54 ember ready failed 88 dina 29 juniper failed ready 3 kim 20 fable failed failed 5 alice 100
28 103 54 29 20 100
juniper closed closed 28 chen 6 juniper closed paused 21 gus 32 indigo paused ready 61 chen 47 harbor ready active 81 gus 0 juniper active pending 31 dina 107 delta closed pending 113 hana 8
6 32 47 0 107 8
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048712
qwen/qwen3.7-plus
awkweave-0048713
Print the complete records where column 1 is less than 50.
$1 < 50
55 closed jules 80 paused hana 92 pending lina 25 failed dina 41 pending jules 10 active bruno 33 active alice 22 pending chen
25 failed dina 41 pending jules 10 active bruno 33 active alice 22 pending chen
73 pending ivan 20 ready hana 97 ready ivan 62 pending bruno 33 ready alice 68 paused gus
20 ready hana 33 ready alice
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048713-p1
Output the entire record for any row where the value in the first column is strictly less than 50.
$1 < 50
55 closed jules 80 paused hana 92 pending lina 25 failed dina 41 pending jules 10 active bruno 33 active alice 22 pending chen
25 failed dina 41 pending jules 10 active bruno 33 active alice 22 pending chen
73 pending ivan 20 ready hana 97 ready ivan 62 pending bruno 33 ready alice 68 paused gus
20 ready hana 33 ready alice
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048713
qwen/qwen3.7-plus
awkweave-0048714
Show whole lines whose 2nd field is between 9 and 25, inclusive.
$2 >= 9 && $2 <= 25
amber 20 paused failed harbor 27 active paused fable 14 ready active indigo 21 pending pending juniper 18 active ready delta 16 ready ready juniper 16 pending closed fable 3 failed ready indigo 8 closed pending
amber 20 paused failed fable 14 ready active indigo 21 pending pending juniper 18 active ready delta 16 ready ready juniper 16 pending closed
grove 14 ready active harbor 1 closed pending birch 17 pending ready amber 9 failed paused grove 11 ready paused grove 27 active failed amber 4 pending failed cobalt 20 failed ready birch 23 active active amber 12 pending closed
grove 14 ready active birch 17 pending ready amber 9 failed paused grove 11 ready paused cobalt 20 failed ready birch 23 active active amber 12 pending closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048714-p1
Display complete lines where the second field has a value between 9 and 25, inclusive.
$2 >= 9 && $2 <= 25
amber 20 paused failed harbor 27 active paused fable 14 ready active indigo 21 pending pending juniper 18 active ready delta 16 ready ready juniper 16 pending closed fable 3 failed ready indigo 8 closed pending
amber 20 paused failed fable 14 ready active indigo 21 pending pending juniper 18 active ready delta 16 ready ready juniper 16 pending closed
grove 14 ready active harbor 1 closed pending birch 17 pending ready amber 9 failed paused grove 11 ready paused grove 27 active failed amber 4 pending failed cobalt 20 failed ready birch 23 active active amber 12 pending closed
grove 14 ready active birch 17 pending ready amber 9 failed paused grove 11 ready paused cobalt 20 failed ready birch 23 active active amber 12 pending closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048714
qwen/qwen3.7-plus
awkweave-0048715
Print column 3 only for rows where column 4 is exactly pending.
$4 == "pending"{print $3}
grove 16 gus closed birch 120 lina active birch 18 eli paused grove 18 ivan closed grove 33 kim failed ember 41 gus ready indigo 69 dina closed harbor 29 jules failed cobalt 21 hana pending
hana
birch 81 alice pending indigo 107 chen active ember 85 kim failed birch 53 chen active fable 100 hana pending harbor 38 bruno ready harbor 15 bruno closed
alice hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048715-p1
Print only the third column for rows where the fourth column contains exactly the text pending.
$4 == "pending"{print $3}
grove 16 gus closed birch 120 lina active birch 18 eli paused grove 18 ivan closed grove 33 kim failed ember 41 gus ready indigo 69 dina closed harbor 29 jules failed cobalt 21 hana pending
hana
birch 81 alice pending indigo 107 chen active ember 85 kim failed birch 53 chen active fable 100 hana pending harbor 38 bruno ready harbor 15 bruno closed
alice hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048715
qwen/qwen3.7-plus
awkweave-0048716
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
WARN 94 fable INFO 43 fable INFO 37 grove INFO 1 juniper WARN 18 birch ERROR 2 amber
ERROR 2 amber
WARN 116 grove INFO 104 juniper INFO 70 harbor ERROR 74 ember INFO 45 amber ERROR 70 grove WARN 117 grove ERROR 56 fable INFO 98 indigo
ERROR 74 ember ERROR 70 grove ERROR 56 fable
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048716-p1
Output all fields from lines where the first field starts with the string ERROR.
$1 ~ /^ERROR/
WARN 94 fable INFO 43 fable INFO 37 grove INFO 1 juniper WARN 18 birch ERROR 2 amber
ERROR 2 amber
WARN 116 grove INFO 104 juniper INFO 70 harbor ERROR 74 ember INFO 45 amber ERROR 70 grove WARN 117 grove ERROR 56 fable INFO 98 indigo
ERROR 74 ember ERROR 70 grove ERROR 56 fable
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048716
qwen/qwen3.7-plus
awkweave-0048717
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
grove 31 closed juniper 77 closed cobalt 32 active indigo 59 paused delta 108 paused cobalt 97 paused indigo 72 paused grove 50 active grove 3 failed juniper 999 active
grove 31 closed cobalt 32 active indigo 59 paused delta 108 paused cobalt 97 paused indigo 72 paused grove 50 active grove 3 failed
cobalt 27 failed birch 118 ready birch 27 ready delta 79 ready birch 69 active harbor 106 active delta 42 ready indigo 95 active amber 48 ready juniper 999 active
cobalt 27 failed birch 118 ready birch 27 ready delta 79 ready birch 69 active harbor 106 active delta 42 ready indigo 95 active amber 48 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048717-p1
Print every line that does not contain the exact string juniper.
$0 !~ /juniper/
grove 31 closed juniper 77 closed cobalt 32 active indigo 59 paused delta 108 paused cobalt 97 paused indigo 72 paused grove 50 active grove 3 failed juniper 999 active
grove 31 closed cobalt 32 active indigo 59 paused delta 108 paused cobalt 97 paused indigo 72 paused grove 50 active grove 3 failed
cobalt 27 failed birch 118 ready birch 27 ready delta 79 ready birch 69 active harbor 106 active delta 42 ready indigo 95 active amber 48 ready juniper 999 active
cobalt 27 failed birch 118 ready birch 27 ready delta 79 ready birch 69 active harbor 106 active delta 42 ready indigo 95 active amber 48 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048717
qwen/qwen3.7-plus
awkweave-0048718
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
alice harbor 75 lina grove 70 gus cobalt 81 bruno indigo 62 ivan birch 106 ivan birch 20 eli indigo 78 alice ember 116
gus cobalt 81 bruno indigo 62 ivan birch 106
farah birch 43 bruno ember 43 lina birch 47 gus ember 22 alice ember 8 eli cobalt 86 lina cobalt 76 farah juniper 90
lina birch 47 gus ember 22 alice ember 8
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048718-p1
Display lines 3 to 5, inclusive.
NR >= 3 && NR <= 5
alice harbor 75 lina grove 70 gus cobalt 81 bruno indigo 62 ivan birch 106 ivan birch 20 eli indigo 78 alice ember 116
gus cobalt 81 bruno indigo 62 ivan birch 106
farah birch 43 bruno ember 43 lina birch 47 gus ember 22 alice ember 8 eli cobalt 86 lina cobalt 76 farah juniper 90
lina birch 47 gus ember 22 alice ember 8
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048718
qwen/qwen3.7-plus
awkweave-0048719
Output only the first 5 records.
NR <= 5
alice 23 juniper bruno 92 cobalt chen 61 ember farah 11 indigo kim 91 indigo hana 90 ember farah 20 cobalt lina 83 fable eli 99 cobalt kim 82 juniper
alice 23 juniper bruno 92 cobalt chen 61 ember farah 11 indigo kim 91 indigo
gus 111 fable dina 68 juniper ivan 16 delta farah 2 birch kim 107 delta hana 25 fable eli 50 fable kim 63 delta chen 61 cobalt gus 110 indigo
gus 111 fable dina 68 juniper ivan 16 delta farah 2 birch kim 107 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048719-p1
Show only the initial 5 records.
NR <= 5
alice 23 juniper bruno 92 cobalt chen 61 ember farah 11 indigo kim 91 indigo hana 90 ember farah 20 cobalt lina 83 fable eli 99 cobalt kim 82 juniper
alice 23 juniper bruno 92 cobalt chen 61 ember farah 11 indigo kim 91 indigo
gus 111 fable dina 68 juniper ivan 16 delta farah 2 birch kim 107 delta hana 25 fable eli 50 fable kim 63 delta chen 61 cobalt gus 110 indigo
gus 111 fable dina 68 juniper ivan 16 delta farah 2 birch kim 107 delta
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048719
qwen/qwen3.7-plus
awkweave-0048720
Skip the first line and print every remaining line unchanged.
NR > 1
chen 81 grove jules 89 ember chen 107 amber ivan 120 delta chen 88 delta gus 25 harbor eli 80 amber farah 106 harbor dina 90 indigo eli 10 harbor
jules 89 ember chen 107 amber ivan 120 delta chen 88 delta gus 25 harbor eli 80 amber farah 106 harbor dina 90 indigo eli 10 harbor
farah 98 fable hana 79 birch farah 29 grove lina 43 fable ivan 79 cobalt lina 36 delta eli 18 juniper
hana 79 birch farah 29 grove lina 43 fable ivan 79 cobalt lina 36 delta eli 18 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048720-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
chen 81 grove jules 89 ember chen 107 amber ivan 120 delta chen 88 delta gus 25 harbor eli 80 amber farah 106 harbor dina 90 indigo eli 10 harbor
jules 89 ember chen 107 amber ivan 120 delta chen 88 delta gus 25 harbor eli 80 amber farah 106 harbor dina 90 indigo eli 10 harbor
farah 98 fable hana 79 birch farah 29 grove lina 43 fable ivan 79 cobalt lina 36 delta eli 18 juniper
hana 79 birch farah 29 grove lina 43 fable ivan 79 cobalt lina 36 delta eli 18 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048720
qwen/qwen3.7-plus
awkweave-0048721
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
farah failed 53 eli closed 112 ivan active 40 bruno paused 74 chen ready 37 gus pending 101
1
farah failed 16 jules failed 68 farah ready 48 chen closed 29 dina paused 9 alice ready 25
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048721-p1
Tally the records with 'failed' in column 2; output 0 if none exist.
$2 == "failed"{n++}END{print n+0}
farah failed 53 eli closed 112 ivan active 40 bruno paused 74 chen ready 37 gus pending 101
1
farah failed 16 jules failed 68 farah ready 48 chen closed 29 dina paused 9 alice ready 25
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048721
qwen/qwen3.7-plus
awkweave-0048722
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
birch 15 bruno fable 14 gus cobalt 18 gus harbor 1 bruno grove 9 hana fable 1 eli
58
fable 27 hana amber 16 alice juniper 5 farah delta 2 lina grove 16 hana indigo 29 dina harbor 29 jules delta 2 chen
126
sum_field
1
train
original-grammar
CC-BY-4.0
null
null