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_46 (result VARCHAR, location VARCHAR, opponent VARCHAR)
Question: What was the result of the game against the Miami Dolphins held at the Riverfront Stadium?
H... | Here is the SQLite query to answer the question about the result of the game against the Miami Dolphins held at the Riverfront Stadium:
```
SELECT result FROM table_name_46 WHERE location = "Riverfront Stadium" AND opponent = "Miami Dolphins";
``` | 25,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_46 (result VARCHAR, location VARCHAR, opponent VARCHAR)\n\n Question: What was the result of the game against the Miami... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (location VARCHAR, opponent VARCHAR)
Question: What was the location of the game against the Houston Oilers?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question regarding the location of the game against the Houston Oilers:
```
SELECT location FROM table_name_3 WHERE opponent = "houston oilers";
``` | 25,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_3 (location VARCHAR, opponent VARCHAR)\n\n Question: What was the location of the game against the Houston Oilers?\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_77 (result VARCHAR, location VARCHAR, week VARCHAR)
Question: What was the result of the game at the Riverfront Stadium after week 8?
Here is the SQLite query... | To correctly retrieve the result of the game played at the Riverfront Stadium after week 8, you need to adjust the query to select results from the games that are recorded for weeks greater than 8. Here is the correct SQLite query:
```
SELECT result FROM table_name_77 WHERE location = "riverfront stadium" AND week > "... | 25,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_77 (result VARCHAR, location VARCHAR, week VARCHAR)\n\n Question: What was the result of the game at the Riverfront Sta... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (Id VARCHAR)
Question: What is the 1880 figure when 1860 is N/A and 1910 is 494?
Here is the SQLite query to answer to the question: What is the 1880 figur... | Your query has a small mistake. In SQLite, you need to specify the actual structure of the table and the correct column name for the year 1880 (assuming it exists). Assuming there are columns named for the years, here’s the revised SQL query:
```sql
SELECT "1880" FROM table_name_19 WHERE "1860" = "n/a" AND "1910" = 49... | 25,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_19 (Id VARCHAR)\n\n Question: What is the 1880 figure when 1860 is N/A and 1910 is 494?\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_63 (competition VARCHAR, date VARCHAR)
Question: Which competition took place on October 11, 2006?
Here is the SQLite query to answer to the question: Which c... | Here is the SQLite query to answer the question: Which competition took place on October 11, 2006?:
```
SELECT competition FROM table_name_63 WHERE date = "October 11, 2006";
``` | 25,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_63 (competition VARCHAR, date VARCHAR)\n\n Question: Which competition took place on October 11, 2006?\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_72 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)
Question: What was the score of the friendly match at Amman on February 14, 2006?
Here is... | Here is the SQLite query to answer the question about the score of the friendly match at Amman on February 14, 2006:
```
SELECT score FROM table_name_72 WHERE venue = "Amman" AND competition = "friendly" AND date = "February 14, 2006";
``` | 25,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_72 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)\n\n Question: What was the score of the friendly m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (venue VARCHAR, date VARCHAR)
Question: Where did Ra'fat Ali play on August 17, 1999?
Here is the SQLite query to answer to the question: Where did Ra'fat ... | Here is the SQLite query to answer the question:
```
SELECT venue FROM table_name_35 WHERE date = "August 17, 1999";
``` | 25,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_35 (venue VARCHAR, date VARCHAR)\n\n Question: Where did Ra'fat Ali play on August 17, 1999?\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_22 (place VARCHAR, score VARCHAR)
Question: What was the place when the score was 71-69-71=211?
Here is the SQLite query to answer to the question: What was t... | Your provided SQL query has a mistake in the condition used for filtering the score. To check if the score equals 211, you should directly compare the score value as a string. Here’s the corrected SQL query:
```
SELECT place FROM table_name_22 WHERE score = '211';
```
Make sure to use quotes around the score value b... | 25,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_22 (place VARCHAR, score VARCHAR)\n\n Question: What was the place when the score was 71-69-71=211?\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_6 (score VARCHAR, country VARCHAR, player VARCHAR)
Question: What was Australia's score when Peter Lonard played?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question regarding Australia's score when Peter Lonard played:
```
SELECT score FROM table_name_6 WHERE country = "australia" AND player = "peter lonard"
``` | 25,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_6 (score VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: What was Australia's score when Peter Lonard played?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (player VARCHAR, score VARCHAR)
Question: What player scored 71-69-71=211?
Here is the SQLite query to answer to the question: What player scored 71-69-71=... | It looks like you're trying to find a player with a specific total score based on individual round scores. However, there's a small mistake in the query where you're trying to use an expression in the WHERE clause incorrectly.
In SQLite, to check for a total score of 211 based on the individual scores of 71, 69, and ... | 25,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_68 (player VARCHAR, score VARCHAR)\n\n Question: What player scored 71-69-71=211?\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_97 (score VARCHAR, player VARCHAR)
Question: What was the score for Peter Lonard?
Here is the SQLite query to answer to the question: What was the score for P... | Here is the SQLite query to answer the question about the score for Peter Lonard:
```
SELECT score FROM table_name_97 WHERE player = "Peter Lonard";
``` | 25,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_97 (score VARCHAR, player VARCHAR)\n\n Question: What was the score for Peter Lonard?\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_28 (place VARCHAR, score VARCHAR)
Question: What was the place when the score was 68-75-68=211?
Here is the SQLite query to answer to the question: What was t... | It looks like the SQL query you've written has a logical issue. In SQL, to specify values, you would typically use a string comparison for the score, but you're attempting to calculate the score using subtraction, which doesn't quite fit. Instead, you should compare the score directly.
Assuming that the score is stor... | 25,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_28 (place VARCHAR, score VARCHAR)\n\n Question: What was the place when the score was 68-75-68=211?\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_4 (venue VARCHAR, date VARCHAR)
Question: What was the Venue on November 26?
Here is the SQLite query to answer to the question: What was the Venue on Novembe... | Here is the SQLite query to answer the question: What was the Venue on November 26?:
```
SELECT venue FROM table_name_4 WHERE date = "November 26";
``` | 25,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_4 (venue VARCHAR, date VARCHAR)\n\n Question: What was the Venue on November 26?\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_89 (venue VARCHAR, home_team VARCHAR, result VARCHAR)
Question: What was the Venue of the San Francisco 49ers Home game with a Result of 30-10?
Here is the SQ... | Here is the SQLite query to answer the question about the venue of the San Francisco 49ers' home game with a result of 30-10:
```
SELECT venue FROM table_name_89 WHERE home_team = "san francisco 49ers" AND result = "30-10";
``` | 25,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_89 (venue VARCHAR, home_team VARCHAR, result VARCHAR)\n\n Question: What was the Venue of the San Francisco 49ers Home ... | |
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, date VARCHAR)
Question: What is the Result of the game on October 3?
Here is the SQLite query to answer to the question: What is the Resul... | Your SQLite query is almost correct, but you should ensure that the date format matches the stored format in your database. Here's the wrapped query you provided, along with a slight adjustment to make it case-insensitive regarding the date.
```sql
SELECT result FROM table_name_49 WHERE date = "October 3";
```
If you... | 25,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_49 (result VARCHAR, date VARCHAR)\n\n Question: What is the Result of the game on October 3?\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_58 (venue VARCHAR, year VARCHAR, home_team VARCHAR)
Question: What is the Venue of the 2009 St. Louis Rams Home game?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the Venue of the 2009 St. Louis Rams Home game:
```
SELECT venue FROM table_name_58 WHERE year = '2009' AND home_team = 'st. louis rams';
``` | 25,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_58 (venue VARCHAR, year VARCHAR, home_team VARCHAR)\n\n Question: What is the Venue of the 2009 St. Louis Rams Home gam... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (date VARCHAR, visiting_team VARCHAR, year VARCHAR)
Question: What Date after 2007 had the San Francisco 49ers as the Visiting Team?
Here is the SQLite que... | Your SQLite query is almost correct, but since the `year` column is defined as a VARCHAR, it's better to use string comparison for the year condition to ensure proper ordering (lexicographical order does not always yield correct results for numeric values in text form). Also, ensure that the team name matches exactly, ... | 25,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_17 (date VARCHAR, visiting_team VARCHAR, year VARCHAR)\n\n Question: What Date after 2007 had the San Francisco 49ers a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (Id VARCHAR)
Question: What is 2004, when 2008 is "WTA Premier 5 Tournaments"?
Here is the SQLite query to answer to the question: What is 2004, when 2008 ... | It seems like there may be a misunderstanding in the way the question is framed and how the SQL query is constructed. If you want to retrieve data based on a specific condition, it's important that the data exists in the database schema that you've provided. Given that there's only a single column `Id` in the table `ta... | 25,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_19 (Id VARCHAR)\n\n Question: What is 2004, when 2008 is \"WTA Premier 5 Tournaments\"?\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_82 (Id VARCHAR)
Question: What is 2010, when 2009 is "1"?
Here is the SQLite query to answer to the question: What is 2010, when 2009 is "1"?:
```
SELECT 2010... | The given SQLite query seems to be aiming to select the value `2010` from the table `table_name_82` while checking a condition associated with `2009`. However, it's worth noting that in the provided schema, there is only one column named `Id`, which is of type `VARCHAR`. Therefore, the query as it stands refers to a no... | 25,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_82 (Id VARCHAR)\n\n Question: What is 2010, when 2009 is \"1\"?\n\nHere is the SQLite query to answer to the question: ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (Id VARCHAR)
Question: What is 2004, when 2005 is "Not Tier I"?
Here is the SQLite query to answer to the question: What is 2004, when 2005 is "Not Tier I"... | It looks like you want to write an SQLite query based on some conditions involving the values of "2004" and "2005". However, in your database schema, the only column available is `Id`, which is of type `VARCHAR`. This means you cannot directly reference the years 2004 or 2005 as columns in your `SELECT` statement.
If ... | 25,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_31 (Id VARCHAR)\n\n Question: What is 2004, when 2005 is \"Not Tier I\"?\n\nHere is the SQLite query to answer to the q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (tournament VARCHAR)
Question: What is 2007, when Tournament is "Madrid"?
Here is the SQLite query to answer to the question: What is 2007, when Tournament... | Here is the SQLite query to answer the question "What is 2007, when Tournament is 'Madrid'?":
```sql
SELECT 2007 FROM table_name_27 WHERE tournament = "Madrid";
``` | 25,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_27 (tournament VARCHAR)\n\n Question: What is 2007, when Tournament is \"Madrid\"?\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_19 (tournament VARCHAR)
Question: What is 2011, when 2006 is "A", when 2008 is "A", and when Tournament is "Rome"?
Here is the SQLite query to answer to the q... | The query you've provided has a couple of issues that need to be addressed. If you want to retrieve the value 2011 based on the conditions regarding years 2006 and 2008, it seems like you intend to check specific rows in the database.
However, since your table only has one column (`tournament`), it doesn't contain the... | 25,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_19 (tournament VARCHAR)\n\n Question: What is 2011, when 2006 is \"A\", when 2008 is \"A\", and when Tournament is \"Ro... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (Id VARCHAR)
Question: What is 2011, when 2010 is "WTA Premier 5 Tournaments"?
Here is the SQLite query to answer to the question: What is 2011, when 2010 ... | It seems there is a misunderstanding in your query. The query you provided seems to imply that you are trying to select a value (`2011`) based on a condition which involves another column (`2010`). Since the schema only describes a table with a single column (`Id`), there is no column named `2010`.
If you want to com... | 25,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_49 (Id VARCHAR)\n\n Question: What is 2011, when 2010 is \"WTA Premier 5 Tournaments\"?\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_83 (name VARCHAR, date_of_birth VARCHAR, weight VARCHAR, club VARCHAR)
Question: What is Name, when Weight is "kg (lb)", when Club is "Gezira", and when Date o... | Here is the SQLite query to answer your question:
```
SELECT name FROM table_name_83 WHERE weight = "kg (lb)" AND club = "Gezira" AND date_of_birth = "1974-02-18"
``` | 25,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_83 (name VARCHAR, date_of_birth VARCHAR, weight VARCHAR, club VARCHAR)\n\n Question: What is Name, when Weight is \"kg ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (pos VARCHAR, height VARCHAR, date_of_birth VARCHAR)
Question: What is Pos., when Height is "m (ft 10in)", and when Date of Birth is "1983-05-29"?
Here is ... | Here is the SQLite query to answer the question regarding the position (`Pos.`) when the height is "m (ft 10in)" and the date of birth is "1983-05-29":
```
SELECT pos FROM table_name_45 WHERE height = "m (ft 10in)" AND date_of_birth = "1983-05-29"
``` | 25,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_45 (pos VARCHAR, height VARCHAR, date_of_birth VARCHAR)\n\n Question: What is Pos., when Height is \"m (ft 10in)\", and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (weight VARCHAR, club VARCHAR)
Question: What is Weight, when Club is "Maadi"?
Here is the SQLite query to answer to the question: What is Weight, when Clu... | Your SQLite query is almost correct, but the club name should match the case. If you want to ensure case insensitivity, you could use `LOWER()` or make sure to match the exact case as stored in the database.
Here’s the modified query which retrieves the weight for the club "Maadi":
```sql
SELECT weight FROM table_nam... | 25,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_86 (weight VARCHAR, club VARCHAR)\n\n Question: What is Weight, when Club is \"Maadi\"?\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_31 (date_of_birth VARCHAR, height VARCHAR)
Question: What is Date of Birth, when Height is "Head Coach: Adel Shamala"?
Here is the SQLite query to answer to t... | Here is the SQLite query wrapped in the specified format:
```
SELECT date_of_birth FROM table_name_31 WHERE height = "Head Coach: Adel Shamala";
``` | 25,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_31 (date_of_birth VARCHAR, height VARCHAR)\n\n Question: What is Date of Birth, when Height is \"Head Coach: Adel Shama... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (weight VARCHAR, club VARCHAR, name VARCHAR)
Question: What is Weight, when Club is "Ahly", and when Name is "Ragy Abdel Hady"?
Here is the SQLite query to... | Your SQLite query is almost correct, but please note that the club name "Ahly" should be treated with case sensitivity as per SQLite's default behavior. If you want to ensure that the search is case-insensitive, you can either convert both the column values and the comparison values to lowercase or use case-insensitive... | 25,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_35 (weight VARCHAR, club VARCHAR, name VARCHAR)\n\n Question: What is Weight, when Club is \"Ahly\", and when Name is \... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (series_1 VARCHAR, series_11 VARCHAR)
Question: Which Series 1 has a Series 11 of peter jones?
Here is the SQLite query to answer to the question: Which Se... | Here is the SQLite query to answer the question: Which Series 1 has a Series 11 of peter jones?:
```
SELECT series_1 FROM table_name_13 WHERE series_11 = "peter jones"
``` | 25,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_13 (series_1 VARCHAR, series_11 VARCHAR)\n\n Question: Which Series 1 has a Series 11 of peter jones?\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_35 (series_2 VARCHAR, series_3 VARCHAR)
Question: Which Series 2 has a Series 3 of deborah meaden?
Here is the SQLite query to answer to the question: Which S... | Here is the SQLite query to answer the question: Which Series 2 has a Series 3 of deborah meaden?:
```
SELECT series_2 FROM table_name_35 WHERE series_3 = 'deborah meaden';
``` | 25,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_35 (series_2 VARCHAR, series_3 VARCHAR)\n\n Question: Which Series 2 has a Series 3 of deborah meaden?\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_83 (seat_order__right_to_left_ VARCHAR, series_3 VARCHAR)
Question: How many Seat Orders (Right to Left) have a Series 3 of deborah meaden?
Here is the SQLite... | Here is the SQLite query to answer the question regarding how many Seat Orders (Right to Left) have a Series 3 of "deborah meaden":
```
SELECT COUNT(seat_order__right_to_left_) FROM table_name_83 WHERE series_3 = 'deborah meaden';
``` | 25,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_83 (seat_order__right_to_left_ VARCHAR, series_3 VARCHAR)\n\n Question: How many Seat Orders (Right to Left) have a Ser... | |
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, score VARCHAR)
Question: The player for which country had a score of 66-72=138?
Here is the SQLite query to answer to the question: The p... | The provided SQL query contains an error in the WHERE clause. The expression `66 - 72 = 138` is not logically correct; rather, you should be looking for a score that equals the result of `66 - 72`, which is `-6`, not `138`.
If you meant to find the country that had a score of `138` directly, the query should be:
```s... | 25,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_90 (country VARCHAR, score VARCHAR)\n\n Question: The player for which country had a score of 66-72=138?\n\nHere is the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (place VARCHAR, country VARCHAR, player VARCHAR)
Question: In what place was Tiger Woods of the United States?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question: In what place was Tiger Woods of the United States?:
```
SELECT place FROM table_name_68 WHERE country = "united states" AND player = "tiger woods";
``` | 25,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_68 (place VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: In what place was Tiger Woods of the United States?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (to_par VARCHAR, score VARCHAR)
Question: What was the TO par for the player who scored 68-71=139?
Here is the SQLite query to answer to the question: What... | The provided SQL query contains a logical error in its condition. The expression `68 - 71 = 139` does not evaluate correctly and doesn't meet the criteria for finding the score in the table. Instead, we should search for the score '139' directly.
Here is the corrected SQLite query:
```
SELECT to_par FROM table_name_7... | 25,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_73 (to_par VARCHAR, score VARCHAR)\n\n Question: What was the TO par for the player who scored 68-71=139?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (to_par VARCHAR, score VARCHAR)
Question: What was the TO par for the player who scored 68-69=137?
Here is the SQLite query to answer to the question: What... | The provided SQL query contains an incorrect syntax for checking the score. You should be checking for the exact value of the score, rather than using an expression. Here's the corrected SQLite query to answer the question:
```
SELECT to_par FROM table_name_82 WHERE score = '68-69=137';
```
This query assumes that t... | 25,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_82 (to_par VARCHAR, score VARCHAR)\n\n Question: What was the TO par for the player who scored 68-69=137?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (party VARCHAR, district VARCHAR)
Question: What is Illinois 13 District's Party?
Here is the SQLite query to answer to the question: What is Illinois 13 D... | Here is the SQLite query to answer the question about Illinois 13 District's Party:
```
SELECT party FROM table_name_59 WHERE district = "Illinois 13";
``` | 25,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_59 (party VARCHAR, district VARCHAR)\n\n Question: What is Illinois 13 District's Party?\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_36 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)
Question: What is re-elected Incumbent Jerry Costello's First elected date?
Here is the SQLite ... | Your SQLite query to find the first elected date of re-elected Incumbent Jerry Costello looks correct. Here’s the formatted query:
```
SELECT MIN(first_elected) FROM table_name_36 WHERE results = "re-elected" AND incumbent = "jerry costello";
```
This query selects the earliest (`MIN`) date from the `first_elected` ... | 25,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 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)\n\n Question: What is re-elected Incumbent Jerry Costell... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (party VARCHAR, first_elected VARCHAR, district VARCHAR)
Question: What is the Party of District of Illinois 19 with an Incumbent First elected in 1996?
He... | Your provided SQLite query is almost correct but requires a small adjustment for string comparison. Specifically, the district name should match the case and formatting used in the database, and quotes should be used correctly for string values. Here is the corrected version:
```sql
SELECT party FROM table_name_37 WHE... | 25,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_37 (party VARCHAR, first_elected VARCHAR, district VARCHAR)\n\n Question: What is the Party of District of Illinois 19 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (tournament VARCHAR)
Question: What is Tournament, when 2000 is "A"?
Here is the SQLite query to answer to the question: What is Tournament, when 2000 is "... | It looks like there might be a misunderstanding in the provided query. The condition `2000 = "A"` does not appear to correctly reflect a meaningful condition based on the schema you provided. Since there is no column named "2000" in your table schema, it's unclear what the intended meaning is.
If the goal is to retrie... | 25,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_60 (tournament VARCHAR)\n\n Question: What is Tournament, when 2000 is \"A\"?\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 (Id VARCHAR)
Question: What is 1998, when 1997 is "3R", and when 1992 is "A"?
Here is the SQLite query to answer to the question: What is 1998, when 1997 i... | Based on the given schema and the question, it seems like you're trying to select a value related to the year 1998 based on certain conditions for the years 1997 and 1992. However, the column names in the schema do not reflect years; they just contain an `Id` column.
If you're asking to retrieve a specific value for ... | 25,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_26 (Id VARCHAR)\n\n Question: What is 1998, when 1997 is \"3R\", and when 1992 is \"A\"?\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_74 (Id VARCHAR)
Question: What is 1992, when 1999 is "Year-End Championship"?
Here is the SQLite query to answer to the question: What is 1992, when 1999 is "... | The provided SQL query needs some adjustments to properly answer the question, based on the SQLite data retrieval syntax. The context of the question suggests that we're trying to understand the relationship between the values 1992 and 1999. However, since 1992 is not a typical column name and appears to be treated as ... | 25,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_74 (Id VARCHAR)\n\n Question: What is 1992, when 1999 is \"Year-End Championship\"?\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_89 (Id VARCHAR)
Question: What is 2005, when 1998 is "F", and when 2002 is "2R"?
Here is the SQLite query to answer to the question: What is 2005, when 1998 i... | Here is the corrected SQLite query that you requested, ensuring to use proper case sensitivity for string comparison in SQLite:
```sql
SELECT 2005 FROM table_name_89 WHERE 1998 = 'F' AND 2002 = '2R';
``` | 25,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_89 (Id VARCHAR)\n\n Question: What is 2005, when 1998 is \"F\", and when 2002 is \"2R\"?\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 (british VARCHAR, examples VARCHAR)
Question: Which British has Examples of exit?
Here is the SQLite query to answer to the question: Which British has Exa... | Here is the SQLite query to answer the question: Which British has Examples of exit?:
```
SELECT british FROM table_name_88 WHERE examples = 'exit';
``` | 25,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_88 (british VARCHAR, examples VARCHAR)\n\n Question: Which British has Examples of exit?\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_61 (australian VARCHAR, british VARCHAR)
Question: Which Australian has British of ɒs?
Here is the SQLite query to answer to the question: Which Australian ha... | Here is the SQLite query to answer the question: Which Australian has British of ɒs?:
```
SELECT australian FROM table_name_61 WHERE british = "ɒs"
``` | 25,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_61 (australian VARCHAR, british VARCHAR)\n\n Question: Which Australian has British of ɒs?\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_10 (examples VARCHAR, australian VARCHAR)
Question: Which Examples has Australian of əm?
Here is the SQLite query to answer to the question: Which Examples ha... | Here is the SQLite query to answer the question: Which Examples has Australian of əm?:
```
SELECT examples FROM table_name_10 WHERE australian = "əm"
``` | 25,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_10 (examples VARCHAR, australian VARCHAR)\n\n Question: Which Examples has Australian of əm?\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_62 (american VARCHAR, british VARCHAR)
Question: Which American has British of ɛm?
Here is the SQLite query to answer to the question: Which American has Brit... | Your query is correctly formulated to find the American name corresponding to the British spelling that is "ɛm". Here it is wrapped in the requested format:
```
SELECT american FROM table_name_62 WHERE british = 'ɛm';
``` | 25,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_62 (american VARCHAR, british VARCHAR)\n\n Question: Which American has British of ɛm?\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_49 (ending VARCHAR, british VARCHAR, examples VARCHAR)
Question: Which Ending has British of iz, and Examples of achilles, appendices, fæces?
Here is the SQLi... | Here is the SQLite query to answer the question regarding which Ending has a British spelling of "iz" and examples of "achilles, appendices, fæces":
```
SELECT ending FROM table_name_49 WHERE british = 'iz' AND examples = 'achilles, appendices, fæces';
``` | 25,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_49 (ending VARCHAR, british VARCHAR, examples VARCHAR)\n\n Question: Which Ending has British of iz, and Examples of ac... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (first_year VARCHAR, model VARCHAR, power_hp__kw_ VARCHAR, displacement_cc VARCHAR, engine VARCHAR)
Question: What is the total number of First Year, when D... | Here is the SQLite query you requested:
```
SELECT COUNT(first_year)
FROM table_name_18
WHERE displacement_cc > 4719
AND engine = "V8"
AND power_hp__kw_ = "335 (246)"
AND model = "Ghibli SS";
``` | 25,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_18 (first_year VARCHAR, model VARCHAR, power_hp__kw_ VARCHAR, displacement_cc VARCHAR, engine VARCHAR)\n\n Question: Wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (first_year INTEGER, model VARCHAR)
Question: What is the lowest First Year, when Model is "Quattroporte (2.8)"?
Here is the SQLite query to answer to the ... | Here is the SQLite query to find the lowest First Year when the Model is "Quattroporte (2.8)":
```sql
SELECT MIN(first_year) FROM table_name_15 WHERE model = "Quattroporte (2.8)";
``` | 25,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_15 (first_year INTEGER, model VARCHAR)\n\n Question: What is the lowest First Year, when Model is \"Quattroporte (2.8)\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (power_hp__kw_ VARCHAR, model VARCHAR, engine VARCHAR, first_year VARCHAR, distribution VARCHAR)
Question: What is Power HP (kW), when First Year is greater... | Here is the SQLite query to answer the specified question:
```sql
SELECT power_hp__kw_ FROM table_name_60
WHERE first_year > '1965'
AND distribution = 'International'
AND engine = 'V6 Biturbo'
AND model = '425';
``` | 25,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_60 (power_hp__kw_ VARCHAR, model VARCHAR, engine VARCHAR, first_year VARCHAR, distribution VARCHAR)\n\n 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_72 (competition VARCHAR, date VARCHAR, venue VARCHAR)
Question: What is Competition, when Date is "January 11, 1996", when Venue is "San Diego , United States"... | Here is the SQLite query wrapped in the requested format:
```
SELECT competition FROM table_name_72 WHERE date = "January 11, 1996" AND venue = "San Diego , United States"
``` | 25,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_72 (competition VARCHAR, date VARCHAR, venue VARCHAR)\n\n Question: What is Competition, when Date is \"January 11, 199... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (score VARCHAR, venue VARCHAR, result VARCHAR)
Question: What is Score, when Venue is Riyadh, Saudi Arabia, and when Result is "Win"?
Here is the SQLite qu... | Here's the SQLite query to answer the question:
```
SELECT score FROM table_name_22 WHERE venue = "Riyadh, Saudi Arabia" AND result = "Win";
``` | 25,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_22 (score VARCHAR, venue VARCHAR, result VARCHAR)\n\n Question: What is Score, when Venue is Riyadh, Saudi Arabia, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR, venue VARCHAR)
Question: What is Result, when Date is "June 11, 1994", and when Venue is "Miami, United States"?
Here is the... | Here is the SQLite query to answer the question about the result when the date is "June 11, 1994" and the venue is "Miami, United States":
```
SELECT result FROM table_name_58 WHERE date = "June 11, 1994" AND venue = "Miami, United States"
``` | 25,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_58 (result VARCHAR, date VARCHAR, venue VARCHAR)\n\n Question: What is Result, when Date is \"June 11, 1994\", and when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (venue VARCHAR, date VARCHAR)
Question: What is Venue, when Date is "January 6, 1995"?
Here is the SQLite query to answer to the question: What is Venue, w... | Here is the SQLite query to answer the question regarding the venue on the specified date:
```
SELECT venue FROM table_name_35 WHERE date = "January 6, 1995"
``` | 25,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_35 (venue VARCHAR, date VARCHAR)\n\n Question: What is Venue, when Date is \"January 6, 1995\"?\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_31 (score VARCHAR, date VARCHAR)
Question: What is Score, when Date is "June 8, 1996"?
Here is the SQLite query to answer to the question: What is Score, when... | Here is the SQLite query to answer the question about the score on June 8, 1996:
```
SELECT score FROM table_name_31 WHERE date = "June 8, 1996"
``` | 25,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_31 (score VARCHAR, date VARCHAR)\n\n Question: What is Score, when Date is \"June 8, 1996\"?\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_14 (total_pld VARCHAR, team VARCHAR)
Question: What is the total number of PLD for Team Arsenal?
Here is the SQLite query to answer to the question: What is t... | Your SQLite query looks almost correct for counting the total entries of PLD for Team Arsenal. However, if you want to calculate the total number of PLD rather than just counting the rows, you might want to sum the values instead of counting them. Assuming that `total_pld` should be treated as a numeric type despite be... | 25,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_14 (total_pld VARCHAR, team VARCHAR)\n\n Question: What is the total number of PLD for Team Arsenal?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (total_pts VARCHAR, total_pld INTEGER)
Question: What is the total number of points for a total pld less than 38?
Here is the SQLite query to answer to the... | It seems that you're looking for a query to sum the total points instead of counting the number of entries. Given that `total_pts` is stored as a `VARCHAR`, it would likely need to be converted to a numeric type for summation. Here's the corrected SQLite query to get the total number of points for a `total_pld` less th... | 25,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_24 (total_pts VARCHAR, total_pld INTEGER)\n\n Question: What is the total number of points for a total pld less than 38... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (points INTEGER, score VARCHAR, attendance VARCHAR)
Question: How many Points have a Score of 3–2, and an Attendance larger than 17,398?
Here is the SQLite... | It looks like there's a small issue with the query, specifically with the condition for attendance. The correct way to filter for attendance greater than 17,398 should use a concatenated number rather than breaking it down with `OFFSET`.
Here's the corrected SQLite query:
```sql
SELECT SUM(points) FROM table_name_86... | 25,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_86 (points INTEGER, score VARCHAR, attendance VARCHAR)\n\n Question: How many Points have a Score of 3–2, and an Attend... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (score VARCHAR, loss VARCHAR)
Question: Which score has a Loss of hiller (22–15–1)?
Here is the SQLite query to answer to the question: Which score has a L... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_12 WHERE loss = "hiller (22–15–1)"
``` | 25,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_12 (score VARCHAR, loss VARCHAR)\n\n Question: Which score has a Loss of hiller (22–15–1)?\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_38 (loss VARCHAR, record VARCHAR)
Question: Which Loss has a Record of 41–32–6?
Here is the SQLite query to answer to the question: Which Loss has a Record of... | Here is the SQLite query to answer the question: Which Loss has a Record of 41–32–6?:
```
SELECT loss FROM table_name_38 WHERE record = "41–32–6"
``` | 25,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_38 (loss VARCHAR, record VARCHAR)\n\n Question: Which Loss has a Record of 41–32–6?\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_60 (attendance VARCHAR, points INTEGER)
Question: Which Attendance has more than 90 points?
Here is the SQLite query to answer to the question: Which Attendan... | Here is the SQLite query to answer the question about which Attendance has more than 90 points:
```
SELECT attendance FROM table_name_60 WHERE points > 90;
``` | 25,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_60 (attendance VARCHAR, points INTEGER)\n\n Question: Which Attendance has more than 90 points?\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_95 (date VARCHAR, record VARCHAR)
Question: On what date was the Record 41–32–6?
Here is the SQLite query to answer to the question: On what date was the Reco... | Here is the SQLite query to answer the question about the date when the Record 41–32–6 was logged:
```
SELECT date FROM table_name_95 WHERE record = "41–32–6"
``` | 25,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_95 (date VARCHAR, record VARCHAR)\n\n Question: On what date was the Record 41–32–6?\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_33 (drawn INTEGER, penalties VARCHAR, conversions VARCHAR)
Question: How many ties did he have when he had 1 penalties and more than 20 conversions?
Here is t... | Here's the correct SQLite query to answer the question about how many ties occurred when there was 1 penalty and more than 20 conversions:
```
SELECT COUNT(*) FROM table_name_33 WHERE penalties = '1' AND CAST(conversions AS INTEGER) > 20;
```
In this query, we use `COUNT(*)` to count the number of rows that meet the ... | 25,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_33 (drawn INTEGER, penalties VARCHAR, conversions VARCHAR)\n\n Question: How many ties did he have when he had 1 penalt... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (penalties INTEGER, points_total VARCHAR, played VARCHAR)
Question: What is the least number of penalties he got when his point total was over 1419 in more ... | The provided SQL query has a small issue. The condition in the `WHERE` clause should check for `points_total` greater than 1419 instead of equal to 1419. Additionally, the `played` field should be checked to be greater than 98, not just `=`. Here’s the corrected version of the SQLite query:
```sql
SELECT MIN(penalties... | 25,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_45 (penalties INTEGER, points_total VARCHAR, played VARCHAR)\n\n Question: What is the least number of penalties he got... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (fatalities INTEGER, aircraft_type VARCHAR)
Question: How many fatalities shows for the lockheed l-1049g?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about the fatalities for the Lockheed L-1049G:
```
SELECT SUM(fatalities) FROM table_name_62 WHERE aircraft_type = "lockheed l-1049g";
``` | 25,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_62 (fatalities INTEGER, aircraft_type VARCHAR)\n\n Question: How many fatalities shows for the lockheed l-1049g?\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_48 (people_on_board INTEGER, airline VARCHAR, aircraft_type VARCHAR)
Question: What is the number of people on board at Iberia Airline, with the aircraft type ... | The query you provided is using `AVG()` which calculates the average number of people on board. If you want to get the total number of people on board for Iberia Airline with the specified aircraft type, you should use `SUM()` instead. Here’s the corrected query:
```
SELECT SUM(people_on_board) FROM table_name_48 WHER... | 25,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_48 (people_on_board INTEGER, airline VARCHAR, aircraft_type VARCHAR)\n\n Question: What is the number of people on boar... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (fatalities INTEGER, airline VARCHAR, registration VARCHAR)
Question: How many fatalities are there for the airline of spantax, with a registration of ec-ar... | The SQL query provided is calculating the average fatalities instead of the total number of fatalities. To find the total number of fatalities for Spantax with the registration EC-ARZ, you should use the `SUM` function or simply select the `fatalities` directly, depending on the desired output. Here's the corrected que... | 25,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_67 (fatalities INTEGER, airline VARCHAR, registration VARCHAR)\n\n Question: How many fatalities are there for the airl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (end_of_term VARCHAR, age_at_inauguration VARCHAR)
Question: What is the End of term of the President with an Age at inauguration of 78years, 160days?
Here... | Here is the SQLite query to answer the question regarding the End of term of the President with an Age at inauguration of 78 years, 160 days:
```
SELECT end_of_term FROM table_name_89 WHERE age_at_inauguration = "78years, 160days";
``` | 25,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_89 (end_of_term VARCHAR, age_at_inauguration VARCHAR)\n\n Question: What is the End of term of the President with an Ag... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (length_of_retirement VARCHAR, age_at_inauguration VARCHAR)
Question: What is the Length of retirement of the President with an Age at inauguration of 70yea... | Here is the SQLite query to answer the question regarding the Length of retirement of the President with an Age at inauguration of 70 years and 53 days:
```
SELECT length_of_retirement FROM table_name_51 WHERE age_at_inauguration = "70years, 53days"
``` | 25,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_51 (length_of_retirement VARCHAR, age_at_inauguration VARCHAR)\n\n Question: What is the Length of retirement of the Pr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (date_of_inauguration VARCHAR, age_at_inauguration VARCHAR)
Question: What is the Date of inauguration of the President with an Age at inauguration of 73yea... | Here is the SQLite query to answer the question regarding the date of inauguration of the President with an age at inauguration of 73 years, 262 days:
```sql
SELECT date_of_inauguration FROM table_name_10 WHERE age_at_inauguration = "73years, 262days"
``` | 25,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_10 (date_of_inauguration VARCHAR, age_at_inauguration VARCHAR)\n\n Question: What is the Date of inauguration of the Pr... | |
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, country VARCHAR)
Question: Which player is from Australia?
Here is the SQLite query to answer to the question: Which player is from Austra... | Here is the SQLite query to answer the question: Which player is from Australia?:
```
SELECT player FROM table_name_88 WHERE country = "Australia";
``` | 25,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_88 (player VARCHAR, country VARCHAR)\n\n Question: Which player is from Australia?\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_58 (total INTEGER, to_par VARCHAR)
Question: Who has the highest total and a to par of +14?
Here is the SQLite query to answer to the question: Who has the hi... | Here is the SQLite query that answers the question of who has the highest total and a to_par of +14:
```
SELECT MAX(total) FROM table_name_58 WHERE to_par = '+14';
``` | 25,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_58 (total INTEGER, to_par VARCHAR)\n\n Question: Who has the highest total and a to par of +14?\n\nHere is the SQLite q... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (country VARCHAR, total VARCHAR)
Question: Which country had a total of 282?
Here is the SQLite query to answer to the question: Which country had a total ... | Here's the SQLite query to answer the question: Which country had a total of 282?:
```
SELECT country FROM table_name_37 WHERE total = '282'
```
Note that since the `total` column is defined as `VARCHAR`, the value 282 should be treated as a string when comparing. | 25,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_37 (country VARCHAR, total VARCHAR)\n\n Question: Which country had a total of 282?\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_84 (country VARCHAR, player VARCHAR)
Question: What country is Greg Norman from?
Here is the SQLite query to answer to the question: What country is Greg Norm... | Here is the SQLite query to answer the question: What country is Greg Norman from?:
```
SELECT country FROM table_name_84 WHERE player = "Greg Norman";
``` | 25,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_84 (country VARCHAR, player VARCHAR)\n\n Question: What country is Greg Norman 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_48 (to_par VARCHAR, country VARCHAR)
Question: What is Australia's to par?
Here is the SQLite query to answer to the question: What is Australia's to par?:
``... | Here is the SQLite query to answer the question: What is Australia's to par?:
```
SELECT to_par FROM table_name_48 WHERE country = "australia";
``` | 25,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_48 (to_par VARCHAR, country VARCHAR)\n\n Question: What is Australia'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_48 (total__kg_ INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
Question: Which Total (kg) has a Clean & Jerk smaller than 153, and a Snatch smaller tha... | The query you've provided has a couple of issues, particularly with the use of the `&` operator which is not appropriate in this context. Instead, you should simply use comparison operators for the conditions specified. Here is the corrected SQLite query:
```sql
SELECT total__kg_
FROM table_name_48
WHERE CAST(clean_... | 25,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_48 (total__kg_ INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)\n\n Question: Which Total (kg) has a Clean & Jer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (competition_or_tour VARCHAR, ground VARCHAR, opponent VARCHAR)
Question: In which competition or tour was nordsjælland the opponent with a hr Ground?
Here... | Your SQLite query looks correct for the question you've posed. Here’s the query wrapped in code format:
```
SELECT competition_or_tour FROM table_name_73 WHERE ground = "hr" AND opponent = "nordsjælland";
```
This will return the competition or tour where Nordsjælland was the opponent and the ground was "hr". If you... | 25,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_73 (competition_or_tour VARCHAR, ground VARCHAR, opponent VARCHAR)\n\n Question: In which competition or tour was nords... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (name VARCHAR, apps VARCHAR)
Question: What name has 118 as the apps?
Here is the SQLite query to answer to the question: What name has 118 as the apps?:
`... | It looks like you have a small mistake in your SQL query. The `apps` column is defined as a VARCHAR, so you should treat the value `118` as a string by quoting it. Here’s the corrected version of your SQL query:
```
SELECT name FROM table_name_87 WHERE apps = '118'
```
This query will return the `name` associated wi... | 25,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_87 (name VARCHAR, apps VARCHAR)\n\n Question: What name has 118 as the apps?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (judge VARCHAR, state VARCHAR)
Question: Who was the judge for the state SD?
Here is the SQLite query to answer to the question: Who was the judge for the ... | Here is the SQLite query to answer the question: Who was the judge for the state SD?:
```
SELECT judge FROM table_name_42 WHERE state = "SD";
``` | 25,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_42 (judge VARCHAR, state VARCHAR)\n\n Question: Who was the judge for the state SD?\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_87 (status VARCHAR, against VARCHAR, date VARCHAR)
Question: What's the status with an against over 20 on 18/11/1995?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the status with an against over 20 on 18/11/1995:
```
SELECT status FROM table_name_87 WHERE against > 20 AND date = "18/11/1995"
``` | 25,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_87 (status VARCHAR, against VARCHAR, date VARCHAR)\n\n Question: What's the status with an against over 20 on 18/11/199... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (status VARCHAR, date VARCHAR)
Question: What's the status on 16/12/1995?
Here is the SQLite query to answer to the question: What's the status on 16/12/19... | Here is the SQLite query to answer the question about the status on 16/12/1995:
```
SELECT status FROM table_name_35 WHERE date = "16/12/1995"
``` | 25,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_35 (status VARCHAR, date VARCHAR)\n\n Question: What's the status on 16/12/1995?\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_21 (date VARCHAR, status VARCHAR, against VARCHAR)
Question: What date has a status of 1995 rugby world cup and an against of 20?
Here is the SQLite query to ... | Here is the SQLite query to answer the question: What date has a status of 1995 rugby world cup and an against of 20?:
```
SELECT date FROM table_name_21 WHERE status = "1995 rugby world cup" AND against = '20'
``` | 25,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_21 (date VARCHAR, status VARCHAR, against VARCHAR)\n\n Question: What date has a status of 1995 rugby world cup and an ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (against VARCHAR, opposing_teams VARCHAR, status VARCHAR, venue VARCHAR)
Question: What's the total against for opposing team scotland at twickenham, london ... | Here is the SQLite query to answer the question regarding the total against for opposing team Scotland at Twickenham, London venue with a status of Five Nations:
```sql
SELECT COUNT(against)
FROM table_name_6
WHERE status = "five nations"
AND venue = "twickenham, london"
AND opposing_teams = "scotland";
``` | 25,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_6 (against VARCHAR, opposing_teams VARCHAR, status VARCHAR, venue VARCHAR)\n\n Question: What's the total against for o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (date VARCHAR, status VARCHAR, opposing_teams VARCHAR)
Question: When was the status test match with an opposing team of south africa?
Here is the SQLite q... | Here is the SQLite query to answer the question about when the status is "test match" with an opposing team of "south africa":
```
SELECT date FROM table_name_77 WHERE status = "test match" AND opposing_teams = "south africa"
``` | 25,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_77 (date VARCHAR, status VARCHAR, opposing_teams VARCHAR)\n\n Question: When was the status test match with an opposing... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
Question: What is the fewest gold medals for the nation with 4 silvers and more than 4 bronze?
Here is the SQ... | It looks like there’s a small error in your SQL query regarding the comparison against the columns `silver` and `bronze`, which are of type `VARCHAR`. You should count the occurrences of "silver" and "bronze" medals instead. Here's the corrected version of the SQL query:
```sql
SELECT MIN(gold)
FROM table_name_4
WHE... | 25,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_4 (gold INTEGER, silver VARCHAR, bronze VARCHAR)\n\n Question: What is the fewest gold medals for the nation with 4 sil... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (silver VARCHAR, gold VARCHAR, total VARCHAR)
Question: How many silver medals for the nation with fewer than 1 golds and total less than 1?
Here is the SQ... | The query you've provided has a small issue because the columns `gold` and `total` are of type VARCHAR. In SQLite, you'll need to convert these VARCHAR values to integers (or numeric) to properly apply the conditions. Here’s the correct query:
```sql
SELECT COUNT(silver)
FROM table_name_57
WHERE CAST(gold AS INTEGER... | 25,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_57 (silver VARCHAR, gold VARCHAR, total VARCHAR)\n\n Question: How many silver medals for the nation with fewer than 1 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)
Question: What is the year when not nominated was the result, and In the Na... | Here is the SQLite query that answers your question:
```
SELECT year__ceremony_
FROM table_name_24
WHERE result = "not nominated"
AND film_title_used_in_nomination = "In the Navel of the Sea";
``` | 25,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_24 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: What is the year when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (director VARCHAR, film_title_used_in_nomination VARCHAR)
Question: Who was the director of Small Voices, a film title used in nomination?
Here is the SQLi... | Here is the SQLite query to answer the question about the director of "Small Voices":
```sql
SELECT director FROM table_name_61 WHERE film_title_used_in_nomination = "Small Voices";
``` | 25,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_61 (director VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: Who was the director of Small Voices, a film... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (director VARCHAR, result VARCHAR, original_title VARCHAR)
Question: Which director had not nominated as a result, and had Bayan Ko: Kapit Sa Patalim as an ... | Your query is almost correct, but please note that SQLite is case-sensitive when it comes to string comparisons by default. If you want to ensure it works regardless of the case, you might want to use the `LOWER()` function. Here's an updated version of your query:
```sql
SELECT director
FROM table_name_51
WHERE LOW... | 25,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_51 (director VARCHAR, result VARCHAR, original_title VARCHAR)\n\n Question: Which director had not nominated as a resul... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (year__ceremony_ VARCHAR, original_title VARCHAR)
Question: What is the ceremony year when Ganito Kami Noon, Paano Kayo Ngayon was the original title?
Here... | Here is the SQLite query to answer the question regarding the ceremony year for "Ganito Kami Noon, Paano Kayo Ngayon":
```
SELECT year__ceremony_ FROM table_name_62 WHERE original_title = "Ganito Kami Noon, Paano Kayo Ngayon"
``` | 25,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_62 (year__ceremony_ VARCHAR, original_title VARCHAR)\n\n Question: What is the ceremony year when Ganito Kami Noon, Paa... | |
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, home_team VARCHAR)
Question: What was the score for home team AFC Hornchurch?
Here is the SQLite query to answer to the question: What was ... | Here is the SQLite query to find the score for the home team AFC Hornchurch:
```
SELECT score FROM table_name_74 WHERE home_team = "AFC Hornchurch";
``` | 25,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_74 (score VARCHAR, home_team VARCHAR)\n\n Question: What was the score for home team AFC Hornchurch?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (player VARCHAR, finish VARCHAR)
Question: What player has 1 as the place?
Here is the SQLite query to answer to the question: What player has 1 as the pla... | Here is the SQLite query to answer the question: What player has 1 as the place?:
```
SELECT player FROM table_name_69 WHERE finish = "1"
``` | 25,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_69 (player VARCHAR, finish VARCHAR)\n\n Question: What player has 1 as the place?\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_94 (country VARCHAR, total VARCHAR, player VARCHAR)
Question: What country has a total greater than 270, with sandy lyle as the player?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT country FROM table_name_94 WHERE total > 270 AND player = "sandy lyle"
``` | 25,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_94 (country VARCHAR, total VARCHAR, player VARCHAR)\n\n Question: What country has a total greater than 270, with sandy... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (total INTEGER, finish VARCHAR)
Question: How many totals have t6 as the finish?
Here is the SQLite query to answer to the question: How many totals have t... | Here is the correct SQLite query to answer the question:
```
SELECT COUNT(total) FROM table_name_85 WHERE finish = "t6"
```
This query counts the number of entries in the `table_name_85` table where the `finish` column equals "t6". | 25,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_85 (total INTEGER, finish VARCHAR)\n\n Question: How many totals have t6 as the finish?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (player VARCHAR, total VARCHAR)
Question: What player has 289 as the total?
Here is the SQLite query to answer to the question: What player has 289 as the ... | Here is the SQLite query to answer the question about which player has 289 as the total:
```
SELECT player FROM table_name_93 WHERE total = '289'
```
(Note: The total is stored as a VARCHAR, so the value '289' should be in single quotes.) | 25,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_93 (player VARCHAR, total VARCHAR)\n\n Question: What player has 289 as the total?\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_1 (local_networked VARCHAR, ad_freq VARCHAR)
Question: What is the local/network with an Ad frequency of 15 minutes?
Here is the SQLite query to answer to the... | Your SQL query is correct for retrieving the local network with an Ad frequency of 15 minutes. Here it is wrapped in code format as requested:
```
SELECT local_networked FROM table_name_1 WHERE ad_freq = "15 minutes";
``` | 25,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_1 (local_networked VARCHAR, ad_freq VARCHAR)\n\n Question: What is the local/network with an Ad frequency of 15 minutes... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (ad_freq VARCHAR, show_name VARCHAR)
Question: What is the ad frequency for the Show Off The Bench?
Here is the SQLite query to answer to the question: Wha... | It looks like there's a small inconsistency with the case used for the show name in your SQL query. Assuming that the correct and precise case for the show name is "Off The Bench," the query should reflect that. Here’s the correct SQLite query:
```
SELECT ad_freq FROM table_name_28 WHERE show_name = "Off The Bench";
`... | 25,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_28 (ad_freq VARCHAR, show_name VARCHAR)\n\n Question: What is the ad frequency for the Show Off The Bench?\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_10 (year INTEGER, category VARCHAR, awards VARCHAR)
Question: What year has Stacy as the category and award of Best Reality Star in Social Media?
Here is the ... | Here is the SQLite query to answer the question regarding the year for the specified category and award:
```
SELECT MIN(year) FROM table_name_10 WHERE category = "stacy" AND awards = "best reality star in social media"
``` | 25,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_10 (year INTEGER, category VARCHAR, awards VARCHAR)\n\n Question: What year has Stacy as the category and award of Best... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (result VARCHAR, awards VARCHAR, category VARCHAR, year VARCHAR)
Question: What was the result in the year greaters than 2008 with an award of Jahat and had... | Here is the SQLite query to answer the question:
```
SELECT result FROM table_name_51 WHERE category = "Stacy" AND year > 2008 AND awards = "Jahat";
``` | 25,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_51 (result VARCHAR, awards VARCHAR, category VARCHAR, year VARCHAR)\n\n Question: What was the result in the year great... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (awards VARCHAR, year VARCHAR, competition VARCHAR)
Question: What award was in the year after 2009 with a competition of Digi Wwwow Awards?
Here is the SQ... | Here is the SQLite query to answer the question about the award in the year after 2009 with a competition of Digi Wwwow Awards:
```
SELECT awards FROM table_name_35 WHERE year = '2010' AND competition = 'Digi Wwwow Awards';
```
Note: Adjust the year condition if you expect multiple years after 2009 (e.g., `year > '2... | 25,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_35 (awards VARCHAR, year VARCHAR, competition VARCHAR)\n\n Question: What award was in the year after 2009 with a compe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.