messages listlengths 3 3 | meta dict |
|---|---|
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "00a646740301c946",
"schema": "library",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_inline",
"split": "train",
"estimated_tokens": 544
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "020c54ec25fd9491",
"schema": "retail",
"unit_type": "query",
"category": "to_char_date",
"template_id": "to_date_literal",
"split": "train",
"estimated_tokens": 290
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "02487c3bcf9a3fe4",
"schema": "retail",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_with_filter",
"split": "train",
"estimated_tokens": 530
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "032b24e99d751d3e",
"schema": "retail",
"unit_type": "query",
"category": "dual",
"template_id": "dual_literal",
"split": "train",
"estimated_tokens": 263
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "0376fa7b33995263",
"schema": "hr",
"unit_type": "query",
"category": "to_char_date",
"template_id": "to_char_date_iso",
"split": "train",
"estimated_tokens": 659
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "03a59ddea1e701d3",
"schema": "retail",
"unit_type": "query",
"category": "to_char_date",
"template_id": "to_char_date_iso",
"split": "train",
"estimated_tokens": 533
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "04d52937bf6d1e0a",
"schema": "hr",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_inline",
"split": "train",
"estimated_tokens": 629
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "05c1a4dc0cf6c71b",
"schema": "hr",
"unit_type": "query",
"category": "string_func",
"template_id": "string_length_funcs",
"split": "train",
"estimated_tokens": 434
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "05e0af142ad7e2c5",
"schema": "library",
"unit_type": "query",
"category": "add_months",
"template_id": "add_months_basic",
"split": "train",
"estimated_tokens": 672
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "06792e3f25fe6fed",
"schema": "library",
"unit_type": "query",
"category": "null_concat",
"template_id": "concat_function",
"split": "train",
"estimated_tokens": 474
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "07286fc067733247",
"schema": "hr",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 659
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "07d80e491fe09d96",
"schema": "hr",
"unit_type": "query",
"category": "add_months",
"template_id": "add_months_filter",
"split": "train",
"estimated_tokens": 679
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "07ec957679194b48",
"schema": "library",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_ordered_subquery",
"split": "train",
"estimated_tokens": 481
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "080b5c6c7f666338",
"schema": "retail",
"unit_type": "query",
"category": "trunc_date",
"template_id": "trunc_date_day",
"split": "train",
"estimated_tokens": 527
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "082a165d609042fc",
"schema": "retail",
"unit_type": "query",
"category": "null_concat",
"template_id": "concat_fact_nullable",
"split": "train",
"estimated_tokens": 524
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "0936dc79b74c65e9",
"schema": "hr",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_as_column",
"split": "train",
"estimated_tokens": 642
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "09750dea2e1098b8",
"schema": "hr",
"unit_type": "query",
"category": "nvl",
"template_id": "nvl_numeric",
"split": "train",
"estimated_tokens": 655
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "09897f1ca5dbccb1",
"schema": "retail",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_inline",
"split": "train",
"estimated_tokens": 503
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "09b3d46d5f98e001",
"schema": "library",
"unit_type": "query",
"category": "analytic",
"template_id": "analytic_row_number",
"split": "train",
"estimated_tokens": 598
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "0a14a33935beb09c",
"schema": "library",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_first_basic",
"split": "train",
"estimated_tokens": 476
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "0d33d0d4c79b01cd",
"schema": "retail",
"unit_type": "query",
"category": "dual",
"template_id": "dual_literal",
"split": "train",
"estimated_tokens": 257
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "0d550448ef360de5",
"schema": "library",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_first_desc",
"split": "train",
"estimated_tokens": 568
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "0e454ed2088404b2",
"schema": "retail",
"unit_type": "query",
"category": "to_char_date",
"template_id": "extract_from_date",
"split": "train",
"estimated_tokens": 555
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "0e7660240ccf8ce8",
"schema": "library",
"unit_type": "query",
"category": "string_func",
"template_id": "string_length_funcs",
"split": "train",
"estimated_tokens": 490
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "0f53a7e799817c72",
"schema": "retail",
"unit_type": "query",
"category": "trunc_date",
"template_id": "trunc_date_unit",
"split": "train",
"estimated_tokens": 529
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "109c1214b860f46e",
"schema": "library",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_as_column",
"split": "train",
"estimated_tokens": 557
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "10f51d4cbd34af44",
"schema": "hr",
"unit_type": "query",
"category": "nvl",
"template_id": "nvl_text",
"split": "train",
"estimated_tokens": 413
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "127f09974643aecb",
"schema": "retail",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 531
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "13279a78020acce0",
"schema": "retail",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_first_basic",
"split": "train",
"estimated_tokens": 553
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "13ee02d5c7af5eb1",
"schema": "library",
"unit_type": "query",
"category": "to_char_date",
"template_id": "to_char_date_iso",
"split": "train",
"estimated_tokens": 578
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1457f9a0d88e1525",
"schema": "hr",
"unit_type": "query",
"category": "analytic",
"template_id": "analytic_lag_lead",
"split": "train",
"estimated_tokens": 707
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "14a4082ff3457f77",
"schema": "retail",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_inline",
"split": "train",
"estimated_tokens": 503
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "14e16eaf2302bd9e",
"schema": "retail",
"unit_type": "query",
"category": "sequence",
"template_id": "sequence_nextval",
"split": "train",
"estimated_tokens": 273
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "156adf109fbeb965",
"schema": "retail",
"unit_type": "query",
"category": "dual",
"template_id": "dual_arithmetic",
"split": "train",
"estimated_tokens": 283
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "159989a3d9def578",
"schema": "retail",
"unit_type": "query",
"category": "subquery",
"template_id": "subquery_not_exists",
"split": "train",
"estimated_tokens": 807
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "16405e5e0cbe78c7",
"schema": "hr",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 659
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "164a1aa15905dab3",
"schema": "hr",
"unit_type": "ddl",
"category": "ddl_view",
"template_id": "ddl_view_simple",
"split": "train",
"estimated_tokens": 653
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "16b08412719030f4",
"schema": "retail",
"unit_type": "query",
"category": "nvl",
"template_id": "nvl_in_aggregate",
"split": "train",
"estimated_tokens": 513
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "17a04304a0eb583b",
"schema": "library",
"unit_type": "query",
"category": "to_char_date",
"template_id": "to_char_date_iso",
"split": "train",
"estimated_tokens": 570
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "19bcfc5164de1d22",
"schema": "hr",
"unit_type": "query",
"category": "aggregate",
"template_id": "aggregate_having",
"split": "train",
"estimated_tokens": 675
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1a0ca3d6d88116b5",
"schema": "library",
"unit_type": "query",
"category": "trunc_date",
"template_id": "trunc_date_day",
"split": "train",
"estimated_tokens": 566
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1b53a951cfbc30d8",
"schema": "library",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 572
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1b71569b93c4f085",
"schema": "retail",
"unit_type": "query",
"category": "string_func",
"template_id": "string_length_funcs",
"split": "train",
"estimated_tokens": 563
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1be58034e7261381",
"schema": "library",
"unit_type": "query",
"category": "string_func",
"template_id": "string_pad_trim",
"split": "train",
"estimated_tokens": 490
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1be5a8245721a904",
"schema": "retail",
"unit_type": "query",
"category": "to_char_date",
"template_id": "to_char_date_iso",
"split": "train",
"estimated_tokens": 533
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1f1e21ae90ef1743",
"schema": "hr",
"unit_type": "query",
"category": "add_months",
"template_id": "add_months_basic",
"split": "train",
"estimated_tokens": 755
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1f5d794dccdb7efb",
"schema": "hr",
"unit_type": "query",
"category": "string_func",
"template_id": "string_regexp",
"split": "train",
"estimated_tokens": 456
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1f6e08897047489a",
"schema": "library",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 572
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1f707c1f333e80a1",
"schema": "library",
"unit_type": "ddl",
"category": "ddl_sequence",
"template_id": "ddl_sequence_basic",
"split": "train",
"estimated_tokens": 302
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "1fce06bdf2feacd8",
"schema": "library",
"unit_type": "query",
"category": "to_char_date",
"template_id": "to_char_date_iso",
"split": "train",
"estimated_tokens": 574
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "208a3d6c1507d092",
"schema": "hr",
"unit_type": "ddl",
"category": "ddl_sequence",
"template_id": "ddl_sequence_basic",
"split": "train",
"estimated_tokens": 302
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "21596ffea2d037ce",
"schema": "library",
"unit_type": "query",
"category": "string_func",
"template_id": "string_length_funcs",
"split": "train",
"estimated_tokens": 490
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "218653755b8c9c6e",
"schema": "hr",
"unit_type": "query",
"category": "string_func",
"template_id": "string_length_funcs",
"split": "train",
"estimated_tokens": 434
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "24b0f3085add9ad5",
"schema": "retail",
"unit_type": "dml",
"category": "dml_update",
"template_id": "dml_update_all_matching",
"split": "train",
"estimated_tokens": 513
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "24ef9bdf9bc6ad48",
"schema": "hr",
"unit_type": "ddl",
"category": "ddl_view",
"template_id": "ddl_view_with_nvl",
"split": "train",
"estimated_tokens": 669
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2522578999ab8989",
"schema": "retail",
"unit_type": "query",
"category": "add_months",
"template_id": "add_months_filter",
"split": "train",
"estimated_tokens": 556
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "257faa68d15ccced",
"schema": "retail",
"unit_type": "query",
"category": "dual",
"template_id": "dual_integer_division",
"split": "train",
"estimated_tokens": 261
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "25f90211e25d9c18",
"schema": "library",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_inline",
"split": "train",
"estimated_tokens": 544
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "264fcda104d2892c",
"schema": "hr",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_with_filter",
"split": "train",
"estimated_tokens": 654
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "27b4d0838ec6baaa",
"schema": "library",
"unit_type": "dml",
"category": "dml_delete",
"template_id": "dml_delete_filtered",
"split": "train",
"estimated_tokens": 542
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2845e4bb7a61d6a3",
"schema": "retail",
"unit_type": "query",
"category": "sequence",
"template_id": "sequence_nextval_expr",
"split": "train",
"estimated_tokens": 276
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2938a15a7ef36ef5",
"schema": "retail",
"unit_type": "query",
"category": "analytic",
"template_id": "analytic_lag_lead",
"split": "train",
"estimated_tokens": 577
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2956231500208384",
"schema": "retail",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_first_desc",
"split": "train",
"estimated_tokens": 527
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "297620095fa48155",
"schema": "retail",
"unit_type": "query",
"category": "add_months",
"template_id": "add_months_basic",
"split": "train",
"estimated_tokens": 631
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "29abdc6f1b150d36",
"schema": "retail",
"unit_type": "query",
"category": "pivot",
"template_id": "pivot_status_counts",
"split": "train",
"estimated_tokens": 628
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "29b1fed826b5abb0",
"schema": "library",
"unit_type": "query",
"category": "analytic",
"template_id": "analytic_rank",
"split": "train",
"estimated_tokens": 608
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2ba5fb3925bf3242",
"schema": "retail",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 531
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2cb063fa2f26023c",
"schema": "library",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 570
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2d169c6684a42e1e",
"schema": "library",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_with_filter",
"split": "train",
"estimated_tokens": 572
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2d91fe636fc20374",
"schema": "library",
"unit_type": "query",
"category": "analytic",
"template_id": "analytic_first_last_value",
"split": "train",
"estimated_tokens": 696
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2dfbded7b8ecad31",
"schema": "retail",
"unit_type": "query",
"category": "subquery",
"template_id": "subquery_exists",
"split": "train",
"estimated_tokens": 805
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2e1c69e3d04b04c8",
"schema": "retail",
"unit_type": "query",
"category": "decode",
"template_id": "decode_with_default",
"split": "train",
"estimated_tokens": 546
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2e706544ff73dced",
"schema": "hr",
"unit_type": "query",
"category": "analytic",
"template_id": "analytic_row_number",
"split": "train",
"estimated_tokens": 693
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "2f14b9a2b7a239e8",
"schema": "library",
"unit_type": "query",
"category": "add_months",
"template_id": "add_months_basic",
"split": "train",
"estimated_tokens": 673
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "30d0de766e60267a",
"schema": "retail",
"unit_type": "ddl",
"category": "ddl_sequence",
"template_id": "ddl_sequence_basic",
"split": "train",
"estimated_tokens": 302
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "31985504540ba0d6",
"schema": "hr",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 659
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "31b1236629a15521",
"schema": "retail",
"unit_type": "query",
"category": "aggregate",
"template_id": "aggregate_having",
"split": "train",
"estimated_tokens": 531
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3262e3b5d7a9f9b3",
"schema": "library",
"unit_type": "query",
"category": "minus",
"template_id": "minus_reversed",
"split": "train",
"estimated_tokens": 759
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "32c6c212091f0b96",
"schema": "retail",
"unit_type": "query",
"category": "dual",
"template_id": "dual_literal",
"split": "train",
"estimated_tokens": 261
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "32f7bed08e25e766",
"schema": "retail",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_ordered_subquery",
"split": "train",
"estimated_tokens": 556
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "333fe9c223794945",
"schema": "hr",
"unit_type": "query",
"category": "minus",
"template_id": "union_all_basic",
"split": "train",
"estimated_tokens": 774
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "33d56fc14f094014",
"schema": "hr",
"unit_type": "query",
"category": "connect_by",
"template_id": "connect_by_depth_filter",
"split": "train",
"estimated_tokens": 739
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "340c09572650899e",
"schema": "hr",
"unit_type": "query",
"category": "minus",
"template_id": "minus_reversed",
"split": "train",
"estimated_tokens": 785
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "344d06cc200be3db",
"schema": "hr",
"unit_type": "ddl",
"category": "ddl_index",
"template_id": "ddl_index_single",
"split": "train",
"estimated_tokens": 344
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3478639ac7ad66a1",
"schema": "retail",
"unit_type": "query",
"category": "nvl",
"template_id": "coalesce_two",
"split": "train",
"estimated_tokens": 527
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "356e17ae98d20c9a",
"schema": "hr",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 659
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "35e92b400e76ddc1",
"schema": "retail",
"unit_type": "query",
"category": "aggregate",
"template_id": "aggregate_having",
"split": "train",
"estimated_tokens": 531
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3627298a86ff2ba6",
"schema": "retail",
"unit_type": "ddl",
"category": "ddl_view",
"template_id": "ddl_view_with_nvl",
"split": "train",
"estimated_tokens": 542
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "37db8ce951abf4c8",
"schema": "library",
"unit_type": "query",
"category": "subquery",
"template_id": "subquery_not_exists",
"split": "train",
"estimated_tokens": 769
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "382bce74f5cfaab3",
"schema": "library",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_offset",
"split": "train",
"estimated_tokens": 572
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3831c6c41cae37d2",
"schema": "library",
"unit_type": "query",
"category": "cte",
"template_id": "cte_joined",
"split": "train",
"estimated_tokens": 814
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "38698fc1a7bfd9be",
"schema": "retail",
"unit_type": "dml",
"category": "dml_update",
"template_id": "dml_update_numeric",
"split": "train",
"estimated_tokens": 529
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3962aec495852b8a",
"schema": "retail",
"unit_type": "query",
"category": "string_func",
"template_id": "string_pad_trim",
"split": "train",
"estimated_tokens": 563
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3a0c1df74852dda2",
"schema": "retail",
"unit_type": "query",
"category": "rownum",
"template_id": "rownum_as_column",
"split": "train",
"estimated_tokens": 517
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3b0470d486f1bb66",
"schema": "retail",
"unit_type": "query",
"category": "fetch_first",
"template_id": "fetch_first_basic",
"split": "train",
"estimated_tokens": 553
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3b6685a10798b77d",
"schema": "retail",
"unit_type": "query",
"category": "add_months",
"template_id": "add_months_basic",
"split": "train",
"estimated_tokens": 631
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3b6b48916ae81ecb",
"schema": "hr",
"unit_type": "query",
"category": "to_char_date",
"template_id": "to_char_date_iso",
"split": "train",
"estimated_tokens": 659
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3bc6e6af64c44c68",
"schema": "hr",
"unit_type": "query",
"category": "minus",
"template_id": "minus_basic",
"split": "train",
"estimated_tokens": 748
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3bca4cd91e1d00bc",
"schema": "hr",
"unit_type": "query",
"category": "nvl",
"template_id": "nvl_in_aggregate",
"split": "train",
"estimated_tokens": 638
} |
[
{
"role": "system",
"content": "You translate Oracle SQL into PostgreSQL.\n\nRules:\n- Return only the PostgreSQL statement. No explanation, no markdown, no semicolon.\n- The translation must run on PostgreSQL 17 and return exactly what the Oracle\n statement returns on Oracle.\n- Oracle types map as: NUMB... | {
"unit_key": "3c27399a0f593034",
"schema": "hr",
"unit_type": "query",
"category": "analytic",
"template_id": "analytic_count_over",
"split": "train",
"estimated_tokens": 669
} |
OraShift translation pairs
Oracle SQL to PostgreSQL translation pairs, every one verified by execution: the Oracle statement was run on Oracle, the PostgreSQL statement on PostgreSQL, and the results compared. A pair is only present if they matched.
Measured against Oracle AI Database 26ai Free 23.26.2.0.0 and PostgreSQL 17.10. Both the data and the schemas are synthetic.
Splits
| Split | Examples | What it measures |
|---|---|---|
train |
418 | Training. Seen schemas, seen templates. |
val |
35 | Validation, carved from the same bucket as training. |
test_in_schema |
33 | Test. Seen schema, seen template: the easiest case. |
test_unseen_schema |
160 | Test. Held-out logistics schema, template seen in training. |
test_unseen_template |
102 | Test. Seen schema, construct variant never trained on. |
test_unseen_both |
35 | Test. Held-out schema and held-out template: the hardest case. |
| total | 783 |
Why there are four test sets
Holding out one schema measures less than it appears to. If a template is seen
during training as retail and tested as logistics, the model has already met
that exact translation pattern and only the table names are new -- that tests
vocabulary robustness, not translation skill.
So two things are withheld: the whole logistics schema, and
25 of 123 templates. Reporting the
resulting four cells separately shows which kind of generalisation actually holds.
Format
Chat JSONL, one example per line:
{"messages": [
{"role": "system", "content": "task rules + the Oracle DDL this statement uses"},
{"role": "user", "content": "<Oracle statement>"},
{"role": "assistant", "content": "<PostgreSQL statement>"}
], "meta": {"schema": "...", "category": "...", "unit_type": "..."}}
The system prompt carries only the table definitions the statement actually references, not the whole schema: the rest would be spent token budget. The assistant turn is the translation alone, with no explanation, so loss on assistant tokens trains exactly the output wanted at inference.
Coverage
| Category | train | val | test_in_schema | test_unseen_schema | test_unseen_template | test_unseen_both |
|---|---|---|---|---|---|---|
add_months |
40 | 5 | 4 | 17 | 1 | 1 |
aggregate |
24 | 3 | 2 | 10 | 2 | 1 |
analytic |
16 | 1 | 1 | 6 | 3 | 1 |
connect_by |
8 | 1 | 1 | 5 | 2 | 1 |
cte |
6 | 0 | 0 | 2 | 3 | 1 |
ddl_constraint |
4 | 0 | 0 | 1 | 1 | 0 |
ddl_identity |
2 | 0 | 0 | 0 | 0 | 0 |
ddl_index |
4 | 0 | 0 | 1 | 0 | 0 |
ddl_sequence |
3 | 0 | 0 | 0 | 1 | 0 |
ddl_table |
4 | 0 | 0 | 1 | 0 | 0 |
ddl_view |
5 | 0 | 0 | 2 | 3 | 1 |
decode |
8 | 0 | 0 | 4 | 2 | 0 |
dml_delete |
3 | 0 | 0 | 1 | 3 | 1 |
dml_insert |
3 | 0 | 0 | 1 | 0 | 0 |
dml_update |
7 | 0 | 0 | 3 | 0 | 0 |
dual |
11 | 1 | 1 | 0 | 1 | 0 |
fetch_first |
64 | 7 | 7 | 26 | 12 | 4 |
listagg |
6 | 0 | 0 | 2 | 2 | 1 |
merge |
3 | 0 | 0 | 1 | 3 | 1 |
minus |
9 | 0 | 0 | 3 | 3 | 1 |
null_concat |
8 | 0 | 0 | 3 | 2 | 1 |
nvl |
16 | 1 | 1 | 7 | 1 | 1 |
outer_join_plus |
9 | 0 | 0 | 3 | 3 | 1 |
pivot |
2 | 0 | 0 | 1 | 3 | 1 |
rownum |
51 | 6 | 6 | 21 | 3 | 1 |
sequence |
6 | 0 | 0 | 2 | 0 | 0 |
string_func |
24 | 3 | 3 | 10 | 3 | 1 |
subquery |
10 | 1 | 1 | 4 | 3 | 1 |
sysdate |
7 | 0 | 0 | 2 | 18 | 6 |
to_char_date |
34 | 4 | 4 | 12 | 21 | 7 |
trunc_date |
21 | 2 | 2 | 9 | 3 | 1 |
Honest limitations
Thin categories. These have fewer than 10 training examples, so any per-category result for them is noisy and should not be read as a trend:
pivot: 2 training examplesddl_identity: 2 training examplesddl_sequence: 3 training examplesdml_delete: 3 training examplesdml_insert: 3 training examplesmerge: 3 training examplesddl_constraint: 4 training examplesddl_index: 4 training examplesddl_table: 4 training examplesddl_view: 5 training examplescte: 6 training exampleslistagg: 6 training examplessequence: 6 training examplesdml_update: 7 training examplessysdate: 7 training examplesconnect_by: 8 training examplesdecode: 8 training examplesnull_concat: 8 training examplesminus: 9 training examplesouter_join_plus: 9 training examples
DDL and DML are under-represented relative to queries, because growing the pool by widening template parameters multiplies query variants far more than it multiplies schema statements.
The translations are one person's style. Each is execution-verified, so it is correct, but it is one correct style among several. A model trained on it may be more brittle to alternative phrasings than the accuracy figures suggest.
The statements are template-generated, so their phrasing is more uniform than human-written SQL.
Token lengths at build time are estimates. The build assumes
3.0 characters per token, which over-counts for SQL, so the filter
errs towards excluding. The training notebook re-measures every split with the
real Qwen tokenizer; those figures are in results/train_run.json (longest
example 804 tokens, none excluded).
- Longest example: ~1087 estimated tokens
- Budget: 2048 tokens
- Excluded as too long: 0
Source schemas
| Schema | Tables | Role |
|---|---|---|
retail |
5 | training |
hr |
5 | training |
library |
5 | training |
logistics |
5 | held out entirely |
Licence
MIT. All schemas and data are synthetic; no proprietary SQL is included.
- Downloads last month
- 51