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_68 (country VARCHAR, time VARCHAR)
Question: What is Country, when Time is 1:29.43.60?
Here is the SQLite query to answer to the question: What is Country, wh... | Your SQLite query to fetch the country for the specified time is correct. Here it is wrapped in code format as requested:
```
SELECT country FROM table_name_68 WHERE time = "1:29.43.60";
``` | 49,900 | [
{
"from": "human",
"value": " 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 (country VARCHAR, time VARCHAR)\n\n Question: What is Country, when Time is 1:29.43.60?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (place INTEGER, points INTEGER)
Question: What is the lowest Place, when Points are greater than 2?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the lowest Place when Points are greater than 2:
```
SELECT MIN(place) FROM table_name_17 WHERE points > 2;
``` | 49,901 | [
{
"from": "human",
"value": " 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 (place INTEGER, points INTEGER)\n\n Question: What is the lowest Place, when Points are greater than 2?\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_21 (opponent VARCHAR, result VARCHAR)
Question: What team was the opponent when the result was l 0-27?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question about the opponent when the result was "l 0-27":
```
SELECT opponent FROM table_name_21 WHERE result = "l 0-27";
``` | 49,902 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, result VARCHAR)\n\n Question: What team was the opponent when the result was l 0-27?\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 (opponent VARCHAR, date VARCHAR)
Question: What team was the opponent on 09/20/1975?
Here is the SQLite query to answer to the question: What team was the ... | Here is the SQLite query to answer the question: What team was the opponent on 09/20/1975?:
```
SELECT opponent FROM table_name_62 WHERE date = "09/20/1975";
``` | 49,903 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, date VARCHAR)\n\n Question: What team was the opponent on 09/20/1975?\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_43 (location VARCHAR, date VARCHAR)
Question: What is the Location of the game on 11/08/1975*?
Here is the SQLite query to answer to the question: What is the... | Here's the SQLite query to answer the question about the location of the game on 11/08/1975*:
```
SELECT location FROM table_name_43 WHERE date = "11/08/1975*";
```
Please note that the asterisk (*) in the date filter may cause the query to not return results as it is not a standard character in dates. You might wan... | 49,904 | [
{
"from": "human",
"value": " 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 (location VARCHAR, date VARCHAR)\n\n Question: What is the Location of the game on 11/08/1975*?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)
Question: How many gold medals were awarded to the team with more than 2 bronze and exactly 29 silver medals?... | The provided query is almost correct, but there are two important adjustments to make. In SQL, comparing a string to an integer directly like that would not yield the desired results because `bronze` is defined as a `VARCHAR`. You need to convert the `bronze` field into an integer while performing the comparison. Addit... | 49,905 | [
{
"from": "human",
"value": " 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 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)\n\n Question: How many gold medals were awarded to the team with more... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (year INTEGER, actor VARCHAR)
Question: What is the latest year that Cicely Tyson is the Golden Globe Award actor?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the latest year that Cicely Tyson is the Golden Globe Award actor:
```
SELECT MAX(year) FROM table_name_76 WHERE actor = 'Cicely Tyson';
``` | 49,906 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (year INTEGER, actor VARCHAR)\n\n Question: What is the latest year that Cicely Tyson is the Golden Globe Award acto... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR)
Question: What Motion Picture after 2003 had Viola Davis nominated for ... | Here is the SQLite query to answer the question about Motion Pictures after 2003 that had Viola Davis nominated for Best Supporting Actress:
```
SELECT motion_picture
FROM table_name_70
WHERE year > 2003
AND result = "nominated"
AND actor = "Viola Davis"
AND award = "Best Supporting Actress";
``` | 49,907 | [
{
"from": "human",
"value": " 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 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR)\n\n Question: What Motion Pictu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (award VARCHAR, year VARCHAR)
Question: What Award has a date of 2002?
Here is the SQLite query to answer to the question: What Award has a date of 2002?:
`... | Your SQLite query is almost correct, but since the `year` column is defined as a `VARCHAR`, it's best to include the year in quotes to match the string format. Here’s the revised query:
```
SELECT award FROM table_name_5 WHERE year = '2002'
```
This will correctly retrieve the award(s) from the year 2002 from the ta... | 49,908 | [
{
"from": "human",
"value": " 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 (award VARCHAR, year VARCHAR)\n\n Question: What Award has a date of 2002?\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_97 (award VARCHAR, motion_picture VARCHAR)
Question: What Award was received bby the Motion Picture What's Love Got To Do With It?
Here is the SQLite query to... | Here is the SQLite query to answer the question about the award received by the motion picture "What's Love Got To Do With It":
```
SELECT award FROM table_name_97 WHERE motion_picture = "What's Love Got To Do With It";
``` | 49,909 | [
{
"from": "human",
"value": " 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 (award VARCHAR, motion_picture VARCHAR)\n\n Question: What Award was received bby the Motion Picture What's Love Got... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (year INTEGER, actor VARCHAR)
Question: What is the latest Year with Marianne Jean-Baptiste as the Golden Globe Actor?
Here is the SQLite query to answer t... | Here is the SQLite query to find the latest year with Marianne Jean-Baptiste as the Golden Globe Actor:
```
SELECT MAX(year) FROM table_name_50 WHERE actor = "marianne jean-baptiste";
``` | 49,910 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (year INTEGER, actor VARCHAR)\n\n Question: What is the latest Year with Marianne Jean-Baptiste as the Golden Globe ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (title VARCHAR, date VARCHAR)
Question: Which film was released in August 2004?
Here is the SQLite query to answer to the question: Which film was released... | To accurately search for films released in August 2004, it would be more effective to check for dates that fall within that month and year. The SQLite query may need to use a date format that captures all dates in that month, rather than checking for an exact string match like "august 2004". Assuming the dates in the `... | 49,911 | [
{
"from": "human",
"value": " 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 (title VARCHAR, date VARCHAR)\n\n Question: Which film was released in August 2004?\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_39 (production_cost VARCHAR, director VARCHAR)
Question: What was the production cost for the film directed by 2004?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question regarding the production cost for the film directed by 2004:
```
SELECT production_cost FROM table_name_39 WHERE director = "2004";
``` | 49,912 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (production_cost VARCHAR, director VARCHAR)\n\n Question: What was the production cost for the film directed by 2004... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (title VARCHAR, director VARCHAR)
Question: What film did Pen-Ek Ratanaruang direct?
Here is the SQLite query to answer to the question: What film did Pen-... | Certainly! Here is the SQLite query wrapped in code format:
```
SELECT title FROM table_name_62 WHERE director = "Pen-Ek Ratanaruang";
``` | 49,913 | [
{
"from": "human",
"value": " 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 (title VARCHAR, director VARCHAR)\n\n Question: What film did Pen-Ek Ratanaruang direct?\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_13 (date VARCHAR, director VARCHAR)
Question: When was the film directed by Pen-Ek Ratanaruang released?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question regarding when the film directed by Pen-Ek Ratanaruang was released:
```
SELECT date FROM table_name_13 WHERE director = "Pen-Ek Ratanaruang";
``` | 49,914 | [
{
"from": "human",
"value": " 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 (date VARCHAR, director VARCHAR)\n\n Question: When was the film directed by Pen-Ek Ratanaruang released?\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_50 (director VARCHAR, title VARCHAR)
Question: Who directed Tequila?
Here is the SQLite query to answer to the question: Who directed Tequila?:
```
SELECT dir... | ```sql
SELECT director FROM table_name_50 WHERE title = "Tequila";
``` | 49,915 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (director VARCHAR, title VARCHAR)\n\n Question: Who directed Tequila?\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_1 (name VARCHAR, left_office VARCHAR)
Question: Who left office in June 2011?
Here is the SQLite query to answer to the question: Who left office in June 2011... | The provided SQLite query is almost correct, but it assumes that the `left_office` column contains the exact string "june 2011". If the column format includes a day or is structured differently (for example, as a date), we need to ensure the query will accurately reflect the criteria.
Assuming you need to capture all... | 49,916 | [
{
"from": "human",
"value": " 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 (name VARCHAR, left_office VARCHAR)\n\n Question: Who left office in June 2011?\n\nHere is the SQLite query to answer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (born_died VARCHAR, country VARCHAR)
Question: What is the Born-Died date for the Representative of Italy?
Here is the SQLite query to answer to the questi... | Your SQLite query is almost correct, but it would be more appropriate to match the case sensitivity. Here’s the refined version of your query, wrapped properly:
```sql
SELECT born_died FROM table_name_16 WHERE LOWER(country) = "italy";
```
This query selects the `born_died` date for representatives from Italy while ... | 49,917 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (born_died VARCHAR, country VARCHAR)\n\n Question: What is the Born-Died date for the Representative of Italy?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (country VARCHAR, left_office VARCHAR)
Question: What is the country of the Representative that left office as incumbent?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question about the country of the Representative that left office as incumbent:
```
SELECT country FROM table_name_29 WHERE left_office = "incumbent";
``` | 49,918 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (country VARCHAR, left_office VARCHAR)\n\n Question: What is the country of the Representative that left office as i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (package_option VARCHAR, language VARCHAR, television_service VARCHAR)
Question: What is Package/Option, when Language is Italian, and when Television Servi... | Here is the SQLite query to answer the question based on the given schema:
```
SELECT package_option FROM table_name_51 WHERE language = "Italian" AND television_service = "Sky Radio"
``` | 49,919 | [
{
"from": "human",
"value": " 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 (package_option VARCHAR, language VARCHAR, television_service VARCHAR)\n\n Question: What is Package/Option, when La... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (hdtv VARCHAR, television_service VARCHAR)
Question: What is HDTV, when Television Service is MTV Rocks?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question: What is HDTV, when Television Service is MTV Rocks?:
```
SELECT hdtv FROM table_name_21 WHERE television_service = "MTV Rocks";
``` | 49,920 | [
{
"from": "human",
"value": " 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 (hdtv VARCHAR, television_service VARCHAR)\n\n Question: What is HDTV, when Television Service is MTV Rocks?\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_11 (television_service VARCHAR, hdtv VARCHAR, language VARCHAR)
Question: What is Television Service, when HDTV is No, and when Language is Italian?
Here is t... | Here is the SQLite query to answer the question regarding television services when HDTV is "No" and the language is "Italian":
```
SELECT television_service FROM table_name_11 WHERE hdtv = "no" AND language = "italian";
``` | 49,921 | [
{
"from": "human",
"value": " 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 (television_service VARCHAR, hdtv VARCHAR, language VARCHAR)\n\n Question: What is Television Service, when HDTV is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (television_service VARCHAR, package_option VARCHAR, language VARCHAR)
Question: What is Television Service, when Package/Option is Sky Famiglia, and when L... | Here is the SQLite query to answer your question:
```
SELECT television_service FROM table_name_54 WHERE package_option = "Sky Famiglia" AND language = "Italian";
``` | 49,922 | [
{
"from": "human",
"value": " 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 (television_service VARCHAR, package_option VARCHAR, language VARCHAR)\n\n Question: What is Television Service, whe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (hdtv VARCHAR, language VARCHAR, television_service VARCHAR)
Question: What is HDTV, when Language is English, and when Television Service is MTV Dance?
He... | Here is the SQLite query to answer the specified question:
```
SELECT hdtv FROM table_name_82 WHERE language = "English" AND television_service = "MTV Dance";
``` | 49,923 | [
{
"from": "human",
"value": " 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 (hdtv VARCHAR, language VARCHAR, television_service VARCHAR)\n\n Question: What is HDTV, when Language is English, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (player VARCHAR)
Question: How many average 100s were there for Tim Bresnan?
Here is the SQLite query to answer to the question: How many average 100s were... | The SQL query you provided seems to have some issues, particularly in how it calculates the average of hundreds. Assuming you have a column that tracks the number of hundreds for each player (which is not specified in your schema), I will create a sample query that would make sense based on the requirement.
However, s... | 49,924 | [
{
"from": "human",
"value": " 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 (player VARCHAR)\n\n Question: How many average 100s were there for Tim Bresnan?\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 (platform VARCHAR, frequency__per_hour_ INTEGER)
Question: How many Platforms have a Frequency of less than 2?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question of how many platforms have a frequency of less than 2:
```
SELECT COUNT(platform) FROM table_name_60 WHERE frequency__per_hour_ < 2
``` | 49,925 | [
{
"from": "human",
"value": " 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 (platform VARCHAR, frequency__per_hour_ INTEGER)\n\n Question: How many Platforms have a Frequency of less than 2?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (height__cm_ VARCHAR, birthplace VARCHAR)
Question: What is the 1999-2000 team, when the Height (cm) is less than 187, and when the Birthplace is Cloquet, M... | Your query looks almost correct but it's important to ensure that you're selecting a valid field from your table. In the schema provided, there are no columns that directly refer to a team or a year for the 1999-2000 team. It seems the question phrasing may be more about filtering data rather than directly referencing ... | 49,926 | [
{
"from": "human",
"value": " 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 (height__cm_ VARCHAR, birthplace VARCHAR)\n\n Question: What is the 1999-2000 team, when the Height (cm) is less tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (height__cm_ INTEGER, weight__kg_ VARCHAR)
Question: What is the sum of Height (cm), when the Weight (kg) is 90?
Here is the SQLite query to answer to the ... | Your SQLite query looks good, but there is a minor issue. Since the column `weight__kg_` is of type `VARCHAR`, it needs to be compared as a string. Therefore, you should compare it to the string '90'. Here is the corrected query:
```
SELECT SUM(height__cm_) FROM table_name_13 WHERE weight__kg_ = '90'
``` | 49,927 | [
{
"from": "human",
"value": " 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 (height__cm_ INTEGER, weight__kg_ VARCHAR)\n\n Question: What is the sum of Height (cm), when the Weight (kg) is 90?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (losses VARCHAR, pct VARCHAR, finish VARCHAR)
Question: Which Losses have a Pct of .451 and Finished 6th?
Here is the SQLite query to answer to the questio... | Your SQLite query looks good! Just to reiterate, here’s the correctly formatted code block for your SQL statement:
```
SELECT losses FROM table_name_92 WHERE pct = ".451" AND finish = "6th";
```
This query will retrieve the losses from the `table_name_92` table where the percentage (pct) is equal to .451 and the fin... | 49,928 | [
{
"from": "human",
"value": " 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 (losses VARCHAR, pct VARCHAR, finish VARCHAR)\n\n Question: Which Losses have a Pct of .451 and Finished 6th?\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_65 (season VARCHAR, losses VARCHAR)
Question: Which season has Losses of 30?
Here is the SQLite query to answer to the question: Which season has Losses of 30... | Here is the SQLite query to answer the question: Which season has Losses of 30?:
```
SELECT season FROM table_name_65 WHERE losses = "30"
``` | 49,929 | [
{
"from": "human",
"value": " 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 (season VARCHAR, losses VARCHAR)\n\n Question: Which season has Losses of 30?\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_4 (season VARCHAR, division VARCHAR)
Question: In which Season was the Division Washington Bullets?
Here is the SQLite query to answer to the question: In whi... | Here's the SQLite query you need to answer the question regarding the season for the division "Washington Bullets":
```sql
SELECT season FROM table_name_4 WHERE division = "Washington Bullets";
``` | 49,930 | [
{
"from": "human",
"value": " 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 (season VARCHAR, division VARCHAR)\n\n Question: In which Season was the Division Washington Bullets?\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_10 (season VARCHAR, wins VARCHAR, finish VARCHAR)
Question: In which season were there Wins of 29 and a Finished place of 3rd?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the season with Wins of 29 and a Finish place of 3rd:
```
SELECT season FROM table_name_10 WHERE wins = "29" AND finish = "3rd";
``` | 49,931 | [
{
"from": "human",
"value": " 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 (season VARCHAR, wins VARCHAR, finish VARCHAR)\n\n Question: In which season were there Wins of 29 and a Finished pl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (easa__eu_ VARCHAR, notes VARCHAR)
Question: What is the EASA (EU) when the notes show aoc 135?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question regarding the EASA (EU) when the notes show "aoc 135":
```
SELECT easa__eu_ FROM table_name_76 WHERE notes = "aoc 135";
``` | 49,932 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (easa__eu_ VARCHAR, notes VARCHAR)\n\n Question: What is the EASA (EU) when the notes show aoc 135?\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_39 (notes VARCHAR, fleet_size VARCHAR)
Question: What is the Notes when the fleet size is 3?
Here is the SQLite query to answer to the question: What is the N... | Here is the SQLite query to answer the question of what the notes are when the fleet size is 3:
```
SELECT notes FROM table_name_39 WHERE fleet_size = '3'
``` | 49,933 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (notes VARCHAR, fleet_size VARCHAR)\n\n Question: What is the Notes when the fleet size is 3?\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_27 (fleet_size VARCHAR, easa__eu_ VARCHAR)
Question: What is the Fleet Size when the EASA (EU) is no?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question "What is the Fleet Size when the EASA (EU) is no?":
```
SELECT fleet_size FROM table_name_27 WHERE easa__eu_ = 'no';
``` | 49,934 | [
{
"from": "human",
"value": " 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 (fleet_size VARCHAR, easa__eu_ VARCHAR)\n\n Question: What is the Fleet Size when the EASA (EU) is no?\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_55 (airline VARCHAR, easa__eu_ VARCHAR)
Question: hat is the Airline when the EASA (EU) is yes?
Here is the SQLite query to answer to the question: hat is the... | Here is the SQLite query to answer the question: What is the Airline when the EASA (EU) is yes?:
```
SELECT airline FROM table_name_55 WHERE easa__eu_ = "yes"
``` | 49,935 | [
{
"from": "human",
"value": " 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 (airline VARCHAR, easa__eu_ VARCHAR)\n\n Question: hat is the Airline when the EASA (EU) is yes?\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_51 (airline VARCHAR, notes VARCHAR)
Question: What is the Airline when the notes show aoc 135?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question about the airline when the notes show "aoc 135":
```
SELECT airline FROM table_name_51 WHERE notes = "aoc 135"
``` | 49,936 | [
{
"from": "human",
"value": " 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 (airline VARCHAR, notes VARCHAR)\n\n Question: What is the Airline when the notes show aoc 135?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (year INTEGER, competition VARCHAR)
Question: What is the highest Year with a Competition that is new york city marathon?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question about the highest year with a competition that is the New York City Marathon:
```
SELECT MAX(year) FROM table_name_10 WHERE competition = "new york city marathon"
``` | 49,937 | [
{
"from": "human",
"value": " 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, competition VARCHAR)\n\n Question: What is the highest Year with a Competition that is new york city ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (notes VARCHAR, venue VARCHAR)
Question: What is the Notes with a Venue that is venice, italy?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question:
```
SELECT notes FROM table_name_23 WHERE venue = "venice, italy"
``` | 49,938 | [
{
"from": "human",
"value": " 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 (notes VARCHAR, venue VARCHAR)\n\n Question: What is the Notes with a Venue that is venice, italy?\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_76 (Id VARCHAR)
Question: What is 1994, when 2002 is ATP Masters Series?
Here is the SQLite query to answer to the question: What is 1994, when 2002 is ATP Ma... | The SQLite query you provided contains logical mistakes in the context of SQL syntax and structure. Based on typical SQL practices, it seems like you're trying to retrieve a specific value (1994) based on a condition involving another value (2002 related to "ATP Masters Series"). However, it seems to imply there should... | 49,939 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (Id VARCHAR)\n\n Question: What is 1994, when 2002 is ATP Masters Series?\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_50 (career_sr VARCHAR)
Question: What is 2001, when 1987 is N/A, and when Career SR is N/A?
Here is the SQLite query to answer to the question: What is 2001, ... | The provided query has a couple of misunderstandings regarding the use of column names and values. The question mentions "1987" and "Career SR" but does not clarify if there are actual columns named "1987" or if that is a value to compare. Assuming "1987" is a value you want to compare against any column and that "care... | 49,940 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (career_sr VARCHAR)\n\n Question: What is 2001, when 1987 is N/A, and when Career SR is N/A?\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_39 (Id VARCHAR)
Question: What is 1989, when 1999 is F, and when 1994 is 2R?
Here is the SQLite query to answer to the question: What is 1989, when 1999 is F,... | It seems like you're asking for an SQLite query based on a given schema and relational context. Based on the schema provided (`CREATE TABLE table_name_39 (Id VARCHAR)`), the query you are looking for would select a specific value under specific conditions. Here’s the formatted query wrapped with code tags:
```
SELECT ... | 49,941 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (Id VARCHAR)\n\n Question: What is 1989, when 1999 is F, and when 1994 is 2R?\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_33 (Id VARCHAR)
Question: What is 2001, when 1990 is A, when 1987 is NME, and when 1997 is 1R?
Here is the SQLite query to answer to the question: What is 200... | The SQLite query you provided contains some issues with syntax and logic. The columns in the `table_name_33` schema are not defined clearly to relate to the values you are comparing against (1990, 1987, and 1997). However, if we assume that the table contains rows with these specific mappings, the query needs to refere... | 49,942 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What is 2001, when 1990 is A, when 1987 is NME, and when 1997 is 1R?\n\nHere is the SQLit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (Id VARCHAR)
Question: What is 1997, when 2003 is 0 / 4?
Here is the SQLite query to answer to the question: What is 1997, when 2003 is 0 / 4?:
```
SELECT ... | Your SQLite query seems to suggest that you want to select the value `1997` based on a condition related to the year `2003`. However, the structure of your query isn't correct in the context of the provided schema. Given that your table only has an `Id` column, and assuming `Id` is where you store year values, you woul... | 49,943 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What is 1997, when 2003 is 0 / 4?\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_38 (total INTEGER, nominated_by_the_taoiseach VARCHAR, agricultural_panel VARCHAR)
Question: What is the average total 0 are nominated by the Taoiseach and the... | It looks like you have a small mistake in your SQLite query, particularly with the condition for `nominated_by_the_taoiseach`. If you meant to filter for records where `nominated_by_the_taoiseach` has a specific value, you'll want to specify that value correctly.
Assuming `nominated_by_the_taoiseach` should be a valu... | 49,944 | [
{
"from": "human",
"value": " 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 (total INTEGER, nominated_by_the_taoiseach VARCHAR, agricultural_panel VARCHAR)\n\n Question: What is the average to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (cultural_and_educational_panel INTEGER, industrial_and_commercial_panel VARCHAR, agricultural_panel VARCHAR)
Question: What is the total of the cultural an... | Here is the SQLite query to answer your question:
```
SELECT SUM(cultural_and_educational_panel)
FROM table_name_90
WHERE industrial_and_commercial_panel = '0' AND agricultural_panel > '0';
```
Note that I've used quotes around the numeric values assuming `industrial_and_commercial_panel` and `agricultural_panel` ... | 49,945 | [
{
"from": "human",
"value": " 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 (cultural_and_educational_panel INTEGER, industrial_and_commercial_panel VARCHAR, agricultural_panel VARCHAR)\n\n Qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (university_of_dublin INTEGER, nominated_by_the_taoiseach VARCHAR, industrial_and_commercial_panel VARCHAR)
Question: What is the total for the University o... | Here is the SQLite query formatted as requested:
```
SELECT SUM(university_of_dublin) FROM table_name_71 WHERE nominated_by_the_taoiseach = 2 AND industrial_and_commercial_panel > 0
``` | 49,946 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (university_of_dublin INTEGER, nominated_by_the_taoiseach VARCHAR, industrial_and_commercial_panel VARCHAR)\n\n Ques... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (labour_panel INTEGER, university_of_dublin VARCHAR, agricultural_panel VARCHAR)
Question: What is the highest labour panel when the university of dublin is... | Here is the SQLite query to answer the question:
```
SELECT MAX(labour_panel) FROM table_name_46 WHERE university_of_dublin < 2 AND agricultural_panel > 5
``` | 49,947 | [
{
"from": "human",
"value": " 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 (labour_panel INTEGER, university_of_dublin VARCHAR, agricultural_panel VARCHAR)\n\n Question: What is the highest l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (university_of_dublin INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR)
Question: What is the average for the univer... | Here is the SQLite query to answer the question:
```sql
SELECT AVG(university_of_dublin)
FROM table_name_75
WHERE industrial_and_commercial_panel > 4
AND national_university_of_ireland > 3;
``` | 49,948 | [
{
"from": "human",
"value": " 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 (university_of_dublin INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR)\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_21 (year VARCHAR, site VARCHAR, score VARCHAR)
Question: When has a Site of tainan city and a Score of 8–6?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about when there is a site of "tainan city" and a score of "8–6":
```sql
SELECT year FROM table_name_21 WHERE site = 'tainan city' AND score = '8–6';
``` | 49,949 | [
{
"from": "human",
"value": " 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 (year VARCHAR, site VARCHAR, score VARCHAR)\n\n Question: When has a Site of tainan city and a Score of 8–6?\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_35 (score VARCHAR, winning_team VARCHAR)
Question: Which Score that has a Winning team of wei chuan dragons?
Here is the SQLite query to answer to the questio... | Your SQLite query is correct for the question asked. Here it is wrapped with the appropriate code formatting:
```
SELECT score FROM table_name_35 WHERE winning_team = "wei chuan dragons";
```
This query will retrieve all scores from `table_name_35` where the `winning_team` is "wei chuan dragons". | 49,950 | [
{
"from": "human",
"value": " 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 (score VARCHAR, winning_team VARCHAR)\n\n Question: Which Score that has a Winning team of wei chuan dragons?\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_37 (distance VARCHAR)
Question: What is the number of 2011 passengers in millions that have traveled a distance of 1271km?
Here is the SQLite query to answer ... | The provided SQLite query seems to misunderstand the requirement. The query is attempting to select a static value for passengers instead of counting the number of records that match the given criteria. To properly count the number of passengers who have traveled a distance of 1271 km in 2011, you should use the follow... | 49,951 | [
{
"from": "human",
"value": " 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 (distance VARCHAR)\n\n Question: What is the number of 2011 passengers in millions that have traveled a distance of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (distance VARCHAR)
Question: What is the number of 2012 passengers in millions that have traveled a distance of 1075km?
Here is the SQLite query to answer ... | The provided SQL query has a few issues. To correctly count the number of passengers in 2012 that traveled a distance of 1075 km, we need to adjust the query.
Assuming that your schema has the relevant data (e.g., a way to relate passengers with years, as the current schema only shows a distance column), here’s a ref... | 49,952 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (distance VARCHAR)\n\n Question: What is the number of 2012 passengers in millions that have traveled a distance of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (second VARCHAR, sixth VARCHAR)
Question: What is SECOND, when SIXTH is Victoria?
Here is the SQLite query to answer to the question: What is SECOND, when ... | Here is the SQLite query to answer the question "What is SECOND, when SIXTH is Victoria?":
```sql
SELECT second FROM table_name_18 WHERE sixth = "Victoria"
``` | 49,953 | [
{
"from": "human",
"value": " 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 (second VARCHAR, sixth VARCHAR)\n\n Question: What is SECOND, when SIXTH is Victoria?\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_64 (second VARCHAR, first VARCHAR)
Question: What is SECOND, when FIRST is Western Australia?
Here is the SQLite query to answer to the question: What is SECO... | Here is the SQLite query that answers your question:
```
SELECT second FROM table_name_64 WHERE first = "Western Australia";
``` | 49,954 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (second VARCHAR, first VARCHAR)\n\n Question: What is SECOND, when FIRST is Western Australia?\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_21 (lost VARCHAR, team VARCHAR, points VARCHAR)
Question: How many losses does corinthians have when they scored over 22 points?
Here is the SQLite query to a... | Your SQLite query has the right idea, but it contains a small error in the condition for counting losses. The `lost` column seems to be used inversely; you need to look for a specific value that indicates a loss instead of counting all occurrences of the `lost` column. Assuming that the `lost` column contains a specifi... | 49,955 | [
{
"from": "human",
"value": " 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, team VARCHAR, points VARCHAR)\n\n Question: How many losses does corinthians have when they scored ov... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (termination VARCHAR, earpads VARCHAR, us_msrp VARCHAR)
Question: What was the termination type for the headphones with comfort pads and selling for $150?
H... | Here is the SQLite query to answer the question regarding the termination type for the headphones with comfort pads and selling for $150:
```sql
SELECT termination FROM table_name_2 WHERE earpads = 'comfort pads' AND us_msrp = '$150';
``` | 49,956 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (termination VARCHAR, earpads VARCHAR, us_msrp VARCHAR)\n\n Question: What was the termination type for the headphone... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (earpads VARCHAR, headphone_class VARCHAR, us_msrp VARCHAR)
Question: What are the earpads for the headphones that are Reference class and have MSRP of $695... | Here's the correct SQLite query wrapped in code formatting:
```
SELECT earpads FROM table_name_88 WHERE headphone_class = "Reference" AND us_msrp = "$695";
```
Note that I capitalized "Reference" to match the typical naming conventions unless the values are case-sensitive in your database. Adjust it according to you... | 49,957 | [
{
"from": "human",
"value": " 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 (earpads VARCHAR, headphone_class VARCHAR, us_msrp VARCHAR)\n\n Question: What are the earpads for the headphones th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (earpads VARCHAR, driver_matched_db VARCHAR, us_msrp VARCHAR)
Question: What earpads do the headphones with driver-matched dB over 0.05 and MSRP of $79 have... | Your SQLite query has a small issue with the way you're comparing the `us_msrp` value. In SQLite, string values should be enclosed in single quotes `'`, not double quotes `"`. Also, you need to ensure that the `driver_matched_db` field is being treated as a number if it is a string in the database. Here's the corrected... | 49,958 | [
{
"from": "human",
"value": " 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 (earpads VARCHAR, driver_matched_db VARCHAR, us_msrp VARCHAR)\n\n Question: What earpads do the headphones with driv... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (race_name VARCHAR, round VARCHAR)
Question: What is the name of the race from round 1?
Here is the SQLite query to answer to the question: What is the nam... | Here is the SQLite query to answer the question about the name of the race from round 1:
```
SELECT race_name FROM table_name_90 WHERE round = '1';
``` | 49,959 | [
{
"from": "human",
"value": " 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 (race_name VARCHAR, round VARCHAR)\n\n Question: What is the name of the race from round 1?\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_37 (race_name VARCHAR, city_state VARCHAR)
Question: Which race was in Sydney, New South Wales?
Here is the SQLite query to answer to the question: Which race... | Here is the SQLite query to answer the question: Which race was in Sydney, New South Wales?:
```
SELECT race_name FROM table_name_37 WHERE city_state = "sydney, new south wales";
``` | 49,960 | [
{
"from": "human",
"value": " 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 (race_name VARCHAR, city_state VARCHAR)\n\n Question: Which race was in Sydney, New South Wales?\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_30 (circuit VARCHAR, round INTEGER)
Question: Which circuit had a round larger than 5?
Here is the SQLite query to answer to the question: Which circuit had a... | ```sql
SELECT circuit FROM table_name_30 WHERE round > 5;
``` | 49,961 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (circuit VARCHAR, round INTEGER)\n\n Question: Which circuit had a round larger than 5?\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_42 (story VARCHAR, date VARCHAR)
Question: What is the title of the story published on October 19, 2011?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the title of the story published on October 19, 2011:
```
SELECT story FROM table_name_42 WHERE date = 'October 19, 2011';
``` | 49,962 | [
{
"from": "human",
"value": " 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 (story VARCHAR, date VARCHAR)\n\n Question: What is the title of the story published on October 19, 2011?\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_22 (issue VARCHAR, date VARCHAR)
Question: What Issue number was released on August 17, 2011?
Here is the SQLite query to answer to the question: What Issue n... | Here is the SQLite query to answer the question about what issue number was released on August 17, 2011:
```
SELECT issue FROM table_name_22 WHERE date = "August 17, 2011";
``` | 49,963 | [
{
"from": "human",
"value": " 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 (issue VARCHAR, date VARCHAR)\n\n Question: What Issue number was released on August 17, 2011?\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_47 (story VARCHAR, issue VARCHAR)
Question: What story title was included in Issue #8?
Here is the SQLite query to answer to the question: What story title wa... | Here is the SQLite query to answer the question about which story title was included in Issue #8:
```
SELECT story FROM table_name_47 WHERE issue = "#8"
``` | 49,964 | [
{
"from": "human",
"value": " 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 (story VARCHAR, issue VARCHAR)\n\n Question: What story title was included in Issue #8?\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_26 (young_classification VARCHAR, sprint_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
Question: Which young classificat... | Your SQLite query to find the young classification for Christian Vande Velde with Team Columbia and Mark Cavendish is almost correct, but it seems there are some logical inconsistencies in the query. Typically, you'd want to either look for the young classification associated with either a specific entry or both entrie... | 49,965 | [
{
"from": "human",
"value": " 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 (young_classification VARCHAR, sprint_classification VARCHAR, general_classification VARCHAR, team_classification VARCH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (mountains_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
Question: What mountains classification corresponds to Mark ... | Your SQLite query to find the mountains classification for Mark Cavendish and the Garmin-Chipotle-H30 team is almost correct, but you need to ensure that you reference the correct field for the athlete's name. Based on the context, if "Mark Cavendish" is actually stored in `general_classification`, the query provided i... | 49,966 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (mountains_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)\n\n Question: What m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (stage__winner_ VARCHAR, young_classification VARCHAR, sprint_classification VARCHAR, team_classification VARCHAR)
Question: Who was the winner for a Sprint... | Here is the SQLite query to answer the question about the winner for the Sprint Classification and Young Classification related to Mark Cavendish and Garmin-Chipotle-H30 for the team:
```sql
SELECT stage__winner_
FROM table_name_42
WHERE sprint_classification = "mark cavendish"
AND team_classification = "garmin-c... | 49,967 | [
{
"from": "human",
"value": " 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 (stage__winner_ VARCHAR, young_classification VARCHAR, sprint_classification VARCHAR, team_classification VARCHAR)\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_66 (outcome VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR)
Question: Which outcome has a partner named Mark Dickson, with the opponents of Hans Gild... | Here is the SQLite query wrapped in code formatting:
```
SELECT outcome FROM table_name_66 WHERE partner = "Mark Dickson" AND opponents_in_the_final = "Hans Gildemeister Belus Prajoux";
``` | 49,968 | [
{
"from": "human",
"value": " 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 (outcome VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR)\n\n Question: Which outcome has a partner named M... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (format VARCHAR, catalog VARCHAR)
Question: What is the Format with a Catalog that is vcrd 103?
Here is the SQLite query to answer to the question: What is... | Your SQLite query is correctly structured to retrieve the desired information. Here it is wrapped for clarity:
```
SELECT format FROM table_name_78 WHERE catalog = "vcrd 103";
```
This query will return the `format` associated with the catalog entry "vcrd 103" from the `table_name_78` table. | 49,969 | [
{
"from": "human",
"value": " 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 (format VARCHAR, catalog VARCHAR)\n\n Question: What is the Format with a Catalog that is vcrd 103?\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_27 (region VARCHAR, catalog VARCHAR)
Question: What is the Region with a Catalog that is vlmx 1087-3?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question regarding the region with a catalog that is "vlmx 1087-3":
```
SELECT region FROM table_name_27 WHERE catalog = "vlmx 1087-3";
``` | 49,970 | [
{
"from": "human",
"value": " 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 (region VARCHAR, catalog VARCHAR)\n\n Question: What is the Region with a Catalog that is vlmx 1087-3?\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_90 (format VARCHAR, label VARCHAR, date VARCHAR)
Question: What is the Format with a Label of electropolis and a Date that is 2002?
Here is the SQLite query t... | Here's the SQLite query to answer the question regarding the format with a label of "electropolis" and a date of "2002":
```sql
SELECT format FROM table_name_90 WHERE label = "electropolis" AND date = "2002";
``` | 49,971 | [
{
"from": "human",
"value": " 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 (format VARCHAR, label VARCHAR, date VARCHAR)\n\n Question: What is the Format with a Label of electropolis and a Da... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR, labour_panel VARCHAR)
Question: How many in the cultural and educational panel have a... | Here is the SQLite query that answers the question:
```sql
SELECT COUNT(cultural_and_educational_panel)
FROM table_name_41
WHERE university_of_dublin = '3' AND labour_panel > 11;
```
Make sure that the `university_of_dublin` value is treated appropriately as your schema defines it as `VARCHAR`. If it needs to be c... | 49,972 | [
{
"from": "human",
"value": " 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 (cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR, labour_panel VARCHAR)\n\n Question: How many ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (margin VARCHAR, match_date VARCHAR)
Question: What is Margin, when Match Date is Oct 17, 2007?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query wrapped in code format:
```
SELECT margin FROM table_name_86 WHERE match_date = "Oct 17, 2007";
``` | 49,973 | [
{
"from": "human",
"value": " 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 (margin VARCHAR, match_date VARCHAR)\n\n Question: What is Margin, when Match Date is Oct 17, 2007?\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_10 (team__b_ VARCHAR, s_no INTEGER)
Question: What is Team (B), when S No is greater than 17?
Here is the SQLite query to answer to the question: What is Team... | Here is the SQLite query to answer the question about what the Team (B) is when S No is greater than 17:
```
SELECT team__b_ FROM table_name_10 WHERE s_no > 17;
``` | 49,974 | [
{
"from": "human",
"value": " 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 (team__b_ VARCHAR, s_no INTEGER)\n\n Question: What is Team (B), when S No is greater than 17?\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_88 (s_no VARCHAR, margin VARCHAR)
Question: What is the total number of S No(s), when the Margin is 16 runs?
Here is the SQLite query to answer to the questio... | Your SQLite query looks correct for the requirement stated in your question. Here it is wrapped in code formatting:
```
SELECT COUNT(s_no) FROM table_name_88 WHERE margin = "16 runs";
``` | 49,975 | [
{
"from": "human",
"value": " 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 (s_no VARCHAR, margin VARCHAR)\n\n Question: What is the total number of S No(s), when the Margin is 16 runs?\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_8 (s_no INTEGER, match_date VARCHAR)
Question: What is the highest S No, when the Match Date is Nov 1, 2003?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question regarding the highest S No when the Match Date is Nov 1, 2003:
```
SELECT MAX(s_no) FROM table_name_8 WHERE match_date = "Nov 1, 2003"
``` | 49,976 | [
{
"from": "human",
"value": " 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 (s_no INTEGER, match_date VARCHAR)\n\n Question: What is the highest S No, when the Match Date is Nov 1, 2003?\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_31 (team__b_ VARCHAR, match_date VARCHAR, s_no VARCHAR, margin VARCHAR)
Question: What is Team (B), when S No is less than 18, when Margin is 8 Wickets, and wh... | Here is the SQLite query to answer the question:
```
SELECT team__b_ FROM table_name_31 WHERE s_no < 18 AND margin = "8 Wickets" AND match_date = "Oct 30, 1989";
``` | 49,977 | [
{
"from": "human",
"value": " 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 (team__b_ VARCHAR, match_date VARCHAR, s_no VARCHAR, margin VARCHAR)\n\n Question: What is Team (B), when S No is le... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (week INTEGER, date VARCHAR, attendance VARCHAR)
Question: When was the last time, since December 14, 1986, that the attendance was lower than 47,096?
Here... | The provided SQLite query contains a few errors and is not structured properly to answer the question correctly. Here's the corrected version of the query based on the given schema:
```sql
SELECT MAX(date)
FROM table_name_51
WHERE date > '1986-12-14' AND attendance < '47,096';
```
In this corrected query:
- We are ... | 49,978 | [
{
"from": "human",
"value": " 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 (week INTEGER, date VARCHAR, attendance VARCHAR)\n\n Question: When was the last time, since December 14, 1986, that... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
Question: What is the Surface of indoor/carpet Outcome on 13 October 1996
Here is the SQLite query to answ... | It seems there's a small confusion in your question. You want to find the surface type based on a specific outcome and date. Here's the correct SQLite query to find the surface of the outcome "indoor/carpet" on 13 October 1996:
```sql
SELECT surface FROM table_name_33 WHERE outcome = "indoor/carpet" AND date = "13 Oct... | 49,979 | [
{
"from": "human",
"value": " 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 (outcome VARCHAR, surface VARCHAR, date VARCHAR)\n\n Question: What is the Surface of indoor/carpet Outcome on 13 Oc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (outcome VARCHAR, tournament VARCHAR)
Question: What the Outcome for the Tournament of Johannesburg, South Africa
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the outcome for the tournament of Johannesburg, South Africa:
```
SELECT outcome FROM table_name_5 WHERE tournament = "Johannesburg, South Africa";
``` | 49,980 | [
{
"from": "human",
"value": " 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 (outcome VARCHAR, tournament VARCHAR)\n\n Question: What the Outcome for the Tournament of Johannesburg, South Africa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (launch_site VARCHAR, rocket VARCHAR)
Question: What is the launch site of the delta iv rocket?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question regarding the launch site of the delta iv rocket:
```
SELECT launch_site FROM table_name_26 WHERE rocket = "delta iv"
``` | 49,981 | [
{
"from": "human",
"value": " 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 (launch_site VARCHAR, rocket VARCHAR)\n\n Question: What is the launch site of the delta iv rocket?\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_13 (type VARCHAR, date VARCHAR, satellite VARCHAR)
Question: What is the type of the gps iif-10 satellite with an unknown date?
Here is the SQLite query to an... | The provided SQLite query correctly retrieves the type of the gps iif-10 satellite with an unknown date. However, if you're looking for records where the date is actually unspecified (e.g., NULL or an empty string), the query would need to be adjusted. Here is the adjusted query to check for NULL or an empty string in ... | 49,982 | [
{
"from": "human",
"value": " 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 (type VARCHAR, date VARCHAR, satellite VARCHAR)\n\n Question: What is the type of the gps iif-10 satellite with an u... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (type VARCHAR, satellite VARCHAR)
Question: What is the type of the gps iif-10 satellite?
Here is the SQLite query to answer to the question: What is the t... | Certainly! Here is the SQLite query to find the type of the gps iif-10 satellite:
```
SELECT type FROM table_name_38 WHERE satellite = "gps iif-10";
``` | 49,983 | [
{
"from": "human",
"value": " 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 (type VARCHAR, satellite VARCHAR)\n\n Question: What is the type of the gps iif-10 satellite?\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_86 (launch_site VARCHAR, satellite VARCHAR, date VARCHAR, rocket VARCHAR)
Question: What is the launch site of the delta iv rocket with an unknown date and a g... | Certainly! Here is the SQLite query wrapped in code formatting:
```sql
SELECT launch_site FROM table_name_86 WHERE date = "unknown" AND rocket = "delta iv" AND satellite = "gps iif-10";
``` | 49,984 | [
{
"from": "human",
"value": " 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 (launch_site VARCHAR, satellite VARCHAR, date VARCHAR, rocket VARCHAR)\n\n Question: What is the launch site of the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (date VARCHAR, satellite VARCHAR)
Question: What is the date of the gps iif-7 satellite?
Here is the SQLite query to answer to the question: What is the da... | ```sql
SELECT date FROM table_name_48 WHERE satellite = "gps iif-7";
``` | 49,985 | [
{
"from": "human",
"value": " 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 (date VARCHAR, satellite VARCHAR)\n\n Question: What is the date of the gps iif-7 satellite?\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_89 (finish VARCHAR, year VARCHAR)
Question: What was the finish for 1992?
Here is the SQLite query to answer to the question: What was the finish for 1992?:
`... | ```sql
SELECT finish FROM table_name_89 WHERE year = '1992'
``` | 49,986 | [
{
"from": "human",
"value": " 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 (finish VARCHAR, year VARCHAR)\n\n Question: What was the finish for 1992?\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_50 (finish VARCHAR, engine VARCHAR, start VARCHAR)
Question: What was Andretti's finish for the year he had a Buick engine and started 16th?
Here is the SQLit... | Your SQLite query is almost correct, but to specifically answer the question regarding "Andretti's finish," we need to include a condition to specify the driver. Assuming that there is a column in the schema to identify the driver, let's assume the driver's name is in a column named `driver`. In that case, the query wo... | 49,987 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (finish VARCHAR, engine VARCHAR, start VARCHAR)\n\n Question: What was Andretti's finish for the year he had a Buick... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (finish VARCHAR, engine VARCHAR, start VARCHAR)
Question: What was Andretti's finish the year he started 16th with a Buick engine?
Here is the SQLite query... | The SQLite query you've provided is almost correct, but it seems to be missing a condition to filter for "Andretti" specifically. You should also include a condition to make sure you're selecting the correct driver, assuming the driver's name is stored in the table (even though the schema provided does not indicate a c... | 49,988 | [
{
"from": "human",
"value": " 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 (finish VARCHAR, engine VARCHAR, start VARCHAR)\n\n Question: What was Andretti's finish the year he started 16th wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (drawn INTEGER, points VARCHAR, against VARCHAR)
Question: Which Drawn has a Points of 6, and a Against larger than 16?
Here is the SQLite query to answer ... | Your provided SQLite query has a good structure, but it seems there might be a misunderstanding regarding the use of `SUM(drawn)` in the context of the question. If you want to find the specific `drawn` records that meet the criteria of having `points` equal to 6 and `against` greater than 16, you should select the `dr... | 49,989 | [
{
"from": "human",
"value": " 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 (drawn INTEGER, points VARCHAR, against VARCHAR)\n\n Question: Which Drawn has a Points of 6, and a Against larger t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (points INTEGER, difference VARCHAR, played VARCHAR)
Question: Which Points has a Difference of 3, and a Played smaller than 10?
Here is the SQLite query t... | Your provided SQLite query has the right idea but there's a slight issue with the comparison of the `difference` and the `played` fields. The `difference` is stored as a string (VARCHAR), so you should compare it as a string. Additionally, you need to ensure the `played` field is being compared as an integer.
Here’s ... | 49,990 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (points INTEGER, difference VARCHAR, played VARCHAR)\n\n Question: Which Points has a Difference of 3, and a Played ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (points INTEGER, team VARCHAR, position VARCHAR)
Question: Which Points has a Team of são paulo athletic, and a Position larger than 5?
Here is the SQLite ... | Here is the corrected SQLite query wrapped in code tags:
```
SELECT SUM(points) FROM table_name_15 WHERE team = 'são paulo athletic' AND CAST(position AS INTEGER) > 5;
```
In this query, we ensure that the `position` column is compared as an integer by casting it, since it might be stored as a string. | 49,991 | [
{
"from": "human",
"value": " 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 (points INTEGER, team VARCHAR, position VARCHAR)\n\n Question: Which Points has a Team of são paulo athletic, and a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (position INTEGER, drawn VARCHAR, played VARCHAR, points VARCHAR)
Question: Which Position has a Played larger than 9, and a Points smaller than 11, and a D... | Here is the SQLite query to answer the question using the specified conditions:
```
SELECT MIN(position) FROM table_name_95 WHERE played > 9 AND points < 11 AND drawn < 0
``` | 49,992 | [
{
"from": "human",
"value": " 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 (position INTEGER, drawn VARCHAR, played VARCHAR, points VARCHAR)\n\n Question: Which Position has a Played larger t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (track INTEGER, catalogue VARCHAR)
Question: What track has a catalogue of 47-9465?
Here is the SQLite query to answer to the question: What track has a ca... | The SQL query provided does not correctly answer the question about which track has a catalogue of "47-9465". Instead, you should select the track directly. Here is the corrected SQL query:
```
SELECT track FROM table_name_21 WHERE catalogue = "47-9465";
``` | 49,993 | [
{
"from": "human",
"value": " 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 (track INTEGER, catalogue VARCHAR)\n\n Question: What track has a catalogue of 47-9465?\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_23 (track VARCHAR, time VARCHAR)
Question: What track has a time of 2:30?
Here is the SQLite query to answer to the question: What track has a time of 2:30?:
... | Here is the SQLite query to answer the question about which track has a time of 2:30:
```
SELECT track FROM table_name_23 WHERE time = "2:30";
``` | 49,994 | [
{
"from": "human",
"value": " 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 (track VARCHAR, time VARCHAR)\n\n Question: What track has a time of 2:30?\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_77 (catalogue VARCHAR, recorded VARCHAR, release_date VARCHAR)
Question: What catalogue was recorded on 9/10/67 and a release date of 1/9/68?
Here is the SQLi... | Here is the SQLite query to answer the question you provided:
```
SELECT catalogue FROM table_name_77 WHERE recorded = "9/10/67" AND release_date = "1/9/68"
``` | 49,995 | [
{
"from": "human",
"value": " 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 (catalogue VARCHAR, recorded VARCHAR, release_date VARCHAR)\n\n Question: What catalogue was recorded on 9/10/67 and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (rank VARCHAR, bronze VARCHAR, nation VARCHAR)
Question: Where does Norway rank in total medals among countries with fewer than 7 bronzes?
Here is the SQLi... | Your provided query has a slight issue; it should not filter for Norway in the `WHERE` clause, as we want to find Norway's rank among other nations. Instead, we should calculate the total number of medals for countries with fewer than 7 bronzes and then find Norway's rank within that group.
Here’s the corrected SQLite... | 49,996 | [
{
"from": "human",
"value": " 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 (rank VARCHAR, bronze VARCHAR, nation VARCHAR)\n\n Question: Where does Norway rank in total medals among countries ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (inns VARCHAR, runs VARCHAR)
Question: What is the Inns of 435 Runs?
Here is the SQLite query to answer to the question: What is the Inns of 435 Runs?:
```... | Here is the SQLite query to answer the question: What is the Inns of 435 Runs?:
```
SELECT inns FROM table_name_80 WHERE runs = '435'
``` | 49,997 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (inns VARCHAR, runs VARCHAR)\n\n Question: What is the Inns of 435 Runs?\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (rank INTEGER)
Question: What is the average 1st place with a Rank that is larger than 10?
Here is the SQLite query to answer to the question: What is the ... | It looks like there is a small mistake in your SQL query. The query needs to average the ranks that are greater than 10 instead of using a constant value (1). Therefore, the correct SQL query should be:
```sql
SELECT AVG(rank) AS average_first_place FROM table_name_26 WHERE rank > 10;
```
This query calculates the a... | 49,998 | [
{
"from": "human",
"value": " 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 (rank INTEGER)\n\n Question: What is the average 1st place with a Rank that is larger than 10?\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_70 (week_of VARCHAR, runner_up VARCHAR)
Question: What week was the Runner-up Lori McNeil?
Here is the SQLite query to answer to the question: What week was t... | Your SQLite query is well-structured for retrieving the week when Lori McNeil was the runner-up. Here it is wrapped in code format:
```
SELECT week_of FROM table_name_70 WHERE runner_up = "lori mcneil";
```
This query will return the `week_of` for which Lori McNeil was listed as the runner-up in the `table_name_70`. | 49,999 | [
{
"from": "human",
"value": " 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 (week_of VARCHAR, runner_up VARCHAR)\n\n Question: What week was the Runner-up Lori McNeil?\n\nHere is the SQLite qu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.