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-0012050-p1 | Output the full records corresponding to the top three highest numeric values in the third column, sorted in descending order, while maintaining the original input sequence for any ties. | {value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]} | lina birch 8
farah ember 28
alice juniper 24
jules indigo 26
farah birch 23
lina indigo 18
farah fable 13
ivan ember 17
gus ember 30
hana indigo 24
| gus ember 30
farah ember 28
jules indigo 26
| dina birch 11
bruno delta 19
eli harbor 14
farah birch 13
eli indigo 29
kim amber 28
eli amber 2
lina ember 14
ivan birch 26
lina indigo 25
| eli indigo 29
kim amber 28
ivan birch 26
| top_three | 3 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012050 | qwen/qwen3.7-plus |
awkweave-0012051 | Print column 3 followed by column 2 for every record. | {print $3, $2} | closed farah birch 118
paused eli harbor 58
closed lina ember 21
pending jules cobalt 50
active bruno juniper 70
ready farah fable 75
ready eli indigo 77
active chen ember 28
active bruno delta 17
| birch farah
harbor eli
ember lina
cobalt jules
juniper bruno
fable farah
indigo eli
ember chen
delta bruno
| closed dina amber 43
closed chen delta 62
active gus birch 68
failed farah indigo 42
closed hana birch 83
pending gus juniper 116
active bruno cobalt 88
| amber dina
delta chen
birch gus
indigo farah
birch hana
juniper gus
cobalt bruno
| project_fields | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012051-p1 | Display the third column followed by the second column for each record. | {print $3, $2} | closed farah birch 118
paused eli harbor 58
closed lina ember 21
pending jules cobalt 50
active bruno juniper 70
ready farah fable 75
ready eli indigo 77
active chen ember 28
active bruno delta 17
| birch farah
harbor eli
ember lina
cobalt jules
juniper bruno
fable farah
indigo eli
ember chen
delta bruno
| closed dina amber 43
closed chen delta 62
active gus birch 68
failed farah indigo 42
closed hana birch 83
pending gus juniper 116
active bruno cobalt 88
| amber dina
delta chen
birch gus
indigo farah
birch hana
juniper gus
cobalt bruno
| project_fields | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012051 | qwen/qwen3.7-plus |
awkweave-0012052 | Print the last field of every input line. | {print $NF} | ready delta delta paused
paused cobalt grove closed
failed delta ember closed
closed harbor birch closed
paused harbor juniper closed
failed grove cobalt active
paused harbor birch failed
failed cobalt harbor failed
active juniper harbor closed
paused juniper ember paused
| paused
closed
closed
closed
closed
active
failed
failed
closed
paused
| pending harbor fable ready
failed birch juniper pending
closed birch fable failed
active grove indigo active
failed fable ember paused
pending grove fable pending
| ready
pending
failed
active
paused
pending
| last_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012052-p1 | Output the final field from every line of input. | {print $NF} | ready delta delta paused
paused cobalt grove closed
failed delta ember closed
closed harbor birch closed
paused harbor juniper closed
failed grove cobalt active
paused harbor birch failed
failed cobalt harbor failed
active juniper harbor closed
paused juniper ember paused
| paused
closed
closed
closed
closed
active
failed
failed
closed
paused
| pending harbor fable ready
failed birch juniper pending
closed birch fable failed
active grove indigo active
failed fable ember paused
pending grove fable pending
| ready
pending
failed
active
paused
pending
| last_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012052 | qwen/qwen3.7-plus |
awkweave-0012053 | Print the complete records where column 1 is less than 33. | $1 < 33 | 91 alice indigo
105 farah harbor
94 lina indigo
77 dina ember
43 hana delta
42 chen amber
9 bruno delta
11 chen juniper
119 alice indigo
23 farah grove
| 9 bruno delta
11 chen juniper
23 farah grove
| 15 gus birch
48 kim delta
119 farah fable
3 chen cobalt
7 ivan juniper
82 lina grove
51 dina indigo
62 jules indigo
88 alice indigo
| 15 gus birch
3 chen cobalt
7 ivan juniper
| numeric_filter | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012053-p1 | Print the entire lines where the value in the first column is strictly less than 33. | $1 < 33 | 91 alice indigo
105 farah harbor
94 lina indigo
77 dina ember
43 hana delta
42 chen amber
9 bruno delta
11 chen juniper
119 alice indigo
23 farah grove
| 9 bruno delta
11 chen juniper
23 farah grove
| 15 gus birch
48 kim delta
119 farah fable
3 chen cobalt
7 ivan juniper
82 lina grove
51 dina indigo
62 jules indigo
88 alice indigo
| 15 gus birch
3 chen cobalt
7 ivan juniper
| numeric_filter | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012053 | qwen/qwen3.7-plus |
awkweave-0012054 | Show whole lines whose 2nd field is between 8 and 19, inclusive. | $2 >= 8 && $2 <= 19 | amber 14 eli harbor
grove 10 dina amber
grove 15 gus ember
amber 16 alice harbor
amber 20 lina ember
indigo 4 bruno indigo
harbor 17 hana fable
| amber 14 eli harbor
grove 10 dina amber
grove 15 gus ember
amber 16 alice harbor
harbor 17 hana fable
| juniper 24 farah indigo
amber 15 lina birch
ember 30 dina cobalt
harbor 20 kim indigo
ember 1 bruno fable
birch 27 bruno indigo
amber 3 farah delta
birch 26 dina fable
indigo 19 gus cobalt
| amber 15 lina birch
indigo 19 gus cobalt
| numeric_range | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012054-p1 | Display complete lines where the second field falls within the inclusive range of 8 to 19. | $2 >= 8 && $2 <= 19 | amber 14 eli harbor
grove 10 dina amber
grove 15 gus ember
amber 16 alice harbor
amber 20 lina ember
indigo 4 bruno indigo
harbor 17 hana fable
| amber 14 eli harbor
grove 10 dina amber
grove 15 gus ember
amber 16 alice harbor
harbor 17 hana fable
| juniper 24 farah indigo
amber 15 lina birch
ember 30 dina cobalt
harbor 20 kim indigo
ember 1 bruno fable
birch 27 bruno indigo
amber 3 farah delta
birch 26 dina fable
indigo 19 gus cobalt
| amber 15 lina birch
indigo 19 gus cobalt
| numeric_range | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012054 | qwen/qwen3.7-plus |
awkweave-0012055 | Print column 4 only for rows where column 1 is exactly failed. | $1 == "failed"{print $4} | closed fable 52 ivan
failed grove 55 hana
closed delta 4 eli
active harbor 51 gus
pending amber 28 eli
pending cobalt 66 hana
| hana
| failed fable 22 chen
paused juniper 11 ivan
ready ember 17 farah
paused ember 33 lina
active delta 84 kim
failed birch 89 hana
ready birch 42 dina
active ember 45 kim
| chen
hana
| string_filter | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012055-p1 | Output only the fourth column for rows where the first column matches the string 'failed' exactly. | $1 == "failed"{print $4} | closed fable 52 ivan
failed grove 55 hana
closed delta 4 eli
active harbor 51 gus
pending amber 28 eli
pending cobalt 66 hana
| hana
| failed fable 22 chen
paused juniper 11 ivan
ready ember 17 farah
paused ember 33 lina
active delta 84 kim
failed birch 89 hana
ready birch 42 dina
active ember 45 kim
| chen
hana
| string_filter | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012055 | qwen/qwen3.7-plus |
awkweave-0012056 | Print all fields from lines where field 2 begins with INFO. | $2 ~ /^INFO/ | 109 WARN cobalt
66 DEBUG indigo
113 DEBUG cobalt
52 DEBUG fable
72 WARN delta
95 INFO harbor
11 WARN ember
15 WARN fable
98 WARN juniper
| 95 INFO harbor
| 25 DEBUG juniper
59 ERROR birch
6 INFO amber
117 WARN harbor
45 ERROR delta
75 DEBUG ember
| 6 INFO amber
| regex_filter | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012056-p1 | Print all fields from lines where the second field starts with the prefix 'INFO'. | $2 ~ /^INFO/ | 109 WARN cobalt
66 DEBUG indigo
113 DEBUG cobalt
52 DEBUG fable
72 WARN delta
95 INFO harbor
11 WARN ember
15 WARN fable
98 WARN juniper
| 95 INFO harbor
| 25 DEBUG juniper
59 ERROR birch
6 INFO amber
117 WARN harbor
45 ERROR delta
75 DEBUG ember
| 6 INFO amber
| regex_filter | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012056 | qwen/qwen3.7-plus |
awkweave-0012057 | Print every line except those containing the exact text indigo. | $0 !~ /indigo/ | amber 76 paused
cobalt 17 active
indigo 96 ready
birch 15 paused
harbor 19 active
fable 101 pending
delta 93 closed
amber 77 paused
cobalt 94 pending
delta 65 closed
indigo 999 active
| amber 76 paused
cobalt 17 active
birch 15 paused
harbor 19 active
fable 101 pending
delta 93 closed
amber 77 paused
cobalt 94 pending
delta 65 closed
| fable 8 closed
fable 86 pending
indigo 109 closed
amber 117 active
ember 17 closed
indigo 23 failed
delta 114 active
ember 111 pending
amber 76 pending
fable 12 paused
indigo 999 active
| fable 8 closed
fable 86 pending
amber 117 active
ember 17 closed
delta 114 active
ember 111 pending
amber 76 pending
fable 12 paused
| exclude_regex | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012057-p1 | Output every line except those that contain the exact string 'indigo'. | $0 !~ /indigo/ | amber 76 paused
cobalt 17 active
indigo 96 ready
birch 15 paused
harbor 19 active
fable 101 pending
delta 93 closed
amber 77 paused
cobalt 94 pending
delta 65 closed
indigo 999 active
| amber 76 paused
cobalt 17 active
birch 15 paused
harbor 19 active
fable 101 pending
delta 93 closed
amber 77 paused
cobalt 94 pending
delta 65 closed
| fable 8 closed
fable 86 pending
indigo 109 closed
amber 117 active
ember 17 closed
indigo 23 failed
delta 114 active
ember 111 pending
amber 76 pending
fable 12 paused
indigo 999 active
| fable 8 closed
fable 86 pending
amber 117 active
ember 17 closed
delta 114 active
ember 111 pending
amber 76 pending
fable 12 paused
| exclude_regex | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012057 | qwen/qwen3.7-plus |
awkweave-0012058 | Print lines 2 through 4, including both endpoints. | NR >= 2 && NR <= 4 | gus amber 61
kim delta 77
eli ember 55
jules juniper 95
bruno harbor 7
farah birch 16
alice indigo 4
ivan harbor 66
chen amber 92
| kim delta 77
eli ember 55
jules juniper 95
| farah birch 101
gus grove 88
kim juniper 4
dina amber 17
chen fable 26
hana grove 57
hana fable 1
eli indigo 6
| gus grove 88
kim juniper 4
dina amber 17
| line_range | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012058-p1 | Print lines 2 through 4, inclusive of both endpoints. | NR >= 2 && NR <= 4 | gus amber 61
kim delta 77
eli ember 55
jules juniper 95
bruno harbor 7
farah birch 16
alice indigo 4
ivan harbor 66
chen amber 92
| kim delta 77
eli ember 55
jules juniper 95
| farah birch 101
gus grove 88
kim juniper 4
dina amber 17
chen fable 26
hana grove 57
hana fable 1
eli indigo 6
| gus grove 88
kim juniper 4
dina amber 17
| line_range | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012058 | qwen/qwen3.7-plus |
awkweave-0012059 | Output only the first 4 records. | NR <= 4 | chen 69 birch
kim 54 ember
kim 23 fable
kim 98 ember
ivan 11 delta
hana 113 indigo
| chen 69 birch
kim 54 ember
kim 23 fable
kim 98 ember
| gus 14 fable
ivan 29 harbor
chen 103 fable
chen 40 delta
jules 37 cobalt
eli 67 grove
farah 34 ember
jules 22 birch
kim 89 birch
| gus 14 fable
ivan 29 harbor
chen 103 fable
chen 40 delta
| first_n | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012059-p1 | Output only the first 4 records. | NR <= 4 | chen 69 birch
kim 54 ember
kim 23 fable
kim 98 ember
ivan 11 delta
hana 113 indigo
| chen 69 birch
kim 54 ember
kim 23 fable
kim 98 ember
| gus 14 fable
ivan 29 harbor
chen 103 fable
chen 40 delta
jules 37 cobalt
eli 67 grove
farah 34 ember
jules 22 birch
kim 89 birch
| gus 14 fable
ivan 29 harbor
chen 103 fable
chen 40 delta
| first_n | 1 | train | original-grammar-copy | CC-BY-4.0 | awkweave-0012059 | qwen/qwen3.7-plus |
awkweave-0012060 | Skip the first line and print every remaining line unchanged. | NR > 1 | dina 4 fable
farah 96 delta
gus 100 indigo
lina 53 harbor
chen 64 harbor
kim 23 fable
kim 27 harbor
jules 49 delta
alice 23 birch
alice 93 ember
| farah 96 delta
gus 100 indigo
lina 53 harbor
chen 64 harbor
kim 23 fable
kim 27 harbor
jules 49 delta
alice 23 birch
alice 93 ember
| hana 9 ember
lina 0 fable
chen 71 birch
chen 118 cobalt
chen 106 juniper
eli 92 grove
chen 117 harbor
hana 55 amber
bruno 118 cobalt
| lina 0 fable
chen 71 birch
chen 118 cobalt
chen 106 juniper
eli 92 grove
chen 117 harbor
hana 55 amber
bruno 118 cobalt
| skip_header | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012060-p1 | Omit the initial line and output all subsequent lines exactly as they appear. | NR > 1 | dina 4 fable
farah 96 delta
gus 100 indigo
lina 53 harbor
chen 64 harbor
kim 23 fable
kim 27 harbor
jules 49 delta
alice 23 birch
alice 93 ember
| farah 96 delta
gus 100 indigo
lina 53 harbor
chen 64 harbor
kim 23 fable
kim 27 harbor
jules 49 delta
alice 23 birch
alice 93 ember
| hana 9 ember
lina 0 fable
chen 71 birch
chen 118 cobalt
chen 106 juniper
eli 92 grove
chen 117 harbor
hana 55 amber
bruno 118 cobalt
| lina 0 fable
chen 71 birch
chen 118 cobalt
chen 106 juniper
eli 92 grove
chen 117 harbor
hana 55 amber
bruno 118 cobalt
| skip_header | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012060 | qwen/qwen3.7-plus |
awkweave-0012061 | Count how many records have failed in column 2. Print 0 if there are none. | $2 == "failed"{n++}END{print n+0} | hana active 53
gus paused 100
kim closed 91
eli paused 0
lina closed 118
ivan failed 77
lina pending 120
gus closed 40
hana paused 43
| 1
| dina failed 72
jules active 97
eli failed 19
chen paused 90
jules active 40
lina pending 4
ivan closed 41
alice failed 111
ivan failed 9
| 4
| count_matches | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012061-p1 | Tally the number of entries marked as failed in the second column, outputting 0 if the count is zero. | $2 == "failed"{n++}END{print n+0} | hana active 53
gus paused 100
kim closed 91
eli paused 0
lina closed 118
ivan failed 77
lina pending 120
gus closed 40
hana paused 43
| 1
| dina failed 72
jules active 97
eli failed 19
chen paused 90
jules active 40
lina pending 4
ivan closed 41
alice failed 111
ivan failed 9
| 4
| count_matches | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012061 | qwen/qwen3.7-plus |
awkweave-0012062 | Calculate and print the sum of the integers in column 1. | {s+=$1}END{print s+0} | 4 dina juniper
11 bruno juniper
21 chen delta
11 farah harbor
9 bruno indigo
12 chen harbor
| 68
| 7 jules birch
14 hana cobalt
12 kim delta
9 alice delta
17 gus grove
18 chen juniper
| 77
| sum_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012062-p1 | Compute and display the total sum of integer values found in the first column. | {s+=$1}END{print s+0} | 4 dina juniper
11 bruno juniper
21 chen delta
11 farah harbor
9 bruno indigo
12 chen harbor
| 68
| 7 jules birch
14 hana cobalt
12 kim delta
9 alice delta
17 gus grove
18 chen juniper
| 77
| sum_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012062 | qwen/qwen3.7-plus |
awkweave-0012063 | Print the arithmetic mean of column 2, rounded to exactly two decimal places. | {s+=$2;n++}END{printf "%.2f\n",s/n} | farah 13 grove
farah 1 delta
bruno 23 delta
gus 18 cobalt
kim 6 delta
chen 3 ember
gus 26 delta
| 12.86
| alice 28 ember
hana 2 cobalt
hana 16 grove
alice 3 birch
lina 29 harbor
alice 25 harbor
gus 25 birch
| 18.29
| average_field | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012063-p1 | Output the average of values in the second column, formatted to two decimal places. | {s+=$2;n++}END{printf "%.2f\n",s/n} | farah 13 grove
farah 1 delta
bruno 23 delta
gus 18 cobalt
kim 6 delta
chen 3 ember
gus 26 delta
| 12.86
| alice 28 ember
hana 2 cobalt
hana 16 grove
alice 3 birch
lina 29 harbor
alice 25 harbor
gus 25 birch
| 18.29
| average_field | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012063 | qwen/qwen3.7-plus |
awkweave-0012064 | Find and print the smallest numeric value in column 1. | NR==1||$1<extreme{extreme=$1}END{print extreme} | 25 gus grove
21 gus grove
16 hana fable
19 gus delta
4 eli harbor
30 jules juniper
11 gus ember
5 eli birch
6 gus delta
| 4
| 25 kim cobalt
9 gus ember
25 chen harbor
13 hana harbor
8 bruno ember
14 kim indigo
22 gus grove
25 hana fable
| 8
| min_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012064-p1 | Identify and print the minimum numeric value present in the first column. | NR==1||$1<extreme{extreme=$1}END{print extreme} | 25 gus grove
21 gus grove
16 hana fable
19 gus delta
4 eli harbor
30 jules juniper
11 gus ember
5 eli birch
6 gus delta
| 4
| 25 kim cobalt
9 gus ember
25 chen harbor
13 hana harbor
8 bruno ember
14 kim indigo
22 gus grove
25 hana fable
| 8
| min_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012064 | qwen/qwen3.7-plus |
awkweave-0012065 | Find and print the largest numeric value in column 2. | NR==1||$2>extreme{extreme=$2}END{print extreme} | cobalt 11 chen
harbor 4 gus
harbor 25 lina
fable 13 farah
delta 14 eli
indigo 20 bruno
delta 26 dina
| 26
| ember 8 kim
amber 20 kim
grove 11 gus
ember 11 farah
harbor 15 ivan
birch 7 dina
amber 15 ivan
| 20
| max_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012065-p1 | Identify and print the maximum numeric value present in the second column. | NR==1||$2>extreme{extreme=$2}END{print extreme} | cobalt 11 chen
harbor 4 gus
harbor 25 lina
fable 13 farah
delta 14 eli
indigo 20 bruno
delta 26 dina
| 26
| ember 8 kim
amber 20 kim
grove 11 gus
ember 11 farah
harbor 15 ivan
birch 7 dina
amber 15 ivan
| 20
| max_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012065 | qwen/qwen3.7-plus |
awkweave-0012066 | Count all input records and print the total. | END{print NR} | farah 39
jules 36
dina 90
kim 26
hana 72
jules 26
bruno 13
| 7
| lina 5
jules 43
ivan 3
eli 119
kim 76
eli 110
chen 108
lina 68
hana 74
lina 79
| 10
| count_records | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012066-p1 | Count the total number of input records and display the result. | END{print NR} | farah 39
jules 36
dina 90
kim 26
hana 72
jules 26
bruno 13
| 7
| lina 5
jules 43
ivan 3
eli 119
kim 76
eli 110
chen 108
lina 68
hana 74
lina 79
| 10
| count_records | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012066 | qwen/qwen3.7-plus |
awkweave-0012067 | Remove exact duplicate lines, preserving the first occurrence and original order. | !seen[$0]++ | eli cobalt 78
kim birch 95
jules harbor 28
dina delta 7
farah amber 95
eli cobalt 78
jules birch 35
dina harbor 36
| eli cobalt 78
kim birch 95
jules harbor 28
dina delta 7
farah amber 95
jules birch 35
dina harbor 36
| bruno amber 89
eli fable 94
kim birch 27
ivan grove 114
dina juniper 75
kim birch 27
jules indigo 82
chen ember 52
| bruno amber 89
eli fable 94
kim birch 27
ivan grove 114
dina juniper 75
jules indigo 82
chen ember 52
| dedup_lines | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012067-p1 | Eliminate duplicate lines while keeping the first instance of each and maintaining the original sequence. | !seen[$0]++ | eli cobalt 78
kim birch 95
jules harbor 28
dina delta 7
farah amber 95
eli cobalt 78
jules birch 35
dina harbor 36
| eli cobalt 78
kim birch 95
jules harbor 28
dina delta 7
farah amber 95
jules birch 35
dina harbor 36
| bruno amber 89
eli fable 94
kim birch 27
ivan grove 114
dina juniper 75
kim birch 27
jules indigo 82
chen ember 52
| bruno amber 89
eli fable 94
kim birch 27
ivan grove 114
dina juniper 75
jules indigo 82
chen ember 52
| dedup_lines | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012067 | qwen/qwen3.7-plus |
awkweave-0012068 | Keep only the first line for each distinct value in column 1; preserve input order. | !seen[$1]++ | bruno delta 70
lina amber 117
bruno delta 0
ivan juniper 103
eli ember 21
chen cobalt 71
| bruno delta 70
lina amber 117
ivan juniper 103
eli ember 21
chen cobalt 71
| gus cobalt 19
eli juniper 5
jules cobalt 6
hana harbor 78
gus fable 36
chen amber 93
lina fable 5
eli amber 83
| gus cobalt 19
eli juniper 5
jules cobalt 6
hana harbor 78
chen amber 93
lina fable 5
| dedup_field | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012068-p1 | Retain only the first row for every unique value in the first column, keeping the original input order. | !seen[$1]++ | bruno delta 70
lina amber 117
bruno delta 0
ivan juniper 103
eli ember 21
chen cobalt 71
| bruno delta 70
lina amber 117
ivan juniper 103
eli ember 21
chen cobalt 71
| gus cobalt 19
eli juniper 5
jules cobalt 6
hana harbor 78
gus fable 36
chen amber 93
lina fable 5
eli amber 83
| gus cobalt 19
eli juniper 5
jules cobalt 6
hana harbor 78
chen amber 93
lina fable 5
| dedup_field | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012068 | qwen/qwen3.7-plus |
awkweave-0012069 | For each record, print column 1 and the running sum of column 2, separated by a space. | {s+=$2;print $1,s} | hana 8 fable
gus 15 cobalt
bruno 27 indigo
eli 12 birch
kim 26 cobalt
lina 16 delta
ivan 9 indigo
chen 14 cobalt
chen 14 fable
ivan 16 cobalt
| hana 8
gus 23
bruno 50
eli 62
kim 88
lina 104
ivan 113
chen 127
chen 141
ivan 157
| jules 27 harbor
lina 28 delta
eli 20 cobalt
dina 13 harbor
farah 13 ember
lina 6 ember
dina 6 amber
farah 9 amber
alice 19 harbor
gus 26 harbor
| jules 27
lina 55
eli 75
dina 88
farah 101
lina 107
dina 113
farah 122
alice 141
gus 167
| running_total | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012069-p1 | For each entry, output the first column value alongside the cumulative sum of the second column, separated by a space. | {s+=$2;print $1,s} | hana 8 fable
gus 15 cobalt
bruno 27 indigo
eli 12 birch
kim 26 cobalt
lina 16 delta
ivan 9 indigo
chen 14 cobalt
chen 14 fable
ivan 16 cobalt
| hana 8
gus 23
bruno 50
eli 62
kim 88
lina 104
ivan 113
chen 127
chen 141
ivan 157
| jules 27 harbor
lina 28 delta
eli 20 cobalt
dina 13 harbor
farah 13 ember
lina 6 ember
dina 6 amber
farah 9 amber
alice 19 harbor
gus 26 harbor
| jules 27
lina 55
eli 75
dina 88
farah 101
lina 107
dina 113
farah 122
alice 141
gus 167
| running_total | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012069 | qwen/qwen3.7-plus |
awkweave-0012070 | For every row, print field 1 followed by the sum of fields 2 and 3. | {print $1,$2+$3} | hana 6 11 indigo
hana 29 24 fable
alice 4 21 amber
hana 27 1 indigo
gus 23 10 amber
alice 11 24 delta
farah 20 6 juniper
| hana 17
hana 53
alice 25
hana 28
gus 33
alice 35
farah 26
| bruno 5 15 indigo
kim 24 22 juniper
kim 18 13 ember
chen 14 23 amber
hana 24 29 harbor
gus 9 8 grove
lina 26 15 juniper
farah 22 24 grove
hana 21 12 delta
| bruno 20
kim 46
kim 31
chen 37
hana 53
gus 17
lina 41
farah 46
hana 33
| computed_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012070-p1 | Display the first field followed by the sum of the second and third fields for every row. | {print $1,$2+$3} | hana 6 11 indigo
hana 29 24 fable
alice 4 21 amber
hana 27 1 indigo
gus 23 10 amber
alice 11 24 delta
farah 20 6 juniper
| hana 17
hana 53
alice 25
hana 28
gus 33
alice 35
farah 26
| bruno 5 15 indigo
kim 24 22 juniper
kim 18 13 ember
chen 14 23 amber
hana 24 29 harbor
gus 9 8 grove
lina 26 15 juniper
farah 22 24 grove
hana 21 12 delta
| bruno 20
kim 46
kim 31
chen 37
hana 53
gus 17
lina 41
farah 46
hana 33
| computed_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012070 | qwen/qwen3.7-plus |
awkweave-0012071 | Print column 1 and pass when column 2 is at least 22; otherwise print fail. | {print $1,($2>=22?"pass":"fail")} | farah 15
alice 10
gus 5
kim 19
chen 25
eli 21
| farah fail
alice fail
gus fail
kim fail
chen pass
eli fail
| jules 20
jules 1
chen 3
alice 29
alice 27
chen 4
eli 26
| jules fail
jules fail
chen fail
alice pass
alice pass
chen fail
eli pass
| conditional_label | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012071-p1 | Print the first column value followed by 'pass' if the second column is 22 or greater, otherwise print 'fail'. | {print $1,($2>=22?"pass":"fail")} | farah 15
alice 10
gus 5
kim 19
chen 25
eli 21
| farah fail
alice fail
gus fail
kim fail
chen pass
eli fail
| jules 20
jules 1
chen 3
alice 29
alice 27
chen 4
eli 26
| jules fail
jules fail
chen fail
alice pass
alice pass
chen fail
eli pass
| conditional_label | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012071 | qwen/qwen3.7-plus |
awkweave-0012072 | Convert column 1 to uppercase and print only that column. | {print toupper($1)} | alice fable 114
ivan cobalt 92
eli amber 35
kim birch 73
lina amber 35
kim harbor 117
bruno amber 49
gus ember 25
dina amber 37
| ALICE
IVAN
ELI
KIM
LINA
KIM
BRUNO
GUS
DINA
| alice grove 44
lina fable 23
kim cobalt 20
eli ember 42
eli fable 102
chen ember 52
| ALICE
LINA
KIM
ELI
ELI
CHEN
| uppercase | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012072-p1 | Transform the first field to uppercase and output only that field. | {print toupper($1)} | alice fable 114
ivan cobalt 92
eli amber 35
kim birch 73
lina amber 35
kim harbor 117
bruno amber 49
gus ember 25
dina amber 37
| ALICE
IVAN
ELI
KIM
LINA
KIM
BRUNO
GUS
DINA
| alice grove 44
lina fable 23
kim cobalt 20
eli ember 42
eli fable 102
chen ember 52
| ALICE
LINA
KIM
ELI
ELI
CHEN
| uppercase | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012072 | qwen/qwen3.7-plus |
awkweave-0012073 | From column 1, print 4 characters starting at character 3. | {print substr($1,3,4)} | amber 73
juniper 59
delta 10
delta 13
birch 96
indigo 7
ember 67
amber 56
cobalt 53
harbor 58
| ber
nipe
lta
lta
rch
digo
ber
ber
balt
rbor
| harbor 40
delta 1
fable 41
delta 59
juniper 63
ember 73
harbor 47
cobalt 117
| rbor
lta
ble
lta
nipe
ber
rbor
balt
| substring | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012073-p1 | Extract and print a 4-character substring from field 1, beginning at the third character. | {print substr($1,3,4)} | amber 73
juniper 59
delta 10
delta 13
birch 96
indigo 7
ember 67
amber 56
cobalt 53
harbor 58
| ber
nipe
lta
lta
rch
digo
ber
ber
balt
rbor
| harbor 40
delta 1
fable 41
delta 59
juniper 63
ember 73
harbor 47
cobalt 117
| rbor
lta
ble
lta
nipe
ber
rbor
balt
| substring | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012073 | qwen/qwen3.7-plus |
awkweave-0012074 | Replace every underscore in column 1 with a space and print the resulting values. | {gsub(/_/," ",$1);print $1} | birch_cobalt 110
grove_delta 81
cobalt_fable 54
fable_cobalt 67
amber_harbor 49
fable_harbor 57
ember_fable 104
cobalt_fable 23
| birch cobalt
grove delta
cobalt fable
fable cobalt
amber harbor
fable harbor
ember fable
cobalt fable
| cobalt_fable 95
delta_delta 63
delta_cobalt 104
juniper_ember 5
birch_amber 107
juniper_amber 88
delta_ember 97
| cobalt fable
delta delta
delta cobalt
juniper ember
birch amber
juniper amber
delta ember
| replace_underscores | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012074-p1 | Substitute all underscores in field 1 with spaces and display the modified values. | {gsub(/_/," ",$1);print $1} | birch_cobalt 110
grove_delta 81
cobalt_fable 54
fable_cobalt 67
amber_harbor 49
fable_harbor 57
ember_fable 104
cobalt_fable 23
| birch cobalt
grove delta
cobalt fable
fable cobalt
amber harbor
fable harbor
ember fable
cobalt fable
| cobalt_fable 95
delta_delta 63
delta_cobalt 104
juniper_ember 5
birch_amber 107
juniper_amber 88
delta_ember 97
| cobalt fable
delta delta
delta cobalt
juniper ember
birch amber
juniper amber
delta ember
| replace_underscores | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012074 | qwen/qwen3.7-plus |
awkweave-0012075 | 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)} | eli cobalt 23 closed
eli delta 10 failed
lina birch 43 failed
alice cobalt 35 failed
ivan indigo 3 ready
kim ember 98 paused
bruno indigo 31 paused
dina harbor 4 active
alice delta 67 pending
| closed 23 cobalt eli
failed 10 delta eli
failed 43 birch lina
failed 35 cobalt alice
ready 3 indigo ivan
paused 98 ember kim
paused 31 indigo bruno
active 4 harbor dina
pending 67 delta alice
| kim fable 40 pending
kim amber 118 ready
farah juniper 116 ready
dina fable 36 failed
farah birch 48 active
eli ember 21 ready
lina amber 18 paused
lina grove 23 paused
chen grove 98 pending
| pending 40 fable kim
ready 118 amber kim
ready 116 juniper farah
failed 36 fable dina
active 48 birch farah
ready 21 ember eli
paused 18 amber lina
paused 23 grove lina
pending 98 grove chen
| reverse_fields | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012075-p1 | Reverse the sequence of fields on each line and output the entire line. | {for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)} | eli cobalt 23 closed
eli delta 10 failed
lina birch 43 failed
alice cobalt 35 failed
ivan indigo 3 ready
kim ember 98 paused
bruno indigo 31 paused
dina harbor 4 active
alice delta 67 pending
| closed 23 cobalt eli
failed 10 delta eli
failed 43 birch lina
failed 35 cobalt alice
ready 3 indigo ivan
paused 98 ember kim
paused 31 indigo bruno
active 4 harbor dina
pending 67 delta alice
| kim fable 40 pending
kim amber 118 ready
farah juniper 116 ready
dina fable 36 failed
farah birch 48 active
eli ember 21 ready
lina amber 18 paused
lina grove 23 paused
chen grove 98 pending
| pending 40 fable kim
ready 118 amber kim
ready 116 juniper farah
failed 36 fable dina
active 48 birch farah
ready 21 ember eli
paused 18 amber lina
paused 23 grove lina
pending 98 grove chen
| reverse_fields | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012075 | qwen/qwen3.7-plus |
awkweave-0012076 | Print the number of whitespace-separated fields on each line. | {print NF} | alice indigo 48 paused
ivan delta 56 active
bruno fable 45 failed
alice indigo 58 paused
hana delta 49 ready
hana fable 10 closed
alice indigo 115 failed
alice birch 51 ready
farah cobalt 33 ready
| 4
4
4
4
4
4
4
4
4
| hana fable 12 closed
dina juniper 27 active
dina indigo 76 paused
ivan ember 71 ready
gus grove 49 pending
jules ember 107 pending
hana birch 18 ready
dina fable 106 paused
| 4
4
4
4
4
4
4
4
| field_count | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012076-p1 | Output the count of whitespace-delimited fields for every line. | {print NF} | alice indigo 48 paused
ivan delta 56 active
bruno fable 45 failed
alice indigo 58 paused
hana delta 49 ready
hana fable 10 closed
alice indigo 115 failed
alice birch 51 ready
farah cobalt 33 ready
| 4
4
4
4
4
4
4
4
4
| hana fable 12 closed
dina juniper 27 active
dina indigo 76 paused
ivan ember 71 ready
gus grove 49 pending
jules ember 107 pending
hana birch 18 ready
dina fable 106 paused
| 4
4
4
4
4
4
4
4
| field_count | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012076 | qwen/qwen3.7-plus |
awkweave-0012077 | 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]]} | dina alpha 96
hana alpha 102
hana beta 105
dina gamma 90
ivan gamma 86
chen alpha 74
chen gamma 32
| alpha 3
beta 1
gamma 3
| gus alpha 110
alice alpha 54
bruno alpha 47
dina beta 18
ivan delta 43
chen beta 119
ivan alpha 105
gus alpha 104
kim delta 92
| alpha 5
beta 2
delta 2
| count_by_key | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012077-p1 | Tally the occurrences of each unique value in field 2 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]]} | dina alpha 96
hana alpha 102
hana beta 105
dina gamma 90
ivan gamma 86
chen alpha 74
chen gamma 32
| alpha 3
beta 1
gamma 3
| gus alpha 110
alice alpha 54
bruno alpha 47
dina beta 18
ivan delta 43
chen beta 119
ivan alpha 105
gus alpha 104
kim delta 92
| alpha 5
beta 2
delta 2
| count_by_key | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012077 | qwen/qwen3.7-plus |
awkweave-0012078 | 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]]} | chen delta 21
chen delta 21
lina alpha 23
chen beta 12
alice beta 28
gus delta 1
| delta 43
alpha 23
beta 40
| jules beta 30
jules delta 8
ivan delta 8
hana gamma 22
farah delta 29
gus delta 20
farah delta 11
ivan gamma 17
alice delta 30
alice alpha 1
| beta 30
delta 106
gamma 39
alpha 1
| sum_by_key | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012078-p1 | Calculate the sum of field 3 grouped by the categories in field 2, presenting 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]]} | chen delta 21
chen delta 21
lina alpha 23
chen beta 12
alice beta 28
gus delta 1
| delta 43
alpha 23
beta 40
| jules beta 30
jules delta 8
ivan delta 8
hana gamma 22
farah delta 29
gus delta 20
farah delta 11
ivan gamma 17
alice delta 30
alice alpha 1
| beta 30
delta 106
gamma 39
alpha 1
| sum_by_key | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012078 | qwen/qwen3.7-plus |
awkweave-0012079 | 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 indigo 25
beta cobalt 45
beta harbor 55
delta birch 11
beta amber 61
delta amber 111
| beta 3
delta 2
| gamma fable 113
beta amber 109
alpha birch 2
gamma juniper 6
delta grove 72
beta cobalt 119
gamma juniper 47
gamma harbor 105
delta delta 53
delta ember 46
| gamma 4
beta 2
delta 3
| duplicates_only | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012079-p1 | List each duplicate value from field 1 along with its frequency, sorted by the order of first occurrence. | {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 indigo 25
beta cobalt 45
beta harbor 55
delta birch 11
beta amber 61
delta amber 111
| beta 3
delta 2
| gamma fable 113
beta amber 109
alpha birch 2
gamma juniper 6
delta grove 72
beta cobalt 119
gamma juniper 47
gamma harbor 105
delta delta 53
delta ember 46
| gamma 4
beta 2
delta 3
| duplicates_only | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012079 | qwen/qwen3.7-plus |
awkweave-0012080 | 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"]} | note record_id score display_name
r001 bruno 18 paused
r002 bruno 15 paused
r003 farah 29 closed
r004 gus 4 active
r005 hana 28 active
r006 eli 27 closed
r007 bruno 29 pending
r008 hana 12 pending
r009 chen 25 ready
r010 lina 17 closed
| 18
15
29
4
28
27
29
12
25
17
| note record_id score display_name
r001 chen 4 active
r002 eli 7 paused
r003 lina 10 paused
r004 gus 27 active
r005 ivan 5 active
r006 jules 23 paused
r007 jules 5 ready
r008 gus 15 failed
r009 eli 1 active
| 4
7
10
27
5
23
5
15
1
| header_projection | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012080-p1 | Skip the header row and output the values from the score column for all remaining rows. | NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]} | note record_id score display_name
r001 bruno 18 paused
r002 bruno 15 paused
r003 farah 29 closed
r004 gus 4 active
r005 hana 28 active
r006 eli 27 closed
r007 bruno 29 pending
r008 hana 12 pending
r009 chen 25 ready
r010 lina 17 closed
| 18
15
29
4
28
27
29
12
25
17
| note record_id score display_name
r001 chen 4 active
r002 eli 7 paused
r003 lina 10 paused
r004 gus 27 active
r005 ivan 5 active
r006 jules 23 paused
r007 jules 5 ready
r008 gus 15 failed
r009 eli 1 active
| 4
7
10
27
5
23
5
15
1
| header_projection | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012080 | qwen/qwen3.7-plus |
awkweave-0012081 | 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 bruno 13 closed
r002 gus 19 failed
r003 dina 30 ready
r004 chen 12 closed
r005 eli 5 paused
r006 chen 19 paused
| dina
| record_id display_name score state
r001 alice 8 ready
r002 chen 30 closed
r003 ivan 12 failed
r004 lina 17 paused
r005 alice 27 paused
r006 hana 28 active
| chen
alice
hana
| header_filter | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012081-p1 | Ignoring the header row, output the display_name for records 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 bruno 13 closed
r002 gus 19 failed
r003 dina 30 ready
r004 chen 12 closed
r005 eli 5 paused
r006 chen 19 paused
| dina
| record_id display_name score state
r001 alice 8 ready
r002 chen 30 closed
r003 ivan 12 failed
r004 lina 17 paused
r005 alice 27 paused
r006 hana 28 active
| chen
alice
hana
| header_filter | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012081 | qwen/qwen3.7-plus |
awkweave-0012082 | The input is tab-separated. Print column 1 from every record. | BEGIN{FS=OFS="\t"}{print $1} | eli 17 active
gus 16 failed
alice 21 ready
alice 7 ready
chen 3 pending
gus 17 closed
| eli
gus
alice
alice
chen
gus
| farah 1 failed
farah 4 ready
gus 11 active
eli 12 failed
kim 1 paused
gus 10 paused
hana 10 ready
alice 24 ready
| farah
farah
gus
eli
kim
gus
hana
alice
| tsv_projection | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012082-p1 | Given tab-separated input, extract and print the first column from every record. | BEGIN{FS=OFS="\t"}{print $1} | eli 17 active
gus 16 failed
alice 21 ready
alice 7 ready
chen 3 pending
gus 17 closed
| eli
gus
alice
alice
chen
gus
| farah 1 failed
farah 4 ready
gus 11 active
eli 12 failed
kim 1 paused
gus 10 paused
hana 10 ready
alice 24 ready
| farah
farah
gus
eli
kim
gus
hana
alice
| tsv_projection | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012082 | qwen/qwen3.7-plus |
awkweave-0012083 | The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 21. | BEGIN{FS=OFS=","}$2>21{print $1} | eli,19,failed
kim,1,failed
jules,20,active
farah,4,active
bruno,26,closed
chen,13,failed
alice,20,closed
gus,17,ready
lina,22,ready
| bruno
lina
| hana,2,ready
farah,20,active
dina,1,paused
eli,27,active
bruno,24,closed
jules,28,paused
gus,4,closed
dina,27,paused
dina,21,pending
| eli
bruno
jules
dina
| csv_filter | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012083-p1 | For simple comma-separated input without quoted commas, print the first column if the second column is greater than 21. | BEGIN{FS=OFS=","}$2>21{print $1} | eli,19,failed
kim,1,failed
jules,20,active
farah,4,active
bruno,26,closed
chen,13,failed
alice,20,closed
gus,17,ready
lina,22,ready
| bruno
lina
| hana,2,ready
farah,20,active
dina,1,paused
eli,27,active
bruno,24,closed
jules,28,paused
gus,4,closed
dina,27,paused
dina,21,pending
| eli
bruno
jules
dina
| csv_filter | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012083 | qwen/qwen3.7-plus |
awkweave-0012084 | Trim leading and trailing whitespace and collapse internal whitespace to single spaces. | {$1=$1;print} | dina indigo 74
lina fable 47
ivan grove 71
eli delta 30
kim indigo 11
alice grove 15
| dina indigo 74
lina fable 47
ivan grove 71
eli delta 30
kim indigo 11
alice grove 15
| jules cobalt 43
lina juniper 120
alice juniper 40
eli birch 0
jules harbor 102
gus fable 65
farah indigo 64
dina harbor 0
bruno indigo 111
jules delta 1
| jules cobalt 43
lina juniper 120
alice juniper 40
eli birch 0
jules harbor 102
gus fable 65
farah indigo 64
dina harbor 0
bruno indigo 111
jules delta 1
| normalize_whitespace | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012084-p1 | Strip leading and trailing whitespace, then replace any sequence of internal whitespace characters with a single space. | {$1=$1;print} | dina indigo 74
lina fable 47
ivan grove 71
eli delta 30
kim indigo 11
alice grove 15
| dina indigo 74
lina fable 47
ivan grove 71
eli delta 30
kim indigo 11
alice grove 15
| jules cobalt 43
lina juniper 120
alice juniper 40
eli birch 0
jules harbor 102
gus fable 65
farah indigo 64
dina harbor 0
bruno indigo 111
jules delta 1
| jules cobalt 43
lina juniper 120
alice juniper 40
eli birch 0
jules harbor 102
gus fable 65
farah indigo 64
dina harbor 0
bruno indigo 111
jules delta 1
| normalize_whitespace | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012084 | qwen/qwen3.7-plus |
awkweave-0012085 | Find and print the longest input line; if tied, keep the earliest. | {if(length($0)>length(best))best=$0}END{print best} | jules ember 81 paused
lina harbor 65 active
chen birch 81 closed
lina indigo 11 failed
kim cobalt 28 failed
eli juniper 49 closed
ivan delta 0 failed
farah harbor 105 closed
| farah harbor 105 closed
| jules amber 113 pending
lina juniper 34 pending
dina cobalt 107 paused
ivan grove 16 pending
hana ember 29 paused
farah harbor 102 paused
kim delta 40 active
lina juniper 13 failed
hana harbor 50 failed
| jules amber 113 pending
| longest_line | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012085-p1 | Output the longest line from the input; if multiple lines share the maximum length, select the first one encountered. | {if(length($0)>length(best))best=$0}END{print best} | jules ember 81 paused
lina harbor 65 active
chen birch 81 closed
lina indigo 11 failed
kim cobalt 28 failed
eli juniper 49 closed
ivan delta 0 failed
farah harbor 105 closed
| farah harbor 105 closed
| jules amber 113 pending
lina juniper 34 pending
dina cobalt 107 paused
ivan grove 16 pending
hana ember 29 paused
farah harbor 102 paused
kim delta 40 active
lina juniper 13 failed
hana harbor 50 failed
| jules amber 113 pending
| longest_line | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012085 | qwen/qwen3.7-plus |
awkweave-0012086 | Print every 4th line starting at line 4 (then line 8, and so on). | NR%4==0 | alice 45
hana 11
bruno 80
hana 32
alice 117
lina 53
alice 50
| hana 32
| bruno 39
gus 107
gus 1
bruno 73
jules 3
gus 19
alice 38
farah 118
gus 66
| bruno 73
farah 118
| every_nth | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012086-p1 | Display every fourth line beginning with line 4 (i.e., lines 4, 8, 12, etc.). | NR%4==0 | alice 45
hana 11
bruno 80
hana 32
alice 117
lina 53
alice 50
| hana 32
| bruno 39
gus 107
gus 1
bruno 73
jules 3
gus 19
alice 38
farah 118
gus 66
| bruno 73
farah 118
| every_nth | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012086 | qwen/qwen3.7-plus |
awkweave-0012087 | Count the distinct values in column 2 and print only the count. | {if(!seen[$2]++)n++}END{print n+0} | beta grove 109
delta juniper 110
gamma harbor 84
alpha amber 1
beta ember 90
alpha juniper 6
| 5
| alpha birch 18
gamma fable 43
beta cobalt 111
gamma juniper 10
beta delta 28
alpha birch 15
| 5
| distinct_count | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012087-p1 | Determine the number of unique values present in the second column and output only that count. | {if(!seen[$2]++)n++}END{print n+0} | beta grove 109
delta juniper 110
gamma harbor 84
alpha amber 1
beta ember 90
alpha juniper 6
| 5
| alpha birch 18
gamma fable 43
beta cobalt 111
gamma juniper 10
beta delta 28
alpha birch 15
| 5
| distinct_count | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012087 | qwen/qwen3.7-plus |
awkweave-0012088 | 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
lina 3 18
alice 14 10
dina 30 6
chen 20 22
eli 15 19
dina 6 29
eli 11 25
hana 11 20
| lina 0.17
alice 1.40
dina 5.00
chen 0.91
eli 0.79
dina 0.21
eli 0.44
hana 0.55
| gus 20 0
ivan 2 13
alice 17 26
farah 2 7
eli 25 16
bruno 22 27
ivan 1 24
| ivan 0.15
alice 0.65
farah 0.29
eli 1.56
bruno 0.81
ivan 0.04
| ratio | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012088-p1 | For each row where the third column is not zero, output 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
lina 3 18
alice 14 10
dina 30 6
chen 20 22
eli 15 19
dina 6 29
eli 11 25
hana 11 20
| lina 0.17
alice 1.40
dina 5.00
chen 0.91
eli 0.79
dina 0.21
eli 0.44
hana 0.55
| gus 20 0
ivan 2 13
alice 17 26
farah 2 7
eli 25 16
bruno 22 27
ivan 1 24
| ivan 0.15
alice 0.65
farah 0.29
eli 1.56
bruno 0.81
ivan 0.04
| ratio | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012088 | qwen/qwen3.7-plus |
awkweave-0012089 | 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]} | alice cobalt 18
alice amber 8
chen delta 22
bruno harbor 8
hana ember 9
hana cobalt 17
| chen delta 22
alice cobalt 18
hana cobalt 17
| lina birch 24
farah grove 3
chen harbor 10
dina juniper 24
dina fable 1
ivan harbor 30
| ivan harbor 30
lina birch 24
dina juniper 24
| top_three | 3 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012089-p1 | Output the three records with the 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]} | alice cobalt 18
alice amber 8
chen delta 22
bruno harbor 8
hana ember 9
hana cobalt 17
| chen delta 22
alice cobalt 18
hana cobalt 17
| lina birch 24
farah grove 3
chen harbor 10
dina juniper 24
dina fable 1
ivan harbor 30
| ivan harbor 30
lina birch 24
dina juniper 24
| top_three | 3 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012089 | qwen/qwen3.7-plus |
awkweave-0012100 | Count how many records have active in column 2. Print 0 if there are none. | $2 == "active"{n++}END{print n+0} | gus paused 73
gus active 86
bruno paused 34
kim pending 6
alice paused 55
eli failed 60
eli pending 98
| 1
| hana pending 43
lina active 38
dina paused 81
bruno paused 9
jules failed 106
dina closed 63
lina paused 70
farah ready 52
| 1
| count_matches | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012100-p1 | Count the number of records where column 2 contains 'active' and print the total, outputting 0 if no such records exist. | $2 == "active"{n++}END{print n+0} | gus paused 73
gus active 86
bruno paused 34
kim pending 6
alice paused 55
eli failed 60
eli pending 98
| 1
| hana pending 43
lina active 38
dina paused 81
bruno paused 9
jules failed 106
dina closed 63
lina paused 70
farah ready 52
| 1
| count_matches | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012100 | qwen/qwen3.7-plus |
awkweave-0012101 | Calculate and print the sum of the integers in column 2. | {s+=$2}END{print s+0} | farah 12 birch
alice 7 ember
chen 7 grove
ivan 5 amber
bruno 29 ember
kim 3 harbor
lina 8 indigo
ivan 18 birch
dina 12 grove
jules 28 juniper
| 129
| kim 14 delta
jules 4 grove
kim 25 delta
jules 6 cobalt
gus 11 grove
eli 12 juniper
ivan 9 harbor
| 81
| sum_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012101-p1 | Compute and display the sum of all integer values found in column 2. | {s+=$2}END{print s+0} | farah 12 birch
alice 7 ember
chen 7 grove
ivan 5 amber
bruno 29 ember
kim 3 harbor
lina 8 indigo
ivan 18 birch
dina 12 grove
jules 28 juniper
| 129
| kim 14 delta
jules 4 grove
kim 25 delta
jules 6 cobalt
gus 11 grove
eli 12 juniper
ivan 9 harbor
| 81
| sum_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012101 | qwen/qwen3.7-plus |
awkweave-0012102 | Print the arithmetic mean of column 1, rounded to exactly two decimal places. | {s+=$1;n++}END{printf "%.2f\n",s/n} | 8 chen fable
28 ivan cobalt
17 ivan fable
21 lina fable
30 eli amber
22 lina harbor
11 eli birch
17 eli birch
3 chen delta
| 17.44
| 1 bruno indigo
2 dina amber
24 chen grove
29 hana delta
12 chen cobalt
14 eli grove
23 chen grove
8 kim birch
28 gus birch
29 ivan fable
| 17.00
| average_field | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012102-p1 | Calculate the arithmetic mean of the values in column 1 and print the result rounded to exactly two decimal places. | {s+=$1;n++}END{printf "%.2f\n",s/n} | 8 chen fable
28 ivan cobalt
17 ivan fable
21 lina fable
30 eli amber
22 lina harbor
11 eli birch
17 eli birch
3 chen delta
| 17.44
| 1 bruno indigo
2 dina amber
24 chen grove
29 hana delta
12 chen cobalt
14 eli grove
23 chen grove
8 kim birch
28 gus birch
29 ivan fable
| 17.00
| average_field | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012102 | qwen/qwen3.7-plus |
awkweave-0012103 | Find and print the smallest numeric value in column 1. | NR==1||$1<extreme{extreme=$1}END{print extreme} | 21 ivan delta
5 gus delta
6 bruno delta
4 chen grove
9 bruno amber
10 jules delta
14 jules ember
| 4
| 10 bruno harbor
28 ivan fable
19 kim amber
1 dina delta
18 jules juniper
21 jules delta
| 1
| min_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012103-p1 | Identify and output the minimum numeric value found in column 1. | NR==1||$1<extreme{extreme=$1}END{print extreme} | 21 ivan delta
5 gus delta
6 bruno delta
4 chen grove
9 bruno amber
10 jules delta
14 jules ember
| 4
| 10 bruno harbor
28 ivan fable
19 kim amber
1 dina delta
18 jules juniper
21 jules delta
| 1
| min_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012103 | qwen/qwen3.7-plus |
awkweave-0012104 | Find and print the largest numeric value in column 2. | NR==1||$2>extreme{extreme=$2}END{print extreme} | fable 4 eli
indigo 18 ivan
birch 24 farah
grove 15 eli
cobalt 16 alice
grove 14 alice
fable 24 lina
| 24
| amber 25 alice
cobalt 30 jules
birch 26 chen
cobalt 25 farah
ember 1 eli
juniper 1 alice
cobalt 15 farah
birch 6 ivan
ember 9 kim
amber 2 gus
| 30
| max_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012104-p1 | Identify and output the maximum numeric value found in column 2. | NR==1||$2>extreme{extreme=$2}END{print extreme} | fable 4 eli
indigo 18 ivan
birch 24 farah
grove 15 eli
cobalt 16 alice
grove 14 alice
fable 24 lina
| 24
| amber 25 alice
cobalt 30 jules
birch 26 chen
cobalt 25 farah
ember 1 eli
juniper 1 alice
cobalt 15 farah
birch 6 ivan
ember 9 kim
amber 2 gus
| 30
| max_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012104 | qwen/qwen3.7-plus |
awkweave-0012105 | Count all input records and print the total. | END{print NR} | ivan 97
kim 13
gus 27
chen 37
kim 65
bruno 116
| 6
| alice 28
gus 104
farah 22
lina 16
lina 30
gus 115
jules 24
gus 86
dina 67
alice 94
| 10
| count_records | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012105-p1 | Count the total number of input records and print the result. | END{print NR} | ivan 97
kim 13
gus 27
chen 37
kim 65
bruno 116
| 6
| alice 28
gus 104
farah 22
lina 16
lina 30
gus 115
jules 24
gus 86
dina 67
alice 94
| 10
| count_records | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012105 | qwen/qwen3.7-plus |
awkweave-0012106 | Remove exact duplicate lines, preserving the first occurrence and original order. | !seen[$0]++ | hana delta 81
bruno cobalt 56
hana delta 81
ivan grove 59
hana grove 106
bruno birch 115
alice harbor 52
| hana delta 81
bruno cobalt 56
ivan grove 59
hana grove 106
bruno birch 115
alice harbor 52
| kim amber 88
ivan birch 71
bruno amber 54
gus amber 16
kim amber 88
chen juniper 7
lina juniper 56
alice indigo 109
eli ember 100
| kim amber 88
ivan birch 71
bruno amber 54
gus amber 16
chen juniper 7
lina juniper 56
alice indigo 109
eli ember 100
| dedup_lines | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012106-p1 | Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each line. | !seen[$0]++ | hana delta 81
bruno cobalt 56
hana delta 81
ivan grove 59
hana grove 106
bruno birch 115
alice harbor 52
| hana delta 81
bruno cobalt 56
ivan grove 59
hana grove 106
bruno birch 115
alice harbor 52
| kim amber 88
ivan birch 71
bruno amber 54
gus amber 16
kim amber 88
chen juniper 7
lina juniper 56
alice indigo 109
eli ember 100
| kim amber 88
ivan birch 71
bruno amber 54
gus amber 16
chen juniper 7
lina juniper 56
alice indigo 109
eli ember 100
| dedup_lines | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012106 | qwen/qwen3.7-plus |
awkweave-0012107 | Keep only the first line for each distinct value in column 1; preserve input order. | !seen[$1]++ | eli fable 87
kim indigo 49
alice amber 89
hana amber 120
dina fable 64
dina delta 87
alice fable 9
jules grove 54
eli birch 91
| eli fable 87
kim indigo 49
alice amber 89
hana amber 120
dina fable 64
jules grove 54
| gus indigo 107
gus fable 16
alice amber 78
ivan cobalt 52
eli fable 22
jules delta 118
kim fable 14
eli grove 99
| gus indigo 107
alice amber 78
ivan cobalt 52
eli fable 22
jules delta 118
kim fable 14
| dedup_field | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012107-p1 | Retain only the initial line for every unique value found in the first column, ensuring the original input order is preserved. | !seen[$1]++ | eli fable 87
kim indigo 49
alice amber 89
hana amber 120
dina fable 64
dina delta 87
alice fable 9
jules grove 54
eli birch 91
| eli fable 87
kim indigo 49
alice amber 89
hana amber 120
dina fable 64
jules grove 54
| gus indigo 107
gus fable 16
alice amber 78
ivan cobalt 52
eli fable 22
jules delta 118
kim fable 14
eli grove 99
| gus indigo 107
alice amber 78
ivan cobalt 52
eli fable 22
jules delta 118
kim fable 14
| dedup_field | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012107 | qwen/qwen3.7-plus |
awkweave-0012108 | For each record, print column 1 and the running sum of column 2, separated by a space. | {s+=$2;print $1,s} | chen 1 cobalt
farah 20 amber
chen 14 delta
jules 4 harbor
alice 13 amber
jules 26 delta
dina 7 juniper
chen 1 cobalt
alice 24 grove
| chen 1
farah 21
chen 35
jules 39
alice 52
jules 78
dina 85
chen 86
alice 110
| lina 9 grove
gus 16 delta
kim 17 harbor
hana 2 harbor
hana 5 indigo
alice 21 juniper
| lina 9
gus 25
kim 42
hana 44
hana 49
alice 70
| running_total | 2 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012108-p1 | Output the first column alongside the cumulative total of the second column for each record, using a space as the delimiter. | {s+=$2;print $1,s} | chen 1 cobalt
farah 20 amber
chen 14 delta
jules 4 harbor
alice 13 amber
jules 26 delta
dina 7 juniper
chen 1 cobalt
alice 24 grove
| chen 1
farah 21
chen 35
jules 39
alice 52
jules 78
dina 85
chen 86
alice 110
| lina 9 grove
gus 16 delta
kim 17 harbor
hana 2 harbor
hana 5 indigo
alice 21 juniper
| lina 9
gus 25
kim 42
hana 44
hana 49
alice 70
| running_total | 2 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012108 | qwen/qwen3.7-plus |
awkweave-0012109 | For every row, print field 1 followed by the sum of fields 2 and 3. | {print $1,$2+$3} | farah 16 30 cobalt
dina 9 13 birch
gus 15 12 ember
dina 16 2 juniper
hana 30 25 fable
kim 18 30 cobalt
gus 13 8 harbor
alice 2 24 grove
farah 7 16 fable
| farah 46
dina 22
gus 27
dina 18
hana 55
kim 48
gus 21
alice 26
farah 23
| eli 12 14 cobalt
gus 30 26 cobalt
lina 7 11 delta
alice 10 2 indigo
chen 26 14 amber
kim 3 28 fable
bruno 28 25 cobalt
eli 10 22 ember
gus 3 15 delta
| eli 26
gus 56
lina 18
alice 12
chen 40
kim 31
bruno 53
eli 32
gus 18
| computed_field | 1 | train | original-grammar | CC-BY-4.0 | null | null |
awkweave-0012109-p1 | For each row, display the first field followed by the sum of the second and third fields. | {print $1,$2+$3} | farah 16 30 cobalt
dina 9 13 birch
gus 15 12 ember
dina 16 2 juniper
hana 30 25 fable
kim 18 30 cobalt
gus 13 8 harbor
alice 2 24 grove
farah 7 16 fable
| farah 46
dina 22
gus 27
dina 18
hana 55
kim 48
gus 21
alice 26
farah 23
| eli 12 14 cobalt
gus 30 26 cobalt
lina 7 11 delta
alice 10 2 indigo
chen 26 14 amber
kim 3 28 fable
bruno 28 25 cobalt
eli 10 22 ember
gus 3 15 delta
| eli 26
gus 56
lina 18
alice 12
chen 40
kim 31
bruno 53
eli 32
gus 18
| computed_field | 1 | train | openrouter-paraphrase | CC-BY-4.0 | awkweave-0012109 | qwen/qwen3.7-plus |
awkweave-0012110 | Print column 1 and pass when column 2 is at least 24; otherwise print fail. | {print $1,($2>=24?"pass":"fail")} | ivan 16
dina 25
dina 11
hana 30
chen 17
gus 26
gus 8
jules 25
dina 11
alice 14
| ivan fail
dina pass
dina fail
hana pass
chen fail
gus pass
gus fail
jules pass
dina fail
alice fail
| lina 22
ivan 1
eli 1
ivan 27
hana 6
lina 9
gus 1
farah 19
hana 18
alice 1
| lina fail
ivan fail
eli fail
ivan pass
hana fail
lina fail
gus fail
farah fail
hana fail
alice fail
| conditional_label | 2 | train | original-grammar | CC-BY-4.0 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.