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_60 (tries INTEGER, player VARCHAR)
Question: What is the average number of Tries for Nathan McAvoy?
Here is the SQLite query to answer to the question: What i... | Here is the SQLite query to answer the question about the average number of Tries for Nathan McAvoy:
```
SELECT AVG(tries) FROM table_name_60 WHERE player = "nathan mcavoy";
``` | 14,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_60 (tries INTEGER, player VARCHAR)\n\n Question: What is the average number of Tries for Nathan McAvoy?\n\nHere is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (tries INTEGER, player VARCHAR, points VARCHAR)
Question: What is the average number of Tries with less than 28 Points for Mike Forshaw?
Here is the SQLite... | Here is the corrected SQLite query to answer the question about the average number of tries for Mike Forshaw with less than 28 points:
```
SELECT AVG(tries) FROM table_name_79 WHERE player = "Mike Forshaw" AND points < 28
```
Please note that in SQL, string comparisons are case-sensitive by default, so ensure that t... | 14,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_79 (tries INTEGER, player VARCHAR, points VARCHAR)\n\n Question: What is the average number of Tries with less than 28 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (position VARCHAR, cfl_team VARCHAR)
Question: What position did the player from the saskatchewan roughriders (via toronto) play?
Here is the SQLite query ... | Here is the SQLite query to answer the question regarding the position of the player from the Saskatchewan Roughriders (via Toronto):
```
SELECT position FROM table_name_31 WHERE cfl_team = "saskatchewan roughriders (via toronto)"
``` | 14,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_31 (position VARCHAR, cfl_team VARCHAR)\n\n Question: What position did the player from the saskatchewan roughriders (v... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (pick__number VARCHAR, position VARCHAR, player VARCHAR)
Question: What numbered pick was dominic picard, ol, selected?
Here is the SQLite query to answer t... | Your SQLite query looks correct for finding the numbered pick for the player "dominic picard" who plays the position "ol". Here is the query wrapped properly:
```
SELECT pick__number FROM table_name_8 WHERE position = "ol" AND player = "dominic picard"
```
This query selects the `pick__number` from the table where t... | 14,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_8 (pick__number VARCHAR, position VARCHAR, player VARCHAR)\n\n Question: What numbered pick was dominic picard, ol, sel... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (date VARCHAR, home_team VARCHAR)
Question: Name the date which has a home team of north melbourne
Here is the SQLite query to answer to the question: Name ... | Here is the SQLite query to answer the question: Name the date which has a home team of north melbourne:
```
SELECT date FROM table_name_3 WHERE home_team = "north melbourne";
``` | 14,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_3 (date VARCHAR, home_team VARCHAR)\n\n Question: Name the date which has a home team of north melbourne\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_17 (away_team VARCHAR, home_team VARCHAR)
Question: Name the away team for home team of fitzroy
Here is the SQLite query to answer to the question: Name the a... | Here is the SQLite query to answer the question: Name the away team for home team of fitzroy:
```
SELECT away_team FROM table_name_17 WHERE home_team = "fitzroy"
``` | 14,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_17 (away_team VARCHAR, home_team VARCHAR)\n\n Question: Name the away team for home team of fitzroy\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_27 (away_team VARCHAR, venue VARCHAR)
Question: What was the score for the away team that played at Glenferrie Oval?
Here is the SQLite query to answer to the... | The SQLite query you provided is intended to select the away team that played at Glenferrie Oval, but it seems there might be a misunderstanding in the wording of the question. The query retrieves the name of the away team, which is not the score.
Since the provided schema only includes the teams and venue, there isn... | 14,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_27 (away_team VARCHAR, venue VARCHAR)\n\n Question: What was the score for the away team that played at Glenferrie Oval... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (date VARCHAR, crowd INTEGER)
Question: When was the attendance at a venue bigger than 35,151?
Here is the SQLite query to answer to the question: When was... | It looks like there is a small mistake in your SQL query. The correct query should check for attendance greater than 35,151, without the `OFFSET` clause, as it is not necessary for this question. Here’s the corrected query:
```sql
SELECT date FROM table_name_36 WHERE crowd > 35151;
``` | 14,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_36 (date VARCHAR, crowd INTEGER)\n\n Question: When was the attendance at a venue bigger than 35,151?\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_68 (laps VARCHAR, qual VARCHAR, grid VARCHAR)
Question: Tell me the total number of Laps for Qual being larger than 142.81 with Grid of 12
Here is the SQLite ... | Here is the SQLite query to answer the question about the total number of laps for Qual being larger than 142.81 with a Grid of 12:
```sql
SELECT COUNT(laps) FROM table_name_68 WHERE qual > 142.81 AND grid = '12'
```
Note: Ensure that the data type of "grid" matches the condition (string vs integer). In this case, I... | 14,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_68 (laps VARCHAR, qual VARCHAR, grid VARCHAR)\n\n Question: Tell me the total number of Laps for Qual being larger than... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (qual VARCHAR, grid VARCHAR, laps VARCHAR, rank VARCHAR)
Question: Tell me the total number of Qual Laps higher than 93 with a Rank of 32 with Grid less tha... | Here is the SQLite query to answer the question:
```
SELECT COUNT(qual) FROM table_name_16 WHERE laps > 93 AND rank = '32' AND grid < '32'
``` | 14,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_16 (qual VARCHAR, grid VARCHAR, laps VARCHAR, rank VARCHAR)\n\n Question: Tell me the total number of Qual Laps higher ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (payload__kg_ VARCHAR, in_service VARCHAR)
Question: Tell me the payload that has an In service for 2011
Here is the SQLite query to answer to the question... | Your provided SQL query is correct for retrieving the payloads that were in service for 2011. Here it is wrapped in the requested format:
```
SELECT payload__kg_ FROM table_name_99 WHERE in_service = "2011";
``` | 14,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_99 (payload__kg_ VARCHAR, in_service VARCHAR)\n\n Question: Tell me the payload that has an In service for 2011\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_57 (dimension__m_ VARCHAR, range__km_ VARCHAR)
Question: Tell me the dimension that has a range of 8,000 – 10,000
Here is the SQLite query to answer to the qu... | Your query looks good for retrieving dimensions with a specific range. However, if you want to include additional logic for handling potential variations or formatting in the range values, you may consider using a more flexible query. Nonetheless, to answer your original question directly with the specified range, your... | 14,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_57 (dimension__m_ VARCHAR, range__km_ VARCHAR)\n\n Question: Tell me the dimension that has a range of 8,000 – 10,000\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (project VARCHAR, missile VARCHAR)
Question: Name the project which has a missle of agni-iii
Here is the SQLite query to answer to the question: Name the p... | Here is the SQLite query to answer the question regarding the project that has a missile of "agni-iii":
```
SELECT project FROM table_name_92 WHERE missile = 'agni-iii';
``` | 14,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_92 (project VARCHAR, missile VARCHAR)\n\n Question: Name the project which has a missle of agni-iii\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_35 (payload__kg_ VARCHAR, weight__kg_ VARCHAR)
Question: Name the payload that has a weight of 12,000
Here is the SQLite query to answer to the question: Name... | Here's the SQLite query to retrieve the payload that has a weight of 12,000:
```
SELECT payload__kg_ FROM table_name_35 WHERE weight__kg_ = '12,000'
``` | 14,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_35 (payload__kg_ VARCHAR, weight__kg_ VARCHAR)\n\n Question: Name the payload that has a weight of 12,000\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_65 (type VARCHAR, project VARCHAR, weight__kg_ VARCHAR)
Question: Name the typ for project of igmdp and weight of 16,000
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question:
```
SELECT type FROM table_name_65 WHERE project = "igmdp" AND weight__kg_ = "16,000"
``` | 14,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_65 (type VARCHAR, project VARCHAR, weight__kg_ VARCHAR)\n\n Question: Name the typ for project of igmdp and weight of 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (record VARCHAR, leading_scorer VARCHAR)
Question: What is the record of the game with Andrew Bogut (21) as the leading scorer?
Here is the SQLite query to... | Here is the SQLite query to answer the question regarding the record of the game with Andrew Bogut (21) as the leading scorer:
```
SELECT record FROM table_name_43 WHERE leading_scorer = "Andrew Bogut (21)"
``` | 14,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_43 (record VARCHAR, leading_scorer VARCHAR)\n\n Question: What is the record of the game with Andrew Bogut (21) as the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (home VARCHAR, date VARCHAR)
Question: Who was the home team of the game on 26 February 2008?
Here is the SQLite query to answer to the question: Who was th... | Here is the SQLite query to answer the question about the home team of the game on 26 February 2008:
```
SELECT home FROM table_name_5 WHERE date = "26 February 2008";
``` | 14,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_5 (home VARCHAR, date VARCHAR)\n\n Question: Who was the home team of the game on 26 February 2008?\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_31 (leading_scorer VARCHAR, date VARCHAR)
Question: Who is the leading scorer of the game on 9 February 2008?
Here is the SQLite query to answer to the questi... | Your SQLite query is correct for retrieving the leading scorer of the game on 9 February 2008. Here it is, wrapped in the appropriate code block:
```
SELECT leading_scorer FROM table_name_31 WHERE date = "9 february 2008";
``` | 14,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_31 (leading_scorer VARCHAR, date VARCHAR)\n\n Question: Who is the leading scorer of the game on 9 February 2008?\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_52 (leading_scorer VARCHAR, date VARCHAR)
Question: Who is the leading scorer of the game on 13 February 2008?
Here is the SQLite query to answer to the quest... | Here's the SQLite query to find the leading scorer of the game on 13 February 2008, wrapped as requested:
```
SELECT leading_scorer FROM table_name_52 WHERE date = "13 February 2008";
``` | 14,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_52 (leading_scorer VARCHAR, date VARCHAR)\n\n Question: Who is the leading scorer of the game on 13 February 2008?\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_97 (visitor VARCHAR, leading_scorer VARCHAR)
Question: Who is the visitor team of the game with Andrew Bogut (21) as the leading scorer?
Here is the SQLite qu... | Here is the SQLite query to answer the question:
```
SELECT visitor FROM table_name_97 WHERE leading_scorer = "andrew bogut (21)";
``` | 14,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_97 (visitor VARCHAR, leading_scorer VARCHAR)\n\n Question: Who is the visitor team of the game with Andrew Bogut (21) a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
Question: What is the lowest number of events a tournament with more tha 5 cuts and less than 13 top-25 ... | Your SQLite query is correct for the given question based on the specified schema. Here it is wrapped in the requested format:
```
SELECT MIN(events) FROM table_name_75 WHERE cuts_made > 5 AND top_25 < 13
```
This query will return the lowest number of events for those tournaments that meet the criteria of having mo... | 14,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_75 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)\n\n Question: What is the lowest number of events a tournament w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
Question: What is the highest top-10 a tournament with 16 cuts and less than 13 top-25 has?
Here is the... | Here is the SQLite query to answer the question regarding the highest top-10 score for a tournament with 16 cuts and less than 13 top-25 finishes:
```
SELECT MAX(top_10) FROM table_name_81 WHERE cuts_made = 16 AND top_25 < 13
``` | 14,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_81 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR)\n\n Question: What is the highest top-10 a tournament with 16 cu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (top_25 INTEGER, tournament VARCHAR, events VARCHAR)
Question: What is the top-25 of the U.S. open, which has less than 7 events?
Here is the SQLite query ... | The provided SQLite query aims to sum the `top_25` values for the U.S. Open where the number of events is less than 7. However, since you are interested in retrieving specific values rather than their sum, you should select the `top_25` values directly. Here's an adjusted version of the query:
```sql
SELECT top_25
FR... | 14,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_93 (top_25 INTEGER, tournament VARCHAR, events VARCHAR)\n\n Question: What is the top-25 of the U.S. open, which has le... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR)
Question: How many events does the tournament with a top-10 of 2 and more than 5 cuts have?
Here is the... | Here is the SQLite query to answer the question about how many events the tournament with a top-10 of 2 and more than 5 cuts has:
```
SELECT SUM(events) FROM table_name_77 WHERE top_10 = 2 AND cuts_made > 5
``` | 14,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_77 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR)\n\n Question: How many events does the tournament with a top-10 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (pick INTEGER, name VARCHAR)
Question: What Pick number is Rich Burtness?
Here is the SQLite query to answer to the question: What Pick number is Rich Burt... | The query you provided calculates the average pick number for Rich Burtness, but the question asks for the specific pick number. If you want to find the pick number for Rich Burtness, you should use the following query instead:
```
SELECT pick FROM table_name_26 WHERE name = "Rich Burtness";
```
Ensure that the name... | 14,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_26 (pick INTEGER, name VARCHAR)\n\n Question: What Pick number is Rich Burtness?\n\nHere is the SQLite query to answer ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (position VARCHAR, school VARCHAR)
Question: What position is Kentucky State sitting in?
Here is the SQLite query to answer to the question: What position ... | Here is the SQLite query to find out what position Kentucky State is sitting in:
```sql
SELECT position FROM table_name_77 WHERE school = "Kentucky State";
``` | 14,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_77 (position VARCHAR, school VARCHAR)\n\n Question: What position is Kentucky State sitting in?\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_61 (density__hab__km²__ VARCHAR, altitude_m VARCHAR)
Question: What is the density (hab/ km²) when the altitude m is 1300?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the density when the altitude is 1300:
```
SELECT density__hab__km²__ FROM table_name_61 WHERE altitude_m = '1300'
``` | 14,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_61 (density__hab__km²__ VARCHAR, altitude_m VARCHAR)\n\n Question: What is the density (hab/ km²) when the altitude m i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (distance_medellín_downtown___km__ VARCHAR, municipalities VARCHAR)
Question: What is the Distance Medellín Downtown (km) when the municipalities Envigado?
... | Here is the SQLite query to answer the question regarding the distance from Medellín Downtown to the municipality of Envigado:
```
SELECT distance_medellín_downtown___km__ FROM table_name_86 WHERE municipalities = "Envigado"
``` | 14,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_86 (distance_medellín_downtown___km__ VARCHAR, municipalities VARCHAR)\n\n Question: What is the Distance Medellín Down... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (density__hab__km²__ VARCHAR, extension_km² VARCHAR)
Question: What is the density (hab/ km²) when the extension km² is 380,64?
Here is the SQLite query to... | Here is the SQLite query you can use to find the density (hab/km²) when the extension is 380.64:
```
SELECT density__hab__km²__ FROM table_name_22 WHERE extension_km² = "380,64"
``` | 14,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_22 (density__hab__km²__ VARCHAR, extension_km² VARCHAR)\n\n Question: What is the density (hab/ km²) when the extension... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (population__hab_ VARCHAR, distance_medellín_downtown___km__ VARCHAR)
Question: What is the population (hab) when the distance medellin downtown (km) is * d... | Your query looks correct for selecting the population when the distance from Medellín downtown equals "* dane". However, I would suggest double-checking the value "* dane" to ensure it is exactly what you need in the context of your database. Here’s the query wrapped in code as you requested:
```
SELECT population__ha... | 14,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_10 (population__hab_ VARCHAR, distance_medellín_downtown___km__ VARCHAR)\n\n Question: What is the population (hab) whe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (density__hab__km²__ VARCHAR, population__hab_ VARCHAR)
Question: What is the Density (hab/ km²) when the population (hab) is 58 414*?
Here is the SQLite q... | Here is the SQLite query to answer the question regarding the Density (hab/km²) when the population (hab) is 58 414*:
```
SELECT density__hab__km²__ FROM table_name_53 WHERE population__hab_ = '58 414*';
``` | 14,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_53 (density__hab__km²__ VARCHAR, population__hab_ VARCHAR)\n\n Question: What is the Density (hab/ km²) when the popula... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (altitude_m VARCHAR, distance_medellín_downtown___km__ VARCHAR)
Question: What is the altitude for the distance medellin downtown (km) is 42?
Here is the S... | Here is the SQLite query to answer the question regarding the altitude for the distance medellin downtown (km) of 42:
```sql
SELECT altitude_m FROM table_name_10 WHERE distance_medellín_downtown___km__ = "42";
``` | 14,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 (altitude_m VARCHAR, distance_medellín_downtown___km__ VARCHAR)\n\n Question: What is the altitude for the distance ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (quantity INTEGER, sht_nos VARCHAR)
Question: How many have SHT number 5?
Here is the SQLite query to answer to the question: How many have SHT number 5?:
... | The provided query uses the `MAX` function, which returns the maximum value of the quantity, but it does not answer the question of "how many have SHT number 5?". To count how many records have SHT number 5, you should use the `COUNT` function instead.
Here is the corrected SQLite query:
```
SELECT COUNT(*) FROM tab... | 14,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_49 (quantity INTEGER, sht_nos VARCHAR)\n\n Question: How many have SHT number 5?\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_56 (gwr_nos VARCHAR, quantity VARCHAR)
Question: What GWR is associated with 4?
Here is the SQLite query to answer to the question: What GWR is associated wit... | Your SQLite query is almost correct, but you may want to ensure that you're comparing the `quantity` as an integer instead of a string. Here’s the updated query:
```
SELECT gwr_nos FROM table_name_56 WHERE quantity = '4'
```
If `quantity` is stored as a string (as indicated in the schema), you should wrap the value `... | 14,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_56 (gwr_nos VARCHAR, quantity VARCHAR)\n\n Question: What GWR is associated with 4?\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_50 (score VARCHAR, date VARCHAR)
Question: What was the score on march 11?
Here is the SQLite query to answer to the question: What was the score on march 11?... | Here is the SQLite query to answer the question:
```sql
SELECT score FROM table_name_50 WHERE date = "march 11";
``` | 14,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_50 (score VARCHAR, date VARCHAR)\n\n Question: What was the score on march 11?\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_79 (nationality VARCHAR, position VARCHAR)
Question: What is the nationality of the C?
Here is the SQLite query to answer to the question: What is the nationa... | Here is the SQLite query to answer the question about the nationality of the C:
```
SELECT nationality FROM table_name_79 WHERE position = 'C';
``` | 14,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_79 (nationality VARCHAR, position VARCHAR)\n\n Question: What is the nationality of the C?\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_82 (team VARCHAR, college VARCHAR)
Question: What team has a player from Santa Clara?
Here is the SQLite query to answer to the question: What team has a play... | Here is the SQLite query to answer the question about which team has a player from Santa Clara:
```
SELECT team FROM table_name_82 WHERE college = "Santa Clara";
``` | 14,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_82 (team VARCHAR, college VARCHAR)\n\n Question: What team has a player from Santa Clara?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (round VARCHAR, college VARCHAR)
Question: What round did the College of Minnesota pick?
Here is the SQLite query to answer to the question: What round did... | Here is the SQLite query to answer the question about which round the College of Minnesota picked:
```
SELECT round FROM table_name_27 WHERE college = "Minnesota";
``` | 14,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_27 (round VARCHAR, college VARCHAR)\n\n Question: What round did the College of Minnesota pick?\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_27 (team VARCHAR, pick VARCHAR)
Question: What team had Pick 2?
Here is the SQLite query to answer to the question: What team had Pick 2?:
```
SELECT team FRO... | Here is the SQLite query to answer the question: What team had Pick 2?:
```
SELECT team FROM table_name_27 WHERE pick = "2";
``` | 14,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_27 (team VARCHAR, pick VARCHAR)\n\n Question: What team had Pick 2?\n\nHere is the SQLite query to answer to the questi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (nationality VARCHAR, college VARCHAR)
Question: What nationality is the player from the College of Cincinnati?
Here is the SQLite query to answer to the qu... | ```sql
SELECT nationality FROM table_name_6 WHERE college = "Cincinnati";
``` | 14,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_6 (nationality VARCHAR, college VARCHAR)\n\n Question: What nationality is the player from the College of Cincinnati?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (player VARCHAR, college VARCHAR)
Question: Which player went to the college of Western Washington?
Here is the SQLite query to answer to the question: Whi... | Here is the SQLite query to answer the question: Which player went to the college of Western Washington?:
```
SELECT player FROM table_name_84 WHERE college = "Western Washington";
``` | 14,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_84 (player VARCHAR, college VARCHAR)\n\n Question: Which player went to the college of Western Washington?\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_43 (earnings___ VARCHAR, events VARCHAR, rank VARCHAR)
Question: How much money did the player ranked above 3 with under 28 events earn?
Here is the SQLite qu... | The given query seems to have a couple of issues. It is not correctly structured to sum the earnings for players ranked above 3 with under 28 events. Instead of counting the earnings, we should be summing them. Additionally, the condition for rank should be adjusted to look for ranks greater than 3. Here’s the correcte... | 14,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_43 (earnings___ VARCHAR, events VARCHAR, rank VARCHAR)\n\n Question: How much money did the player ranked above 3 with ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (wins INTEGER, rank INTEGER)
Question: What is the low win total for players ranked below 4?
Here is the SQLite query to answer to the question: What is th... | Your SQLite query to find the low win total for players ranked below 4 is almost correct, but it should check for ranks less than 4, not greater than. Here's the corrected query wrapped in the appropriate code block:
```
SELECT MIN(wins) FROM table_name_17 WHERE rank < 4
``` | 14,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_17 (wins INTEGER, rank INTEGER)\n\n Question: What is the low win total for players ranked below 4?\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_28 (name VARCHAR, percentage VARCHAR)
Question: Which name has a percentage of 0.59%?
Here is the SQLite query to answer to the question: Which name has a per... | Here is the SQLite query to answer the question: Which name has a percentage of 0.59%?:
```
SELECT name FROM table_name_28 WHERE percentage = '0.59%';
``` | 14,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_28 (name VARCHAR, percentage VARCHAR)\n\n Question: Which name has a percentage of 0.59%?\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (total VARCHAR, percentage VARCHAR)
Question: What is the exact number of Total that has a percentage of precisely 12.03%?
Here is the SQLite query to answ... | Your SQLite query is almost correct, but if you are looking for the exact number of `Total` values where the `percentage` is precisely `12.03%`, you might want to ensure that you are selecting distinct values of `total` as well. Depending on your needs, you could use either `COUNT(*)` or `COUNT(DISTINCT total)`. Here’s... | 14,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_24 (total VARCHAR, percentage VARCHAR)\n\n Question: What is the exact number of Total that has a percentage of precise... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (result VARCHAR, date VARCHAR)
Question: What was the result on 1990-11-04?
Here is the SQLite query to answer to the question: What was the result on 1990... | Here is the SQLite query to answer the question regarding the result on 1990-11-04:
```
SELECT result FROM table_name_55 WHERE date = "1990-11-04"
``` | 14,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_55 (result VARCHAR, date VARCHAR)\n\n Question: What was the result on 1990-11-04?\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_34 (opponent VARCHAR, week VARCHAR)
Question: Who was the opponent in week 3?
Here is the SQLite query to answer to the question: Who was the opponent in week... | Here is the SQLite query to answer the question: Who was the opponent in week 3?:
```
SELECT opponent FROM table_name_34 WHERE week = '3'
``` | 14,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_34 (opponent VARCHAR, week VARCHAR)\n\n Question: Who was the opponent in week 3?\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_26 (game_site VARCHAR, date VARCHAR)
Question: Where was the game on 1990-11-18?
Here is the SQLite query to answer to the question: Where was the game on 199... | Here is the SQLite query to answer the question: Where was the game on 1990-11-18?:
```
SELECT game_site FROM table_name_26 WHERE date = "1990-11-18"
``` | 14,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_26 (game_site VARCHAR, date VARCHAR)\n\n Question: Where was the game on 1990-11-18?\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_69 (laps INTEGER, grid VARCHAR)
Question: What is the average number of laps for grid 8?
Here is the SQLite query to answer to the question: What is the avera... | Here is the SQLite query to answer the question about the average number of laps for grid 8:
```
SELECT AVG(laps) FROM table_name_69 WHERE grid = '8'
``` | 14,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_69 (laps INTEGER, grid VARCHAR)\n\n Question: What is the average number of laps for grid 8?\n\nHere is the SQLite quer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (constructor VARCHAR, time_retired VARCHAR)
Question: Who built the car that has a Time/Retired of 1:34:12.912?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding the car that has a Time/Retired of 1:34:12.912:
```
SELECT constructor FROM table_name_88 WHERE time_retired = "1:34:12.912"
``` | 14,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_88 (constructor VARCHAR, time_retired VARCHAR)\n\n Question: Who built the car that has a Time/Retired of 1:34:12.912?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (rd__number VARCHAR, reg_gp VARCHAR, pick__number VARCHAR)
Question: What is the rd number where the reg GP is 0 and the pick is 150?
Here is the SQLite qu... | It looks like you want to retrieve the `rd__number` where the `reg_gp` is 0 and the `pick__number` is 150. The query you provided counts the occurrences instead of retrieving the actual `rd__number`.
Here’s the corrected SQL query to select the `rd__number` that meets the given conditions:
```
SELECT rd__number FROM... | 14,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_24 (rd__number VARCHAR, reg_gp VARCHAR, pick__number VARCHAR)\n\n Question: What is the rd number where the reg GP is 0... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (award VARCHAR, result VARCHAR, organization VARCHAR)
Question: Where Result is nominated and Organization is 54th the television academy drama awards, what... | Here is the SQLite query to answer the question:
```
SELECT award FROM table_name_80 WHERE result = "nominated" AND organization = "54th the television academy drama awards"
``` | 14,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_80 (award VARCHAR, result VARCHAR, organization VARCHAR)\n\n Question: Where Result is nominated and Organization is 54... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (organization VARCHAR, work VARCHAR)
Question: Where Work is veterinarian dolittle, what is the Organization?
Here is the SQLite query to answer to the que... | Here is the SQL query to answer the question regarding the organization where the work is "veterinarian dolittle":
```
SELECT organization FROM table_name_82 WHERE work = "veterinarian dolittle";
``` | 14,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_82 (organization VARCHAR, work VARCHAR)\n\n Question: Where Work is veterinarian dolittle, what is the Organization?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (work VARCHAR, award VARCHAR)
Question: Where Award is newcomer actress, what is the work?
Here is the SQLite query to answer to the question: Where Award ... | Here is the SQLite query formatted as requested:
```
SELECT work FROM table_name_19 WHERE award = "newcomer actress";
``` | 14,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_19 (work VARCHAR, award VARCHAR)\n\n Question: Where Award is newcomer actress, what is the work?\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_58 (year INTEGER, award VARCHAR, work VARCHAR)
Question: Where Award is best actress and Work is first kiss, what is the average Year?
Here is the SQLite quer... | Here is the SQLite query to answer the question:
```
SELECT AVG(year) FROM table_name_58 WHERE award = "best actress" AND work = "first kiss"
``` | 14,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_58 (year INTEGER, award VARCHAR, work VARCHAR)\n\n Question: Where Award is best actress and Work is first kiss, what i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (round VARCHAR, club VARCHAR)
Question: What round did the maccabi haifa fc club have?
Here is the SQLite query to answer to the question: What round did t... | Here is the SQLite query to answer the question: What round did the maccabi haifa fc club have?:
```
SELECT round FROM table_name_58 WHERE club = "maccabi haifa fc";
``` | 14,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_58 (round VARCHAR, club VARCHAR)\n\n Question: What round did the maccabi haifa fc club have?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (competition VARCHAR, club VARCHAR)
Question: What competition did the maccabi haifa fc club play?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question:
```
SELECT competition FROM table_name_87 WHERE club = "maccabi haifa fc"
``` | 14,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_87 (competition VARCHAR, club VARCHAR)\n\n Question: What competition did the maccabi haifa fc club play?\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_57 (record VARCHAR, date VARCHAR)
Question: What is the record of the game on March 5?
Here is the SQLite query to answer to the question: What is the record ... | Here is the SQLite query to answer the question regarding the record of the game on March 5:
```
SELECT record FROM table_name_57 WHERE date = "march 5";
``` | 14,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_57 (record VARCHAR, date VARCHAR)\n\n Question: What is the record of the game on March 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_66 (home VARCHAR, visitor VARCHAR)
Question: What is the home team of the game with the Raptors as the visitor team?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the home team of the game with the Raptors as the visitor team:
```
SELECT home FROM table_name_66 WHERE visitor = "raptors"
``` | 14,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_66 (home VARCHAR, visitor VARCHAR)\n\n Question: What is the home team of the game with the Raptors as the visitor team... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (competition VARCHAR, venue VARCHAR, score VARCHAR)
Question: What competition was at puskás ferenc stadium , budapest , hungary, and a Score of 1–0?
Here ... | Here's the SQLite query to find the competition held at Puskás Ferenc Stadium, Budapest, Hungary with a score of 1–0:
```
SELECT competition FROM table_name_91 WHERE venue = "puskás ferenc stadium , budapest , hungary" AND score = "1–0"
``` | 14,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_91 (competition VARCHAR, venue VARCHAR, score VARCHAR)\n\n Question: What competition was at puskás ferenc stadium , bu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
Question: Name the object type with an NGC number more than 6638 and right asce... | Here is the SQLite query to answer the given question:
```
SELECT object_type FROM table_name_72 WHERE ngc_number > '6638' AND right_ascension___j2000__ = '18h25m37.8s'
``` | 14,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_72 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)\n\n Question: Name the object type with... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
Question: Tell me the constellation which has a right ascension of 18h17m41.1s
Here is the SQLit... | Here is the SQLite query to answer the question:
```
SELECT constellation FROM table_name_54 WHERE right_ascension___j2000__ = "18h17m41.1s"
``` | 14,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_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)\n\n Question: Tell me the constellation which has a right... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (since VARCHAR, goals VARCHAR, name VARCHAR)
Question: What is the total number of Since with a Goals larger than 6, and a Name with deco?
Here is the SQLi... | Your provided SQLite query looks good for the requirements specified in the question. Here it is wrapped in code format as requested:
```
SELECT COUNT(since) FROM table_name_57 WHERE goals > 6 AND name = "deco";
```
This query will count the total number of records in `table_name_57` where the `goals` column has a v... | 14,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_57 (since VARCHAR, goals VARCHAR, name VARCHAR)\n\n Question: What is the total number of Since with a Goals larger tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (ends INTEGER, since VARCHAR, name VARCHAR)
Question: What is the average Ends with a Since of 2003, and a Name with márquez?
Here is the SQLite query to a... | Your SQLite query is almost correct, but the condition for the `since` column should compare it as a string since it's defined as `VARCHAR`. Here's the corrected version wrapped in code formatting:
```
SELECT AVG(ends) FROM table_name_93 WHERE since = '2003' AND name LIKE '%márquez%'
```
This query calculates the av... | 14,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_93 (ends INTEGER, since VARCHAR, name VARCHAR)\n\n Question: What is the average Ends with a Since of 2003, and a Name ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (ends INTEGER, name VARCHAR, since VARCHAR)
Question: What is the sum of Ends with a Name of abidal, and has a Since larger than 2007?
Here is the SQLite q... | Here is the SQLite query to answer the question:
```
SELECT SUM(ends) FROM table_name_58 WHERE name = "abidal" AND since > 2007
``` | 14,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_58 (ends INTEGER, name VARCHAR, since VARCHAR)\n\n Question: What is the sum of Ends with a Name of abidal, and has a S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (finish VARCHAR, record VARCHAR)
Question: Which finish has a Record of 74-68?
Here is the SQLite query to answer to the question: Which finish has a Recor... | Here is the SQLite query to answer the question:
```
SELECT finish FROM table_name_35 WHERE record = "74-68";
``` | 14,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_35 (finish VARCHAR, record VARCHAR)\n\n Question: Which finish has a Record of 74-68?\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_33 (year INTEGER, team VARCHAR, finish VARCHAR)
Question: What is the total of the year with a Team of johnson city yankees, and a Finish of 6th?
Here is the ... | Here's the SQLite query to find the total of the year for the team "johnson city yankees" with a finish of "6th":
```
SELECT SUM(year) FROM table_name_33 WHERE team = "johnson city yankees" AND finish = "6th"
``` | 14,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_33 (year INTEGER, team VARCHAR, finish VARCHAR)\n\n Question: What is the total of the year with a Team of johnson city... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (record VARCHAR, team VARCHAR)
Question: Which record has a Team of manchester yankees?
Here is the SQLite query to answer to the question: Which record ha... | Your SQLite query is correct. Here it is wrapped in a code block:
```
SELECT record FROM table_name_43 WHERE team = "manchester yankees";
``` | 14,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_43 (record VARCHAR, team VARCHAR)\n\n Question: Which record has a Team of manchester yankees?\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_93 (organization VARCHAR, finish VARCHAR)
Question: Which organization has a Finish of 4th?
Here is the SQLite query to answer to the question: Which organiza... | Here is the SQLite query to answer the question: Which organization has a Finish of 4th?:
```
SELECT organization FROM table_name_93 WHERE finish = '4th';
``` | 14,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_93 (organization VARCHAR, finish VARCHAR)\n\n Question: Which organization has a Finish of 4th?\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_61 (year VARCHAR, organization VARCHAR, team VARCHAR)
Question: Which year has an Organization of new york yankees, and a Team of johnson city yankees?
Here i... | Here is the SQLite query wrapped in the requested format:
```
SELECT year FROM table_name_61 WHERE organization = "new york yankees" AND team = "johnson city yankees";
``` | 14,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_61 (year VARCHAR, organization VARCHAR, team VARCHAR)\n\n Question: Which year has an Organization of new york yankees,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (constructor VARCHAR, rank VARCHAR, grid VARCHAR, laps VARCHAR)
Question: Which constructor had a grid number bigger than 14, laps of more than 93, and rank ... | Here is the SQLite query you can use to answer the question based on the provided schema:
```
SELECT constructor FROM table_name_2 WHERE grid > 14 AND laps > 93 AND rank > 25;
``` | 14,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_2 (constructor VARCHAR, rank VARCHAR, grid VARCHAR, laps VARCHAR)\n\n Question: Which constructor had a grid number big... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (qual VARCHAR, rank VARCHAR, grid VARCHAR)
Question: Which qual has rank of more than 28 and a grid number that is bigger than 23?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding the `qual` with a rank of more than 28 and a grid number that is bigger than 23:
```
SELECT qual FROM table_name_43 WHERE rank > 28 AND grid > 23;
``` | 14,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_43 (qual VARCHAR, rank VARCHAR, grid VARCHAR)\n\n Question: Which qual has rank of more than 28 and a grid number that ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (qual INTEGER, grid VARCHAR)
Question: What is the total qual where the grid number is 24?
Here is the SQLite query to answer to the question: What is the ... | Your query is almost correct, but since the `grid` column is defined as a `VARCHAR`, when you compare it to the number `24`, you should use it as a string. Here's the corrected query:
```
SELECT SUM(qual) FROM table_name_57 WHERE grid = '24';
``` | 14,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_57 (qual INTEGER, grid VARCHAR)\n\n Question: What is the total qual where the grid number is 24?\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_73 (suffix VARCHAR, group VARCHAR)
Question: What is the Suffix for the Group of Benzyl?
Here is the SQLite query to answer to the question: What is the Suffi... | Here is the SQLite query to answer the question about the suffix for the group of Benzyl:
```
SELECT suffix FROM table_name_73 WHERE group = "Benzyl"
``` | 14,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_73 (suffix VARCHAR, group VARCHAR)\n\n Question: What is the Suffix for the Group of Benzyl?\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_72 (formula VARCHAR, prefix VARCHAR)
Question: Which Formula has a Prefix of alkyl-?
Here is the SQLite query to answer to the question: Which Formula has a P... | Your query is correctly formulated to retrieve the formula with the specified prefix. Here it is again wrapped in the code block:
```
SELECT formula FROM table_name_72 WHERE prefix = "alkyl-"
``` | 14,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_72 (formula VARCHAR, prefix VARCHAR)\n\n Question: Which Formula has a Prefix of alkyl-?\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_28 (home VARCHAR, decision VARCHAR, visitor VARCHAR)
Question: Who was the Home team when the Visitor was Florida, with a Decision of Ramo?
Here is the SQLite... | Here is the SQLite query to answer the question about the Home team when the Visitor was Florida, with a Decision of Ramo:
```
SELECT home FROM table_name_28 WHERE decision = "Ramo" AND visitor = "Florida"
``` | 14,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_28 (home VARCHAR, decision VARCHAR, visitor VARCHAR)\n\n Question: Who was the Home team when the Visitor was Florida, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (decision VARCHAR, visitor VARCHAR)
Question: What was the Decision when the Visitor was Carolina?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about what the Decision was when the Visitor was Carolina:
```
SELECT decision FROM table_name_53 WHERE visitor = 'Carolina';
``` | 14,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_53 (decision VARCHAR, visitor VARCHAR)\n\n Question: What was the Decision when the Visitor was Carolina?\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_30 (away_team VARCHAR, venue VARCHAR)
Question: Which away team was at windy hill?
Here is the SQLite query to answer to the question: Which away team was at ... | Here is the SQLite query to answer the question of which away team was at Windy Hill:
```
SELECT away_team FROM table_name_30 WHERE venue = "windy hill"
``` | 14,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_30 (away_team VARCHAR, venue VARCHAR)\n\n Question: Which away team was at windy hill?\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_27 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)
Question: For the category of most popular star with a result of won for 2007, what was the ... | Here is the SQLite query you can use to answer the question:
```
SELECT award FROM table_name_27 WHERE result = 'won' AND category = 'most popular star' AND year = '2007';
``` | 14,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_27 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)\n\n Question: For the category of most popular star ... | |
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, year VARCHAR, nominated_work VARCHAR)
Question: What is the result for the king and I after 2006?
Here is the SQLite query to answer to th... | The SQLite query to answer the question about the result for "the king and I" after 2006 is as follows:
```
SELECT result FROM table_name_58 WHERE year > 2006 AND nominated_work = "the king and i"
``` | 14,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_58 (result VARCHAR, year VARCHAR, nominated_work VARCHAR)\n\n Question: What is the result for the king and I after 200... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (main_colour_s_ VARCHAR, main_sponsor_s_ VARCHAR)
Question: What is the main color(s) for marlboro?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the main color(s) for Marlboro:
```
SELECT main_colour_s_ FROM table_name_36 WHERE main_sponsor_s_ = "marlboro"
``` | 14,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_36 (main_colour_s_ VARCHAR, main_sponsor_s_ VARCHAR)\n\n Question: What is the main color(s) for marlboro?\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_91 (additional_major_sponsor_s_ VARCHAR, main_colour_s_ VARCHAR, year VARCHAR)
Question: What is the additional major sponsor(s) that has red as its main color... | Your SQLite query to find the additional major sponsor(s) that have red as their main color after 1991 is correct. Here’s the query wrapped in code formatting:
```
SELECT additional_major_sponsor_s_ FROM table_name_91 WHERE main_colour_s_ = "red" AND year > 1991
```
Make sure to check if the "year" column is stored ... | 14,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_91 (additional_major_sponsor_s_ VARCHAR, main_colour_s_ VARCHAR, year VARCHAR)\n\n Question: What is the additional maj... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (name VARCHAR, relationship_with_predecessor_s_ VARCHAR)
Question: Who was the brother of Edward VIII?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: Who was the brother of Edward VIII?:
```sql
SELECT name FROM table_name_41 WHERE relationship_with_predecessor_s_ = "brother of Edward VIII";
``` | 14,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_41 (name VARCHAR, relationship_with_predecessor_s_ VARCHAR)\n\n Question: Who was the brother of Edward VIII?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (laps VARCHAR, time_retired VARCHAR)
Question: How many laps are associated with a time of + 1:39.591?
Here is the SQLite query to answer to the question: ... | Your provided query is almost correct, but to count how many laps are associated with the specified time, you should use the `COUNT()` function instead of just selecting the laps. Here’s the correct SQLite query:
```
SELECT COUNT(laps) AS lap_count FROM table_name_37 WHERE time_retired = "+ 1:39.591";
```
This query... | 14,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_37 (laps VARCHAR, time_retired VARCHAR)\n\n Question: How many laps are associated with a time of + 1:39.591?\n\nHere i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (laps INTEGER, grid VARCHAR)
Question: What is the average number of laps for a grid of 6?
Here is the SQLite query to answer to the question: What is the ... | Here is the correct SQLite query to find the average number of laps for a grid of 6:
```
SELECT AVG(laps) FROM table_name_31 WHERE grid = '6';
```
Note that in SQLite, `grid` is defined as a VARCHAR, so the comparison should be made with the string '6'. | 14,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_31 (laps INTEGER, grid VARCHAR)\n\n Question: What is the average number of laps for a grid of 6?\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_41 (data VARCHAR, percent_gain VARCHAR)
Question: Name the data with a percent gain of 28.4%
Here is the SQLite query to answer to the question: Name the data... | Here is the SQLite query to answer the question of naming the data with a percent gain of 28.4%:
```
SELECT data FROM table_name_41 WHERE percent_gain = "28.4%"
``` | 14,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_41 (data VARCHAR, percent_gain VARCHAR)\n\n Question: Name the data with a percent gain of 28.4%\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_87 (swimsuit INTEGER, interview VARCHAR, average VARCHAR)
Question: Which smallest swimsuit number's interview was less than 8.574 when the average number was ... | Here is the SQLite query to answer the question:
```
SELECT MIN(swimsuit) FROM table_name_87 WHERE interview < 8.574 AND average > 8.532
``` | 14,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_87 (swimsuit INTEGER, interview VARCHAR, average VARCHAR)\n\n Question: Which smallest swimsuit number's interview was ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (interview INTEGER, average VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
Question: Which smallest interview number had a swimsuit stat of less than 9.32... | Here is the SQLite query wrapped in triple backticks, as you requested:
```
SELECT MIN(interview) FROM table_name_71 WHERE swimsuit < 9.322 AND evening_gown > 9.259 AND average = '9.321';
```
Please note that the `average` column is of type VARCHAR, so the value '9.321' is enclosed in single quotes to match the stri... | 14,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_71 (interview INTEGER, average VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)\n\n Question: Which smallest interview ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (average INTEGER, state VARCHAR, swimsuit VARCHAR)
Question: What is the highest mean number for Texas when the swimsuit stat was more than 8.839?
Here is ... | Your SQLite query is correct for the given question. Here it is wrapped in the proper code formatting:
```
SELECT MAX(average) FROM table_name_45 WHERE state = "texas" AND swimsuit > 8.839;
``` | 14,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_45 (average INTEGER, state VARCHAR, swimsuit VARCHAR)\n\n Question: What is the highest mean number for Texas when the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (evening_gown INTEGER, average VARCHAR)
Question: What is the mean evening gown number when the average is 8.686?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question of what is the mean evening gown number when the average is 8.686:
```
SELECT AVG(evening_gown) FROM table_name_32 WHERE average = '8.686'
``` | 14,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_32 (evening_gown INTEGER, average VARCHAR)\n\n Question: What is the mean evening gown number when the average is 8.686... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (evening_gown VARCHAR, state VARCHAR, interview VARCHAR)
Question: What is the sum number of evening gown stats for New Jersey when the interview was less t... | Here is the SQLite query to answer the question regarding the sum number of evening gown stats for New Jersey when the interview score was less than 9.344:
```
SELECT COUNT(evening_gown) FROM table_name_80 WHERE state = "new jersey" AND interview < 9.344
``` | 14,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 (evening_gown VARCHAR, state VARCHAR, interview VARCHAR)\n\n Question: What is the sum number of evening gown stats ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (engine_s_ VARCHAR, year VARCHAR)
Question: What engine was made in 1991?
Here is the SQLite query to answer to the question: What engine was made in 1991?... | Here is the SQLite query to answer the question about what engine was made in 1991:
```
SELECT engine_s_ FROM table_name_41 WHERE year = '1991'
``` | 14,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_41 (engine_s_ VARCHAR, year VARCHAR)\n\n Question: What engine was made in 1991?\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_7 (engine_s_ VARCHAR, year VARCHAR)
Question: What engines have the year 1992?
Here is the SQLite query to answer to the question: What engines have the year ... | Here is the SQLite query you requested, wrapped in code formatting:
```
SELECT engine_s_ FROM table_name_7 WHERE year = '1992';
``` | 14,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_7 (engine_s_ VARCHAR, year VARCHAR)\n\n Question: What engines have the year 1992?\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_87 (chassis VARCHAR, year VARCHAR)
Question: What chassis has the year 1987?
Here is the SQLite query to answer to the question: What chassis has the year 198... | Here is the SQLite query to answer the question "What chassis has the year 1987?":
```
SELECT chassis FROM table_name_87 WHERE year = '1987'
``` | 14,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_87 (chassis VARCHAR, year VARCHAR)\n\n Question: What chassis has the year 1987?\n\nHere is the SQLite query to answer ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (points INTEGER, chassis VARCHAR)
Question: What is the average points for the chassis LOLA LC88?
Here is the SQLite query to answer to the question: What i... | The SQLite query you provided is correct for obtaining the average points for the chassis "LOLA LC88". Here it is again wrapped in code formatting:
```
SELECT AVG(points) FROM table_name_2 WHERE chassis = "LOLA LC88";
``` | 14,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_2 (points INTEGER, chassis VARCHAR)\n\n Question: What is the average points for the chassis LOLA LC88?\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_39 (attendance INTEGER, time VARCHAR, location VARCHAR, game VARCHAR)
Question: what is the attendance when the location is veterans stadium, the game is more ... | Here is the correct SQLite query to answer the question regarding attendance where the location is "veterans stadium," the game is greater than 3, and the time is "2:21":
```
SELECT attendance FROM table_name_39 WHERE location = "veterans stadium" AND game > 3 AND time = "2:21";
``` | 14,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_39 (attendance INTEGER, time VARCHAR, location VARCHAR, game VARCHAR)\n\n Question: what is the attendance when the loc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (score VARCHAR, time VARCHAR)
Question: what is the score when the time is 2:22?
Here is the SQLite query to answer to the question: what is the score when... | Here's the SQLite query to answer the question about the score at the time of 2:22:
```
SELECT score FROM table_name_47 WHERE time = "2:22"
``` | 14,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_47 (score VARCHAR, time VARCHAR)\n\n Question: what is the score when the time is 2:22?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (game VARCHAR, location VARCHAR, time VARCHAR)
Question: how many games have a location of memorial stadium and a time of 2:27?
Here is the SQLite query to... | Here is the SQLite query to answer the question about how many games have a location of memorial stadium and a time of 2:27:
```
SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27";
``` | 14,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_95 (game VARCHAR, location VARCHAR, time VARCHAR)\n\n Question: how many games have a location of memorial stadium and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR, game VARCHAR)
Question: what is the attendance on the date of october 16 and the game is more than 5?
Here is the SQLite... | Your query is almost correct, but it seems like there might be a misunderstanding regarding the game column. If "game" is a string (VARCHAR), comparing it to a number (like 5) does not make sense. If you actually want to check if the attendance is greater than 5 instead, you should adjust the query accordingly.
Assumi... | 14,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_59 (attendance INTEGER, date VARCHAR, game VARCHAR)\n\n Question: what is the attendance on the date of october 16 and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (attendance INTEGER, score VARCHAR)
Question: What was the lowest attendance for a score of 5 - 0?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question about the lowest attendance for a score of 5 - 0:
```
SELECT MIN(attendance) FROM table_name_40 WHERE score = "5 - 0"
``` | 14,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_40 (attendance INTEGER, score VARCHAR)\n\n Question: What was the lowest attendance for a score of 5 - 0?\n\nHere is t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.