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_34 (unfavorable INTEGER, no_opinion VARCHAR, favorable VARCHAR, date VARCHAR)
Question: What is the most unfavorable that is favorable of 34 during 1953 August... | Here is the SQLite query to answer the question:
```
SELECT MAX(unfavorable)
FROM table_name_34
WHERE favorable = '34'
AND date = '1953 august'
AND no_opinion > 24;
``` | 13,700 | [
{
"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_34 (unfavorable INTEGER, no_opinion VARCHAR, favorable VARCHAR, date VARCHAR)\n\n Question: What is the most unfavorabl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (no_opinion INTEGER, date VARCHAR, favorable VARCHAR)
Question: What is the average no opinion score during 1954 November that is more favorable than 35?
H... | Your SQLite query seems almost correct, but there are a few nuances to consider. The `favorable` column is likely a string type (since it is declared as VARCHAR), which means you have to convert it to a numeric type to be able to perform a comparison.
However, if we assume that the values in the `favorable` column ca... | 13,701 | [
{
"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 (no_opinion INTEGER, date VARCHAR, favorable VARCHAR)\n\n Question: What is the average no opinion score during 1954... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR)
Question: What was the score for the game on December 20?
Here is the SQLite query to answer to the question: What was the sc... | Here is the SQLite query to answer the question regarding the score for the game on December 20:
```
SELECT score FROM table_name_49 WHERE date = "December 20";
``` | 13,702 | [
{
"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 (score VARCHAR, date VARCHAR)\n\n Question: What was the score for the game on December 20?\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_47 (home VARCHAR, date VARCHAR)
Question: Who was the home team on November 22?
Here is the SQLite query to answer to the question: Who was the home team on N... | Your SQLite query is almost correct, but make sure that the date format in your database matches the search string you are using. If dates are stored in a specific format (like "YYYY-MM-DD"), you might need to adjust the format accordingly. Assuming the date is stored in the format "Month Day" like "November 22", your ... | 13,703 | [
{
"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 (home VARCHAR, date VARCHAR)\n\n Question: Who was the home team on November 22?\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_4 (title VARCHAR, studio VARCHAR)
Question: What is the title of Buena Vista Pictures?
Here is the SQLite query to answer to the question: What is the title o... | Here is the SQLite query to answer the question about the title of Buena Vista Pictures:
```
SELECT title FROM table_name_4 WHERE studio = "Buena Vista Pictures";
``` | 13,704 | [
{
"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 (title VARCHAR, studio VARCHAR)\n\n Question: What is the title of Buena Vista Pictures?\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_95 (studio VARCHAR, director_s_ VARCHAR)
Question: What studio has directors John Lasseter and Andrew Stanton?
Here is the SQLite query to answer to the quest... | The provided query won't work correctly because it doesn't account for the fact that the directors are likely listed separately. Instead, you need to find studios that have both directors. Assuming each row in `table_name_95` represents a director-studio association, you can use a query that groups the studios and coun... | 13,705 | [
{
"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_95 (studio VARCHAR, director_s_ VARCHAR)\n\n Question: What studio has directors John Lasseter and Andrew Stanton?\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_83 (title VARCHAR, rank VARCHAR, worldwide_gross VARCHAR)
Question: Who has the title and rank 14, and a worldwide gross of $202,292,902?
Here is the SQLite q... | It looks like there was a slight misunderstanding in your query. You are looking for records with a specific rank (rank = 14) and a specific worldwide gross. However, your query is checking for ranks greater than 14, which is not what you want.
Here's the corrected SQLite query to find the titles that have a rank of 1... | 13,706 | [
{
"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_83 (title VARCHAR, rank VARCHAR, worldwide_gross VARCHAR)\n\n Question: Who has the title and rank 14, and a worldwide ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (date VARCHAR, away_team VARCHAR)
Question: WHAT IS THE DATE WITH AN AWAY TEAM OF BURTON ALBION?
Here is the SQLite query to answer to the question: WHAT I... | Here is the SQLite query to answer the question about the date with an away team of Burton Albion:
```
SELECT date FROM table_name_15 WHERE away_team = "Burton Albion";
``` | 13,707 | [
{
"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_15 (date VARCHAR, away_team VARCHAR)\n\n Question: WHAT IS THE DATE WITH AN AWAY TEAM OF BURTON ALBION?\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_16 (date VARCHAR, away_team VARCHAR)
Question: WHAT IS THE DATE WITH AN AWAY TEAM OF WORKINGTON?
Here is the SQLite query to answer to the question: WHAT IS T... | Here is the SQLite query to answer the question about the date with an away team of Workington:
```
SELECT date FROM table_name_16 WHERE away_team = "workington";
``` | 13,708 | [
{
"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, away_team VARCHAR)\n\n Question: WHAT IS THE DATE WITH AN AWAY TEAM OF WORKINGTON?\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_21 (home_team VARCHAR, tie_no VARCHAR)
Question: WHAT IS THE HOME TEAM WITH A TIE OF 14?
Here is the SQLite query to answer to the question: WHAT IS THE HOME ... | Here is the SQLite query to answer the question: WHAT IS THE HOME TEAM WITH A TIE OF 14?:
```
SELECT home_team FROM table_name_21 WHERE tie_no = "14"
``` | 13,709 | [
{
"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 (home_team VARCHAR, tie_no VARCHAR)\n\n Question: WHAT IS THE HOME TEAM WITH A TIE OF 14?\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_41 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR)
Question: What's the average round for the OT position from tulane college with an overa... | Here is the SQLite query to answer the question regarding the average round for the OT position from Tulane college with an overall over 38:
```
SELECT AVG(round) FROM table_name_41 WHERE position = "ot" AND college = "tulane" AND overall > 38
``` | 13,710 | [
{
"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_41 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR)\n\n Question: What's the average round for the O... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (away_team VARCHAR, crowd INTEGER)
Question: What did the away team score when the crowd was larger than 6,872?
Here is the SQLite query to answer to the q... | The SQLite query provided contains a syntax error in the use of the `OFFSET` clause, and it does not correctly answer your question about when the crowd was larger than 6,872. Here's the corrected version of the query:
```sql
SELECT away_team FROM table_name_55 WHERE crowd > 6872;
```
This query selects the `away_tea... | 13,711 | [
{
"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 (away_team VARCHAR, crowd INTEGER)\n\n Question: What did the away team score when the crowd was larger than 6,872?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (semifinalists VARCHAR, week VARCHAR)
Question: Who are the Semifinalists, when the Week is May 12?
Here is the SQLite query to answer to the question: Who... | Here is the SQLite query to answer the question: Who are the Semifinalists, when the Week is May 12?:
```
SELECT semifinalists FROM table_name_52 WHERE week = "May 12";
``` | 13,712 | [
{
"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 (semifinalists VARCHAR, week VARCHAR)\n\n Question: Who are the Semifinalists, when the Week is May 12?\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_20 (finalist VARCHAR, surface VARCHAR, semifinalists VARCHAR)
Question: Who is the Finalist, when the Surface is Clay, and when the Semifinalist is Yevgeny Kaf... | Here is the SQLite query to answer the question regarding the Finalist when the Surface is Clay and when the Semifinalist is Yevgeny Kafelnikov Juan Carlos Ferrero (2):
```sql
SELECT finalist FROM table_name_20 WHERE surface = 'Clay' AND semifinalists = 'Yevgeny Kafelnikov Juan Carlos Ferrero (2)';
``` | 13,713 | [
{
"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 (finalist VARCHAR, surface VARCHAR, semifinalists VARCHAR)\n\n Question: Who is the Finalist, when the Surface is Cl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (surface VARCHAR, finalist VARCHAR)
Question: What is the Surface, when the Finalist is Andrei Pavel?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the Surface when the Finalist is Andrei Pavel:
```
SELECT surface FROM table_name_90 WHERE finalist = "Andrei Pavel";
``` | 13,714 | [
{
"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 (surface VARCHAR, finalist VARCHAR)\n\n Question: What is the Surface, when the Finalist is Andrei Pavel?\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_80 (winner VARCHAR, surface VARCHAR)
Question: Who is the Winner, when the Surface is Carpet (i)?
Here is the SQLite query to answer to the question: Who is t... | Here is the SQLite query to answer the question:
```
SELECT winner FROM table_name_80 WHERE surface = "carpet (i)"
``` | 13,715 | [
{
"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 (winner VARCHAR, surface VARCHAR)\n\n Question: Who is the Winner, when the Surface is Carpet (i)?\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_66 (week VARCHAR, finalist VARCHAR)
Question: What is the Week, when the Finalist is Carlos Moyá (5)?
Here is the SQLite query to answer to the question: What... | Your SQLite query is almost correct, but it’s important to ensure that the finalist's name is accurately represented in the query. SQLite is case-insensitive for string comparison, but it's always good practice to match the case exactly if you're unsure.
Here’s the query you provided, which looks good:
```sql
SELECT ... | 13,716 | [
{
"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 (week VARCHAR, finalist VARCHAR)\n\n Question: What is the Week, when the Finalist is Carlos Moyá (5)?\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_4 (tournament VARCHAR, week VARCHAR)
Question: What is the Tournament, on the Week of May 5?
Here is the SQLite query to answer to the question: What is the T... | Here is the SQLite query to answer the question about the tournament on the week of May 5:
```sql
SELECT tournament FROM table_name_4 WHERE week = "May 5";
``` | 13,717 | [
{
"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 (tournament VARCHAR, week VARCHAR)\n\n Question: What is the Tournament, on the Week of May 5?\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_8 (silver INTEGER, nation VARCHAR, total VARCHAR)
Question: what is the silver when the nation is japan and the total is less than 1?
Here is the SQLite query... | Here is the correct SQLite query to answer the question about the silver when the nation is Japan and the total is less than 1:
```
SELECT SUM(silver) FROM table_name_8 WHERE nation = 'japan' AND total < '1';
```
Note: Since the `total` column is of type VARCHAR, the comparison with the number `1` will treat it as a... | 13,718 | [
{
"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_8 (silver INTEGER, nation VARCHAR, total VARCHAR)\n\n Question: what is the silver when the nation is japan and the tot... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (bronze INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR, gold VARCHAR)
Question: what is the bronze when silver is 1, gold is 0 the rank is 11 and the ... | Here is the SQLite query to answer the question about the bronze when silver is 1, gold is 0, the rank is 11, and the total is more than 1:
```
SELECT MAX(bronze) FROM table_name_74 WHERE silver = 1 AND gold = 0 AND rank = '11' AND total > '1'
```
Note that I used single quotes for `rank` and `total` comparisons, as... | 13,719 | [
{
"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 (bronze INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR, gold VARCHAR)\n\n Question: what is the bronze when si... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)
Question: what is the rank when silver is 0, bronze is more than 1 and the total is more than ... | Here is the SQLite query to answer the question regarding the rank when silver is 0, bronze is more than 1, and the total is more than 3:
```
SELECT rank FROM table_name_32 WHERE silver = '0' AND bronze > '1' AND total > '3'
```
Note: Make sure to check the data types in your database. If `silver`, `bronze`, and `tot... | 13,720 | [
{
"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 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)\n\n Question: what is the rank when silver is 0, bronz... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (silver VARCHAR, nation VARCHAR)
Question: what is the silver for mexico?
Here is the SQLite query to answer to the question: what is the silver for mexico?... | Here is the SQLite query to answer the question about the silver for Mexico:
```
SELECT silver FROM table_name_9 WHERE nation = "mexico";
``` | 13,721 | [
{
"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_9 (silver VARCHAR, nation VARCHAR)\n\n Question: what is the silver for mexico?\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_69 (score VARCHAR, date VARCHAR)
Question: What was the score of the game on February 8?
Here is the SQLite query to answer to the question: What was the scor... | Your SQLite query is almost correct, but it's typically better to use the date format that SQLite recognizes. It's common to format dates in a standardized way (like 'YYYY-MM-DD') if the dates in your database are not formatted in that way. Assuming the dates are stored in a string format that matches exactly what you ... | 13,722 | [
{
"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_69 (score VARCHAR, date VARCHAR)\n\n Question: What was the score of the game on February 8?\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_55 (athlete VARCHAR, score VARCHAR)
Question: Which athlete had a score of 236.023?
Here is the SQLite query to answer to the question: Which athlete had a sc... | Here is the SQLite query to answer the question: Which athlete had a score of 236.023?:
```
SELECT athlete FROM table_name_55 WHERE score = "236.023";
``` | 13,723 | [
{
"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 (athlete VARCHAR, score VARCHAR)\n\n Question: Which athlete had a score of 236.023?\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_92 (texas VARCHAR, north_dakota VARCHAR)
Question: What Texas has Johnson from Nort Dakota?
Here is the SQLite query to answer to the question: What Texas has... | Here is the SQLite query to answer the question: What Texas has Johnson from North Dakota?:
```sql
SELECT texas FROM table_name_92 WHERE north_dakota = "Johnson";
``` | 13,724 | [
{
"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 (texas VARCHAR, north_dakota VARCHAR)\n\n Question: What Texas has Johnson from Nort Dakota?\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_41 (oklahoma VARCHAR, nebraska VARCHAR, year VARCHAR)
Question: What is the oklahoma has Bush from Nebraska in year 2004?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the state of Oklahoma having "Bush" from Nebraska in the year 2004:
```
SELECT oklahoma FROM table_name_41 WHERE nebraska = 'Bush' AND year = '2004';
``` | 13,725 | [
{
"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_41 (oklahoma VARCHAR, nebraska VARCHAR, year VARCHAR)\n\n Question: What is the oklahoma has Bush from Nebraska in year... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (nebraska VARCHAR, year VARCHAR)
Question: Which Nebraska has 2004 year?
Here is the SQLite query to answer to the question: Which Nebraska has 2004 year?:... | Here is the SQLite query to answer the question: Which Nebraska has 2004 year?:
```
SELECT nebraska FROM table_name_25 WHERE year = "2004";
``` | 13,726 | [
{
"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 (nebraska VARCHAR, year VARCHAR)\n\n Question: Which Nebraska has 2004 year?\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_17 (south_dakota VARCHAR, oklahoma VARCHAR)
Question: What South Dakota has Bush of Oklahoma?
Here is the SQLite query to answer to the question: What South... | Here is the SQLite query to answer the question: What South Dakota has Bush of Oklahoma?:
```
SELECT south_dakota FROM table_name_17 WHERE oklahoma = 'bush';
``` | 13,727 | [
{
"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 (south_dakota VARCHAR, oklahoma VARCHAR)\n\n Question: What South Dakota has Bush of Oklahoma?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (place VARCHAR, score VARCHAR)
Question: What is the Place of the Player with a Score of 70-75-70-74=289?
Here is the SQLite query to answer to the questio... | The query you provided contains a syntax error. In SQLite, you can't use arithmetic operations directly within the `WHERE` clause in the way your query suggests.
To find the place of the player with the specified total score of 289, you should first compute the total score correctly and then filter by that value. You ... | 13,728 | [
{
"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_60 (place VARCHAR, score VARCHAR)\n\n Question: What is the Place of the Player with a Score of 70-75-70-74=289?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR)
Question: What is the To par of the Player with a Score of 71-74-72-72=289?
Here is the SQLite query to answer to the quest... | The provided query has some issues with the syntax and logic used to compare the score. The correct way to structure the query should be to compare the `score` field with the string `'71-74-72-72=289'`, and it should also utilize proper formatting. Here's the corrected version wrapped properly:
```sql
SELECT to_par FR... | 13,729 | [
{
"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 (to_par VARCHAR, score VARCHAR)\n\n Question: What is the To par of the Player with a Score of 71-74-72-72=289?\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_89 (country VARCHAR, money__$_ VARCHAR, player VARCHAR)
Question: What Country is Player Leland Gibson with Money of 400 from?
Here is the SQLite query to ans... | Here is the SQLite query wrapped in code formatting:
```
SELECT country FROM table_name_89 WHERE money__$_ = "400" AND player = "Leland Gibson";
``` | 13,730 | [
{
"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 (country VARCHAR, money__$_ VARCHAR, player VARCHAR)\n\n Question: What Country is Player Leland Gibson with Money o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (country VARCHAR, score VARCHAR)
Question: What is the Country of the Player with a Score of 73-70-71-71=285?
Here is the SQLite query to answer to the que... | It seems there is a misunderstanding in the way you structured your SQL query regarding the calculation of the score. In SQL, you can't directly use arithmetic operations in the `WHERE` clause in this way. You need to compare the `score` to the calculated total of the four scores.
Since scores are stored as strings in... | 13,731 | [
{
"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_19 (country VARCHAR, score VARCHAR)\n\n Question: What is the Country of the Player with a Score of 73-70-71-71=285?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR)
Question: What is T3 Place Player Bobby Locke's Score?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer to the question: What is T3 Place Player Bobby Locke's Score?:
```
SELECT score FROM table_name_40 WHERE place = "t3" AND player = "bobby locke"
``` | 13,732 | [
{
"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 (score VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: What is T3 Place Player Bobby Locke's Score?\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_21 (points VARCHAR, home VARCHAR)
Question: How many points were scored in the Detroit Home?
Here is the SQLite query to answer to the question: How many poin... | Your query is almost correct, but to get the total number of points scored in the Detroit home, you should use the `SUM` function to aggregate the points. Here’s the corrected query:
```sql
SELECT SUM(points) FROM table_name_21 WHERE home = "detroit";
```
Make sure that the data type of the `points` column allows fo... | 13,733 | [
{
"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 (points VARCHAR, home VARCHAR)\n\n Question: How many points were scored in the Detroit Home?\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_77 (visitor VARCHAR, attendance VARCHAR, date VARCHAR)
Question: Who is the visitor from the game with 7,000 in attendance on January 1?
Here is the SQLite qu... | Here is the SQLite query wrapped properly:
```sql
SELECT visitor FROM table_name_77 WHERE attendance = "7,000" AND date = "January 1";
``` | 13,734 | [
{
"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 (visitor VARCHAR, attendance VARCHAR, date VARCHAR)\n\n Question: Who is the visitor from the game with 7,000 in att... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (record VARCHAR, attendance VARCHAR)
Question: What is the record from the 2,500 in attendance?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question regarding the record from the 2,500 in attendance:
```sql
SELECT record FROM table_name_12 WHERE attendance = "2,500"
``` | 13,735 | [
{
"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 (record VARCHAR, attendance VARCHAR)\n\n Question: What is the record from the 2,500 in attendance?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (silver INTEGER, nation VARCHAR, total VARCHAR)
Question: How many Silver medals for the Nation of Turkey with a Total of less than 2?
Here is the SQLite qu... | Here is the correct SQLite query to answer the question about how many Silver medals Turkey has with a Total of less than 2:
```
SELECT SUM(silver) FROM table_name_9 WHERE nation = "Turkey" AND CAST(total AS INTEGER) < 2;
```
This query uses `CAST(total AS INTEGER)` to convert the `total` value from a string to an in... | 13,736 | [
{
"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_9 (silver INTEGER, nation VARCHAR, total VARCHAR)\n\n Question: How many Silver medals for the Nation of Turkey with a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (gold INTEGER, rank VARCHAR, silver VARCHAR)
Question: How many Gold for the Nation in Rank 15 with 0 Silver?
Here is the SQLite query to answer to the que... | The query you provided is not entirely correct for the given question. Since you're looking for how many Gold for the Nation in Rank 15 with 0 Silver, you need to check for conditions where silver equals 0 instead.
Here’s the corrected SQL query:
```
SELECT SUM(gold) FROM table_name_34 WHERE rank = "15" AND silver = ... | 13,737 | [
{
"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_34 (gold INTEGER, rank VARCHAR, silver VARCHAR)\n\n Question: How many Gold for the Nation in Rank 15 with 0 Silver?\n\... | |
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 VARCHAR, ward INTEGER)
Question: WHAT IS THE TOTAL NUMBER WITH A WARD SMALLER THAN 0?
Here is the SQLite query to answer to the question: WHAT IS TH... | Here is the SQLite query to answer the question about the total number with a ward smaller than 0:
```
SELECT COUNT(total) FROM table_name_80 WHERE ward < 0
``` | 13,738 | [
{
"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 VARCHAR, ward INTEGER)\n\n Question: WHAT IS THE TOTAL NUMBER WITH A WARD SMALLER THAN 0?\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_92 (pr_top_up VARCHAR, percentage VARCHAR, total VARCHAR)
Question: WHAT IS TOTAL NUMBER OF PR TOP-UPS THAT HAVE A PERCENTAGE OF 0.8%, TOTAL LARGER THAN 1?
He... | The SQLite query you provided is almost correct, but you need to ensure that the `total` field is treated as a numeric value for comparing it against 1. Since `total` is stored as a VARCHAR, you should convert it to a numeric type using the `CAST` function or similar.
Here’s the corrected query:
```
SELECT COUNT(pr_t... | 13,739 | [
{
"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 (pr_top_up VARCHAR, percentage VARCHAR, total VARCHAR)\n\n Question: WHAT IS TOTAL NUMBER OF PR TOP-UPS THAT HAVE A ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (total INTEGER, ward INTEGER)
Question: WHAT IS THE TOTAL WITH WARD LARGER THAN 60?
Here is the SQLite query to answer to the question: WHAT IS THE TOTAL W... | The query you provided retrieves the minimum total where the ward is larger than 60. However, the question asks for the total, which implies that you need to sum the totals for those records instead of finding the minimum. Here is the corrected SQLite query to answer the question:
```
SELECT SUM(total) FROM table_name... | 13,740 | [
{
"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 (total INTEGER, ward INTEGER)\n\n Question: WHAT IS THE TOTAL WITH WARD LARGER THAN 60?\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_66 (poles VARCHAR, points VARCHAR)
Question: What is the total number of poles and 63 points?
Here is the SQLite query to answer to the question: What is the ... | It looks like you want to count the number of rows in the `table_name_66` where the `points` column is equal to "63" and also retrieve the total number of `poles` in that case. You can modify your query to combine both counts into a single query. Here’s how to do it:
```sql
SELECT COUNT(poles) AS total_poles,
... | 13,741 | [
{
"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 (poles VARCHAR, points VARCHAR)\n\n Question: What is the total number of poles and 63 points?\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_62 (year INTEGER, type VARCHAR)
Question: What is the most recent year with a mk.v type?
Here is the SQLite query to answer to the question: What is the most ... | Here is the SQLite query to answer the question about the most recent year with a `mk.v` type:
```
SELECT MAX(year) FROM table_name_62 WHERE type = 'mk.v';
``` | 13,742 | [
{
"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_62 (year INTEGER, type VARCHAR)\n\n Question: What is the most recent year with a mk.v type?\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_61 (mainly_for VARCHAR, year VARCHAR, displacement VARCHAR)
Question: What is the Mainly For with a displacement of 997 cc in a year before 1962?
Here is the ... | Here is the SQLite query wrapped in code formatting:
```
SELECT mainly_for FROM table_name_61 WHERE year < '1962' AND displacement = '997 cc';
``` | 13,743 | [
{
"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 (mainly_for VARCHAR, year VARCHAR, displacement VARCHAR)\n\n Question: What is the Mainly For with a displacement of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (type VARCHAR, block VARCHAR, year VARCHAR)
Question: What type is the 105/107e Block from a year prior to 1960?
Here is the SQLite query to answer to the ... | Here is your SQLite query wrapped in code formatting:
```
SELECT type FROM table_name_50 WHERE block = "105/107e" AND year < 1960;
``` | 13,744 | [
{
"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_50 (type VARCHAR, block VARCHAR, year VARCHAR)\n\n Question: What type is the 105/107e Block from a year prior to 1960?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (march INTEGER, score VARCHAR, game VARCHAR)
Question: What is the sum of March, when Score is "2 - 2", and when Game is greater than 67?
Here is the SQLit... | Here is the SQLite query to answer the question about the sum of March when the Score is "2 - 2" and the Game is greater than 67:
```
SELECT SUM(march) FROM table_name_56 WHERE score = "2 - 2" AND game > 67
``` | 13,745 | [
{
"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 (march INTEGER, score VARCHAR, game VARCHAR)\n\n Question: What is the sum of March, when Score is \"2 - 2\", and wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (game INTEGER, opponent VARCHAR, march VARCHAR)
Question: What is the sum of Game, when Opponent is "Cleveland Barons", and when March is less than 8?
Here... | Here is the SQLite query to answer the question you provided:
```
SELECT SUM(game) FROM table_name_58 WHERE opponent = "Cleveland Barons" AND march < 8
``` | 13,746 | [
{
"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 (game INTEGER, opponent VARCHAR, march VARCHAR)\n\n Question: What is the sum of Game, when Opponent is \"Cleveland ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (game INTEGER, opponent VARCHAR)
Question: What is the lowest Game, when Opponent is "Boston Bruins"?
Here is the SQLite query to answer to the question: W... | Here's the SQLite query to find the lowest game where the opponent is "Boston Bruins":
```
SELECT MIN(game) FROM table_name_35 WHERE opponent = "Boston Bruins"
``` | 13,747 | [
{
"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 (game INTEGER, opponent VARCHAR)\n\n Question: What is the lowest Game, when Opponent is \"Boston Bruins\"?\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_68 (road_team VARCHAR, result VARCHAR)
Question: For the game ending in a final result of 99-90, who was the Road Team?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer your question:
```
SELECT road_team FROM table_name_68 WHERE result = "99-90"
``` | 13,748 | [
{
"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_68 (road_team VARCHAR, result VARCHAR)\n\n Question: For the game ending in a final result of 99-90, who was the Road T... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
Question: What was the result of the game played on May 5?
Here is the SQLite query to answer to the question: What was the r... | Here is the SQLite query to answer the question about the result of the game played on May 5:
```
SELECT result FROM table_name_5 WHERE date = "May 5";
``` | 13,749 | [
{
"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_5 (result VARCHAR, date VARCHAR)\n\n Question: What was the result of the game played on May 5?\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_78 (date VARCHAR, game VARCHAR)
Question: On what day was Game 7 of this season played?
Here is the SQLite query to answer to the question: On what day was Ga... | Here is the SQLite query to answer the question regarding the date Game 7 of this season was played, wrapped as requested:
```
SELECT date FROM table_name_78 WHERE game = "Game 7";
``` | 13,750 | [
{
"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_78 (date VARCHAR, game VARCHAR)\n\n Question: On what day was Game 7 of this season played?\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_73 (game VARCHAR, road_team VARCHAR, date VARCHAR)
Question: What game number was played on April 23, with Boston as the road team?
Here is the SQLite query t... | Here is the SQLite query to answer the question:
```
SELECT game FROM table_name_73 WHERE road_team = "boston" AND date = "april 23";
``` | 13,751 | [
{
"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 (game VARCHAR, road_team VARCHAR, date VARCHAR)\n\n Question: What game number was played on April 23, with Boston a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (result VARCHAR, game VARCHAR)
Question: What was the result of Game 3 of this searson?
Here is the SQLite query to answer to the question: What was the re... | ```sql
SELECT result FROM table_name_95 WHERE game = "game 3";
``` | 13,752 | [
{
"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_95 (result VARCHAR, game VARCHAR)\n\n Question: What was the result of Game 3 of this searson?\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_89 (road_team VARCHAR, result VARCHAR)
Question: Who was the Road Team for the game ending with a score of 118-112?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the Road Team for the game ending with a score of 118-112:
```
SELECT road_team FROM table_name_89 WHERE result = "118-112"
``` | 13,753 | [
{
"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 (road_team VARCHAR, result VARCHAR)\n\n Question: Who was the Road Team for the game ending with a score of 118-112?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (tournament VARCHAR)
Question: what is the 2008 when 2007 is A, 2011 is A and tournament is san jose?
Here is the SQLite query to answer to the question: wh... | The SQL query you provided contains a misunderstanding of how to reference the columns in your `table_name_5`. Since your table schema only includes a single column (`tournament`), you can't directly reference the year columns (2007, 2008, 2011) as they are not part of the table.
Assuming that there might be additiona... | 13,754 | [
{
"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_5 (tournament VARCHAR)\n\n Question: what is the 2008 when 2007 is A, 2011 is A and tournament is san jose?\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_46 (Id VARCHAR)
Question: what is 2010 when 2011 is 2r and 2008 is 2r?
Here is the SQLite query to answer to the question: what is 2010 when 2011 is 2r and 20... | It seems there might be some misunderstanding with the schema and the nature of the query. The table defined only has one column (`Id`), which suggests that it might be intended to store some identifiers.
Given your question, you are looking to retrieve the value associated with 2010 based on conditions for 2011 and 2... | 13,755 | [
{
"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_46 (Id VARCHAR)\n\n Question: what is 2010 when 2011 is 2r and 2008 is 2r?\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_71 (Id VARCHAR)
Question: what is 2007 when 2011 is not held and 2012 is not held?
Here is the SQLite query to answer to the question: what is 2007 when 2011 ... | The query you provided has a logical expectation, but the structure of the SQLite query is incorrect because it refers to columns that do not exist in the defined schema. Based on the schema `CREATE TABLE table_name_71 (Id VARCHAR)`, the only column available is `Id`. Assuming you want to check if certain values relate... | 13,756 | [
{
"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 (Id VARCHAR)\n\n Question: what is 2007 when 2011 is not held and 2012 is not held?\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_65 (tournament VARCHAR)
Question: what is the tournament when 2011 is a, 2009 is lq and 2012 is 1r?
Here is the SQLite query to answer to the question: what i... | Based on the provided schema and your question, it seems you're trying to filter results based on some conditions that involve the years 2011, 2009, and 2012. However, the syntax in your query implies that you are trying to reference these years as column names, but they are not defined in your schema. In SQL, column n... | 13,757 | [
{
"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 (tournament VARCHAR)\n\n Question: what is the tournament when 2011 is a, 2009 is lq and 2012 is 1r?\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_53 (tournament VARCHAR)
Question: what is 2008 when 2007 is a, 2011 is a, 2010 is a and tournament is china?
Here is the SQLite query to answer to the questio... | It seems there might be some confusion in your question. The SQL query you provided is incorrect because the columns `2007`, `2010`, and `2011` do not exist in the schema you provided (`CREATE TABLE table_name_53 (tournament VARCHAR)`).
In your table, there is only one column named `tournament`. Without additional con... | 13,758 | [
{
"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 (tournament VARCHAR)\n\n Question: what is 2008 when 2007 is a, 2011 is a, 2010 is a and tournament is china?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (week VARCHAR, result VARCHAR)
Question: What is the number of weeks where the result was listed at bye?
Here is the SQLite query to answer to the question... | Your SQLite query is correct. Here it is wrapped in the code block as you requested:
```
SELECT COUNT(week) FROM table_name_12 WHERE result = "bye";
``` | 13,759 | [
{
"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 (week VARCHAR, result VARCHAR)\n\n Question: What is the number of weeks where the result was listed at bye?\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_64 (capacity INTEGER, coach VARCHAR)
Question: What is the total capacity for coach Trevor Gleeson?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question regarding the total capacity for coach Trevor Gleeson:
```
SELECT SUM(capacity) FROM table_name_64 WHERE coach = "Trevor Gleeson";
``` | 13,760 | [
{
"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_64 (capacity INTEGER, coach VARCHAR)\n\n Question: What is the total capacity for coach Trevor Gleeson?\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_68 (home_ground VARCHAR, coach VARCHAR)
Question: What is home ground for coach Andrej Lemanis?
Here is the SQLite query to answer to the question: What is ho... | Your query looks good, but to ensure the correct casing for the coach's name and improve readability, it is common practice to use uppercase for SQL keywords. Here's the query modified slightly for clarity:
```
SELECT home_ground FROM table_name_68 WHERE coach = 'Andrej Lemanis';
```
This query will retrieve the hom... | 13,761 | [
{
"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_68 (home_ground VARCHAR, coach VARCHAR)\n\n Question: What is home ground for coach Andrej Lemanis?\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_5 (region VARCHAR, coach VARCHAR)
Question: Which region is Coach Trevor Gleeson in?
Here is the SQLite query to answer to the question: Which region is Coach... | Here is the SQLite query to answer the question about Coach Trevor Gleeson's region:
```
SELECT region FROM table_name_5 WHERE coach = "Trevor Gleeson";
``` | 13,762 | [
{
"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_5 (region VARCHAR, coach VARCHAR)\n\n Question: Which region is Coach Trevor Gleeson in?\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_40 (home_ground VARCHAR, region VARCHAR)
Question: What is the home ground in region NZL?
Here is the SQLite query to answer to the question: What is the home... | Here is the SQLite query you requested, wrapped in code formatting:
```
SELECT home_ground FROM table_name_40 WHERE region = "NZL";
``` | 13,763 | [
{
"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 (home_ground VARCHAR, region VARCHAR)\n\n Question: What is the home ground in region NZL?\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_58 (song VARCHAR, composer VARCHAR, year VARCHAR)
Question: What song was composed by V. Selvaganesh later than 2010?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about which song was composed by V. Selvaganesh later than 2010:
```
SELECT song FROM table_name_58 WHERE composer = "V. Selvaganesh" AND year > "2010"
``` | 13,764 | [
{
"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 (song VARCHAR, composer VARCHAR, year VARCHAR)\n\n Question: What song was composed by V. Selvaganesh later than 201... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (year VARCHAR, composer VARCHAR)
Question: What year was the composition by Mejo Joseph?
Here is the SQLite query to answer to the question: What year was t... | It seems like you're looking to retrieve the year of the composition by Mejo Joseph rather than counting the number of entries. The correct query to extract the year would be:
```
SELECT year FROM table_name_7 WHERE composer = "Mejo Joseph";
```
This query will return the year(s) associated with the composer "Mejo J... | 13,765 | [
{
"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 (year VARCHAR, composer VARCHAR)\n\n Question: What year was the composition by Mejo Joseph?\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_35 (pick INTEGER, round VARCHAR, nationality VARCHAR, college VARCHAR)
Question: What is the highest Pick, when Nationality is "United States", when College is... | Here is the SQLite query to answer the question:
```
SELECT MAX(pick) FROM table_name_35 WHERE nationality = "United States" AND college = "New Mexico State" AND round > 6;
``` | 13,766 | [
{
"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 (pick INTEGER, round VARCHAR, nationality VARCHAR, college VARCHAR)\n\n Question: What is the highest Pick, when Nat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (player VARCHAR, pick VARCHAR, college VARCHAR)
Question: What is Player, when Pick is less than 161, and when College is "Auburn University"?
Here is the ... | Here is the SQLite query wrapped in code formatting as you requested:
```
SELECT player FROM table_name_58 WHERE pick < 161 AND college = "Auburn University";
``` | 13,767 | [
{
"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 (player VARCHAR, pick VARCHAR, college VARCHAR)\n\n Question: What is Player, when Pick is less than 161, and when C... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (player VARCHAR, round VARCHAR, pick VARCHAR)
Question: What is Player, when Round is less than 6, and when Pick is "69"?
Here is the SQLite query to answe... | Here is the corrected SQLite query to answer the question:
```
SELECT player FROM table_name_78 WHERE round < 6 AND pick = '69'
```
Note that in the condition for `pick`, I have wrapped `69` in quotes, assuming `pick` is being treated as a string given that the column type is VARCHAR. | 13,768 | [
{
"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_78 (player VARCHAR, round VARCHAR, pick VARCHAR)\n\n Question: What is Player, when Round is less than 6, and when Pick... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (round INTEGER, college VARCHAR)
Question: What is the sum of Round, when College is "Norfolk State"?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the sum of Round when the College is "Norfolk State":
```sql
SELECT SUM(round) FROM table_name_32 WHERE college = "Norfolk State";
``` | 13,769 | [
{
"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 (round INTEGER, college VARCHAR)\n\n Question: What is the sum of Round, when College is \"Norfolk State\"?\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_90 (country VARCHAR, player VARCHAR)
Question: What country does david gilford play for?
Here is the SQLite query to answer to the question: What country does... | Here is the SQLite query to answer the question: What country does David Gilford play for?:
```
SELECT country FROM table_name_90 WHERE player = "david gilford"
``` | 13,770 | [
{
"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 (country VARCHAR, player VARCHAR)\n\n Question: What country does david gilford play for?\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_2 (player VARCHAR, country VARCHAR)
Question: Which player plays for australia?
Here is the SQLite query to answer to the question: Which player plays for aus... | Here is the SQLite query to answer the question: Which player plays for Australia?:
```
SELECT player FROM table_name_2 WHERE country = "Australia"
``` | 13,771 | [
{
"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_2 (player VARCHAR, country VARCHAR)\n\n Question: Which player plays for australia?\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_36 (score INTEGER, player VARCHAR)
Question: What's the sum of all phil mickelson's game scores?
Here is the SQLite query to answer to the question: What's th... | Here is the SQLite query to answer the question regarding the sum of all Phil Mickelson's game scores:
```
SELECT SUM(score) FROM table_name_36 WHERE player = "phil mickelson"
``` | 13,772 | [
{
"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 (score INTEGER, player VARCHAR)\n\n Question: What's the sum of all phil mickelson's game scores?\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_28 (round VARCHAR, opponent VARCHAR)
Question: In what round was Clyde the opponent?
Here is the SQLite query to answer to the question: In what round was Cly... | Here is the SQLite query to answer the question: In what round was Clyde the opponent?:
```
SELECT round FROM table_name_28 WHERE opponent = "Clyde"
``` | 13,773 | [
{
"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_28 (round VARCHAR, opponent VARCHAR)\n\n Question: In what round was Clyde the opponent?\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_95 (opponent VARCHAR, round VARCHAR)
Question: Who was the opponent in the round of R2?
Here is the SQLite query to answer to the question: Who was the oppone... | Here is the SQLite query to answer the question: Who was the opponent in the round of R2?:
```sql
SELECT opponent FROM table_name_95 WHERE round = "R2";
``` | 13,774 | [
{
"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_95 (opponent VARCHAR, round VARCHAR)\n\n Question: Who was the opponent in the round of R2?\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_49 (tournament VARCHAR, winning_score VARCHAR)
Question: What Tournament had a Winning score of –6 (73-68-72-69=282)?
Here is the SQLite query to answer to th... | The query you provided contains a syntax issue and a misunderstanding in how to represent the winning score. In SQLite, you typically store numbers as strings (VARCHAR), but you need to compare them appropriately.
Here is the corrected SQLite query to find the tournament with a winning score of -6:
```sql
SELECT tour... | 13,775 | [
{
"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 (tournament VARCHAR, winning_score VARCHAR)\n\n Question: What Tournament had a Winning score of –6 (73-68-72-69=282... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)
Question: What Tournament had a Victory of 1 Stroke with a Winning score of –16 (67-6... | The SQLite query you provided contains a mistake in the way it checks for the winning score. The winning score should be compared as a string, since the data type defined in the schema for `winning_score` is VARCHAR.
Here is the corrected SQLite query:
```
SELECT tournament
FROM table_name_71
WHERE margin_of_victor... | 13,776 | [
{
"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 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)\n\n Question: What Tournament had a Victory o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (opened INTEGER, line_name VARCHAR, last_extension VARCHAR)
Question: What is the average opened year of line e, which had their last extension before 2003?... | Here is the SQLite query to answer the question regarding the average opened year of "line e," which had its last extension before 2003:
```
SELECT AVG(opened) FROM table_name_40 WHERE line_name = "line e" AND last_extension < 2003;
``` | 13,777 | [
{
"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 (opened INTEGER, line_name VARCHAR, last_extension VARCHAR)\n\n Question: What is the average opened year of line e,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (round VARCHAR, rank INTEGER)
Question: What is Round, when Rank is less than 117?
Here is the SQLite query to answer to the question: What is Round, when ... | Here is the SQLite query to answer the question: What is Round, when Rank is less than 117?:
```
SELECT round FROM table_name_90 WHERE rank < 117
``` | 13,778 | [
{
"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 (round VARCHAR, rank INTEGER)\n\n Question: What is Round, when Rank is less than 117?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (year INTEGER, round VARCHAR)
Question: What is Average Year, when Round is R128 (First Round)?
Here is the SQLite query to answer to the question: What is... | Your query looks almost correct, but it seems like there's a minor issue with the casing of the string "R128 (First Round)". SQLite is case-sensitive when it comes to string comparisons, so make sure the string matches exactly as it appears in the database. If the correct casing is indeed "R128 (First Round)", your que... | 13,779 | [
{
"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_46 (year INTEGER, round VARCHAR)\n\n Question: What is Average Year, when Round is R128 (First Round)?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (championship VARCHAR, year VARCHAR, surface VARCHAR)
Question: What is Championship, when Year is greater than 2002, and when Surface is Hard?
Here is the... | Here is the SQLite query to answer the question about Championship when the Year is greater than 2002 and the Surface is Hard:
```
SELECT championship FROM table_name_50 WHERE year > 2002 AND surface = "Hard"
``` | 13,780 | [
{
"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_50 (championship VARCHAR, year VARCHAR, surface VARCHAR)\n\n Question: What is Championship, when Year is greater than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (position INTEGER, points VARCHAR, equipment VARCHAR)
Question: What is the average position for a driver with less than 54 points and husaberg-bsu as equip... | Here is the SQLite query to answer the question about the average position for a driver with less than 54 points and using "husaberg-bsu" as equipment:
```
SELECT AVG(position) FROM table_name_69 WHERE points < 54 AND equipment = "husaberg-bsu";
``` | 13,781 | [
{
"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_69 (position INTEGER, points VARCHAR, equipment VARCHAR)\n\n Question: What is the average position for a driver with l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (wins VARCHAR, points VARCHAR)
Question: How many wins does the driver with 217 points have?
Here is the SQLite query to answer to the question: How many w... | The SQLite query you provided has a small error because the `points` column is defined as a `VARCHAR`, and the value `217` should be enclosed in quotes to match the data type. Here is the corrected query:
```
SELECT wins FROM table_name_44 WHERE points = '217'
``` | 13,782 | [
{
"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 (wins VARCHAR, points VARCHAR)\n\n Question: How many wins does the driver with 217 points have?\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_64 (team VARCHAR, driver VARCHAR)
Question: what is the team when the driver is viktor jensen?
Here is the SQLite query to answer to the question: what is the... | Here is the SQLite query to answer the question about the team when the driver is Viktor Jensen:
```
SELECT team FROM table_name_64 WHERE driver = "viktor jensen"
``` | 13,783 | [
{
"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_64 (team VARCHAR, driver VARCHAR)\n\n Question: what is the team when the driver is viktor jensen?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (team VARCHAR, driver VARCHAR, rounds VARCHAR, engine VARCHAR)
Question: what is the team when the rounds is all engine is mercedes hwa and driver is sam ab... | Here is the SQLite query to answer the question:
```
SELECT team FROM table_name_54 WHERE rounds = "all" AND engine = "mercedes hwa" AND driver = "sam abay";
``` | 13,784 | [
{
"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_54 (team VARCHAR, driver VARCHAR, rounds VARCHAR, engine VARCHAR)\n\n Question: what is the team when the rounds is all... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (class VARCHAR, driver VARCHAR, chassis VARCHAR, rounds VARCHAR)
Question: what is the class when the chassis is dallara f308, rounds is all and the driver i... | Here is the SQLite query to answer the question regarding the specified conditions:
```
SELECT class FROM table_name_6 WHERE chassis = "dallara f308" AND rounds = "all" AND driver = "sam abay"
``` | 13,785 | [
{
"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 (class VARCHAR, driver VARCHAR, chassis VARCHAR, rounds VARCHAR)\n\n Question: what is the class when the chassis is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (run_4 VARCHAR, run_2 VARCHAR)
Question: What is Run 4, when Run 2 is 1:29.00?
Here is the SQLite query to answer to the question: What is Run 4, when Run ... | Here is the SQLite query to answer the question about what is Run 4 when Run 2 is 1:29.00:
```
SELECT run_4 FROM table_name_12 WHERE run_2 = "1:29.00";
``` | 13,786 | [
{
"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 (run_4 VARCHAR, run_2 VARCHAR)\n\n Question: What is Run 4, when Run 2 is 1:29.00?\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_70 (team VARCHAR, run_3 VARCHAR)
Question: What is Team, when Run 3 is 1:24.00?
Here is the SQLite query to answer to the question: What is Team, when Run 3 i... | Your SQLite query looks correct for retrieving the team associated with a specific run time. Here’s the query wrapped in code tags:
```
SELECT team FROM table_name_70 WHERE run_3 = "1:24.00";
``` | 13,787 | [
{
"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 (team VARCHAR, run_3 VARCHAR)\n\n Question: What is Team, when Run 3 is 1:24.00?\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_15 (run_1 VARCHAR, team VARCHAR)
Question: What is Run 1, when Team is "Italy (ITA) Italy I"?
Here is the SQLite query to answer to the question: What is Run ... | Here is the SQLite query to answer the question about what Run 1 is when the Team is "Italy (ITA) Italy I":
```
SELECT run_1 FROM table_name_15 WHERE team = "Italy (ITA) Italy I";
``` | 13,788 | [
{
"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_15 (run_1 VARCHAR, team VARCHAR)\n\n Question: What is Run 1, when Team is \"Italy (ITA) Italy I\"?\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_86 (athletes VARCHAR, run_2 VARCHAR)
Question: What is Athletes, when Run 2 is 1:24.77?
Here is the SQLite query to answer to the question: What is Athletes, ... | Your SQLite query is correctly formatted to retrieve the athletes for a specific run time. Here it is wrapped as you requested:
```
SELECT athletes FROM table_name_86 WHERE run_2 = "1:24.77";
``` | 13,789 | [
{
"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 (athletes VARCHAR, run_2 VARCHAR)\n\n Question: What is Athletes, when Run 2 is 1:24.77?\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_21 (run_4 VARCHAR, run_2 VARCHAR)
Question: What is Run 4, when Run 2 is 1:25.84?
Here is the SQLite query to answer to the question: What is Run 4, when Run ... | Here is the SQLite query to answer the question regarding Run 4 when Run 2 is 1:25.84:
```
SELECT run_4 FROM table_name_21 WHERE run_2 = "1:25.84";
``` | 13,790 | [
{
"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 (run_4 VARCHAR, run_2 VARCHAR)\n\n Question: What is Run 4, when Run 2 is 1:25.84?\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_89 (run_1 VARCHAR, athletes VARCHAR)
Question: What is Run 1, when Athletes is "Theo Kitt & Friedrich Kuhn"?
Here is the SQLite query to answer to the questio... | Your query is almost correct, but the case sensitivity of string literals in SQL can depend on the collation settings of the database. If the athlete names are stored in a case-sensitive manner, it’s best to use the same case as stored in the database.
Here is the refined SQL query:
```
SELECT run_1 FROM table_name_8... | 13,791 | [
{
"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 (run_1 VARCHAR, athletes VARCHAR)\n\n Question: What is Run 1, when Athletes is \"Theo Kitt & Friedrich Kuhn\"?\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_43 (date VARCHAR, attendance INTEGER)
Question: What is Date, when Attendance is less than 521?
Here is the SQLite query to answer to the question: What is Da... | Here is the SQLite query to answer the question "What is Date, when Attendance is less than 521?":
```
SELECT date FROM table_name_43 WHERE attendance < 521;
``` | 13,792 | [
{
"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_43 (date VARCHAR, attendance INTEGER)\n\n Question: What is Date, when Attendance is less than 521?\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_14 (away VARCHAR, home VARCHAR)
Question: What is Away, when Home is "marathon"?
Here is the SQLite query to answer to the question: What is Away, when Home i... | Here is the SQLite query to answer the question, formatted as requested:
```
SELECT away FROM table_name_14 WHERE home = "marathon"
``` | 13,793 | [
{
"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 (away VARCHAR, home VARCHAR)\n\n Question: What is Away, when Home is \"marathon\"?\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_31 (score VARCHAR, home VARCHAR)
Question: What is Score, when Home is "marathon"?
Here is the SQLite query to answer to the question: What is Score, when Hom... | Your provided SQLite query is correct. Here it is wrapped properly:
```
SELECT score FROM table_name_31 WHERE home = "marathon";
``` | 13,794 | [
{
"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_31 (score VARCHAR, home VARCHAR)\n\n Question: What is Score, when Home is \"marathon\"?\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_8 (attendance VARCHAR, away VARCHAR)
Question: What is the total number of Attendance(s), when Away is Real Juventud?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question regarding the total number of Attendances when Away is Real Juventud:
```
SELECT COUNT(attendance) FROM table_name_8 WHERE away = "Real Juventud";
``` | 13,795 | [
{
"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_8 (attendance VARCHAR, away VARCHAR)\n\n Question: What is the total number of Attendance(s), when Away is Real Juventu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (record VARCHAR, h_a_n VARCHAR, date VARCHAR)
Question: What is Record, when H/A/N is "A", and when Date is "February 1"?
Here is the SQLite query to answer... | Here is the SQLite query to answer your question:
```
SELECT record FROM table_name_2 WHERE h_a_n = "A" AND date = "February 1";
``` | 13,796 | [
{
"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_2 (record VARCHAR, h_a_n VARCHAR, date VARCHAR)\n\n Question: What is Record, when H/A/N is \"A\", and when Date is \"F... | |
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, opponent VARCHAR)
Question: What is Date, when Opponent is "Philadelphia 76ers"?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question regarding the dates when the opponent is "Philadelphia 76ers":
```
SELECT date FROM table_name_6 WHERE opponent = "Philadelphia 76ers"
``` | 13,797 | [
{
"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, opponent VARCHAR)\n\n Question: What is Date, when Opponent is \"Philadelphia 76ers\"?\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_98 (opponent VARCHAR, record VARCHAR)
Question: What is Opponent, when Record is 17-44?
Here is the SQLite query to answer to the question: What is Opponent, ... | Here is the SQLite query to answer the question regarding the opponent when the record is 17-44:
```
SELECT opponent FROM table_name_98 WHERE record = "17-44";
``` | 13,798 | [
{
"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 (opponent VARCHAR, record VARCHAR)\n\n Question: What is Opponent, when Record is 17-44?\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 (date VARCHAR, h_a_n VARCHAR, score VARCHAR)
Question: What is Date, when H/A/N is "H", and when Score is 112-118?
Here is the SQLite query to answer to th... | It looks like there is a slight issue with the condition for the `score`. In SQLite, if you're looking for rows with scores in a range (like 112 to 118), you should use a numerical comparison rather than checking for a string value. Assuming the `score` column contains integer values, you would rewrite the query as fol... | 13,799 | [
{
"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 (date VARCHAR, h_a_n VARCHAR, score VARCHAR)\n\n Question: What is Date, when H/A/N is \"H\", and when Score is 112-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.