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_61 (score VARCHAR, to_par VARCHAR, player VARCHAR)
Question: What is the Score of the Round with Player Aaron Baddeley having a To par of +2?
Here is the SQLi... | Here is the SQLite query to answer the question about the score of the round with player Aaron Baddeley having a To par of +2:
```
SELECT score FROM table_name_61 WHERE to_par = "+2" AND player = "Aaron Baddeley";
``` | 16,200 | [
{
"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 (score VARCHAR, to_par VARCHAR, player VARCHAR)\n\n Question: What is the Score of the Round with Player Aaron Badde... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR)
Question: What is Charlie Wi's To par?
Here is the SQLite query to answer to the question: What is Charlie Wi's To par?:
`... | Here is the SQLite query to answer the question about Charlie Wi's To par:
```sql
SELECT to_par FROM table_name_29 WHERE player = "Charlie Wi";
``` | 16,201 | [
{
"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 (to_par VARCHAR, player VARCHAR)\n\n Question: What is Charlie Wi's To par?\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_99 (country VARCHAR, place VARCHAR, score VARCHAR)
Question: What is the Country of the T8 Place Player with a Score of 68-74=142?
Here is the SQLite query to... | It looks like there is a misunderstanding in your suggested query regarding how the score comparison is formulated. The expression `68 - 74 = 142` is not correct for filtering scores.
Assuming that the score of "68-74=142" indicates that you're looking for a player whose total score is 142, the correct comparison shou... | 16,202 | [
{
"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 (country VARCHAR, place VARCHAR, score VARCHAR)\n\n Question: What is the Country of the T8 Place Player with a Scor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (player VARCHAR, place VARCHAR, score VARCHAR)
Question: What is the T8 Place Player with a Score of 68-74=142?
Here is the SQLite query to answer to the q... | The provided query has a mistake in the condition for the score. The expression `68 - 74 = 142` is not correct for checking scores, because it's trying to compare the result of a subtraction with 142 rather than checking if the score is within a range. Instead, you need to check if the score is equal to "142".
Here is... | 16,203 | [
{
"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 (player VARCHAR, place VARCHAR, score VARCHAR)\n\n Question: What is the T8 Place Player with a Score of 68-74=142?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (country VARCHAR, player VARCHAR)
Question: What Country is David Toms from?
Here is the SQLite query to answer to the question: What Country is David Toms... | Here is the SQLite query to answer the question: What Country is David Toms from?:
```
SELECT country FROM table_name_84 WHERE player = "David Toms";
``` | 16,204 | [
{
"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 (country VARCHAR, player VARCHAR)\n\n Question: What Country is David Toms from?\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_6 (to_par VARCHAR, country VARCHAR, player VARCHAR)
Question: What is the To par for Robert Allenby from Australia
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about the To par for Robert Allenby from Australia:
```
SELECT to_par FROM table_name_6 WHERE country = "Australia" AND player = "Robert Allenby";
``` | 16,205 | [
{
"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 (to_par VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: What is the To par for Robert Allenby from Australia\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR)
Question: When Rocco Mediate of the United States has a To par of +2, what was his score?
... | Here is the SQLite query to answer the question: When Rocco Mediate of the United States has a To par of +2, what was his score?:
```sql
SELECT score FROM table_name_43 WHERE to_par = "+2" AND country = "united states" AND player = "rocco mediate";
``` | 16,206 | [
{
"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 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR)\n\n Question: When Rocco Mediate of the United Stat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (score VARCHAR, player VARCHAR)
Question: What is the score for Greg Norman
Here is the SQLite query to answer to the question: What is the score for Greg ... | Here is the SQLite query to answer the question about the score for Greg Norman:
```
SELECT score FROM table_name_84 WHERE player = "Greg Norman";
``` | 16,207 | [
{
"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 (score VARCHAR, player VARCHAR)\n\n Question: What is the score for Greg Norman\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (country VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR)
Question: When Rocco Mediate has a To par of +2 and a 69-73=142 score, what is the country ... | It looks like there is a mistake in the SQL query, particularly in the score comparison. The score should be compared directly to the value "142", and the calculation should not be part of the SQL syntax. Here’s the corrected version of the query:
```sql
SELECT country FROM table_name_36 WHERE to_par = "+2" AND score ... | 16,208 | [
{
"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 (country VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR)\n\n Question: When Rocco Mediate has a To par of +2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (country VARCHAR, place VARCHAR, score VARCHAR)
Question: What is the country listed that has a place of t4 with a score of 72-70=142?
Here is the SQLite q... | The provided SQL query contains a logical error in the condition that checks the score. The expression `72 - 70 = 142` will never be true, as `72 - 70` equals `2`, not `142`. Instead, you should check if the score is equal to `142` directly.
Here's the corrected SQLite query:
```
SELECT country FROM table_name_85 WHE... | 16,209 | [
{
"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 (country VARCHAR, place VARCHAR, score VARCHAR)\n\n Question: What is the country listed that has a place of t4 with... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
Question: What is the Home team of the Kidderminster Harriers Away game?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about the home team of the Kidderminster Harriers away game:
```
SELECT home_team FROM table_name_20 WHERE away_team = "Kidderminster Harriers";
``` | 16,210 | [
{
"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 (home_team VARCHAR, away_team VARCHAR)\n\n Question: What is the Home team of the Kidderminster Harriers Away game?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR)
Question: What is the Date of the Sutton United Home game?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question about the date of the Sutton United home game:
```
SELECT date FROM table_name_35 WHERE home_team = "Sutton United";
``` | 16,211 | [
{
"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 (date VARCHAR, home_team VARCHAR)\n\n Question: What is the Date of the Sutton United Home game?\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_78 (date VARCHAR, score VARCHAR, tie_no VARCHAR)
Question: What is the Date of Tie no 35 with a Score of 3–2?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the Date of Tie no 35 with a Score of 3–2:
```
SELECT date FROM table_name_78 WHERE score = "3–2" AND tie_no = "35";
``` | 16,212 | [
{
"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, score VARCHAR, tie_no VARCHAR)\n\n Question: What is the Date of Tie no 35 with a Score of 3–2?\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_27 (tie_no VARCHAR, away_team VARCHAR, date VARCHAR, score VARCHAR)
Question: What is the Tie no of the Carlisle United Away game on 17/11/1990 with a Score of... | Here is the SQLite query to answer the question about the Tie no of the Carlisle United Away game on 17/11/1990 with a Score of 5–0:
```
SELECT tie_no FROM table_name_27 WHERE date = "17/11/1990" AND score = "5–0" AND away_team = "Carlisle United"
``` | 16,213 | [
{
"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 (tie_no VARCHAR, away_team VARCHAR, date VARCHAR, score VARCHAR)\n\n Question: What is the Tie no of the Carlisle Un... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (home_team VARCHAR, tie_no VARCHAR)
Question: What is the Home team of Tie no 40?
Here is the SQLite query to answer to the question: What is the Home team... | Here is the SQLite query to answer the question "What is the Home team of Tie no 40?":
```
SELECT home_team FROM table_name_35 WHERE tie_no = "40";
``` | 16,214 | [
{
"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 (home_team VARCHAR, tie_no VARCHAR)\n\n Question: What is the Home team of Tie no 40?\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_46 (away_team VARCHAR, score VARCHAR, home_team VARCHAR)
Question: What is the Away team of the Merthyr Tydfil Home game with a Score of 1–1?
Here is the SQLi... | Here is the SQLite query to answer the question regarding the Away team of the Merthyr Tydfil Home game with a Score of 1–1:
```
SELECT away_team FROM table_name_46 WHERE score = "1–1" AND home_team = "merthyr tydfil";
``` | 16,215 | [
{
"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 (away_team VARCHAR, score VARCHAR, home_team VARCHAR)\n\n Question: What is the Away team of the Merthyr Tydfil Home... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (attendance INTEGER, home_team VARCHAR)
Question: What is the lowest Attendance, when Home Team is "Welling United"?
Here is the SQLite query to answer to ... | Here is the SQLite query that answers the question about the lowest attendance for "Welling United":
```
SELECT MIN(attendance) FROM table_name_26 WHERE home_team = "Welling United";
``` | 16,216 | [
{
"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 (attendance INTEGER, home_team VARCHAR)\n\n Question: What is the lowest Attendance, when Home Team is \"Welling Uni... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (score VARCHAR, attendance VARCHAR)
Question: What is Score, when Attendance is "303"?
Here is the SQLite query to answer to the question: What is Score, w... | It looks like you need to retrieve the score from the `table_name_14` table where the attendance is "303". However, since "303" is specified as a string value in your question, it should be surrounded by single quotes to signify that it's a string in SQL. Here is the corrected SQLite query:
```
SELECT score FROM table... | 16,217 | [
{
"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 (score VARCHAR, attendance VARCHAR)\n\n Question: What is Score, when Attendance is \"303\"?\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_50 (place VARCHAR, country VARCHAR, player VARCHAR)
Question: Which place is Andy Bean from the United States?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question: Which place is Andy Bean from the United States?:
```
SELECT place FROM table_name_50 WHERE country = "united states" AND player = "andy bean";
``` | 16,218 | [
{
"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 (place VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: Which place is Andy Bean from the United States?\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_3 (player VARCHAR, country VARCHAR, place VARCHAR)
Question: Which United States player has a place of T3?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about which United States player has a place of T3:
```
SELECT player FROM table_name_3 WHERE country = "united states" AND place = "t3";
``` | 16,219 | [
{
"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_3 (player VARCHAR, country VARCHAR, place VARCHAR)\n\n Question: Which United States player has a place of T3?\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_41 (country VARCHAR, player VARCHAR)
Question: What country is Lee Trevino from?
Here is the SQLite query to answer to the question: What country is Lee Trevi... | Here is the SQLite query to answer the question about what country Lee Trevino is from:
```
SELECT country FROM table_name_41 WHERE player = "lee trevino"
``` | 16,220 | [
{
"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 (country VARCHAR, player VARCHAR)\n\n Question: What country is Lee Trevino from?\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 (state VARCHAR, rank__2012_ VARCHAR)
Question: What is the state that has the 2012 rank of 43?
Here is the SQLite query to answer to the question: What is ... | Your SQLite query is almost correct, but since `rank__2012_` is defined as a VARCHAR in your schema, the value you are comparing should also be treated as a string. Therefore, you need to include the rank in quotes.
Here is the corrected query wrapped in the appropriate code block:
```sql
SELECT state FROM table_name... | 16,221 | [
{
"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 (state VARCHAR, rank__2012_ VARCHAR)\n\n Question: What is the state that has the 2012 rank of 43?\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_45 (year INTEGER, apparatus VARCHAR, rank_final VARCHAR)
Question: What is the highest Year, when Apparatus is "Vault", and when Rank-Final is less than 9?
He... | Here is the SQLite query you requested, wrapped appropriately:
```
SELECT MAX(year) FROM table_name_45 WHERE apparatus = "Vault" AND rank_final < 9;
``` | 16,222 | [
{
"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_45 (year INTEGER, apparatus VARCHAR, rank_final VARCHAR)\n\n Question: What is the highest Year, when Apparatus is \"Va... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (year VARCHAR, apparatus VARCHAR, competition_description VARCHAR, rank_final VARCHAR)
Question: What is Year, when Competition Description is "U.S. Champio... | Here is the SQLite query to answer the question based on the provided criteria:
```
SELECT year FROM table_name_79
WHERE competition_description = "U.S. Championships"
AND rank_final < 3
AND apparatus = "All-Around";
``` | 16,223 | [
{
"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 (year VARCHAR, apparatus VARCHAR, competition_description VARCHAR, rank_final VARCHAR)\n\n Question: What is Year, w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (apparatus VARCHAR, rank_final VARCHAR, competition_description VARCHAR)
Question: What is Apparatus, when Rank-Final is greater than 6, and when Competition... | Here is the SQLite query that answers the question:
```sql
SELECT apparatus FROM table_name_9 WHERE rank_final > 6 AND competition_description = "U.S. Championships";
``` | 16,224 | [
{
"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 (apparatus VARCHAR, rank_final VARCHAR, competition_description VARCHAR)\n\n Question: What is Apparatus, when Rank-F... | |
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__1st_leg_ VARCHAR, aggregate VARCHAR)
Question: What was the first leg home that had a total aggregate of 3-1?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about the first leg home that had a total aggregate of 3-1:
```sql
SELECT home__1st_leg_ FROM table_name_90 WHERE aggregate = '3-1'
``` | 16,225 | [
{
"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__1st_leg_ VARCHAR, aggregate VARCHAR)\n\n Question: What was the first leg home that had a total aggregate of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (aggregate VARCHAR)
Question: What was the 1st leg that had a 4-2 aggregate?
Here is the SQLite query to answer to the question: What was the 1st leg that ... | Your provided query is almost correct, but it seems to be missing the context of what you expect as a result. To answer the question "What was the 1st leg that had a 4-2 aggregate?", you might want to select a specific column that represents the first leg or more details about the match, assuming there could be such ad... | 16,226 | [
{
"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_33 (aggregate VARCHAR)\n\n Question: What was the 1st leg that had a 4-2 aggregate?\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_82 (home__1st_leg_ VARCHAR)
Question: What was the 1st leg that had a 1st get home for the Boca Juniors?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the 1st leg that had a home game for the Boca Juniors:
```sql
SELECT 1 AS st_leg FROM table_name_82 WHERE home__1st_leg_ = "boca juniors" LIMIT 1
```
This query selects a constant value of 1 as `st_leg` from the table `table_name_82` where the `home__1st_leg_` col... | 16,227 | [
{
"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 (home__1st_leg_ VARCHAR)\n\n Question: What was the 1st leg that had a 1st get home for the Boca Juniors?\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_41 (home__2nd_leg_ VARCHAR)
Question: What was the 2nd leg that had the Estudiantes La Plata home for the 2nd leg?
Here is the SQLite query to answer to the q... | Here's the SQLite query to answer the question regarding the 2nd leg that had Estudiantes La Plata as the home team for the 2nd leg:
```
SELECT 2 AS nd_leg
FROM table_name_41
WHERE LOWER(home__2nd_leg_) = "estudiantes la plata";
```
This query includes the `LOWER` function to ensure that the comparison is case-ins... | 16,228 | [
{
"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 (home__2nd_leg_ VARCHAR)\n\n Question: What was the 2nd leg that had the Estudiantes La Plata home for the 2nd leg?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (player VARCHAR, place VARCHAR, score VARCHAR)
Question: Can you tell me the Player that has the Place of t5, and the Score of 73-72-71-75=291?
Here is the... | It looks like there is a mistake in your SQL query regarding the calculation of the score. The score should be represented as a single value (in this case, '291') rather than an equation. You should treat the score as a string since it is defined as VARCHAR in the schema.
Here's the corrected SQL query:
```
SELECT p... | 16,229 | [
{
"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_33 (player VARCHAR, place VARCHAR, score VARCHAR)\n\n Question: Can you tell me the Player that has the Place of t5, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
Question: Can you tell me the average Money ($) that has the To par larger than 14, and the Player of ed ... | Here is the SQLite query to answer the question regarding the average money for entries with a `to_par` larger than 14 and where the player is "ed dudley":
```
SELECT AVG(money___) AS average_money FROM table_name_87 WHERE to_par > 14 AND player = "ed dudley"
``` | 16,230 | [
{
"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 (money___ INTEGER, to_par VARCHAR, player VARCHAR)\n\n Question: Can you tell me the average Money ($) that has the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (transfer_window VARCHAR, name VARCHAR)
Question: What is the transfer window for Hleb?
Here is the SQLite query to answer to the question: What is the tra... | Here is the SQLite query to answer the question: What is the transfer window for Hleb?:
```
SELECT transfer_window FROM table_name_69 WHERE name = 'Hleb';
``` | 16,231 | [
{
"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 (transfer_window VARCHAR, name VARCHAR)\n\n Question: What is the transfer window for Hleb?\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_49 (ends INTEGER, name VARCHAR)
Question: What is the lowest ends for Dani Alves?
Here is the SQLite query to answer to the question: What is the lowest ends ... | Here is the SQLite query to answer the question about the lowest ends for Dani Alves:
```
SELECT MIN(ends) FROM table_name_49 WHERE name = "Dani Alves"
``` | 16,232 | [
{
"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 (ends INTEGER, name VARCHAR)\n\n Question: What is the lowest ends for Dani Alves?\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_64 (name VARCHAR, type VARCHAR, transfer_fee VARCHAR)
Question: What is the name of the person with a type of transfer, and a Transfer fee of €8m + €2m in vari... | Here is the SQLite query you need:
```
SELECT name FROM table_name_64 WHERE type = "transfer" AND transfer_fee = "€8m + €2m in variables"
``` | 16,233 | [
{
"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 (name VARCHAR, type VARCHAR, transfer_fee VARCHAR)\n\n Question: What is the name of the person with a type of trans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (to_par VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
Question: What is To par, when Margin of Victory is "2 Strokes", and when Tournament is "Wom... | Here is the SQLite query to answer the question about the "To par" value when the "Margin of Victory" is "2 Strokes" and the "Tournament" is "Women's British Open":
```
SELECT to_par FROM table_name_98 WHERE margin_of_victory = "2 Strokes" AND tournament = "Women's British Open"
``` | 16,234 | [
{
"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 (to_par VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)\n\n Question: What is To par, when Margin of Victory... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (date VARCHAR, runner_s__up VARCHAR)
Question: What is Date, when Runner(s)-Up is "Bo-Mee Lee"?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about the date when the runner(s)-up is "Bo-Mee Lee":
```
SELECT date FROM table_name_65 WHERE runner_s__up = "Bo-Mee Lee"
``` | 16,235 | [
{
"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 (date VARCHAR, runner_s__up VARCHAR)\n\n Question: What is Date, when Runner(s)-Up is \"Bo-Mee Lee\"?\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_36 (to_par VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
Question: What is To par, when Margin of Victory is "2 Strokes", and when Tournament is "Wom... | Your SQLite query looks good. Here it is wrapped correctly:
```
SELECT to_par FROM table_name_36 WHERE margin_of_victory = "2 Strokes" AND tournament = "Women's British Open";
```
Just make sure that "2 Strokes" and "Women's British Open" are exactly as they appear in your database, paying attention to casing and ex... | 16,236 | [
{
"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 (to_par VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)\n\n Question: What is To par, when Margin of Victory... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (score VARCHAR, player VARCHAR)
Question: What did Steve Stricker score?
Here is the SQLite query to answer to the question: What did Steve Stricker score?... | Here is the SQLite query to answer the question: What did Steve Stricker score?:
```
SELECT score FROM table_name_54 WHERE player = "Steve Stricker";
``` | 16,237 | [
{
"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 (score VARCHAR, player VARCHAR)\n\n Question: What did Steve Stricker score?\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_30 (number_of_clubs INTEGER, season VARCHAR, total_wins VARCHAR)
Question: What is the sum of the number of clubs in seasons before 1992 with more than 3 total... | Here is the SQLite query to answer the question you provided:
```
SELECT SUM(number_of_clubs)
FROM table_name_30
WHERE season < '1992' AND total_wins > '3'
```
Note: In the query, I used single quotes for the year and for the total wins because they are stored as VARCHAR in your table schema. Make sure that the to... | 16,238 | [
{
"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_30 (number_of_clubs INTEGER, season VARCHAR, total_wins VARCHAR)\n\n Question: What is the sum of the number of clubs i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (season INTEGER, number_of_clubs VARCHAR, runners_up VARCHAR)
Question: What is the sum of the season with 8 clubs and shanghai as the runners-up?
Here is ... | Here is the SQLite query to answer the question regarding the sum of the seasons with 8 clubs and Shanghai as the runners-up:
```
SELECT SUM(season) FROM table_name_63 WHERE number_of_clubs = '8' AND runners_up = 'shanghai';
``` | 16,239 | [
{
"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_63 (season INTEGER, number_of_clubs VARCHAR, runners_up VARCHAR)\n\n Question: What is the sum of the season with 8 clu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (third_place VARCHAR, total_wins VARCHAR, winners VARCHAR)
Question: Who is third-place with less than 5 total wins with china b as the winners?
Here is th... | Your query looks mostly correct, but since `total_wins` is defined as a `VARCHAR`, you should convert it to an integer to perform the comparison. Here's the revised SQLite query:
```sql
SELECT third_place
FROM table_name_89
WHERE CAST(total_wins AS INTEGER) < 5
AND winners = "china b";
``` | 16,240 | [
{
"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 (third_place VARCHAR, total_wins VARCHAR, winners VARCHAR)\n\n Question: Who is third-place with less than 5 total w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (total_wins INTEGER, number_of_clubs VARCHAR, season VARCHAR, runners_up VARCHAR)
Question: What is the lowest total number of wins in a season before 1989 ... | Here is the SQLite query to answer the question regarding the lowest total number of wins in a season before 1989, with Tianjin as the runners-up and more than 8 clubs:
```
SELECT MIN(total_wins)
FROM table_name_92
WHERE season < '1989'
AND runners_up = 'tianjin'
AND number_of_clubs > '8';
``` | 16,241 | [
{
"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 (total_wins INTEGER, number_of_clubs VARCHAR, season VARCHAR, runners_up VARCHAR)\n\n Question: What is the lowest t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (result VARCHAR, rank_number VARCHAR, date VARCHAR)
Question: What was the result for Rank 2 on December 6, 1969?
Here is the SQLite query to answer to the... | Here's the SQLite query formatted as requested:
```
SELECT result FROM table_name_23 WHERE rank_number = "2" AND date = "december 6, 1969";
``` | 16,242 | [
{
"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_23 (result VARCHAR, rank_number VARCHAR, date VARCHAR)\n\n Question: What was the result for Rank 2 on December 6, 1969... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (rank_number VARCHAR, opponent_number VARCHAR)
Question: What was the rank # for opponent AT Baylor?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the rank # for the opponent AT Baylor:
```
SELECT rank_number FROM table_name_27 WHERE opponent_number = "at baylor";
``` | 16,243 | [
{
"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 (rank_number VARCHAR, opponent_number VARCHAR)\n\n Question: What was the rank # for opponent AT Baylor?\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_89 (result VARCHAR, opponent_number VARCHAR)
Question: What is the result for opponent TCU?
Here is the SQLite query to answer to the question: What is the re... | Here is the SQLite query to answer the question regarding the result for opponent TCU:
```
SELECT result FROM table_name_89 WHERE opponent_number = "TCU";
``` | 16,244 | [
{
"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 (result VARCHAR, opponent_number VARCHAR)\n\n Question: What is the result for opponent TCU?\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_81 (date VARCHAR, attendance VARCHAR)
Question: What date was the attendance 82,500?
Here is the SQLite query to answer to the question: What date was the att... | Here is the SQLite query to answer the question: What date was the attendance 82,500?:
```
SELECT date FROM table_name_81 WHERE attendance = "82,500";
``` | 16,245 | [
{
"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_81 (date VARCHAR, attendance VARCHAR)\n\n Question: What date was the attendance 82,500?\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_3 (league_cup INTEGER, total INTEGER)
Question: Which League Cup has a Total smaller than 1?
Here is the SQLite query to answer to the question: Which League ... | The provided SQLite query is not correctly formulated to answer the question. The question asks for the specific League Cups that have a Total smaller than 1, not the sum of the `league_cup`.
Here is the corrected query:
```
SELECT league_cup FROM table_name_3 WHERE total < 1
```
This query retrieves all `league_c... | 16,246 | [
{
"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_3 (league_cup INTEGER, total INTEGER)\n\n Question: Which League Cup has a Total smaller than 1?\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_69 (total INTEGER, league_cup INTEGER)
Question: Which Total has a League Cup smaller than 0?
Here is the SQLite query to answer to the question: Which Total ... | Here is the correct SQLite query to answer the question regarding which Total has a League Cup smaller than 0:
```sql
SELECT total FROM table_name_69 WHERE league_cup < 0;
```
This query will return all the totals where the league_cup is smaller than 0. If you only want the maximum total with that condition, your or... | 16,247 | [
{
"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 (total INTEGER, league_cup INTEGER)\n\n Question: Which Total has a League Cup smaller than 0?\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_68 (championship INTEGER, league_cup VARCHAR, fa_cup VARCHAR)
Question: Which Championship has a League Cup larger than 0, and a FA Cup larger than 0?
Here is... | The SQLite query you provided is almost correct, but it retrieves the minimum `championship` value instead of listing all championships that meet the criteria. If you want to select all championships that have both a League Cup larger than 0 and a FA Cup larger than 0, the query should use `DISTINCT` to ensure unique v... | 16,248 | [
{
"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 (championship INTEGER, league_cup VARCHAR, fa_cup VARCHAR)\n\n Question: Which Championship has a League Cup larger ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (championship INTEGER, league_cup INTEGER)
Question: Which Championship has a League Cup smaller than 0?
Here is the SQLite query to answer to the question... | The SQL query you've provided calculates the average of the `championship` column for records where the `league_cup` is smaller than 0. However, the question specifically asks which Championship has a League Cup smaller than 0, which would typically require selecting the `championship` values themselves rather than the... | 16,249 | [
{
"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 (championship INTEGER, league_cup INTEGER)\n\n Question: Which Championship has a League Cup smaller than 0?\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_3 (age__as_of_1_february_2014_ VARCHAR, rank VARCHAR, death_date VARCHAR)
Question: Which Age (as of 1 February 2014) has a Rank smaller than 9, and a Death da... | Here is the SQLite query to answer the question regarding the Age (as of 1 February 2014) with a Rank smaller than 9 and a Death date of 24 January 2007:
```
SELECT age__as_of_1_february_2014_ FROM table_name_3 WHERE rank < '9' AND death_date = '24 january 2007';
```
Please note that the comparison of `rank` assumes... | 16,250 | [
{
"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_3 (age__as_of_1_february_2014_ VARCHAR, rank VARCHAR, death_date VARCHAR)\n\n Question: Which Age (as of 1 February 201... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (death_date VARCHAR, rank VARCHAR, age__as_of_1_february_2014_ VARCHAR)
Question: Which Death date has a Rank smaller than 49, and an Age (as of 1 February ... | Here is the SQLite query to answer the question regarding the death date, rank, and age:
```
SELECT death_date FROM table_name_65 WHERE rank < 49 AND age__as_of_1_february_2014_ = "112 years, 172 days";
``` | 16,251 | [
{
"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 (death_date VARCHAR, rank VARCHAR, age__as_of_1_february_2014_ VARCHAR)\n\n Question: Which Death date has a Rank sm... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (death_date VARCHAR, place_of_death_or_residence VARCHAR, age__as_of_1_february_2014_ VARCHAR)
Question: Which Death date has a Place of death or residence ... | Here is the SQLite query to answer the question:
```
SELECT death_date FROM table_name_49 WHERE place_of_death_or_residence = "united states" AND age__as_of_1_february_2014_ = "111 years, 61 days"
``` | 16,252 | [
{
"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 (death_date VARCHAR, place_of_death_or_residence VARCHAR, age__as_of_1_february_2014_ VARCHAR)\n\n Question: Which D... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (record VARCHAR, date VARCHAR)
Question: What was the record on Feb 25?
Here is the SQLite query to answer to the question: What was the record on Feb 25?:... | Here is the SQLite query to answer the question about the record on Feb 25:
```
SELECT record FROM table_name_83 WHERE date = "Feb 25";
``` | 16,253 | [
{
"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 (record VARCHAR, date VARCHAR)\n\n Question: What was the record on Feb 25?\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_26 (streak VARCHAR, opponent VARCHAR)
Question: What was the streak when the opponent was @ new jersey nets?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about the streak when the opponent was "@ new jersey nets":
```
SELECT streak FROM table_name_26 WHERE opponent = "@ new jersey nets"
``` | 16,254 | [
{
"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 (streak VARCHAR, opponent VARCHAR)\n\n Question: What was the streak when the opponent was @ new jersey nets?\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_41 (year INTEGER, competition VARCHAR)
Question: What year was the competition vitry-sur-seine humarathon?
Here is the SQLite query to answer to the question:... | The query you provided uses the `AVG` function, which is not necessary if you are simply looking for the year or years associated with the specified competition. If there is a single year for the competition "vitry-sur-seine humarathon," you can use a simpler `SELECT` statement. Here's the corrected query:
```sql
SELE... | 16,255 | [
{
"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 (year INTEGER, competition VARCHAR)\n\n Question: What year was the competition vitry-sur-seine humarathon?\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_77 (goal_difference INTEGER, losses VARCHAR, points VARCHAR, club VARCHAR)
Question: Which Goal Difference has 28 Points, and a Club of cd cartagena, more than... | ```sql
SELECT goal_difference
FROM table_name_77
WHERE points = '28' AND club = 'cd cartagena' AND losses > '15';
``` | 16,256 | [
{
"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 (goal_difference INTEGER, losses VARCHAR, points VARCHAR, club VARCHAR)\n\n Question: Which Goal Difference has 28 P... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR)
Question: How much Goal Difference has less than 9 Losses, and 8 Draws, and more th... | Your SQLite query is almost correct, but there are a few adjustments needed regarding the conditions for the columns `losses`, `draws`, and `points`, especially considering their data types in the schema. Given that `losses`, `draws`, and `points` are stored as `VARCHAR`, you should ensure to convert them to integers f... | 16,257 | [
{
"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 (goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR)\n\n Question: How much Goal Difference has ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (points VARCHAR, draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)
Question: How many points have more than 14 wins, a goal difference of 14, and more t... | Here is the SQLite query to answer the question:
```
SELECT COUNT(points) FROM table_name_13 WHERE wins > 14 AND goal_difference = 14 AND draws > 6
``` | 16,258 | [
{
"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 (points VARCHAR, draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)\n\n Question: How many points have more than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (played INTEGER, losses VARCHAR, goals_for VARCHAR, goals_against VARCHAR, wins VARCHAR)
Question: Which Played has Goals against larger than 34, and Wins s... | Your query looks mostly correct, but it seems you are asking for which rows match the specified conditions rather than averaging the `played` values. If you're looking for the specific `played` values that meet the criteria, you would want to select those rather than calculate the average. Here is the modified query:
... | 16,259 | [
{
"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 (played INTEGER, losses VARCHAR, goals_for VARCHAR, goals_against VARCHAR, wins VARCHAR)\n\n Question: Which Played ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (draws INTEGER, goals_for VARCHAR, goals_against VARCHAR, position VARCHAR)
Question: Which Draws has Goals against smaller than 47, and a Position smaller ... | Here is the SQLite query you requested, wrapped as specified:
```
SELECT MIN(draws) FROM table_name_28 WHERE goals_against < 47 AND position < 13 AND goals_for = 52
``` | 16,260 | [
{
"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 (draws INTEGER, goals_for VARCHAR, goals_against VARCHAR, position VARCHAR)\n\n Question: Which Draws has Goals agai... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (longest_span_in_s_metre___feet__ VARCHAR, location VARCHAR)
Question: How long is the bridge in Villeneuve-sur-Lot?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question about the length of the bridge in Villeneuve-sur-Lot:
```
SELECT longest_span_in_s_metre___feet__ FROM table_name_40 WHERE location = "Villeneuve-sur-Lot";
``` | 16,261 | [
{
"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 (longest_span_in_s_metre___feet__ VARCHAR, location VARCHAR)\n\n Question: How long is the bridge in Villeneuve-sur-... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (name VARCHAR, completed VARCHAR)
Question: Which bridge was completed in 1928?
Here is the SQLite query to answer to the question: Which bridge was comple... | Here is the SQLite query to answer the question: Which bridge was completed in 1928?:
```
SELECT name FROM table_name_57 WHERE completed = "1928"
``` | 16,262 | [
{
"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 (name VARCHAR, completed VARCHAR)\n\n Question: Which bridge was completed in 1928?\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_97 (longest_span_in_s_metre___feet__ VARCHAR, land VARCHAR, name VARCHAR)
Question: How long is the UK's Ballochmyle Viaduct?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about the length of the UK's Ballochmyle Viaduct:
```
SELECT longest_span_in_s_metre___feet__ FROM table_name_97 WHERE land = "uk" AND name = "ballochmyle viaduct"
``` | 16,263 | [
{
"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 (longest_span_in_s_metre___feet__ VARCHAR, land VARCHAR, name VARCHAR)\n\n Question: How long is the UK's Ballochmyl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (arch_type VARCHAR, name VARCHAR)
Question: What kind of arch is the pont de montanges (pont-des-pierres)?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about the type of arch for "pont de montanges (pont-des-pierres)":
```
SELECT arch_type FROM table_name_23 WHERE name = "pont de montanges (pont-des-pierres)";
``` | 16,264 | [
{
"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_23 (arch_type VARCHAR, name VARCHAR)\n\n Question: What kind of arch is the pont de montanges (pont-des-pierres)?\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_6 (launch_site VARCHAR, carrier_rocket VARCHAR, cospar_id VARCHAR)
Question: From where did the Scout carrier rocket with the satellite that has a COSPAR ID of... | Here is the SQLite query to answer the question:
```
SELECT launch_site FROM table_name_6 WHERE carrier_rocket = "Scout" AND cospar_id = "1971-109a";
``` | 16,265 | [
{
"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 (launch_site VARCHAR, carrier_rocket VARCHAR, cospar_id VARCHAR)\n\n Question: From where did the Scout carrier rocke... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (launch_date VARCHAR, cospar_id VARCHAR)
Question: When was the satellite that has a COSPAR ID of 1967-042a launched?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question about the launch date of the satellite with the COSPAR ID of 1967-042a:
```
SELECT launch_date FROM table_name_80 WHERE cospar_id = "1967-042a";
``` | 16,266 | [
{
"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 (launch_date VARCHAR, cospar_id VARCHAR)\n\n Question: When was the satellite that has a COSPAR ID of 1967-042a laun... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (cospar_id VARCHAR, satellite VARCHAR)
Question: What is Ariel 3's COSPAR ID?
Here is the SQLite query to answer to the question: What is Ariel 3's COSPAR I... | Here is the SQLite query to answer the question regarding Ariel 3's COSPAR ID:
```
SELECT cospar_id FROM table_name_3 WHERE satellite = "Ariel 3";
``` | 16,267 | [
{
"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_3 (cospar_id VARCHAR, satellite VARCHAR)\n\n Question: What is Ariel 3's COSPAR ID?\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_5 (satellite VARCHAR, launch_site VARCHAR)
Question: Which satellite was launched from Vandenberg?
Here is the SQLite query to answer to the question: Which s... | Your SQLite query to find out which satellite was launched from Vandenberg is correct, but it may need a case-insensitive comparison if the casing of "Vandenberg" might vary in the database. Here’s the modified query that ensures case insensitivity:
```
SELECT satellite FROM table_name_5 WHERE LOWER(launch_site) = "va... | 16,268 | [
{
"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 (satellite VARCHAR, launch_site VARCHAR)\n\n Question: Which satellite was launched from Vandenberg?\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_69 (cospar_id VARCHAR, carrier_rocket VARCHAR, satellite VARCHAR)
Question: What is the COSPAR ID of Ariel 4, which was launched with a Scout carrier rocket?
... | Here is the SQLite query to find the COSPAR ID of Ariel 4, which was launched with a Scout carrier rocket:
```
SELECT cospar_id FROM table_name_69 WHERE carrier_rocket = "Scout" AND satellite = "Ariel 4"
``` | 16,269 | [
{
"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 (cospar_id VARCHAR, carrier_rocket VARCHAR, satellite VARCHAR)\n\n Question: What is the COSPAR ID of Ariel 4, which... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (song VARCHAR, played_for VARCHAR, artist VARCHAR)
Question: Which Rush song was played for Mike Fincke?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about which Rush song was played for Mike Fincke:
```
SELECT song FROM table_name_4 WHERE played_for = "Mike Fincke" AND artist = "Rush"
``` | 16,270 | [
{
"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 (song VARCHAR, played_for VARCHAR, artist VARCHAR)\n\n Question: Which Rush song was played for Mike Fincke?\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_2 (flight_day VARCHAR, artist VARCHAR)
Question: On what flight day was U2 played?
Here is the SQLite query to answer to the question: On what flight day was ... | Here is the SQLite query to answer the question "On what flight day was U2 played?":
```
SELECT flight_day FROM table_name_2 WHERE artist = "U2";
``` | 16,271 | [
{
"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 (flight_day VARCHAR, artist VARCHAR)\n\n Question: On what flight day was U2 played?\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_81 (links VARCHAR, flight_day VARCHAR)
Question: What links were used on flight day 16?
Here is the SQLite query to answer to the question: What links were us... | Here is the SQLite query to answer the question about the links used on flight day 16:
```
SELECT links FROM table_name_81 WHERE flight_day = "day 16";
``` | 16,272 | [
{
"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_81 (links VARCHAR, flight_day VARCHAR)\n\n Question: What links were used on flight day 16?\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_70 (tournament VARCHAR)
Question: What is the 2011 Australian Open and a 2010 QF?
Here is the SQLite query to answer to the question: What is the 2011 Austral... | It seems the query you provided needs some adjustments for correct syntax and logic. The query should look for records that match both conditions in the `tournament` column. The following is the corrected SQLite query to answer the question:
```sql
SELECT tournament
FROM table_name_70
WHERE tournament = "2011 Austra... | 16,273 | [
{
"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 (tournament VARCHAR)\n\n Question: What is the 2011 Australian Open and a 2010 QF?\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_3 (Id VARCHAR)
Question: What is 2010 that has 1r 2011?
Here is the SQLite query to answer to the question: What is 2010 that has 1r 2011?:
```
SELECT 2010 FR... | The SQL query that you provided has some syntax issues and doesn't correctly reflect the task at hand. If you are intending to look for a value in the `table_name_3` table related to 2010 where the value related to 2011 equals "1r", you would need to clarify how the columns are represented.
However, if we assume that ... | 16,274 | [
{
"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_3 (Id VARCHAR)\n\n Question: What is 2010 that has 1r 2011?\n\nHere is the SQLite query to answer to the question: What... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (win__percentage VARCHAR)
Question: What is the winning % for the 2010 QF?
Here is the SQLite query to answer to the question: What is the winning % for the... | It looks like there's a slight misunderstanding in your query. Based on your question, you probably want to filter the entries for the year 2010 and for the quarter-final (QF) matches. However, you only have a single column (`win__percentage`) and no indication of how the year and round (QF) are stored in your table.
... | 16,275 | [
{
"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_3 (win__percentage VARCHAR)\n\n Question: What is the winning % for the 2010 QF?\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_77 (tournament VARCHAR)
Question: What is the 2009 for 2012 1R in Wimbledon and a 2011 2r?
Here is the SQLite query to answer to the question: What is the 200... | It appears there may be some misunderstanding in the provided query. Based on the database schema you shared (`CREATE TABLE table_name_77 (tournament VARCHAR)`), the table only has one column (`tournament`) which stores tournament names, and does not have columns for years or rounds.
To construct a meaningful query ba... | 16,276 | [
{
"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 (tournament VARCHAR)\n\n Question: What is the 2009 for 2012 1R in Wimbledon and a 2011 2r?\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_60 (win__percentage VARCHAR)
Question: What is 2012 that has a winning % of 67%?
Here is the SQLite query to answer to the question: What is 2012 that has a w... | Your SQL query needs a slight modification to correctly retrieve the information based on the schema provided. You need to select the correct column that represents the year, which isn't included in your schema definition. Assuming you're indeed looking to retrieve the year '2012' when the winning percentage is '67%', ... | 16,277 | [
{
"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 (win__percentage VARCHAR)\n\n Question: What is 2012 that has a winning % of 67%?\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_74 (score VARCHAR, runner_up VARCHAR, year VARCHAR)
Question: In 1979 when Jimmy Connors was the runner-up what was the score?
Here is the SQLite query to ans... | The SQL query you provided is not correct for the specified question. It retrieves the score for a year before 1979 instead of the year 1979. Here's the correct query:
```
SELECT score FROM table_name_74 WHERE runner_up = "jimmy connors" AND year = "1979"
``` | 16,278 | [
{
"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 (score VARCHAR, runner_up VARCHAR, year VARCHAR)\n\n Question: In 1979 when Jimmy Connors was the runner-up what was... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (champion VARCHAR, runner_up VARCHAR)
Question: Who won when Peter Fleming was a runner-up?
Here is the SQLite query to answer to the question: Who won whe... | Here is the SQLite query to answer the question: Who won when Peter Fleming was a runner-up?:
```
SELECT champion FROM table_name_82 WHERE runner_up = "Peter Fleming"
``` | 16,279 | [
{
"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 (champion VARCHAR, runner_up VARCHAR)\n\n Question: Who won when Peter Fleming was a runner-up?\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_43 (score VARCHAR, location VARCHAR, champion VARCHAR)
Question: When John Mcenroe won at Montreal, what was the score?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question: When John Mcenroe won at Montreal, what was the score?:
```
SELECT score FROM table_name_43 WHERE location = "montreal" AND champion = "john mcenroe"
``` | 16,280 | [
{
"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 (score VARCHAR, location VARCHAR, champion VARCHAR)\n\n Question: When John Mcenroe won at Montreal, what was the sc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (year VARCHAR, champion VARCHAR, runner_up VARCHAR)
Question: When Ilie Năstase beat runner-up Peter Fleming what year was it?
Here is the SQLite query to ... | ```sql
SELECT year FROM table_name_56 WHERE champion = "Ilie Năstase" AND runner_up = "Peter Fleming";
``` | 16,281 | [
{
"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 (year VARCHAR, champion VARCHAR, runner_up VARCHAR)\n\n Question: When Ilie Năstase beat runner-up Peter Fleming wha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (track INTEGER, production_credits VARCHAR)
Question: What is the first track where the production credit is margret arranged by e. mergency?
Here is the S... | Your query seems correct for retrieving the first track where the production credit matches "margret arranged by e. mergency". Here is the SQLite query wrapped in the appropriate code block:
```
SELECT MIN(track) FROM table_name_98 WHERE production_credits = "margret arranged by e. mergency";
```
This query will ret... | 16,282 | [
{
"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 (track INTEGER, production_credits VARCHAR)\n\n Question: What is the first track where the production credit is mar... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (title VARCHAR, songwriter_s_ VARCHAR, time VARCHAR)
Question: Which song was written by Nigel Stock and is 4:12 long?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the song written by Nigel Stock that is 4:12 long:
```
SELECT title FROM table_name_58 WHERE songwriter_s_ = "Nigel Stock" AND time = "4:12"
``` | 16,283 | [
{
"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 (title VARCHAR, songwriter_s_ VARCHAR, time VARCHAR)\n\n Question: Which song was written by Nigel Stock and is 4:12... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (songwriter_s_ VARCHAR, production_credits VARCHAR, track VARCHAR)
Question: Who was the songwriter for Track 4, produced by nigel wright and john smits?
H... | Here is the SQLite query to answer the question about the songwriter for Track 4, produced by Nigel Wright and John Smits:
```
SELECT songwriter_s_ FROM table_name_84 WHERE production_credits = "nigel wright and john smits" AND track = "Track 4"
```
Note: Ensure that the `track` value matches the format of the data ... | 16,284 | [
{
"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 (songwriter_s_ VARCHAR, production_credits VARCHAR, track VARCHAR)\n\n Question: Who was the songwriter for Track 4,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (draft INTEGER, player VARCHAR, pick VARCHAR, round VARCHAR)
Question: What is the lowest draft of player jim farrell, who has a pick greater than 197 and a... | Here is the SQLite query to answer the question regarding the lowest draft of player Jim Farrell, who has a pick greater than 197 and a round of 14:
```
SELECT MIN(draft) FROM table_name_62 WHERE pick > 197 AND round = '14' AND player = 'jim farrell';
``` | 16,285 | [
{
"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 (draft INTEGER, player VARCHAR, pick VARCHAR, round VARCHAR)\n\n Question: What is the lowest draft of player jim fa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (pick INTEGER, player VARCHAR, round VARCHAR)
Question: What is the lowest pick of player paul stasiuk from a round greater than 12?
Here is the SQLite que... | Your SQLite query to find the lowest pick of player Paul Stasiuk from a round greater than 12 is correct. Here it is wrapped in code formatting as you requested:
```
SELECT MIN(pick) FROM table_name_45 WHERE player = "paul stasiuk" AND round > 12;
``` | 16,286 | [
{
"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_45 (pick INTEGER, player VARCHAR, round VARCHAR)\n\n Question: What is the lowest pick of player paul stasiuk from a ro... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (pick VARCHAR, round VARCHAR, player VARCHAR, nationality VARCHAR, draft VARCHAR)
Question: What is the total pick number of player curt bennett from canada... | The provided query seems appropriate but it appears you might want the sum of the pick numbers instead of a count, since you're asking for the "total pick number". Assuming `pick` represents numerical values, here is the correct SQL query:
```sql
SELECT SUM(CAST(pick AS INTEGER))
FROM table_name_32
WHERE nationality... | 16,287 | [
{
"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 (pick VARCHAR, round VARCHAR, player VARCHAR, nationality VARCHAR, draft VARCHAR)\n\n Question: What is the total pi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (pick INTEGER, player VARCHAR, draft VARCHAR)
Question: What is the average pick of player paul maclean, who had a draft before 1978?
Here is the SQLite qu... | Here is the SQLite query to answer the question about the average pick of player Paul MacLean, who had a draft before 1978:
```
SELECT AVG(pick) FROM table_name_19 WHERE player = "paul maclean" AND draft < 1978
``` | 16,288 | [
{
"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 (pick INTEGER, player VARCHAR, draft VARCHAR)\n\n Question: What is the average pick of player paul maclean, who had... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (round INTEGER, player VARCHAR, draft VARCHAR)
Question: What is the average round of player dave pulkkinen, who had a draft after 1969?
Here is the SQLite... | Here is the SQLite query to answer the question regarding the average round of player Dave Pulkkinen, who had a draft after 1969:
```
SELECT AVG(round) FROM table_name_61 WHERE player = "dave pulkkinen" AND draft > 1969
``` | 16,289 | [
{
"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 (round INTEGER, player VARCHAR, draft VARCHAR)\n\n Question: What is the average round of player dave pulkkinen, who... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (position VARCHAR, year VARCHAR)
Question: What was the position in 1981?
Here is the SQLite query to answer to the question: What was the position in 1981... | Here is the SQLite query to answer the question about the position in 1981:
```sql
SELECT position FROM table_name_55 WHERE year = '1981'
``` | 16,290 | [
{
"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 (position VARCHAR, year VARCHAR)\n\n Question: What was the position in 1981?\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_87 (player VARCHAR, pick VARCHAR)
Question: What was the player with pick 19?
Here is the SQLite query to answer to the question: What was the player with pic... | Your SQLite query to find the player with pick 19 is correct. Here it is wrapped in code format:
```
SELECT player FROM table_name_87 WHERE pick = "19";
``` | 16,291 | [
{
"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 (player VARCHAR, pick VARCHAR)\n\n Question: What was the player with pick 19?\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_2 (country VARCHAR, place VARCHAR, score VARCHAR)
Question: What is the Country of the T2 Place Player with a Score of 69-69-69=207?
Here is the SQLite query ... | The provided SQLite query has some issues in the `WHERE` clause when checking the score. The correct approach is to compare the `score` field directly with the string '207' since the `score` column is defined as `VARCHAR`. Additionally, the correct way to represent the score '69-69-69' in calculations is misunderstood.... | 16,292 | [
{
"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 (country VARCHAR, place VARCHAR, score VARCHAR)\n\n Question: What is the Country of the T2 Place Player with a Score... | |
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, place VARCHAR, player VARCHAR)
Question: What is T7 Place Player Justin Leonard's Score?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question: What is T7 Place Player Justin Leonard's Score?:
```
SELECT score FROM table_name_31 WHERE place = "T7" AND player = "Justin Leonard"
``` | 16,293 | [
{
"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, place VARCHAR, player VARCHAR)\n\n Question: What is T7 Place Player Justin Leonard's Score?\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_88 (player VARCHAR, score VARCHAR)
Question: What Player's Score is 69-71-69=208?
Here is the SQLite query to answer to the question: What Player's Score is 6... | The query you provided is not correctly formatted for SQLite, as the `WHERE` clause does not perform arithmetic operations or comparisons in that manner. Instead, you should calculate the total score in the SQL query itself.
Here's the correct way to structure your query to find the player whose score sums up to 208 w... | 16,294 | [
{
"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_88 (player VARCHAR, score VARCHAR)\n\n Question: What Player's Score is 69-71-69=208?\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_83 (place VARCHAR, to_par VARCHAR, score VARCHAR)
Question: What is the Place of the Player with a To par of –8 and a Score of 67-74-67=208?
Here is the SQLit... | The SQL query you provided has a small mistake in the way you are comparing the score. You should be checking for equality directly with the computed value, rather than using the subtraction operation in the SQL condition. The correct query should look like this:
```sql
SELECT place FROM table_name_83 WHERE to_par = '... | 16,295 | [
{
"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 (place VARCHAR, to_par VARCHAR, score VARCHAR)\n\n Question: What is the Place of the Player with a To par of –8 and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (score VARCHAR, place VARCHAR, player VARCHAR)
Question: What is T4 Place Player Nick Price's Score?
Here is the SQLite query to answer to the question: Wh... | Your SQLite query looks good. Here is the wrapped SQL code:
```
SELECT score FROM table_name_15 WHERE place = "t4" AND player = "nick price";
``` | 16,296 | [
{
"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 (score VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: What is T4 Place Player Nick Price'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_32 (score VARCHAR, to_par VARCHAR, player VARCHAR)
Question: What is Justin Leonard with a To par of –7's Score?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer your question:
```
SELECT score FROM table_name_32 WHERE to_par = "–7" AND player = "justin leonard"
``` | 16,297 | [
{
"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 (score VARCHAR, to_par VARCHAR, player VARCHAR)\n\n Question: What is Justin Leonard with a To par of –7's Score?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (opponent VARCHAR, week VARCHAR)
Question: Who was the opponent at the week 4 game?
Here is the SQLite query to answer to the question: Who was the opponen... | The SQLite query you provided to find the opponent at the week 4 game is almost correct, but it should match the week value as a string since the week column is defined as VARCHAR. Here's the revised query:
```sql
SELECT opponent FROM table_name_85 WHERE week = '4'
``` | 16,298 | [
{
"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 (opponent VARCHAR, week VARCHAR)\n\n Question: Who was the opponent at the week 4 game?\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 (result VARCHAR, week VARCHAR)
Question: What was the result of the week 16 game?
Here is the SQLite query to answer to the question: What was the result o... | Here is the corrected SQLite query to answer the question about the result of the week 16 game:
```
SELECT result FROM table_name_49 WHERE week = '16'
```
Make sure to encapsulate the week number '16' in quotes since it is stored as a VARCHAR in the database. | 16,299 | [
{
"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 (result VARCHAR, week VARCHAR)\n\n Question: What was the result of the week 16 game?\n\nHere is the SQLite query to... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.