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_41 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR)
Question: Who is the incumbent who was first elected before 2002 from the maryland 3 district?
... | Here is the SQLite query to answer the question regarding the incumbent who was first elected before 2002 from the Maryland 3 district:
```
SELECT incumbent FROM table_name_41 WHERE first_elected < '2002' AND district = 'maryland 3';
``` | 25,600 | [
{
"from": "human",
"value": " 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 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR)\n\n Question: Who is the incumbent who was first electe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (party VARCHAR, district VARCHAR)
Question: What is the party of the maryland 6 district?
Here is the SQLite query to answer to the question: What is the p... | Here is the SQLite query to answer the question about the party of the Maryland 6 district:
```
SELECT party FROM table_name_73 WHERE district = "maryland 6";
``` | 25,601 | [
{
"from": "human",
"value": " 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 (party VARCHAR, district VARCHAR)\n\n Question: What is the party of the maryland 6 district?\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_35 (silver VARCHAR, year VARCHAR)
Question: WHAT IS THE SILVER WITH A YEAR OF 1962?
Here is the SQLite query to answer to the question: WHAT IS THE SILVER WIT... | Here is the SQLite query to answer the question "WHAT IS THE SILVER WITH A YEAR OF 1962?":
```
SELECT silver FROM table_name_35 WHERE year = '1962'
``` | 25,602 | [
{
"from": "human",
"value": " 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 (silver VARCHAR, year VARCHAR)\n\n Question: WHAT IS THE SILVER WITH A YEAR OF 1962?\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_88 (year INTEGER, bronze VARCHAR)
Question: WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV?
Here is the SQLite query to answer to the question: WHAT YEAR HAS A BR... | The provided query seems to attempt to find the average year for the records where the `bronze` column is "valentin novikov". However, if you are simply looking for the year in which there is a bronze for Valentin Novikov, you should use the following query instead:
```sql
SELECT year FROM table_name_88 WHERE bronze =... | 25,603 | [
{
"from": "human",
"value": " 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 (year INTEGER, bronze VARCHAR)\n\n Question: WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV?\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_54 (year INTEGER, silver VARCHAR)
Question: WHAT YEAR HAS A SILVER FOR MATTHIAS MERZ?
Here is the SQLite query to answer to the question: WHAT YEAR HAS A SILV... | Here's the SQLite query to answer the question about the year that has a silver for Matthias Merz, wrapped in code formatting:
```
SELECT MIN(year) FROM table_name_54 WHERE silver = "Matthias Merz";
``` | 25,604 | [
{
"from": "human",
"value": " 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 (year INTEGER, silver VARCHAR)\n\n Question: WHAT YEAR HAS A SILVER FOR MATTHIAS MERZ?\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_20 (year INTEGER, bronze VARCHAR)
Question: WHAT IS THE YEAR WITH A BRONZE OF AIMO TEPSELL?
Here is the SQLite query to answer to the question: WHAT IS THE YE... | Here is the SQLite query to answer the question: WHAT IS THE YEAR WITH A BRONZE OF AIMO TEPSELL?:
```
SELECT MIN(year) FROM table_name_20 WHERE bronze = "aimo tepsell";
``` | 25,605 | [
{
"from": "human",
"value": " 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 (year INTEGER, bronze VARCHAR)\n\n Question: WHAT IS THE YEAR WITH A BRONZE OF AIMO TEPSELL?\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_72 (to_par VARCHAR, player VARCHAR)
Question: What is To par, when Player is "Greg Turner"?
Here is the SQLite query to answer to the question: What is To par... | Here is the SQLite query to answer the question "What is To par, when Player is 'Greg Turner'?":
```
SELECT to_par FROM table_name_72 WHERE player = "Greg Turner";
``` | 25,606 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR)\n\n Question: What is To par, when Player is \"Greg Turner\"?\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_34 (score VARCHAR, country VARCHAR, player VARCHAR)
Question: What is Score, when Country is "United States", and when Player is "Mark Brooks"?
Here is the SQ... | Your SQLite query is almost correct, but make sure to use the proper casing for the strings as SQLite is generally case-sensitive for string comparisons. Assuming the values in the database are capitalized as per your question, here’s the revised query:
```
SELECT score FROM table_name_34 WHERE country = "United State... | 25,607 | [
{
"from": "human",
"value": " 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 (score VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: What is Score, when Country is \"United States\", and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (money___ INTEGER, player VARCHAR)
Question: What is the highest Money ( £ ), when Player is "Peter Hedblom"?
Here is the SQLite query to answer to the que... | Your SQLite query looks mostly correct, but be aware that case sensitivity may affect the query results if the player names are stored in a case-sensitive manner. To ensure the query works regardless of case, you can use `LOWER()` function. Here's how your SQL query can be written with that consideration:
```sql
SELEC... | 25,608 | [
{
"from": "human",
"value": " 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 (money___ INTEGER, player VARCHAR)\n\n Question: What is the highest Money ( £ ), when Player is \"Peter Hedblom\"?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (lost VARCHAR, drawn VARCHAR, points_1 VARCHAR)
Question: What is the total number of losses for a draw of 7, and 1 points less than 33?
Here is the SQLite... | Here is the SQLite query to answer the question about the total number of losses for a draw of 7, and 1 point less than 33:
```
SELECT COUNT(lost) FROM table_name_21 WHERE drawn = '7' AND points_1 < '33'
``` | 25,609 | [
{
"from": "human",
"value": " 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 (lost VARCHAR, drawn VARCHAR, points_1 VARCHAR)\n\n Question: What is the total number of losses for a draw of 7, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
Question: What is the total number drawn with goals against less than 55, and a total of 14 losses?
He... | Here is the correct SQLite query for your question:
```
SELECT COUNT(drawn) FROM table_name_75 WHERE CAST(goals_against AS INTEGER) < 55 AND CAST(lost AS INTEGER) = 14
```
This query ensures that the `goals_against` and `lost` columns are treated as integers for comparison. | 25,610 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)\n\n Question: What is the total number drawn with goals against... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (goals_for VARCHAR, played INTEGER)
Question: What is the total number of goals that has been played less than 38 times?
Here is the SQLite query to answer... | Your query is almost correct, but it seems you want to calculate the total number of goals (which I assume means summing the values of `goals_for`) for the rows where `played` is less than 38. However, since `goals_for` is defined as a `VARCHAR`, you may need to convert it to an integer before summing. Here's a revised... | 25,611 | [
{
"from": "human",
"value": " 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 (goals_for VARCHAR, played INTEGER)\n\n Question: What is the total number of goals that has been played less than 3... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (diameter VARCHAR, theme VARCHAR)
Question: What is the Diameter of the Dog Sled (gold variant) Theme coin?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the diameter of the Dog Sled (gold variant) theme coin:
```sql
SELECT diameter FROM table_name_74 WHERE theme = "dog sled (gold variant)"
``` | 25,612 | [
{
"from": "human",
"value": " 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 (diameter VARCHAR, theme VARCHAR)\n\n Question: What is the Diameter of the Dog Sled (gold variant) Theme coin?\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_42 (mintage INTEGER, year VARCHAR, theme VARCHAR)
Question: What is the MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin?
Here is the SQLite que... | Here is the SQLite query to answer the question about the mintage after 2006 of the Ruby-Throated Hummingbird Theme coin:
```
SELECT MAX(mintage) FROM table_name_42 WHERE year > 2006 AND theme = "Ruby-Throated Hummingbird";
``` | 25,613 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (mintage INTEGER, year VARCHAR, theme VARCHAR)\n\n Question: What is the MIntage after 2006 of the Ruby-Throated Hum... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (mintage VARCHAR, weight VARCHAR, theme VARCHAR)
Question: What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird?
Here is the SQLite query to... | The SQLite query you provided counts the number of records that match the specified weight and theme, but it doesn't actually retrieve the mintage value. If you're looking to get the mintage directly, you should select the mintage column. Here’s the corrected query to retrieve the mintage for the specified weight and t... | 25,614 | [
{
"from": "human",
"value": " 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 (mintage VARCHAR, weight VARCHAR, theme VARCHAR)\n\n Question: What is the Mintage of the 12.61 g Weight Ruby-Throat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (year INTEGER, issue_price VARCHAR, mintage VARCHAR)
Question: What is the Year of the Coin with an Issue Price of $1089.95 and Mintage less than 900?
Here... | The SQL query you provided is incorrect for the given question. You need to select the `year` directly rather than using the `SUM` function, as you are likely interested in the specific year(s) that meet the criteria.
Here’s the corrected SQL query:
```sql
SELECT year FROM table_name_15 WHERE issue_price = "$1089.95"... | 25,615 | [
{
"from": "human",
"value": " 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 (year INTEGER, issue_price VARCHAR, mintage VARCHAR)\n\n Question: What is the Year of the Coin with an Issue Price ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (theme VARCHAR, issue_price VARCHAR)
Question: What is the Theme of the coin with an Issue Price of $89.95?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the theme of the coin with an issue price of $89.95:
```sql
SELECT theme FROM table_name_95 WHERE issue_price = "$89.95";
``` | 25,616 | [
{
"from": "human",
"value": " 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 (theme VARCHAR, issue_price VARCHAR)\n\n Question: What is the Theme of the coin with an Issue Price of $89.95?\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_58 (winning_team VARCHAR, date VARCHAR)
Question: What was the winning team on 11 July?
Here is the SQLite query to answer to the question: What was the winni... | Here's the SQLite query to answer the question about the winning team on 11 July:
```
SELECT winning_team FROM table_name_58 WHERE date = "11 July";
``` | 25,617 | [
{
"from": "human",
"value": " 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 (winning_team VARCHAR, date VARCHAR)\n\n Question: What was the winning team on 11 July?\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_15 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)
Question: Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./ro... | Here is the SQLite query to answer your question:
```
SELECT winning_driver FROM table_name_15 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "2 June"
``` | 25,618 | [
{
"from": "human",
"value": " 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 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)\n\n Question: Who is the winning driver of the race on ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (winning_driver VARCHAR, date VARCHAR)
Question: Who is the winning driver of the race on 5 May?
Here is the SQLite query to answer to the question: Who is... | Here is the SQLite query to answer the question:
```
SELECT winning_driver FROM table_name_90 WHERE date = "5 May";
``` | 25,619 | [
{
"from": "human",
"value": " 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 (winning_driver VARCHAR, date VARCHAR)\n\n Question: Who is the winning driver of the race on 5 May?\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_7 (round VARCHAR, winning_team VARCHAR, date VARCHAR)
Question: What is the round on 30 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning ... | ```sql
SELECT round FROM table_name_7 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "30 June";
``` | 25,620 | [
{
"from": "human",
"value": " 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 (round VARCHAR, winning_team VARCHAR, date VARCHAR)\n\n Question: What is the round on 30 June with a.z.k./roc-compét... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (date VARCHAR, winning_team VARCHAR, circuit VARCHAR)
Question: What is the date of the zolder circuit, which had a.z.k./roc-compétition a.z.k./roc-compétit... | Here is the SQLite query to answer the question regarding the date of the Zolder circuit where "a.z.k./roc-compétition a.z.k./roc-compétition" was the winning team:
```
SELECT date FROM table_name_53 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND circuit = "zolder";
``` | 25,621 | [
{
"from": "human",
"value": " 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 (date VARCHAR, winning_team VARCHAR, circuit VARCHAR)\n\n Question: What is the date of the zolder circuit, which ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR, score VARCHAR)
Question: What place did Bob May get when his score was 72-66=138?
Here is the SQLite query to answer to the... | There seems to be an issue with the syntax in your SQL query, particularly in the condition regarding the score. The expression `72 - 66 = 138` does not evaluate correctly in SQL as you intended. Instead, you should check the score for equality directly with the computed value.
Here’s the corrected SQL query:
```
SEL... | 25,622 | [
{
"from": "human",
"value": " 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 (place VARCHAR, player VARCHAR, score VARCHAR)\n\n Question: What place did Bob May get when his score was 72-66=138... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (country VARCHAR, place VARCHAR, player VARCHAR)
Question: What country is Stephen Ames from with a place value of t9?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question about the country Stephen Ames is from with a place value of t9:
```
SELECT country FROM table_name_20 WHERE place = "t9" AND player = "Stephen Ames"
``` | 25,623 | [
{
"from": "human",
"value": " 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 (country VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: What country is Stephen Ames from with a place value ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (place VARCHAR, to_par VARCHAR)
Question: What place had a To par of –10?
Here is the SQLite query to answer to the question: What place had a To par of –1... | Your SQL query looks correct to retrieve the place with a To par of -10. However, in SQLite, it is important to ensure that the format of the value being compared is consistent with how it is stored in the database.
Assuming that the To par value is stored as a string with the hyphen (–) correctly represented, the qu... | 25,624 | [
{
"from": "human",
"value": " 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 (place VARCHAR, to_par VARCHAR)\n\n Question: What place had a To par of –10?\n\nHere is the SQLite query to answer ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR)
Question: What country is Darren Clarke from?
Here is the SQLite query to answer to the question: What country is Darren ... | Here is the SQLite query to answer the question about what country Darren Clarke is from:
```
SELECT country FROM table_name_18 WHERE player = 'Darren Clarke';
``` | 25,625 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR)\n\n Question: What country is Darren Clarke from?\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_78 (to_par VARCHAR, score VARCHAR)
Question: What is the To par value that goes with a Score of 70-69=139?
Here is the SQLite query to answer to the question:... | It looks like there is a misunderstanding in the formulation of the WHERE clause in your SQL query. The expression `70 - 69 = 139` will always evaluate to `FALSE`, which means the query won't return any results. Instead, you should directly use the score value of `139` by writing the query like this:
```
SELECT to_par... | 25,626 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, score VARCHAR)\n\n Question: What is the To par value that goes with a Score of 70-69=139?\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_43 (goals INTEGER, season VARCHAR, division VARCHAR)
Question: What is the sum of Goals, when Season is "2005-06", and when Division is less than 1?
Here is t... | Here is the SQLite query to answer the question:
```
SELECT SUM(goals) FROM table_name_43 WHERE season = "2005-06" AND division < 1
``` | 25,627 | [
{
"from": "human",
"value": " 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 (goals INTEGER, season VARCHAR, division VARCHAR)\n\n Question: What is the sum of Goals, when Season is \"2005-06\"... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (season VARCHAR, goals VARCHAR, team VARCHAR)
Question: What is Season, when Goals is less than 6, and when Team is "Tarbiat Yazd"?
Here is the SQLite quer... | Your query looks almost correct, but there are a couple of things to consider. Since the `goals` column is defined as `VARCHAR`, you need to convert it to an integer to properly compare it to the number 6. Here's the updated SQL query:
```
SELECT season FROM table_name_42 WHERE CAST(goals AS INTEGER) < 6 AND team = "T... | 25,628 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (season VARCHAR, goals VARCHAR, team VARCHAR)\n\n Question: What is Season, when Goals is less than 6, and when Team... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (division INTEGER, goals VARCHAR, season VARCHAR)
Question: What is the lowest Division, when Goals is less than 5, and when Season is "2002-03"?
Here is t... | Here is the SQLite query to answer the question:
```
SELECT MIN(division) FROM table_name_15 WHERE goals < 5 AND season = "2002-03"
``` | 25,629 | [
{
"from": "human",
"value": " 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 (division INTEGER, goals VARCHAR, season VARCHAR)\n\n Question: What is the lowest Division, when Goals is less than... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (goals INTEGER, team VARCHAR, division VARCHAR)
Question: What is the average Goals, when Team is "Rah Ahan", and when Division is less than 1?
Here is the... | Here is the SQLite query to answer the question:
```
SELECT AVG(goals) FROM table_name_81 WHERE team = "Rah Ahan" AND division < 1
``` | 25,630 | [
{
"from": "human",
"value": " 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 (goals INTEGER, team VARCHAR, division VARCHAR)\n\n Question: What is the average Goals, when Team is \"Rah Ahan\", ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (capacity INTEGER, stadium VARCHAR)
Question: What is the lowest capacity that has stadion mladina as the stadium?
Here is the SQLite query to answer to th... | Your SQLite query is correct. Here it is wrapped properly for clarity:
```
SELECT MIN(capacity) FROM table_name_96 WHERE stadium = "stadion mladina";
``` | 25,631 | [
{
"from": "human",
"value": " 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 (capacity INTEGER, stadium VARCHAR)\n\n Question: What is the lowest capacity that has stadion mladina as the stadiu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (stadium VARCHAR, city VARCHAR)
Question: What stadium has kutina as the city?
Here is the SQLite query to answer to the question: What stadium has kutina ... | Here is the SQLite query to answer the question about which stadium is in the city of Kutina:
```
SELECT stadium FROM table_name_13 WHERE city = "kutina";
``` | 25,632 | [
{
"from": "human",
"value": " 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 (stadium VARCHAR, city VARCHAR)\n\n Question: What stadium has kutina as the city?\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_4 (h___a VARCHAR, date VARCHAR)
Question: What was the H/A on 29 july 1992?
Here is the SQLite query to answer to the question: What was the H/A on 29 july 19... | Here is the SQLite query to answer the question about the H/A on 29 July 1992:
```
SELECT h___a FROM table_name_4 WHERE date = "29 july 1992"
``` | 25,633 | [
{
"from": "human",
"value": " 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 (h___a VARCHAR, date VARCHAR)\n\n Question: What was the H/A on 29 july 1992?\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_8 (result_f___a VARCHAR, opponents VARCHAR)
Question: Which Result F-A has Opponents of rosenborg?
Here is the SQLite query to answer to the question: Which R... | Your provided SQLite query is correct for retrieving the `result_f___a` values associated with `rosenborg` in the `opponents` column. Here it is wrapped properly:
```
SELECT result_f___a FROM table_name_8 WHERE opponents = "rosenborg";
```
This query will return all the entries in `result_f___a` where the `opponents... | 25,634 | [
{
"from": "human",
"value": " 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 (result_f___a VARCHAR, opponents VARCHAR)\n\n Question: Which Result F-A has Opponents of rosenborg?\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_35 (depth VARCHAR, time__utc_ VARCHAR)
Question: What is the depth of the quake that occurred at 19:48?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the depth of the quake that occurred at 19:48:
```
SELECT depth FROM table_name_35 WHERE time__utc_ = '19:48';
``` | 25,635 | [
{
"from": "human",
"value": " 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 (depth VARCHAR, time__utc_ VARCHAR)\n\n Question: What is the depth of the quake that occurred at 19:48?\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_67 (magnitude VARCHAR, time__utc_ VARCHAR, epicenter VARCHAR, intensity VARCHAR)
Question: What is the magnitude with epicenter at Vrancea County, unknown inte... | Here is the SQLite query to answer the question:
```
SELECT magnitude FROM table_name_67 WHERE epicenter = "Vrancea County" AND intensity = "unknown" AND time__utc_ = "06:36"
``` | 25,636 | [
{
"from": "human",
"value": " 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 (magnitude VARCHAR, time__utc_ VARCHAR, epicenter VARCHAR, intensity VARCHAR)\n\n Question: What is the magnitude wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (epicenter VARCHAR, date VARCHAR)
Question: Where was the epicenter of the quake on December 1, 2012?
Here is the SQLite query to answer to the question: W... | Your SQLite query looks good for retrieving the epicenter of the quake on December 1, 2012.
Here it is wrapped in code formatting:
```sql
SELECT epicenter FROM table_name_54 WHERE date = "december 1, 2012";
```
Make sure that the date format matches exactly how it is stored in the database, including casing and fo... | 25,637 | [
{
"from": "human",
"value": " 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 (epicenter VARCHAR, date VARCHAR)\n\n Question: Where was the epicenter of the quake on December 1, 2012?\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_6 (finish VARCHAR, year_s__won VARCHAR)
Question: What is Finish, when Year(s) Won is "1991"?
Here is the SQLite query to answer to the question: What is Fini... | Here is the SQLite query to answer the question:
```
SELECT finish FROM table_name_6 WHERE year_s__won = "1991"
``` | 25,638 | [
{
"from": "human",
"value": " 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 (finish VARCHAR, year_s__won VARCHAR)\n\n Question: What is Finish, when Year(s) Won is \"1991\"?\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_65 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR)
Question: What is Year(s) Won, when Finish is "T31", and when Player is "Nick Price"?
Here is the SQL... | Here is the SQLite query to answer the given question:
```
SELECT year_s__won FROM table_name_65 WHERE finish = "T31" AND player = "Nick Price";
``` | 25,639 | [
{
"from": "human",
"value": " 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 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR)\n\n Question: What is Year(s) Won, when Finish is \"T31\", and... | |
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, total VARCHAR, year_s__won VARCHAR)
Question: What is Country, when Total is greater than 283, and when Year(s) Won is "1989"?
Here is th... | Here is the SQLite query that answers the question:
```
SELECT country FROM table_name_90 WHERE total > 283 AND year_s__won = "1989"
``` | 25,640 | [
{
"from": "human",
"value": " 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, total VARCHAR, year_s__won VARCHAR)\n\n Question: What is Country, when Total is greater than 283,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)
Question: born on 1983-03-14, what is the cb's name?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question regarding the name of the individual born on 1983-03-14 who holds the position of "cb":
```
SELECT name FROM table_name_28 WHERE pos = "cb" AND date_of_birth = "1983-03-14"
``` | 25,641 | [
{
"from": "human",
"value": " 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 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)\n\n Question: born on 1983-03-14, what is the cb's name?\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_8 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)
Question: born on 1973-08-21, what is the cf's name?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the name of the individual born on 1973-08-21 who holds the position of "cf":
```
SELECT name FROM table_name_8 WHERE pos = "cf" AND date_of_birth = "1973-08-21"
``` | 25,642 | [
{
"from": "human",
"value": " 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 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)\n\n Question: born on 1973-08-21, what is the cf's name?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (attendance VARCHAR, opponent VARCHAR)
Question: What attendance has detroit lions as the opponent?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the attendance for the Detroit Lions as the opponent:
```
SELECT attendance FROM table_name_14 WHERE opponent = "detroit lions"
``` | 25,643 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, opponent VARCHAR)\n\n Question: What attendance has detroit lions as the opponent?\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_62 (score VARCHAR, opponent VARCHAR)
Question: What score has houston texans as the opponent?
Here is the SQLite query to answer to the question: What score h... | Here is the SQLite query to answer the question regarding the score when the opponent is "houston texans":
```
SELECT score FROM table_name_62 WHERE opponent = "houston texans";
``` | 25,644 | [
{
"from": "human",
"value": " 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 (score VARCHAR, opponent VARCHAR)\n\n Question: What score has houston texans as the opponent?\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_18 (score VARCHAR, date VARCHAR)
Question: What score has October 31 as the date?
Here is the SQLite query to answer to the question: What score has October 3... | Here is the SQLite query to answer the question about what score has October 31 as the date:
```
SELECT score FROM table_name_18 WHERE date = "October 31";
``` | 25,645 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR)\n\n Question: What score has October 31 as the date?\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_7 (record VARCHAR, result VARCHAR, date VARCHAR)
Question: What record has w as the result, with January 2 as the date?
Here is the SQLite query to answer to ... | Here's the SQLite query to answer the question about which record has 'w' as the result, with January 2 as the date:
```
SELECT record FROM table_name_7 WHERE result = "w" AND date = "January 2";
``` | 25,646 | [
{
"from": "human",
"value": " 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 (record VARCHAR, result VARCHAR, date VARCHAR)\n\n Question: What record has w as the result, with January 2 as the d... | |
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 VARCHAR, team_from VARCHAR)
Question: What is the position of the team player from Aik?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question regarding the position of the team player from Aik:
```
SELECT position FROM table_name_69 WHERE team_from = "Aik";
``` | 25,647 | [
{
"from": "human",
"value": " 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 VARCHAR, team_from VARCHAR)\n\n Question: What is the position of the team player from Aik?\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_11 (pick__number INTEGER, league_from VARCHAR, player VARCHAR)
Question: What is the average pick # from the Quebec Major Junior Hockey League player Samuel Ca... | Here is the SQLite query to answer the question regarding the average pick number from the Quebec Major Junior Hockey League player Samuel Carrier:
```
SELECT AVG(pick__number) FROM table_name_11 WHERE league_from = "quebec major junior hockey league" AND player = "samuel carrier"
``` | 25,648 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (pick__number INTEGER, league_from VARCHAR, player VARCHAR)\n\n Question: What is the average pick # from the Quebec... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (pick__number INTEGER, position VARCHAR, team_from VARCHAR)
Question: What is the total pick # for the D position from a team from Chilliwack Bruins?
Here ... | Here is the SQLite query to answer the question regarding the total pick # for the D position from a team from Chilliwack Bruins:
```
SELECT SUM(pick__number) FROM table_name_94 WHERE position = "d" AND team_from = "chilliwack bruins"
``` | 25,649 | [
{
"from": "human",
"value": " 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 (pick__number INTEGER, position VARCHAR, team_from VARCHAR)\n\n Question: What is the total pick # for the D positio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (league_from VARCHAR, pick__number VARCHAR)
Question: What is the league that has the pick #160?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question regarding which league has the pick #160:
```
SELECT league_from FROM table_name_36 WHERE pick__number = '160';
``` | 25,650 | [
{
"from": "human",
"value": " 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 (league_from VARCHAR, pick__number VARCHAR)\n\n Question: What is the league that has the pick #160?\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_79 (bowl_game VARCHAR, date VARCHAR)
Question: What bowl game was played on Dec. 26, 2007?
Here is the SQLite query to answer to the question: What bowl game ... | Here is the SQLite query to answer the question about what bowl game was played on Dec. 26, 2007:
```
SELECT bowl_game FROM table_name_79 WHERE date = "Dec. 26, 2007";
``` | 25,651 | [
{
"from": "human",
"value": " 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 (bowl_game VARCHAR, date VARCHAR)\n\n Question: What bowl game was played on Dec. 26, 2007?\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 (opp_team VARCHAR, score VARCHAR)
Question: Who was the opposing team in the game with a score of 21-17?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about the opposing team in the game with a score of 21-17:
```
SELECT opp_team FROM table_name_49 WHERE score = "21-17"
``` | 25,652 | [
{
"from": "human",
"value": " 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 (opp_team VARCHAR, score VARCHAR)\n\n Question: Who was the opposing team in the game with a score of 21-17?\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_19 (opp_team VARCHAR, big_ten_team VARCHAR)
Question: Who was Purdue's opponent?
Here is the SQLite query to answer to the question: Who was Purdue's opponent... | Here is the SQLite query to answer the question: Who was Purdue's opponent?:
```
SELECT opp_team FROM table_name_19 WHERE big_ten_team = "purdue"
``` | 25,653 | [
{
"from": "human",
"value": " 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 (opp_team VARCHAR, big_ten_team VARCHAR)\n\n Question: Who was Purdue's opponent?\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_53 (score VARCHAR, bowl_game VARCHAR)
Question: What was the score of the Insight Bowl?
Here is the SQLite query to answer to the question: What was the score... | Here is the SQLite query to answer the question about the score of the Insight Bowl:
```
SELECT score FROM table_name_53 WHERE bowl_game = "Insight Bowl";
``` | 25,654 | [
{
"from": "human",
"value": " 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 (score VARCHAR, bowl_game VARCHAR)\n\n Question: What was the score of the Insight Bowl?\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 (score VARCHAR, bowl_game VARCHAR)
Question: What was the score of the BCS National Championship game?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about the score of the BCS National Championship game:
```
SELECT score FROM table_name_66 WHERE bowl_game = "BCS National Championship";
``` | 25,655 | [
{
"from": "human",
"value": " 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 (score VARCHAR, bowl_game VARCHAR)\n\n Question: What was the score of the BCS National Championship game?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
Question: Which Democratic incumbent was first elected in 1998?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question about the Democratic incumbent who was first elected in 1998:
```
SELECT incumbent FROM table_name_18 WHERE party = 'democratic' AND first_elected = '1998';
``` | 25,656 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)\n\n Question: Which Democratic incumbent was first elected... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (district VARCHAR, party VARCHAR, first_elected VARCHAR)
Question: Which district has a Democratic incumbent that was first elected before 1996?
Here is th... | Here is the SQLite query to answer the question regarding which district has a Democratic incumbent that was first elected before 1996:
```sql
SELECT district FROM table_name_62 WHERE party = "democratic" AND first_elected < '1996';
``` | 25,657 | [
{
"from": "human",
"value": " 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 (district VARCHAR, party VARCHAR, first_elected VARCHAR)\n\n Question: Which district has a Democratic incumbent tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR)
Question: Who is the incumbent for the Oregon 5 District that was elected in 1996?
Here is the... | Here is the SQLite query to answer the question about the incumbent for the Oregon 5 District that was elected in 1996:
```
SELECT incumbent FROM table_name_34 WHERE first_elected = '1996' AND district = 'oregon 5';
``` | 25,658 | [
{
"from": "human",
"value": " 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 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR)\n\n Question: Who is the incumbent for the Oregon 5 Dis... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (results VARCHAR, first_elected VARCHAR, district VARCHAR)
Question: What was the result of the Oregon 5 District incumbent who was first elected in 1996?
... | Here is the corrected SQLite query to answer the question regarding the result of the Oregon 5 District incumbent who was first elected in 1996:
```sql
SELECT results FROM table_name_18 WHERE first_elected = '1996' AND district = 'oregon 5';
```
Please note that I have wrapped the year in single quotes since it's ty... | 25,659 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (results VARCHAR, first_elected VARCHAR, district VARCHAR)\n\n Question: What was the result of the Oregon 5 Distric... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (location VARCHAR, opponent VARCHAR)
Question: What's was the location for fight against Liam Mccarty?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question:
```
SELECT location FROM table_name_46 WHERE opponent = "Liam Mccarty"
``` | 25,660 | [
{
"from": "human",
"value": " 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 (location VARCHAR, opponent VARCHAR)\n\n Question: What's was the location for fight against Liam Mccarty?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (to_par VARCHAR, year_s__won VARCHAR)
Question: How many strokes off par was the winner in 1978?
Here is the SQLite query to answer to the question: How ma... | Here is the SQLite query to answer the question of how many strokes off par the winner was in 1978:
```
SELECT to_par FROM table_name_90 WHERE year_s__won = '1978'
``` | 25,661 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, year_s__won VARCHAR)\n\n Question: How many strokes off par was the winner in 1978?\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_72 (total INTEGER, year_s__won VARCHAR)
Question: What was the average round score of the player who won in 1978?
Here is the SQLite query to answer to the qu... | Your SQLite query is correct for calculating the average of the `total` scores for the player who won in 1978. Here it is wrapped in a code block:
```
SELECT AVG(total) FROM table_name_72 WHERE year_s__won = "1978"
``` | 25,662 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (total INTEGER, year_s__won VARCHAR)\n\n Question: What was the average round score of the player who won in 1978?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (money___ VARCHAR, player VARCHAR)
Question: What is the money won by Frank Nobilo?
Here is the SQLite query to answer to the question: What is the money w... | It looks like you are trying to retrieve the total money won by Frank Nobilo from the specified table in SQLite. However, the query you provided counts the number of entries for Frank Nobilo instead of summing the money. Assuming `money___` contains numeric values (perhaps in a VARCHAR format), you should use the `SUM`... | 25,663 | [
{
"from": "human",
"value": " 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 (money___ VARCHAR, player VARCHAR)\n\n Question: What is the money won by Frank Nobilo?\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_20 (score VARCHAR, player VARCHAR)
Question: What is Lee Westwood's score?
Here is the SQLite query to answer to the question: What is Lee Westwood's score?:
... | Here is the SQLite query to answer the question about Lee Westwood's score:
```
SELECT score FROM table_name_20 WHERE player = "lee westwood";
``` | 25,664 | [
{
"from": "human",
"value": " 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 (score VARCHAR, player VARCHAR)\n\n Question: What is Lee Westwood's score?\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_46 (money___£__ VARCHAR, player VARCHAR)
Question: How much money has been won by Stephen Ames?
Here is the SQLite query to answer to the question: How much m... | Here is the correct SQLite query to answer the question:
```sql
SELECT SUM(CAST(money___£__ AS REAL)) AS total_money_won
FROM table_name_46
WHERE player = "Stephen Ames";
```
This query sums up the money won by Stephen Ames by casting the `money___£__` column to a numeric type, which is necessary if it's stored as... | 25,665 | [
{
"from": "human",
"value": " 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 (money___£__ VARCHAR, player VARCHAR)\n\n Question: How much money has been won by Stephen Ames?\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_95 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
Question: How much Drawn has Goals Against of 81, and a Lost larger than 23?
Here is the SQLite query ... | Here is the SQLite query to answer the question you provided:
```
SELECT COUNT(drawn) FROM table_name_95 WHERE goals_against = '81' AND lost > '23'
```
Please note that since the columns `goals_against` and `lost` are defined as `VARCHAR`, the values are compared as strings. If they are numerical, you might want to ... | 25,666 | [
{
"from": "human",
"value": " 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 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)\n\n Question: How much Drawn has Goals Against of 81, and a Los... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (lost INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR)
Question: Which Lost has a Position larger than 5, and Points 1 of 37, and less th... | Your query is close, but I noticed a few potential improvements, particularly regarding the type of comparison for the `goals_against` field since it's defined as `VARCHAR`. When comparing `VARCHAR` values numerically, it’s important to convert them into integers. Here’s the revised query:
```sql
SELECT AVG(lost)
FRO... | 25,667 | [
{
"from": "human",
"value": " 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 (lost INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR)\n\n Question: Which Lost has a Position la... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (drawn VARCHAR, played VARCHAR, goals_against VARCHAR, lost VARCHAR)
Question: How much Drawn has Goals Against larger than 74, and a Lost smaller than 20, ... | Your provided query is almost correct, but it seems you need to ensure that the conditions are referring correctly to the column types. In SQLite, the comparison operators need to be applied to the appropriate types. Since 'goals_against', 'lost', and 'played' are stored as VARCHAR, they should be cast to integers befo... | 25,668 | [
{
"from": "human",
"value": " 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 (drawn VARCHAR, played VARCHAR, goals_against VARCHAR, lost VARCHAR)\n\n Question: How much Drawn has Goals Against ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (position INTEGER, goals_for VARCHAR, goals_against VARCHAR)
Question: Which Position has Goals For of 52, and Goals Against larger than 70?
Here is the SQ... | The SQLite query you provided to answer the question is almost correct, but it needs a slight modification because the `goals_for` and `goals_against` columns are of type `VARCHAR`, meaning that comparisons should be made using appropriate data types.
If `goals_for` and `goals_against` were stored as integers, your q... | 25,669 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (position INTEGER, goals_for VARCHAR, goals_against VARCHAR)\n\n Question: Which Position has Goals For of 52, and G... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (played INTEGER, goals_against VARCHAR, drawn VARCHAR, position VARCHAR)
Question: Which Played has a Drawn of 4, and a Position of 9, and Goals Against lar... | It looks like there was a misunderstanding about the structure of your SQL query. In your original question, you asked which records meet certain conditions, but the query uses `AVG(played)`, which would give you the average of the `played` column instead of returning the specific records.
To retrieve the records that... | 25,670 | [
{
"from": "human",
"value": " 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 (played INTEGER, goals_against VARCHAR, drawn VARCHAR, position VARCHAR)\n\n Question: Which Played has a Drawn of 4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (home_team VARCHAR, visiting_team VARCHAR, result VARCHAR)
Question: Who is the home team when the san francisco 49ers are visiting with a result of 42-14?
... | Here is the SQLite query to answer the question regarding the home team when the San Francisco 49ers are visiting with a result of 42-14:
```
SELECT home_team FROM table_name_92 WHERE visiting_team = "san francisco 49ers" AND result = "42-14"
``` | 25,671 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, visiting_team VARCHAR, result VARCHAR)\n\n Question: Who is the home team when the san francisco... | |
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, attendance VARCHAR)
Question: When was the earliest year when the attendance was 77,254?
Here is the SQLite query to answer to the question:... | There seems to be a small issue with the query you provided. The attendance value should be treated as a string since the attendance column is defined as VARCHAR.
Here's the corrected SQLite query to find the earliest year when the attendance was '77,254':
```sql
SELECT MIN(year) FROM table_name_41 WHERE attendance ... | 25,672 | [
{
"from": "human",
"value": " 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, attendance VARCHAR)\n\n Question: When was the earliest year when the attendance was 77,254?\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_19 (attendance INTEGER, result VARCHAR, year VARCHAR)
Question: What was the total attendance for a result of 7-23 before 1960?
Here is the SQLite query to an... | Here is the SQLite query to answer the question regarding the total attendance for a result of 7-23 before 1960:
```
SELECT SUM(attendance) FROM table_name_19 WHERE result = "7-23" AND year < '1960'
``` | 25,673 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, result VARCHAR, year VARCHAR)\n\n Question: What was the total attendance for a result of 7-23 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (location VARCHAR, enzyme VARCHAR)
Question: What is the location of the enzyme Uroporphyrinogen iii Synthase?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to find the location of the enzyme Uroporphyrinogen iii Synthase:
```
SELECT location FROM table_name_24 WHERE enzyme = "Uroporphyrinogen iii Synthase"
``` | 25,674 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (location VARCHAR, enzyme VARCHAR)\n\n Question: What is the location of the enzyme Uroporphyrinogen iii Synthase?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (substrate VARCHAR, product VARCHAR)
Question: What is protoporphyrin ix's substrate?
Here is the SQLite query to answer to the question: What is protoporp... | Here is the SQLite query to answer the question about protoporphyrin ix's substrate:
```
SELECT substrate FROM table_name_55 WHERE product = "protoporphyrin ix"
``` | 25,675 | [
{
"from": "human",
"value": " 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 (substrate VARCHAR, product VARCHAR)\n\n Question: What is protoporphyrin ix's substrate?\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_47 (substrate VARCHAR, omim VARCHAR)
Question: Which substrate has an OMIM of 176000?
Here is the SQLite query to answer to the question: Which substrate has ... | Here is the SQLite query to answer the question: Which substrate has an OMIM of 176000?:
```
SELECT substrate FROM table_name_47 WHERE omim = '176000';
``` | 25,676 | [
{
"from": "human",
"value": " 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 (substrate VARCHAR, omim VARCHAR)\n\n Question: Which substrate has an OMIM of 176000?\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_65 (score VARCHAR, to_par VARCHAR, player VARCHAR)
Question: What was Anders Forsbrand's score when the TO par is +4?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about Anders Forsbrand's score when the TO par is +4:
```
SELECT score FROM table_name_65 WHERE to_par = "+4" AND player = "anders forsbrand";
``` | 25,677 | [
{
"from": "human",
"value": " 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 (score VARCHAR, to_par VARCHAR, player VARCHAR)\n\n Question: What was Anders Forsbrand's score when the TO par is +... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (player VARCHAR, score VARCHAR)
Question: Which player scored 76-68=144?
Here is the SQLite query to answer to the question: Which player scored 76-68=144?... | It seems there is a small mistake in the SQL query provided. The correct way to write the query to find players who scored 144 is to use a simple equality condition in the WHERE clause. Here is how the query should look:
```
SELECT player FROM table_name_28 WHERE score = '144';
```
Make sure to treat `score` as a str... | 25,678 | [
{
"from": "human",
"value": " 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 (player VARCHAR, score VARCHAR)\n\n Question: Which player scored 76-68=144?\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_84 (place VARCHAR, country VARCHAR, player VARCHAR)
Question: What did United States place when the player was Raymond Floyd?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question about what place the United States achieved when the player was Raymond Floyd:
```
SELECT place FROM table_name_84 WHERE country = "united states" AND player = "raymond floyd";
``` | 25,679 | [
{
"from": "human",
"value": " 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 (place VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: What did United States place when the player was Raym... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (country VARCHAR, player VARCHAR)
Question: What country did Raymond Floyd play for?
Here is the SQLite query to answer to the question: What country did Ra... | Here is the SQLite query to answer the question: What country did Raymond Floyd play for?:
```
SELECT country FROM table_name_9 WHERE player = "Raymond Floyd";
``` | 25,680 | [
{
"from": "human",
"value": " 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 (country VARCHAR, player VARCHAR)\n\n Question: What country did Raymond Floyd play for?\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_89 (place VARCHAR, player VARCHAR)
Question: What is Greg Norman's place?
Here is the SQLite query to answer to the question: What is Greg Norman's place?:
``... | Here is the SQLite query to answer the question about Greg Norman's place:
```
SELECT place FROM table_name_89 WHERE player = "Greg Norman";
``` | 25,681 | [
{
"from": "human",
"value": " 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 (place VARCHAR, player VARCHAR)\n\n Question: What is Greg Norman's place?\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_46 (place VARCHAR, player VARCHAR)
Question: What place did Paul McGinley finish in?
Here is the SQLite query to answer to the question: What place did Paul M... | Here is the SQLite query to answer the question about the place Paul McGinley finished in:
```
SELECT place FROM table_name_46 WHERE player = "Paul McGinley";
``` | 25,682 | [
{
"from": "human",
"value": " 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 (place VARCHAR, player VARCHAR)\n\n Question: What place did Paul McGinley finish 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_26 (to_par VARCHAR, player VARCHAR)
Question: What is Tiger Woods' to par?
Here is the SQLite query to answer to the question: What is Tiger Woods' to par?:
`... | Here is the SQLite query to answer the question about Tiger Woods' to par:
```
SELECT to_par FROM table_name_26 WHERE player = "tiger woods";
``` | 25,683 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, player VARCHAR)\n\n Question: What is Tiger Woods' 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_53 (to_par VARCHAR, year_s__won INTEGER)
Question: What is the to par when the year(s) won is larger than 1999?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question:
```
SELECT to_par FROM table_name_53 WHERE year_s__won > 1999
``` | 25,684 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, year_s__won INTEGER)\n\n Question: What is the to par when the year(s) won is larger than 1999?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR)
Question: What are the apps for less than 61 goals and before rank 6?
Here is the SQLite query to answer to the... | Your provided SQL query has a minor error regarding the condition for the `rank` field, as `rank` is defined as a `VARCHAR`. It should be compared as a string, assuming the ranks are in string format, rather than as numeric values.
If `rank` values are expected to be strings representing numbers (like '1', '2', '3', ... | 25,685 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR)\n\n Question: What are the apps for less than 61 goals and before rank 6... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (season VARCHAR, rank VARCHAR, goals VARCHAR, apps VARCHAR, club VARCHAR)
Question: What season was Barcelona ranked higher than 12, had more than 96 goals ... | Here is the SQLite query to answer the question:
```
SELECT season FROM table_name_59 WHERE apps > 26 AND club = "Barcelona" AND goals > 96 AND rank > 12;
``` | 25,686 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (season VARCHAR, rank VARCHAR, goals VARCHAR, apps VARCHAR, club VARCHAR)\n\n Question: What season was Barcelona ra... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (apps INTEGER, goals VARCHAR, rank VARCHAR)
Question: How many apps when the rank was after 13 and having more than 73 goals?
Here is the SQLite query to a... | The SQLite query you've provided aims to calculate the average number of apps when the rank was greater than 13 and having more than 73 goals. However, you asked for the total count of apps that meet these criteria. Here’s the corrected query to get the total number of apps:
```sql
SELECT SUM(apps) FROM table_name_96 ... | 25,687 | [
{
"from": "human",
"value": " 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 (apps INTEGER, goals VARCHAR, rank VARCHAR)\n\n Question: How many apps when the rank was after 13 and having more t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (club VARCHAR, apps VARCHAR, rank VARCHAR)
Question: Who was the club having less than 22 apps and ranked less than 2?
Here is the SQLite query to answer t... | Here is the correct SQLite query to answer the question about the club having less than 22 apps and ranked less than 2:
```
SELECT club FROM table_name_72 WHERE CAST(apps AS INTEGER) < 22 AND CAST(rank AS INTEGER) < 2;
```
This query uses `CAST` to convert the `apps` and `rank` columns from VARCHAR to INTEGER for co... | 25,688 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (club VARCHAR, apps VARCHAR, rank VARCHAR)\n\n Question: Who was the club having less than 22 apps and ranked less t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (to_par VARCHAR, country VARCHAR, score VARCHAR)
Question: With a score of 68-65=133 and United States as the country what is the To par?
Here is the SQLit... | Your SQLite query has a small mistake in the way you are trying to compare the `score`. The comparison in the WHERE clause should check if the score is equal to 133, instead of using a calculation. Here’s the corrected SQL query:
```sql
SELECT to_par FROM table_name_66 WHERE country = "United States" AND score = "133"... | 25,689 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, country VARCHAR, score VARCHAR)\n\n Question: With a score of 68-65=133 and United States as the co... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (player VARCHAR, country VARCHAR)
Question: Who is the golfer that golfs for Northern Ireland?
Here is the SQLite query to answer to the question: Who is t... | Here's the SQLite query that answers the question about the golfer that golfs for Northern Ireland:
```
SELECT player FROM table_name_54 WHERE country = "Northern Ireland";
``` | 25,690 | [
{
"from": "human",
"value": " 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 (player VARCHAR, country VARCHAR)\n\n Question: Who is the golfer that golfs for Northern Ireland?\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_13 (country VARCHAR, place VARCHAR)
Question: The golfer in place 1 if from what country?
Here is the SQLite query to answer to the question: The golfer in pl... | Here is the SQLite query to answer the question regarding the country of the golfer in place 1:
```
SELECT country FROM table_name_13 WHERE place = "1";
``` | 25,691 | [
{
"from": "human",
"value": " 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 (country VARCHAR, place VARCHAR)\n\n Question: The golfer in place 1 if from what country?\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_90 (date VARCHAR, tie_no VARCHAR)
Question: On what date was Tie #26 played?
Here is the SQLite query to answer to the question: On what date was Tie #26 play... | Here is the SQLite query to answer the question: On what date was Tie #26 played?:
```
SELECT date FROM table_name_90 WHERE tie_no = "26"
``` | 25,692 | [
{
"from": "human",
"value": " 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 (date VARCHAR, tie_no VARCHAR)\n\n Question: On what date was Tie #26 played?\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_93 (date VARCHAR, tie_no VARCHAR)
Question: On what date was Tie #13 played?
Here is the SQLite query to answer to the question: On what date was Tie #13 play... | Here is the SQLite query to answer the question: On what date was Tie #13 played?:
```
SELECT date FROM table_name_93 WHERE tie_no = "13"
``` | 25,693 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR)\n\n Question: On what date was Tie #13 played?\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_5 (tie_no VARCHAR, away_team VARCHAR)
Question: For which tie was Scunthorpe United the away team?
Here is the SQLite query to answer to the question: For whi... | Here is the SQLite query to answer the question about which tie Scunthorpe United was the away team:
```
SELECT tie_no FROM table_name_5 WHERE away_team = "Scunthorpe United";
``` | 25,694 | [
{
"from": "human",
"value": " 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 (tie_no VARCHAR, away_team VARCHAR)\n\n Question: For which tie was Scunthorpe United the away team?\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_6 (score VARCHAR, home_team VARCHAR)
Question: What was the final score for the tie where Leeds United was the home team?
Here is the SQLite query to answer t... | To find the final score for the tie where Leeds United was the home team in the given database schema, the query should specifically check for conditions where the score represents a tie (i.e., both teams scored the same). However, since the provided schema only includes the `score` and `home_team`, and there's no colu... | 25,695 | [
{
"from": "human",
"value": " 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 (score VARCHAR, home_team VARCHAR)\n\n Question: What was the final score for the tie where Leeds United was the home... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)
Question: In the tie where Southampton was the away team, who was the home team?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question you provided:
```
SELECT home_team FROM table_name_97 WHERE away_team = "southampton"
``` | 25,696 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, away_team VARCHAR)\n\n Question: In the tie where Southampton was the away team, who was the hom... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (away_team VARCHAR, tie_no VARCHAR)
Question: What is the name of the away team for Tie #19?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question about the name of the away team for Tie #19:
```
SELECT away_team FROM table_name_61 WHERE tie_no = "19";
``` | 25,697 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR, tie_no VARCHAR)\n\n Question: What is the name of the away team for Tie #19?\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_15 (nominated_work VARCHAR, year VARCHAR, results VARCHAR)
Question: Which Nominated Work won in 2000?
Here is the SQLite query to answer to the question: Whi... | Certainly! Here is the SQLite query wrapped in code blocks as requested:
```
SELECT nominated_work FROM table_name_15 WHERE year = '2000' AND results = 'won';
``` | 25,698 | [
{
"from": "human",
"value": " 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 (nominated_work VARCHAR, year VARCHAR, results VARCHAR)\n\n Question: Which Nominated Work won in 2000?\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_23 (results VARCHAR, year VARCHAR)
Question: What was the result in 2000?
Here is the SQLite query to answer to the question: What was the result in 2000?:
``... | Here is the SQLite query to answer the question about the result in 2000:
```
SELECT results FROM table_name_23 WHERE year = '2000'
``` | 25,699 | [
{
"from": "human",
"value": " 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 (results VARCHAR, year VARCHAR)\n\n Question: What was the result in 2000?\n\nHere is the SQLite query to answer to ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.