instruction_seed stringlengths 305 1.28k | response_seed stringclasses 1
value | response stringlengths 7 2.05k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|---|
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (gender VARCHAR, decile VARCHAR, local_board VARCHAR, roll VARCHAR)
Question: What gender has a local board of albert–eden with a roll of more than 232 and ... | Here is the SQLite query to answer the question regarding the gender with a local board of albert–eden, a roll of more than 232, and a Decile of 5:
```
SELECT gender FROM table_name_49 WHERE local_board = "albert–eden" AND roll > 232 AND decile = "5"
``` | 25,000 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (gender VARCHAR, decile VARCHAR, local_board VARCHAR, roll VARCHAR)\n\n Question: What gender has a local board of a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (status VARCHAR, building VARCHAR, stories VARCHAR, city VARCHAR)
Question: What is the status of the torre reforma building that is over 44 stories in mexi... | Here is the SQLite query to answer the question about the status of the torre reforma building that is over 44 stories in Mexico City:
```
SELECT status FROM table_name_11 WHERE stories > 44 AND city = "mexico city" AND building = "torre reforma"
``` | 25,001 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (status VARCHAR, building VARCHAR, stories VARCHAR, city VARCHAR)\n\n Question: What is the status of the torre refo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (height VARCHAR, stories VARCHAR)
Question: How tall is the 52 story building?
Here is the SQLite query to answer to the question: How tall is the 52 story... | Here is the SQLite query to answer the question about the height of the 52 story building:
```
SELECT height FROM table_name_82 WHERE stories = '52'
``` | 25,002 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (height VARCHAR, stories VARCHAR)\n\n Question: How tall is the 52 story building?\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (stories VARCHAR, building VARCHAR)
Question: How many stories is the torre reforma building?
Here is the SQLite query to answer to the question: How many ... | Your query to find out how many stories the "torre reforma" building has is almost correct. However, since you want to directly count the number of stories for that specific building, you should be selecting the `stories` column directly rather than counting it. Here is the corrected SQL query:
```
SELECT stories FROM... | 25,003 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (stories VARCHAR, building VARCHAR)\n\n Question: How many stories is the torre reforma building?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (nationality VARCHAR, games VARCHAR, player VARCHAR)
Question: What is the Nationality of Mike Gatting, who played 551 games?
Here is the SQLite query to an... | Here is the SQLite query to answer the question:
```
SELECT nationality FROM table_name_7 WHERE games = "551" AND player = "Mike Gatting"
``` | 25,004 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (nationality VARCHAR, games VARCHAR, player VARCHAR)\n\n Question: What is the Nationality of Mike Gatting, who playe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (nationality VARCHAR, games VARCHAR)
Question: What is the nationality of the player who played 505 games?
Here is the SQLite query to answer to the questi... | Your SQLite query to find the nationality of the player who played 505 games is correct. Here it is wrapped in code format:
```
SELECT nationality FROM table_name_37 WHERE games = "505";
``` | 25,005 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (nationality VARCHAR, games VARCHAR)\n\n Question: What is the nationality of the player who played 505 games?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR)
Question: What is Wasim Akram's rank?
Here is the SQLite query to answer to the question: What is Wasim Akram's rank?:
```
S... | Here is the SQLite query to answer the question: What is Wasim Akram's rank?:
```
SELECT rank FROM table_name_47 WHERE player = "Wasim Akram";
``` | 25,006 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR)\n\n Question: What is Wasim Akram's rank?\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (nationality VARCHAR, player VARCHAR)
Question: What is Graham Gooch's nationality?
Here is the SQLite query to answer to the question: What is Graham Gooc... | Here is the SQLite query to answer the question about Graham Gooch's nationality:
```
SELECT nationality FROM table_name_87 WHERE player = "Graham Gooch";
``` | 25,007 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (nationality VARCHAR, player VARCHAR)\n\n Question: What is Graham Gooch's nationality?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (average_attendance INTEGER, season VARCHAR)
Question: What was the highest average attendance in the 2009 season?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the highest average attendance in the 2009 season:
```
SELECT MAX(average_attendance) FROM table_name_94 WHERE season = "2009"
``` | 25,008 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (average_attendance INTEGER, season VARCHAR)\n\n Question: What was the highest average attendance in the 2009 seaso... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (total_attendance VARCHAR, average_attendance VARCHAR, sport VARCHAR)
Question: What's the total attendance in rink hockey when the average attendance was s... | The SQLite query you provided is almost correct, but you need to ensure that the `average_attendance` comparison is done after converting it to a numeric format, since it is stored as a VARCHAR. Here’s the corrected version of the query:
```sql
SELECT total_attendance
FROM table_name_80
WHERE CAST(average_attendance... | 25,009 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (total_attendance VARCHAR, average_attendance VARCHAR, sport VARCHAR)\n\n Question: What's the total attendance in r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (average_attendance VARCHAR, total_attendance VARCHAR)
Question: What's the average attendance of the league with a total attendance of 2268508?
Here is th... | ```sql
SELECT average_attendance FROM table_name_75 WHERE total_attendance = "2268508";
``` | 25,010 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (average_attendance VARCHAR, total_attendance VARCHAR)\n\n Question: What's the average attendance of the league wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (points INTEGER, games VARCHAR, pts_game VARCHAR, nation VARCHAR)
Question: Can you tell me the average Points that has a Pts/game larger than 4, and the Nat... | Here is the SQLite query to answer the question you provided:
```
SELECT AVG(points) FROM table_name_1 WHERE pts_game > 4 AND nation = "england" AND games < 5
``` | 25,011 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (points INTEGER, games VARCHAR, pts_game VARCHAR, nation VARCHAR)\n\n Question: Can you tell me the average Points th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (pts_game INTEGER, games INTEGER)
Question: Can you tell me the lowest Pts/game that has the Games larger than 6?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the lowest Pts/game for games larger than 6:
```
SELECT MIN(pts_game) FROM table_name_98 WHERE games > 6
``` | 25,012 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (pts_game INTEGER, games INTEGER)\n\n Question: Can you tell me the lowest Pts/game that has the Games larger than 6... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (pts_game INTEGER, name VARCHAR, points VARCHAR)
Question: Can you tell me the lowest Pts/game that has the Name of philippa tuttiett, and the Points larger... | Here is the SQLite query to answer the question provided:
```
SELECT MIN(pts_game) FROM table_name_59 WHERE name = "philippa tuttiett" AND points > 6
``` | 25,013 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (pts_game INTEGER, name VARCHAR, points VARCHAR)\n\n Question: Can you tell me the lowest Pts/game that has the Name... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (games INTEGER, name VARCHAR, pts_game VARCHAR, points VARCHAR)
Question: Can you tell me the lowest Games that has the Pts/game larger than 1.4 and the Poi... | Here is the SQLite query to answer the question regarding the lowest Games that has the Pts/game larger than 1.4, the Points of 20, and the Name of Susan Day:
```sql
SELECT MIN(games)
FROM table_name_96
WHERE pts_game > 1.4 AND points = 20 AND name = "susan day";
``` | 25,014 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (games INTEGER, name VARCHAR, pts_game VARCHAR, points VARCHAR)\n\n Question: Can you tell me the lowest Games that ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (production_code INTEGER, series__number VARCHAR)
Question: What was the lowest production code value in series #10?
Here is the SQLite query to answer to ... | Your SQLite query looks mostly correct, but you should ensure that the series number is treated as a string since it is defined as `VARCHAR` in the schema. Here’s the adjusted query:
```sql
SELECT MIN(production_code) FROM table_name_14 WHERE series__number = '10';
```
Make sure to wrap the series number in single q... | 25,015 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_14 (production_code INTEGER, series__number VARCHAR)\n\n Question: What was the lowest production code value in series ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (absorb__nm_ VARCHAR, color VARCHAR)
Question: What is the Absorbtion (in nanometers) of the color Orange?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to find the absorption (in nanometers) of the color Orange:
```
SELECT absorb__nm_ FROM table_name_40 WHERE color = "Orange"
``` | 25,016 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (absorb__nm_ VARCHAR, color VARCHAR)\n\n Question: What is the Absorbtion (in nanometers) of the color Orange?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (absorb__nm_ VARCHAR, color VARCHAR, emit__nm_ VARCHAR)
Question: What is the Absorbtion (in nanometers) of the color Violet with an emission of 432 nm?
He... | Here is the SQLite query to answer the question regarding the Absorption (in nanometers) of the color Violet with an emission of 432 nm:
```
SELECT absorb__nm_ FROM table_name_59 WHERE color = "violet" AND emit__nm_ = "432";
``` | 25,017 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (absorb__nm_ VARCHAR, color VARCHAR, emit__nm_ VARCHAR)\n\n Question: What is the Absorbtion (in nanometers) of the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (emit__nm_ VARCHAR, absorb__nm_ VARCHAR)
Question: Which Emission (in nanometers) has an absorbtion of 593 nm?
Here is the SQLite query to answer to the que... | Your SQLite query to find the emission that has an absorption of 593 nm is correctly structured. Here’s the SQL code wrapped in the requested format:
```
SELECT emit__nm_ FROM table_name_6 WHERE absorb__nm_ = "593";
``` | 25,018 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (emit__nm_ VARCHAR, absorb__nm_ VARCHAR)\n\n Question: Which Emission (in nanometers) has an absorbtion of 593 nm?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (emit__nm_ VARCHAR, mass__g_mol_ VARCHAR)
Question: Which Emission (in nanometers) that has a molar mass of 1078 g/mol?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about which emission (in nanometers) has a molar mass of 1078 g/mol:
```
SELECT emit__nm_ FROM table_name_86 WHERE mass__g_mol_ = "1078"
``` | 25,019 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (emit__nm_ VARCHAR, mass__g_mol_ VARCHAR)\n\n Question: Which Emission (in nanometers) that has a molar mass of 1078... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (ε__m__1_cm__1__ VARCHAR, mass__g_mol_ VARCHAR)
Question: Which ε (M -1 cm -1) has a molar mass of 1008 g/mol?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding which ε (M -1 cm -1) has a molar mass of 1008 g/mol:
```
SELECT ε__m__1_cm__1__ FROM table_name_79 WHERE mass__g_mol_ = "1008"
``` | 25,020 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (ε__m__1_cm__1__ VARCHAR, mass__g_mol_ VARCHAR)\n\n Question: Which ε (M -1 cm -1) has a molar mass of 1008 g/mol?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (away_team VARCHAR, home_team VARCHAR)
Question: What was the away team that played against Fitzroy?
Here is the SQLite query to answer to the question: Wh... | Your provided SQLite query is almost correct, but it seems to be looking for the away team when Fitzroy was the home team. To find the away team that played against Fitzroy, you should look for records where Fitzroy was the away team instead. Here's how you can write the query:
```sql
SELECT home_team FROM table_name_... | 25,021 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What was the away team that played against Fitzroy?\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR)
Question: On what date was the Essendon home match?
Here is the SQLite query to answer to the question: On what date was ... | Here is the SQLite query to answer the question regarding the date of the Essendon home match:
```
SELECT date FROM table_name_66 WHERE home_team = "Essendon";
``` | 25,022 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR)\n\n Question: On what date was the Essendon home match?\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (date VARCHAR, competition VARCHAR)
Question: On what Date did the friendly Competition take place?
Here is the SQLite query to answer to the question: On ... | Your SQLite query is correctly formulated to answer the question regarding the date when the friendly competition took place. Here it is wrapped in the appropriate code formatting:
```
SELECT date FROM table_name_49 WHERE competition = "friendly";
```
This query retrieves the date(s) from the `table_name_49` where t... | 25,023 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (date VARCHAR, competition VARCHAR)\n\n Question: On what Date did the friendly Competition take place?\n\nHere is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (attendance VARCHAR, game_site VARCHAR)
Question: What was the Attendance of the Game at Hoosier Dome?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the attendance of the game at Hoosier Dome:
```
SELECT attendance FROM table_name_92 WHERE game_site = "Hoosier Dome";
``` | 25,024 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (attendance VARCHAR, game_site VARCHAR)\n\n Question: What was the Attendance of the Game at Hoosier Dome?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (result VARCHAR, game_site VARCHAR, date VARCHAR)
Question: What was the Result of the Game at the Meadowlands on 1991-09-01?
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding the result of the game at the Meadowlands on 1991-09-01:
```
SELECT result FROM table_name_29 WHERE game_site = "the meadowlands" AND date = "1991-09-01"
``` | 25,025 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (result VARCHAR, game_site VARCHAR, date VARCHAR)\n\n Question: What was the Result of the Game at the Meadowlands o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (attendance VARCHAR, week VARCHAR)
Question: What was the Attendance in Week 17?
Here is the SQLite query to answer to the question: What was the Attendanc... | Here is the SQLite query to answer the question about the Attendance in Week 17:
```
SELECT attendance FROM table_name_70 WHERE week = '17'
```
Make sure to wrap the week value in quotes since it is a VARCHAR field. | 25,026 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (attendance VARCHAR, week VARCHAR)\n\n Question: What was the Attendance in Week 17?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR)
Question: Which Opponent was played on 1991-10-13?
Here is the SQLite query to answer to the question: Which Opponent was ... | Here is the SQLite query to answer the question: Which Opponent was played on 1991-10-13?:
```
SELECT opponent FROM table_name_52 WHERE date = "1991-10-13";
``` | 25,027 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR)\n\n Question: Which Opponent was played on 1991-10-13?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (number VARCHAR, position VARCHAR)
Question: What is the number for the player that has a k position?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query that answers the question of what the number is for the player that has a k position:
```
SELECT number FROM table_name_77 WHERE position = 'k';
``` | 25,028 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (number VARCHAR, position VARCHAR)\n\n Question: What is the number for the player that has a k position?\n\nHere is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (venue VARCHAR, score VARCHAR, competition VARCHAR)
Question: What is the venue for the friendly competition and score of 4-0?
Here is the SQLite query to ... | Here is the SQLite query to answer the question:
```
SELECT venue FROM table_name_53 WHERE score = "4-0" AND competition = "friendly";
``` | 25,029 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (venue VARCHAR, score VARCHAR, competition VARCHAR)\n\n Question: What is the venue for the friendly competition and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR)
Question: Name the score for 7 may 2000
Here is the SQLite query to answer to the question: Name the score for 7 may 2000:
``... | Here is the SQLite query to answer the question regarding the score for 7 May 2000:
```
SELECT score FROM table_name_18 WHERE date = "7 may 2000"
``` | 25,030 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR)\n\n Question: Name the score for 7 may 2000\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (date VARCHAR, competition VARCHAR)
Question: Name the date of the uncaf nations cup 2009
Here is the SQLite query to answer to the question: Name the date... | Here is the SQLite query to answer to the question: Name the date of the uncaf nations cup 2009:
```
SELECT date FROM table_name_91 WHERE competition = "uncaf nations cup 2009";
``` | 25,031 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (date VARCHAR, competition VARCHAR)\n\n Question: Name the date of the uncaf nations cup 2009\n\nHere is the SQLite ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (date VARCHAR, attendance INTEGER)
Question: What date were there more than 19,600 people in attendance?
Here is the SQLite query to answer to the question... | The provided query seems to have a misunderstanding in its use of the `OFFSET` clause. The correct approach to find dates with more than 19,600 people in attendance should focus solely on the `WHERE` condition and return the relevant dates without using `OFFSET`.
Here is the corrected SQLite query:
```
SELECT date FR... | 25,032 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (date VARCHAR, attendance INTEGER)\n\n Question: What date were there more than 19,600 people in attendance?\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (crowd VARCHAR, home_team VARCHAR)
Question: During st kilda's home game, what was the number of people in the crowd?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question regarding the number of people in the crowd during St Kilda's home game:
```sql
SELECT crowd FROM table_name_12 WHERE home_team = "st kilda";
``` | 25,033 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (crowd VARCHAR, home_team VARCHAR)\n\n Question: During st kilda's home game, what was the number of people in the c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR)
Question: What's the time/retired for constructor source:?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the time retired for the constructor "source:":
```
SELECT time_retired FROM table_name_89 WHERE constructor = "source:";
``` | 25,034 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR)\n\n Question: What's the time/retired for constructor source:?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (laps VARCHAR, driver VARCHAR)
Question: How many laps does luca badoer have?
Here is the SQLite query to answer to the question: How many laps does luca b... | Here is the SQLite query to answer the question of how many laps Luca Badoer has:
```
SELECT laps FROM table_name_71 WHERE driver = "luca badoer";
``` | 25,035 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (laps VARCHAR, driver VARCHAR)\n\n Question: How many laps does luca badoer have?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (time_retired VARCHAR, grid VARCHAR)
Question: What's the time/retired for a grid of 14?
Here is the SQLite query to answer to the question: What's the tim... | Here is the SQLite query to answer the question regarding the time retired for a grid of 14:
```
SELECT time_retired FROM table_name_98 WHERE grid = "14"
``` | 25,036 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (time_retired VARCHAR, grid VARCHAR)\n\n Question: What's the time/retired for a grid of 14?\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
Question: How many laps does jean-christophe boullion have with a time/retired of +1 lap?
Here is the ... | Here is the corrected SQLite query to count how many laps Jean-Christophe Boullion has with a time retired of "+1 lap":
```sql
SELECT COUNT(laps) AS lap_count
FROM table_name_67
WHERE time_retired = '+1 lap' AND driver = 'jean-christophe boullion';
``` | 25,037 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR)\n\n Question: How many laps does jean-christophe boullion have ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (laps VARCHAR, driver VARCHAR)
Question: How many laps does roberto moreno have?
Here is the SQLite query to answer to the question: How many laps does rob... | Here is the SQLite query to answer the question: How many laps does roberto moreno have?:
```
SELECT laps FROM table_name_51 WHERE driver = "roberto moreno"
``` | 25,038 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (laps VARCHAR, driver VARCHAR)\n\n Question: How many laps does roberto moreno have?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (grid VARCHAR, laps VARCHAR)
Question: What grid has 2 laps?
Here is the SQLite query to answer to the question: What grid has 2 laps?:
```
SELECT grid FRO... | Here is the SQLite query to answer the question: What grid has 2 laps?:
```
SELECT grid FROM table_name_93 WHERE laps = "2";
``` | 25,039 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (grid VARCHAR, laps VARCHAR)\n\n Question: What grid has 2 laps?\n\nHere is the SQLite query to answer to the questi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (date VARCHAR, venue VARCHAR)
Question: On what date was a game played at Windy Hill?
Here is the SQLite query to answer to the question: On what date was a... | Here is the SQLite query to answer the question about the date a game was played at Windy Hill:
```
SELECT date FROM table_name_6 WHERE venue = "Windy Hill";
``` | 25,040 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (date VARCHAR, venue VARCHAR)\n\n Question: On what date was a game played at Windy Hill?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)
Question: Where does South Melbourne play?
Here is the SQLite query to answer to the question: Where does South Melbourn... | Here is the SQLite query to answer the question: Where does South Melbourne play?:
```
SELECT venue FROM table_name_52 WHERE away_team = "South Melbourne"
``` | 25,041 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)\n\n Question: Where does South Melbourne play?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (venue VARCHAR, away_team VARCHAR)
Question: Where did Richmond play?
Here is the SQLite query to answer to the question: Where did Richmond play?:
```
SEL... | Here's the SQLite query to answer the question "Where did Richmond play?":
```
SELECT venue FROM table_name_10 WHERE away_team = "richmond";
``` | 25,042 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (venue VARCHAR, away_team VARCHAR)\n\n Question: Where did Richmond play?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (home_team VARCHAR, venue VARCHAR)
Question: Which Team plays at Western Oval?
Here is the SQLite query to answer to the question: Which Team plays at West... | Here is the SQLite query to answer the question: Which Team plays at Western Oval?:
```
SELECT home_team FROM table_name_90 WHERE venue = "Western Oval";
``` | 25,043 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (home_team VARCHAR, venue VARCHAR)\n\n Question: Which Team plays at Western Oval?\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (crowd INTEGER, home_team VARCHAR)
Question: What is the average crowd attendance for Collingwood?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to calculate the average crowd attendance for Collingwood:
```
SELECT AVG(crowd) FROM table_name_92 WHERE home_team = "collingwood"
``` | 25,044 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (crowd INTEGER, home_team VARCHAR)\n\n Question: What is the average crowd attendance for Collingwood?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (outcome VARCHAR, opponent_in_final VARCHAR)
Question: Name the outcome for alizé cornet janette husárová being opponent in final
Here is the SQLite query ... | Here is the SQLite query to name the outcome for alizé cornet janette husárová being the opponent in the final:
```
SELECT outcome FROM table_name_97 WHERE opponent_in_final = "alizé cornet janette husárová"
``` | 25,045 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (outcome VARCHAR, opponent_in_final VARCHAR)\n\n Question: Name the outcome for alizé cornet janette husárová being ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (outcome VARCHAR, opponent_in_final VARCHAR)
Question: Name the outcome that had an opponent in final of nina bratchikova kathrin wörle
Here is the SQLite ... | Here is the SQLite query to answer the question about the outcome that had an opponent in the final of "nina bratchikova kathrin wörle":
```
SELECT outcome FROM table_name_56 WHERE opponent_in_final = 'nina bratchikova kathrin wörle';
``` | 25,046 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (outcome VARCHAR, opponent_in_final VARCHAR)\n\n Question: Name the outcome that had an opponent in final of nina br... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (partner VARCHAR, date VARCHAR)
Question: Which partner was on 14 april 2013?
Here is the SQLite query to answer to the question: Which partner was on 14 a... | Here is the SQLite query to answer the question about which partner was present on 14 April 2013:
```
SELECT partner FROM table_name_94 WHERE date = "14 april 2013";
``` | 25,047 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (partner VARCHAR, date VARCHAR)\n\n Question: Which partner was on 14 april 2013?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
Question: When laps are less than 80 and Bruce mclaren is the driver, what is the grid?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT grid FROM table_name_58 WHERE laps < 80 AND driver = "bruce mclaren"
``` | 25,048 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (grid VARCHAR, laps VARCHAR, driver VARCHAR)\n\n Question: When laps are less than 80 and Bruce mclaren is the drive... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (driver VARCHAR, grid INTEGER)
Question: What driver has a grid greater than 19?
Here is the SQLite query to answer to the question: What driver has a grid... | Here is the SQLite query you can use to find the driver with a grid greater than 19:
```
SELECT driver FROM table_name_27 WHERE grid > 19
``` | 25,049 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (driver VARCHAR, grid INTEGER)\n\n Question: What driver has a grid greater than 19?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (laps VARCHAR, constructor VARCHAR, driver VARCHAR)
Question: When the driver richard attwood has a constructor of brm, what is the number of laps?
Here is... | Here is the SQLite query to answer the question about the number of laps when the driver Richard Attwood has a constructor of BRM:
```
SELECT laps FROM table_name_87 WHERE constructor = "brm" AND driver = "richard attwood"
``` | 25,050 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (laps VARCHAR, constructor VARCHAR, driver VARCHAR)\n\n Question: When the driver richard attwood has a constructor ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (grid INTEGER, laps INTEGER)
Question: What is the average grid for the competitiors who had laps smaller than 3?
Here is the SQLite query to answer to the... | Your SQLite query is correctly formed to obtain the average grid for competitors who had laps smaller than 3. Here is the code wrapped properly:
```
SELECT AVG(grid) FROM table_name_55 WHERE laps < 3;
``` | 25,051 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (grid INTEGER, laps INTEGER)\n\n Question: What is the average grid for the competitiors who had laps smaller than 3... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
Question: What is the average grid for competitors who had more than 22 laps and time/retired of +17.276?... | Here is the SQLite query to answer the question you provided:
```
SELECT AVG(grid) FROM table_name_79 WHERE time_retired = "+17.276" AND laps > 22
``` | 25,052 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)\n\n Question: What is the average grid for competitors who had mo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
Question: What was the average amount of laps for competitors with a grid that was more than 11 and a Tim... | Here is the SQLite query to answer the question regarding the average amount of laps for competitors with a grid that was more than 11 and a Time/Retired of +28.108:
```
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+28.108" AND grid > 11
``` | 25,053 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)\n\n Question: What was the average amount of laps for competitors... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (away_team VARCHAR, venue VARCHAR)
Question: What was the away team that played at Princes Park?
Here is the SQLite query to answer to the question: What w... | ```sql
SELECT away_team FROM table_name_17 WHERE venue = "Princes Park";
``` | 25,054 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (away_team VARCHAR, venue VARCHAR)\n\n Question: What was the away team that played at Princes Park?\n\nHere is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR)
Question: What was the away team that played at Princes Park?
Here is the SQLite query to answer to the question: What w... | Here is the SQLite query to answer the question about the away team that played at Princes Park:
```
SELECT away_team FROM table_name_97 WHERE venue = "Princes Park";
``` | 25,055 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR)\n\n Question: What was the away team that played at Princes Park?\n\nHere is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (venue VARCHAR, away_team VARCHAR)
Question: In what venue was the hosted away team Essendon?
Here is the SQLite query to answer to the question: In what v... | Here is the SQLite query to answer the question about the venue where the away team Essendon was hosted:
```sql
SELECT venue FROM table_name_59 WHERE away_team = "Essendon";
``` | 25,056 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (venue VARCHAR, away_team VARCHAR)\n\n Question: In what venue was the hosted away team Essendon?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR)
Question: Who was the home team at MCG?
Here is the SQLite query to answer to the question: Who was the home team at MCG... | The SQLite query you provided is mostly correct, but it’s important to use the correct case for the venue string based on how the data is stored in the database. If "mcg" is commonly stored in uppercase or has a specific format, you might want to adjust accordingly. But assuming "mcg" is the correct casing, the query w... | 25,057 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR)\n\n Question: Who was the home team at MCG?\n\nHere is the SQLite query to answer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (final_score VARCHAR, date VARCHAR)
Question: I want to know the final score for december 27
Here is the SQLite query to answer to the question: I want to ... | Certainly! Here is the SQLite query wrapped in code formatting:
```
SELECT final_score FROM table_name_74 WHERE date = "december 27"
``` | 25,058 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (final_score VARCHAR, date VARCHAR)\n\n Question: I want to know the final score for december 27\n\nHere is the SQLi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (final_score VARCHAR, date VARCHAR, host_team VARCHAR)
Question: Tell me the final score for january 9 for cincinnati bengals
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding the final score for January 9 for the Cincinnati Bengals:
```sql
SELECT final_score FROM table_name_96 WHERE date = "january 9" AND host_team = "cincinnati bengals"
``` | 25,059 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (final_score VARCHAR, date VARCHAR, host_team VARCHAR)\n\n Question: Tell me the final score for january 9 for cinci... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (host_team VARCHAR, stadium VARCHAR, visiting_team VARCHAR)
Question: Tell me the host team for giants stadium and visiting of cincinnati bengals
Here is t... | Here is the SQLite query to answer the question regarding the host team for Giants Stadium and the visiting team of the Cincinnati Bengals:
```
SELECT host_team FROM table_name_57 WHERE stadium = "giants stadium" AND visiting_team = "cincinnati bengals"
``` | 25,060 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (host_team VARCHAR, stadium VARCHAR, visiting_team VARCHAR)\n\n Question: Tell me the host team for giants stadium a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (date VARCHAR, visiting_team VARCHAR)
Question: Tell me the date for pittsburgh steelers
Here is the SQLite query to answer to the question: Tell me the da... | Sure! Here is the SQLite query wrapped in code blocks to answer the question about the dates for the Pittsburgh Steelers:
```
SELECT date FROM table_name_16 WHERE visiting_team = "pittsburgh steelers"
``` | 25,061 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (date VARCHAR, visiting_team VARCHAR)\n\n Question: Tell me the date for pittsburgh steelers\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR)
Question: Tell me the visiting team for october 4
Here is the SQLite query to answer to the question: Tell me the vis... | Here is the SQLite query to answer the question about the visiting team for October 4:
```
SELECT visiting_team FROM table_name_59 WHERE date = "october 4";
``` | 25,062 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR)\n\n Question: Tell me the visiting team for october 4\n\nHere is the SQLite qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (stadium VARCHAR, visiting_team VARCHAR)
Question: I want to know the stadium for tennessee titans visiting
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question regarding the stadium for the Tennessee Titans visiting:
```
SELECT stadium FROM table_name_32 WHERE visiting_team = "tennessee titans"
``` | 25,063 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (stadium VARCHAR, visiting_team VARCHAR)\n\n Question: I want to know the stadium for tennessee titans visiting\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (grid INTEGER, laps VARCHAR, driver VARCHAR)
Question: When the driver is Juan Manuel Fangio and laps is less than 39, what is the highest grid?
Here is th... | Here is the SQLite query you requested, formatted correctly:
```
SELECT MAX(grid) FROM table_name_44 WHERE laps < 39 AND driver = "Juan Manuel Fangio"
``` | 25,064 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (grid INTEGER, laps VARCHAR, driver VARCHAR)\n\n Question: When the driver is Juan Manuel Fangio and laps is less th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
Question: When grid is less than 7, laps are greater than 17, and time/retired is + ... | Here is the SQLite query to answer the question based on the provided schema and conditions:
```sql
SELECT constructor FROM table_name_84
WHERE laps > 17 AND grid < 7 AND time_retired = "+ 1:35.6";
``` | 25,065 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)\n\n Question: When grid is less than 7, laps... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (grid INTEGER, driver VARCHAR)
Question: What was the smallest grid for Prince bira?
Here is the SQLite query to answer to the question: What was the small... | Here is the SQLite query to answer the question: What was the smallest grid for Prince bira?:
```
SELECT MIN(grid) FROM table_name_29 WHERE driver = "prince bira";
``` | 25,066 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (grid INTEGER, driver VARCHAR)\n\n Question: What was the smallest grid for Prince bira?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (losses VARCHAR, goals_for VARCHAR, games_played VARCHAR)
Question: How many losses did the team with 22 goals for andmore than 8 games played have?
Here i... | Your query is almost correct, but there are a couple of minor adjustments needed. Since the `losses`, `goals_for`, and `games_played` columns are defined as `VARCHAR`, you will need to convert them to integers for proper comparison and counting.
Here is the corrected query:
```sql
SELECT SUM(CAST(losses AS INTEGER)) ... | 25,067 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (losses VARCHAR, goals_for VARCHAR, games_played VARCHAR)\n\n Question: How many losses did the team with 22 goals f... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (ties INTEGER, games_played VARCHAR, wins VARCHAR, goals_against VARCHAR)
Question: For teams with fewer than 5 wins, goals against over 37, and fewer than ... | Your SQLite query has the right idea, but you need to convert the `wins`, `goals_against`, and `games_played` to integers for proper comparison, since they are defined as `VARCHAR`. Here's the corrected query:
```sql
SELECT AVG(ties) FROM table_name_21
WHERE CAST(wins AS INTEGER) < 5
AND CAST(goals_against AS INTEGE... | 25,068 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (ties INTEGER, games_played VARCHAR, wins VARCHAR, goals_against VARCHAR)\n\n Question: For teams with fewer than 5 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (goals_against VARCHAR, wins VARCHAR)
Question: For teams with 7 wins, what is the number of goals against?
Here is the SQLite query to answer to the quest... | Here is the correct SQLite query to answer the question about the number of goals against for teams with 7 wins:
```
SELECT goals_against FROM table_name_36 WHERE wins = '7'
```
Please note that since the `wins` column is defined as a `VARCHAR`, the value should be enclosed in quotes. | 25,069 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_36 (goals_against VARCHAR, wins VARCHAR)\n\n Question: For teams with 7 wins, what is the number of goals against?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (wins INTEGER, goals_against VARCHAR, ties VARCHAR)
Question: For teams with more than 0 ties and goals against of 37, how many wins were tallied?
Here is ... | Your SQL query has a minor issue; it uses `MAX(wins)` which will return the maximum wins instead of the total wins. If you want to find the total wins for teams that meet your criteria (more than 0 ties and goals against of 37), you should use `SUM(wins)` instead. Here’s the corrected query:
```
SELECT SUM(wins) FROM ... | 25,070 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (wins INTEGER, goals_against VARCHAR, ties VARCHAR)\n\n Question: For teams with more than 0 ties and goals against ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (year VARCHAR, superlative VARCHAR)
Question: What year was the the youngest nominee a winner?
Here is the SQLite query to answer to the question: What yea... | Your provided SQLite query to find the year when the youngest nominee was a winner is correct. Here is the code formatted as requested:
```
SELECT year FROM table_name_35 WHERE superlative = "youngest nominee";
``` | 25,071 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (year VARCHAR, superlative VARCHAR)\n\n Question: What year was the the youngest nominee a winner?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (actor VARCHAR, year VARCHAR)
Question: What actor won in 1978?
Here is the SQLite query to answer to the question: What actor won in 1978?:
```
SELECT act... | Here is the SQLite query to answer the question: What actor won in 1978?:
```
SELECT actor FROM table_name_22 WHERE year = "1978";
``` | 25,072 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (actor VARCHAR, year VARCHAR)\n\n Question: What actor won in 1978?\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (notes VARCHAR, year VARCHAR)
Question: What are the notes in 1981?
Here is the SQLite query to answer to the question: What are the notes in 1981?:
```
SE... | Here is the SQLite query to answer the question: What are the notes in 1981?:
```
SELECT notes FROM table_name_99 WHERE year = "1981"
``` | 25,073 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (notes VARCHAR, year VARCHAR)\n\n Question: What are the notes in 1981?\n\nHere is the SQLite query to answer to the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (year VARCHAR, superlative VARCHAR)
Question: In what year had the oldest winner?
Here is the SQLite query to answer to the question: In what year had the ... | Your provided SQLite query is mostly correct for retrieving the year associated with the oldest winner. However, if the "oldest winner" refers to a specific record in the `superlative` column, your query would indeed work. Just make sure that "oldest winner" is the exact value listed in the `superlative` column.
Here'... | 25,074 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (year VARCHAR, superlative VARCHAR)\n\n Question: In what year had the oldest winner?\n\nHere is the SQLite query to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (year VARCHAR, actor VARCHAR)
Question: What year did actor Richard Farnsworth get nominated for an award?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the nomination year of actor Richard Farnsworth:
```
SELECT year FROM table_name_73 WHERE actor = "Richard Farnsworth";
``` | 25,075 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (year VARCHAR, actor VARCHAR)\n\n Question: What year did actor Richard Farnsworth get nominated for an award?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
Question: Tell me the time/retired for Laps of 42 and Grids of 4
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question based on your provided schema:
```
SELECT time_retired FROM table_name_74 WHERE laps = '42' AND grid = '4'
``` | 25,076 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)\n\n Question: Tell me the time/retired for Laps of 42 and Grids o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (driver VARCHAR, laps VARCHAR)
Question: I want the driver that has Laps of 10
Here is the SQLite query to answer to the question: I want the driver that h... | Here is the SQLite query to answer the question: I want the driver that has Laps of 10:
```
SELECT driver FROM table_name_59 WHERE laps = '10'
``` | 25,077 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (driver VARCHAR, laps VARCHAR)\n\n Question: I want the driver that has Laps of 10\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (position VARCHAR, club_province VARCHAR)
Question: What is the position of Perpignan?
Here is the SQLite query to answer to the question: What is the posi... | Here is the SQLite query to answer the question about the position of Perpignan:
```
SELECT position FROM table_name_56 WHERE club_province = "perpignan";
``` | 25,078 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (position VARCHAR, club_province VARCHAR)\n\n Question: What is the position of Perpignan?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (player VARCHAR, caps VARCHAR, club_province VARCHAR)
Question: Which player has a cap larger than 12 and Clubs of Toulouse?
Here is the SQLite query to an... | Your SQLite query is almost correct. However, since the `caps` column is defined as `VARCHAR`, you should ensure that the comparison against the integer value `12` is handled correctly, typically by explicitly converting it to an integer. Here’s the refined query:
```sql
SELECT player
FROM table_name_74
WHERE CAST(c... | 25,079 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (player VARCHAR, caps VARCHAR, club_province VARCHAR)\n\n Question: Which player has a cap larger than 12 and Clubs ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (date_of_birth__age_ VARCHAR, caps VARCHAR)
Question: What is the birthday of caps of 32?
Here is the SQLite query to answer to the question: What is the b... | It seems there is a minor issue in your query. The `caps` column is likely a string (VARCHAR), but you are comparing it to an integer (32). You should enclose the value in quotes to indicate that it's a string. Here's the corrected query:
```sql
SELECT date_of_birth__age_ FROM table_name_85 WHERE caps = '32'
``` | 25,080 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (date_of_birth__age_ VARCHAR, caps VARCHAR)\n\n Question: What is the birthday of caps of 32?\n\nHere is the SQLite ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (result VARCHAR, score VARCHAR)
Question: What is the result when the score is 0-2?
Here is the SQLite query to answer to the question: What is the result ... | Your SQLite query is almost correct, but it's important to note that if the scores are stored as VARCHAR, you may want to ensure that you're handling numeric comparisons correctly. Since the structure indicates the score is stored as VARCHAR, your query can remain as it is, assuming the values are formatted as "0-2". H... | 25,081 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (result VARCHAR, score VARCHAR)\n\n Question: What is the result when the score is 0-2?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (goal VARCHAR, competition VARCHAR, score VARCHAR)
Question: How many goals when the score is 3-0 in the euro 2012 q?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question about how many goals were scored when the score was 3-0 in the Euro 2012 qualification matches:
```
SELECT COUNT(goal) FROM table_name_61 WHERE competition = "euro 2012 q" AND score = "3-0"
``` | 25,082 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (goal VARCHAR, competition VARCHAR, score VARCHAR)\n\n Question: How many goals when the score is 3-0 in the euro 20... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR)
Question: I want the driver for grid of 9
Here is the SQLite query to answer to the question: I want the driver for grid of ... | Here is the SQLite query to answer the question about finding the driver for the grid of 9:
```sql
SELECT driver FROM table_name_59 WHERE grid = '9'
``` | 25,083 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR)\n\n Question: I want the driver for grid of 9\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (school VARCHAR, position VARCHAR)
Question: Which school has a quarterback?
Here is the SQLite query to answer to the question: Which school has a quarter... | The SQLite query to identify which school has a quarterback is as follows:
```
SELECT school FROM table_name_94 WHERE position = "quarterback";
``` | 25,084 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (school VARCHAR, position VARCHAR)\n\n Question: Which school has a quarterback?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (round VARCHAR, pick VARCHAR)
Question: In which round is pick number 242?
Here is the SQLite query to answer to the question: In which round is pick numbe... | To answer the question about which round pick number 242 is in, the correct SQLite query should select the round associated with that pick. The `COUNT` function in your provided query is not necessary for this task, since we want the actual round rather than a count of occurrences. Here is the corrected query:
```sql
... | 25,085 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (round VARCHAR, pick VARCHAR)\n\n Question: In which round is pick number 242?\n\nHere is the SQLite query to answer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (round VARCHAR, player VARCHAR)
Question: Which round was Tom Morris picked in?
Here is the SQLite query to answer to the question: Which round was Tom Mor... | To find out which round Tom Morris was picked in, you should modify the query to select the round instead of counting the number of rounds. Here’s the correct query to retrieve the round in which Tom Morris was picked:
```
SELECT round FROM table_name_16 WHERE player = "tom morris";
``` | 25,086 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (round VARCHAR, player VARCHAR)\n\n Question: Which round was Tom Morris picked in?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (pick VARCHAR, school VARCHAR)
Question: What pick did Clemson choose?
Here is the SQLite query to answer to the question: What pick did Clemson choose?:
`... | Here is the SQLite query to answer the question: What pick did Clemson choose?:
```
SELECT pick FROM table_name_38 WHERE school = "Clemson";
``` | 25,087 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (pick VARCHAR, school VARCHAR)\n\n Question: What pick did Clemson choose?\n\nHere is the SQLite query to answer to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (la_crescenta__montrose VARCHAR, tujunga VARCHAR)
Question: When Tujunga is moderate, what is La Crescenta-Montrose?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question:
```
SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = "moderate"
``` | 25,088 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (la_crescenta__montrose VARCHAR, tujunga VARCHAR)\n\n Question: When Tujunga is moderate, what is La Crescenta-Montr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (la_cañada_flintridge VARCHAR, tujunga VARCHAR)
Question: What is the percentage of La Canada Flintridge when Tujunga is 7%?
Here is the SQLite query to an... | To calculate the percentage of La Canada Flintridge when Tujunga is 7%, you will need to count the occurrences of La Canada Flintridge and Tujunga in the provided rows, and then calculate the percentage. Assuming "percentage of La Canada Flintridge" means its proportion relative to a total, the query can look like this... | 25,089 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (la_cañada_flintridge VARCHAR, tujunga VARCHAR)\n\n Question: What is the percentage of La Canada Flintridge when Tu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (la_crescenta__montrose VARCHAR, pasadena VARCHAR)
Question: When Pasadena is at 10%, what is La Crescenta-Montrose?
Here is the SQLite query to answer to ... | It looks like you're trying to retrieve the value of "La Crescenta-Montrose" when the "Pasadena" value is at 10%. However, to select values correctly based on a percentage, you should use the appropriate condition. In SQL, percentages are usually represented as numbers rather than strings.
If the value in the "Pasaden... | 25,090 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (la_crescenta__montrose VARCHAR, pasadena VARCHAR)\n\n Question: When Pasadena is at 10%, what is La Crescenta-Montr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (tujunga VARCHAR, la_crescenta__montrose VARCHAR)
Question: When La Crescenta-Montrose has 66%, what is Tujunga?
Here is the SQLite query to answer to the ... | Here is the corrected SQLite query to answer the question:
```
SELECT tujunga FROM table_name_85 WHERE la_crescenta__montrose = '66';
```
Note: The value "66%" in SQL represents a percentage format, so it is assumed the actual value stored in the table is just '66' (or any other format without the % symbol) if it is... | 25,091 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (tujunga VARCHAR, la_crescenta__montrose VARCHAR)\n\n Question: When La Crescenta-Montrose has 66%, what is Tujunga?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (tujunga VARCHAR, pasadena VARCHAR)
Question: What is the figure for Tujunga when Pasadena is 134,941?
Here is the SQLite query to answer to the question: ... | Your SQLite query looks correct for retrieving the value of Tujunga when Pasadena is equal to 134,941. However, you should ensure that the comparison value is treated properly. Since "134,941" is a string that may include a comma, it is advisable to remove the comma from the comparison to maintain consistency with typi... | 25,092 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (tujunga VARCHAR, pasadena VARCHAR)\n\n Question: What is the figure for Tujunga when Pasadena is 134,941?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (la_cañada_flintridge VARCHAR, pasadena VARCHAR)
Question: What is the figure for La Canada Flintridge when Pasadena is 34?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the figure for La Canada Flintridge when Pasadena is 34:
```
SELECT la_cañada_flintridge FROM table_name_65 WHERE pasadena = "34"
``` | 25,093 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (la_cañada_flintridge VARCHAR, pasadena VARCHAR)\n\n Question: What is the figure for La Canada Flintridge when Pasa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (member_senator VARCHAR, first_elected VARCHAR, district VARCHAR)
Question: Who was firest elected in 2002 in a district larger than 41?
Here is the SQLite ... | Your provided query has a small error in the way you're comparing the `district` column to 41; it should be treated as a string since `district` is defined as `VARCHAR`. Additionally, you need to ensure that you are providing the correct value for filtering. Here's the corrected version of your query:
```sql
SELECT me... | 25,094 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (member_senator VARCHAR, first_elected VARCHAR, district VARCHAR)\n\n Question: Who was firest elected in 2002 in a d... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (district VARCHAR, member_senator VARCHAR)
Question: What district for ulysses currie?
Here is the SQLite query to answer to the question: What district fo... | Here is the SQLite query to answer the question about the district for Ulysses Currie:
```
SELECT district FROM table_name_26 WHERE member_senator = "ulysses currie"
``` | 25,095 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (district VARCHAR, member_senator VARCHAR)\n\n Question: What district for ulysses currie?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (venue VARCHAR, away_team VARCHAR)
Question: Where did Geelong play as the away team?
Here is the SQLite query to answer to the question: Where did Geelong... | Here is the SQLite query to answer the question of where Geelong played as the away team:
```
SELECT venue FROM table_name_75 WHERE away_team = "Geelong";
``` | 25,096 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (venue VARCHAR, away_team VARCHAR)\n\n Question: Where did Geelong play as the away team?\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (home_team VARCHAR)
Question: What was Hawthorn's score as the home team?
Here is the SQLite query to answer to the question: What was Hawthorn's score as ... | The query you provided is not correct for fetching the score of Hawthorn as the home team, as it only selects the name of the home team and does not include any scoring information.
To accurately retrieve Hawthorn's score as the home team, you would need to include a score column in the table schema. Assuming there is... | 25,097 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (home_team VARCHAR)\n\n Question: What was Hawthorn's score as the home team?\n\nHere is the SQLite query to answer ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR)
Question: Who was South Melbourne's away opponents?
Here is the SQLite query to answer to the question: Who was Sout... | Your provided SQLite query has a slight error based on the question. Since you are asking for South Melbourne's away opponents, the condition should check for when South Melbourne is the away team, not the home team. Here is the corrected query:
```sql
SELECT home_team FROM table_name_18 WHERE away_team = "south melbo... | 25,098 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR)\n\n Question: Who was South Melbourne's away opponents?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (year INTEGER, runner_s__up VARCHAR)
Question: In which year is the highest for runner-up Steve Stricker?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question regarding the highest year for runner-up Steve Stricker:
```
SELECT MAX(year) FROM table_name_58 WHERE runner_s__up = 'Steve Stricker';
``` | 25,099 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (year INTEGER, runner_s__up VARCHAR)\n\n Question: In which year is the highest for runner-up Steve Stricker?\n\nHer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.