Explore more topics
Published model evaluations

Models generating financial SQL queries, July 2025

Published 2025-07-11: About 88 financial questions per the article text, 11 models. Median and average judge score (0 to 1), success rate, average response time and list token prices. See the results, how they were measured and where the findings stop.

As of 2025-07-11

Jump to a section

TL;DR

Published 2025-07-11. Gemini 2.5 Pro has the highest published average score (0.757) and ties o4 Mini on median score (0.967). Grok-4 scores a 0.767 median and 0.666 average with the slowest average time (74,812 ms).

Published
2025-07-11
Published model rows
11
Evidence
Historical task evaluation

Follow this evaluation

Table of 11 models with input and output cost, median score, average score, success rate, average time and score distribution
July 2025 EvaluateGPT financial SQL comparison including Grok-4, sorted by median score.
Step 1 of 3

Published results

Models generating financial SQL queries, July 2025: source evidence dated 2025-07-11.

Exact model version
Gemini 2.5 Pro
Median score
0.967
Avg score
0.757
Success rate
86.52%
Avg time
50,042 ms
Input cost
$1.25/M
Output cost
$10.00/M
What you should see

The displayed values belong to the identified model versions and this published task, with their original metric units.

Step 2 of 3

What did this task require the model to return?

Read the tested version, task and rubric together. Check failures alongside successful answers; compare costs only within the reported unit.

2025-07-11: Models generating financial SQL queries, July 2025
What you should see

Keep the study date and exact model ID beside the result. Do not average different tasks into one winner.

Step 3 of 3

Test a strategy with Aurora

Keep the study date and exact model ID beside the result. Do not average different tasks into one winner.

Test a strategy with Aurora
What you should see

Keep reporting dates and units beside the answer, and inspect its original citations.

Published results

Scale: 0 to 0.967 · zero baseline

Median score

  • Gemini 2.5 Pro0.967
  • o4 Mini0.967
  • Gemini 2.5 Flash Preview0.900
  • OpenAI o30.900
  • Grok-40.767
  • Claude Sonnet 40.733
  • GPT-4.10.733
  • Grok-3 Beta0.733
  • Claude Opus 40.700
  • Claude 3.7 Sonnet0.667
  • Gemini 2.0 Flash0.567

Scale: 0 to 0.757 · zero baseline

Avg score

  • Gemini 2.5 Pro0.757
  • o4 Mini0.675
  • Gemini 2.5 Flash Preview0.703
  • OpenAI o30.635
  • Grok-40.666
  • Claude Sonnet 40.652
  • GPT-4.10.625
  • Grok-3 Beta0.657
  • Claude Opus 40.572
  • Claude 3.7 Sonnet0.565
  • Gemini 2.0 Flash0.525

Scale: 0 to 87.64 % · zero baseline

Success rate

  • Gemini 2.5 Pro86.52%
  • o4 Mini79.78%
  • Gemini 2.5 Flash Preview87.64%
  • OpenAI o377.53%
  • Grok-477.53%
  • Claude Sonnet 480.90%
  • GPT-4.177.53%
  • Grok-3 Beta83.15%
  • Claude Opus 470.79%
  • Claude 3.7 Sonnet68.54%
  • Gemini 2.0 Flash74.16%

About 88 financial questions per the article text, 11 models. Published 2025-07-11. Values retain their original units and grading scale.

See the complete published results

Scroll sideways to compare all columns. Select a heading to sort.

Gemini 2.5 Pro0.9670.75786.52%50,042 ms$1.25/M$10.00/M
o4 Mini0.9670.67579.78%48,481 ms$1.10/M$4.40/M
Gemini 2.5 Flash Preview0.9000.70387.64%33,344 ms$0.15/M$3.50/M
OpenAI o30.9000.63577.53%56,070 ms$2.00/M$8.00/M
Grok-40.7670.66677.53%74,812 ms$3.00/M$15.00/M
Claude Sonnet 40.7330.65280.90%44,833 ms$3.00/M$15.00/M
GPT-4.10.7330.62577.53%41,058 ms$2.00/M$8.00/M
Grok-3 Beta0.7330.65783.15%42,169 ms$3.00/M$15.00/M
Claude Opus 40.7000.57270.79%51,877 ms$15.00/M$75.00/M
Claude 3.7 Sonnet0.6670.56568.54%45,526 ms$3.00/M$15.00/M
Gemini 2.0 Flash0.5670.52574.16%31,140 ms$0.10/M$0.40/M

About 88 financial questions per the article text, 11 models. Published 2025-07-11. Values retain their original units and grading scale.

Task and tested input

Generate SQL queries that answer financial questions against a financial database.

  1. Published prompt excerpt

    What are the top 10 stocks by revenue with a 2025 percent gain so far greater than its total 2024 percent gain? Sort by market cap descending

How the runs worked

About 88 financial questions per the article text, 11 models

EvaluateGPT: generated SQL executed against a financial database, then scored 0 to 1 by three LLM judges

  1. Step 1

    Submit each financial question to the model under test.

  2. Step 2

    Execute the generated SQL query against the database and fetch the results.

  3. Step 3

    Score the query and returned rows with three LLM judges (Claude Sonnet 4, Gemini 2.5 Pro, GPT-4.1) on a 0 to 1 scale, then aggregate mean, median and distribution per model.

How to read the measurements

  1. Grading and valid output

    Three LLM judges assign a 0 to 1 quality score that is separate from whether the query executes. The article states the score measures query and answer assessment, not investment returns.

  2. Cost

    List prices per million tokens, from $0.10/M input and $0.40/M output (Gemini 2.0 Flash) to $15.00/M input and $75.00/M output (Claude Opus 4). Total run spend was reported as over $200, with $171.88 on Requesty.

  3. Time

    Average time in milliseconds, from 31,140 ms (Gemini 2.0 Flash) to 74,812 ms (Grok-4).

Why this model was selected

The article named Gemini 2.5 Pro the best model and did not add Grok 4 to NexusTrade. It replaced Gemini Flash 2 with Gemini 2.5 Flash in the app, citing the median score rising from 0.567 to 0.900.

See the published results

Table of 11 models with input and output cost, median score, average score, success rate, average time and score distribution
July 2025 EvaluateGPT financial SQL comparison including Grok-4, sorted by median score.

This image was published with the 2025-07-11 article. Read the source for the full test procedure and every result it reports.

Sample and scope

This is a single July 2025 run with the model versions and prices of that week. Gemini 2.5 Flash appears as a preview build and Grok-3 as a beta.

Scores come from three LLM judges, one of which (Gemini 2.5 Pro) is also the top-ranked model. The article's own text says its ANOVA significance claim needs reconciliation and that the table supports only a descriptive ranking.

The article describes the question set as three examples "and 85+ more" and later as an 87-question design, while the published success rates are whole-number fractions of 89. The exact question count is not stated consistently.

Read the original evidence

Continue exploring

Discussion

Sign in or create a free account to join the discussion.

No comments yet.

Aurora · AI research assistant

Try this in Aurora

Edit the request, then open it in Aurora. You choose when to send it.