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_66 (bronze INTEGER, total VARCHAR, gold VARCHAR)
Question: What is the low bronze total for the team with 4 total and under 1 gold?
Here is the SQLite query t... | Your SQLite query is almost correct, but we need to make a small adjustment to properly filter by the `total` and `gold` columns. Since `total` is a VARCHAR type, we should treat the numerical comparison accordingly, and we also need to ensure `gold` is handled correctly for numeric comparison as it's also a VARCHAR. W... | 45,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_66 (bronze INTEGER, total VARCHAR, gold VARCHAR)\n\n Question: What is the low bronze total for the team with 4 total a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (total INTEGER, bronze VARCHAR, gold VARCHAR)
Question: What is the average total for teams with over 3 bronzes and over 8 golds?
Here is the SQLite query ... | Here is the correct SQLite query to answer the question:
```
SELECT AVG(total) FROM table_name_33 WHERE CAST(bronze AS INTEGER) > 3 AND CAST(gold AS INTEGER) > 8
```
In this query, I have added `CAST` to convert the `bronze` and `gold` columns (which are stored as `VARCHAR`) to integers for proper comparison. | 45,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_33 (total INTEGER, bronze VARCHAR, gold VARCHAR)\n\n Question: What is the average total for teams with over 3 bronzes ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (silver INTEGER, total INTEGER)
Question: What is the low silver total associated with under 1 total?
Here is the SQLite query to answer to the question: W... | Your SQLite query to find the low silver total associated with a total of less than 1 is correct. Here it is wrapped in code formatting:
```sql
SELECT MIN(silver) FROM table_name_99 WHERE total < 1;
``` | 45,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_99 (silver INTEGER, total INTEGER)\n\n Question: What is the low silver total associated with under 1 total?\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_92 (points VARCHAR, highest_position VARCHAR, position VARCHAR)
Question: What is the number of points associated with the highest position under 9 and a curre... | Your SQL query seems to be almost correct, but there's a small logical issue because the `highest_position` is being compared as a `VARCHAR`, which might lead to incorrect ordering if "highest_position" holds numerical values as strings. To ensure that you're comparing numerical values correctly, you should cast `highe... | 45,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_92 (points VARCHAR, highest_position VARCHAR, position VARCHAR)\n\n Question: What is the number of points associated w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (performer_1 VARCHAR, performer_3 VARCHAR, performer_4 VARCHAR)
Question: Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer ... | To correctly formulate the SQLite query based on the provided schema and question, it seems there was a misunderstanding in the conditions for the query. The query should find the `performer_1` that is associated with a specific `performer_3` for "paul merton" and a specific `performer_4` for "sandi toksvig". Here’s th... | 45,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_93 (performer_1 VARCHAR, performer_3 VARCHAR, performer_4 VARCHAR)\n\n Question: Performer 3 of paul merton, and a Perf... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (performer_1 VARCHAR, episode VARCHAR)
Question: Episode of 16 involves which performer 1?
Here is the SQLite query to answer to the question: Episode of 1... | Here is the SQLite query to answer the question regarding which performer is involved in episode 16:
```
SELECT performer_1 FROM table_name_64 WHERE episode = '16';
``` | 45,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_64 (performer_1 VARCHAR, episode VARCHAR)\n\n Question: Episode of 16 involves which performer 1?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (performer_1 VARCHAR, performer_2 VARCHAR)
Question: Performer 2 of compilation 1 had what performer 1?
Here is the SQLite query to answer to the question:... | Your query is almost correct, but it seems that there might be a misunderstanding regarding the specific performers. The goal is to find the `performer_1` associated with a specific `performer_2`—in this case, "compilation 1".
If "compilation 1" refers to a specific value that exists in the `performer_2` column, then... | 45,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_55 (performer_1 VARCHAR, performer_2 VARCHAR)\n\n Question: Performer 2 of compilation 1 had what performer 1?\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_98 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)
Question: Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv selig... | Here is the SQLite query to answer the question: Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten:
```
SELECT schwaben FROM table_name_98 WHERE oberbayern = 'fc ingolstadt 04' AND mittelfranken = 'sv seligenporten';
``` | 45,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_98 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)\n\n Question: Which Schwaben has an Oberbayern of fc i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)
Question: Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc ... | Here is the SQLite query to answer the question:
```
SELECT schwaben FROM table_name_15 WHERE oberbayern = 'fc bayern munich ii' AND mittelfranken = '1. fc nuremberg ii';
``` | 45,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_15 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)\n\n Question: Which Schwaben has a Oberbayern of fc ba... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (incumbent VARCHAR, district VARCHAR)
Question: Who was the incumbent for south carolina 3 district?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the incumbent for South Carolina 3 district:
```
SELECT incumbent FROM table_name_64 WHERE district = "south carolina 3";
``` | 45,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_64 (incumbent VARCHAR, district VARCHAR)\n\n Question: Who was the incumbent for south carolina 3 district?\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_56 (first_elected VARCHAR, district VARCHAR)
Question: When was the incumbent from the south carolina 1 district first elected?
Here is the SQLite query to an... | Here is the SQLite query to answer the question you provided:
```
SELECT first_elected FROM table_name_56 WHERE district = "south carolina 1"
``` | 45,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_56 (first_elected VARCHAR, district VARCHAR)\n\n Question: When was the incumbent from the south carolina 1 district fi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)
Question: Who was the incumbent that was first elected in 1892 and retired to run for the senate ... | Here is the SQLite query based on the given schema and question:
```
SELECT incumbent FROM table_name_96 WHERE first_elected = "1892" AND result = "retired to run for the senate democratic hold"
``` | 45,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_96 (incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)\n\n Question: Who was the incumbent that was first electe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (incumbent VARCHAR, result VARCHAR)
Question: Who was the incumbent that retired to run for the senate democratic hold?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the incumbent who retired to run for the senate democratic hold:
```
SELECT incumbent FROM table_name_82 WHERE result = "retired to run for the senate democratic hold";
``` | 45,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_82 (incumbent VARCHAR, result VARCHAR)\n\n Question: Who was the incumbent that retired to run for the senate democrati... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
Question: What was the result of W. Jasper Talbert who was first elected in 1892?
Here is the SQ... | Here is the SQLite query to answer the question regarding the result of W. Jasper Talbert, who was first elected in 1892:
```
SELECT result FROM table_name_83 WHERE first_elected = "1892" AND incumbent = "W. Jasper Talbert";
``` | 45,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_83 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)\n\n Question: What was the result of W. Jasper Talbert wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (nationality VARCHAR)
Question: Which Nationality has a 2.24 of xo, and a 2.20 of xo?
Here is the SQLite query to answer to the question: Which Nationality... | The provided SQLite query contains some errors in its logic. The `WHERE` clause is attempting to compare numeric values directly to a string ("xo"), which is not valid.
Based on the question, it seems you're looking for nationalities associated with specific values of "xo". You might want to check if a nationality ma... | 45,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_35 (nationality VARCHAR)\n\n Question: Which Nationality has a 2.24 of xo, and a 2.20 of xo?\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_8 (athlete VARCHAR)
Question: Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?
Here is the SQLite query to answer to the question: Which Athl... | It seems there is a misunderstanding in the structure of the query. Based on the provided schema, the table only contains one column, `athlete`, and does not specify any numeric values associated with the athletes or the context of "xo" or "o".
To construct a proper SQL query, we need to clarify how this information ... | 45,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_8 (athlete VARCHAR)\n\n Question: Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?\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_69 (election INTEGER, _number_of_seats_won VARCHAR, _number_of_candidates_nominated VARCHAR, _percentage_of_popular_vote VARCHAR)
Question: What is the earlies... | Your SQLite query has a small mistake regarding the condition for seats won. It should check for 0 seats won, not less than 0. Here’s the corrected query:
```sql
SELECT MIN(election) FROM table_name_69
WHERE _number_of_candidates_nominated > 7
AND _percentage_of_popular_vote = "2.75%"
AND _number_of_seats_won = "0"... | 45,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_69 (election INTEGER, _number_of_seats_won VARCHAR, _number_of_candidates_nominated VARCHAR, _percentage_of_popular_vote V... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (played INTEGER, team VARCHAR, lost VARCHAR, drawn VARCHAR)
Question: How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga?
He... | Your provided SQLite query is correctly formulated to answer the question. It sums the `played` column for records that meet the specified conditions. Here is the query wrapped in code format, as requested:
```
SELECT SUM(played) FROM table_name_22 WHERE lost > 14 AND drawn = 8 AND team = "ipatinga";
``` | 45,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_22 (played INTEGER, team VARCHAR, lost VARCHAR, drawn VARCHAR)\n\n Question: How much Played has a Lost larger than 14,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (drawn VARCHAR, difference VARCHAR, points VARCHAR)
Question: How many Drawn have a Difference of 3, and Points smaller than 52?
Here is the SQLite query t... | Your SQLite query looks mostly correct, but keep in mind that the `points` field is defined as a `VARCHAR`. This means you should properly cast it to an integer for the comparison. Here's the revised query:
```sql
SELECT COUNT(drawn)
FROM table_name_55
WHERE difference = "3" AND CAST(points AS INTEGER) < 52;
``` | 45,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_55 (drawn VARCHAR, difference VARCHAR, points VARCHAR)\n\n Question: How many Drawn have a Difference of 3, and Points ... | |
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, drawn VARCHAR, position VARCHAR, team VARCHAR)
Question: Which Points is the highest one that has a Position smaller than 4, and a Team of ... | Here is the SQLite query to answer your question:
```
SELECT MAX(points) FROM table_name_80 WHERE position < 4 AND team = "são paulo" AND drawn > 12;
``` | 45,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_80 (points INTEGER, drawn VARCHAR, position VARCHAR, team VARCHAR)\n\n Question: Which Points is the highest one that h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (lost INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)
Question: How many Lost have Points larger than 40, and a Position of 11, and a Played smal... | Your provided SQLite query looks correct for the specified question. Here's the query wrapped properly:
```
SELECT SUM(lost) FROM table_name_18 WHERE points > 40 AND position = '11' AND played < '38'
```
Note: In SQLite, since `points` and `played` are defined as `VARCHAR`, you will need to ensure that you compare th... | 45,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_18 (lost INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)\n\n Question: How many Lost have Points 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_3 (lost INTEGER, points_difference VARCHAR, games VARCHAR)
Question: What is the lowest number of games loss with a Points difference of 40 - 17, and over 6 ga... | Here is the SQLite query to answer the question:
```
SELECT MIN(lost) FROM table_name_3 WHERE points_difference = "40 - 17" AND games > 6
``` | 45,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_3 (lost INTEGER, points_difference VARCHAR, games VARCHAR)\n\n Question: What is the lowest number of games loss with a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (lost INTEGER, games INTEGER)
Question: How many games lost for teams with over 6 games?
Here is the SQLite query to answer to the question: How many games... | It looks like you want to count the total number of games lost for teams that have played more than 6 games. The correct query should use the `SUM` function instead of `MIN`, as you need the total lost games rather than the minimum lost games.
Here's the corrected SQLite query:
```
SELECT SUM(lost) FROM table_name_46... | 45,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_46 (lost INTEGER, games INTEGER)\n\n Question: How many games lost for teams with over 6 games?\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_80 (drawn INTEGER, games INTEGER)
Question: What are the highest number of games drawn for games numbered under 6?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding the highest number of games drawn for games numbered under 6:
```
SELECT MAX(drawn) FROM table_name_80 WHERE games < 6
``` | 45,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_80 (drawn INTEGER, games INTEGER)\n\n Question: What are the highest number of games drawn for games numbered under 6?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (drawn INTEGER, points_difference VARCHAR, lost VARCHAR)
Question: How many games drawn with a Points difference of 31 - 33, and under 4 games lost?
Here i... | Your SQLite query needs a slight adjustment to ensure proper comparison for the column `lost`, which is of type `VARCHAR`. You should cast it to an integer for proper comparison. Here is the corrected SQL query:
```sql
SELECT SUM(drawn)
FROM table_name_41
WHERE points_difference = '31 - 33' AND CAST(lost AS INTEGER)... | 45,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_41 (drawn INTEGER, points_difference VARCHAR, lost VARCHAR)\n\n Question: How many games drawn with a Points difference... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
Question: Which Outcome has a Surface of hard (i), and a Date of 28 january 2003?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding which Outcome has a Surface of hard (i) and a Date of 28 January 2003:
```
SELECT outcome FROM table_name_78 WHERE surface = "hard (i)" AND date = "28 january 2003";
``` | 45,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_78 (outcome VARCHAR, surface VARCHAR, date VARCHAR)\n\n Question: Which Outcome has a Surface of hard (i), and a Date o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (tournament VARCHAR, outcome VARCHAR, surface VARCHAR)
Question: Which Tournament has an Outcome of winner, and a Surface of hard (i)?
Here is the SQLite qu... | Here is the SQLite query to answer the question:
```
SELECT tournament FROM table_name_4 WHERE outcome = "winner" AND surface = "hard (i)"
``` | 45,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_4 (tournament VARCHAR, outcome VARCHAR, surface VARCHAR)\n\n Question: Which Tournament has an Outcome of winner, 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_76 (date VARCHAR, score VARCHAR)
Question: Which Date has a Score of 6–1, 6–2?
Here is the SQLite query to answer to the question: Which Date has a Score of 6... | Your SQLite query is almost correct, but it appears you need to use a condition to look for either score in the results. You can use the `IN` clause for this. Here’s the updated query:
```
SELECT date FROM table_name_76 WHERE score IN ("6–1", "6–2")
```
This query will return the dates that have a score of either "6–... | 45,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_76 (date VARCHAR, score VARCHAR)\n\n Question: Which Date has a Score of 6–1, 6–2?\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_99 (surface VARCHAR, opponent VARCHAR)
Question: Which Surface has an Opponent of oleksandra kravets?
Here is the SQLite query to answer to the question: Whic... | Here is the SQLite query to answer the question: Which Surface has an Opponent of oleksandra kravets?:
```sql
SELECT surface FROM table_name_99 WHERE opponent = "oleksandra kravets";
``` | 45,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_99 (surface VARCHAR, opponent VARCHAR)\n\n Question: Which Surface has an Opponent of oleksandra kravets?\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_60 (surface VARCHAR, date VARCHAR)
Question: Which Surface has a Date of 3 october 2003?
Here is the SQLite query to answer to the question: Which Surface has... | Here is the SQLite query to answer your question:
```
SELECT surface FROM table_name_60 WHERE date = "3 october 2003"
``` | 45,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_60 (surface VARCHAR, date VARCHAR)\n\n Question: Which Surface has a Date of 3 october 2003?\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_65 (surface VARCHAR, score VARCHAR)
Question: Which Surface has a Score of 6–4, 6–2?
Here is the SQLite query to answer to the question: Which Surface has a S... | ```sql
SELECT surface FROM table_name_65 WHERE score = "6–4, 6–2";
``` | 45,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_65 (surface VARCHAR, score VARCHAR)\n\n Question: Which Surface has a Score of 6–4, 6–2?\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_29 (rank VARCHAR, code__iata_icao_ VARCHAR)
Question: How many ranks have a Code (IATA/ICAO) of ord/kord?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to count how many ranks have a Code (IATA/ICAO) of "ord/kord":
```sql
SELECT COUNT(rank) FROM table_name_29 WHERE code__iata_icao_ = 'ord/kord';
``` | 45,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_29 (rank VARCHAR, code__iata_icao_ VARCHAR)\n\n Question: How many ranks have a Code (IATA/ICAO) of ord/kord?\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_66 (total_cargo__metric_tonnes_ INTEGER, rank VARCHAR, airport VARCHAR)
Question: Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller ... | Here is the SQLite query to answer your question:
```
SELECT MAX(total_cargo__metric_tonnes_)
FROM table_name_66
WHERE rank < '4' AND airport = 'shanghai pudong international airport';
``` | 45,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_66 (total_cargo__metric_tonnes_ INTEGER, rank VARCHAR, airport VARCHAR)\n\n Question: Which Total Cargo (Metric Tonnes)... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (per_capita_income VARCHAR, median_family_income VARCHAR)
Question: What is the Per capita income where Median family income is $72,288?
Here is the SQLite ... | Your SQLite query is almost correct but should use single quotes for string literals. Here's the corrected version:
```
SELECT per_capita_income FROM table_name_7 WHERE median_family_income = '$72,288'
``` | 45,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_7 (per_capita_income VARCHAR, median_family_income VARCHAR)\n\n Question: What is the Per capita income where Median fa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (grid INTEGER, time_retired VARCHAR)
Question: What is the average grid for the +2.2 secs time/retired?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question regarding the average grid for the "+2.2 secs" time retired:
```
SELECT AVG(grid) FROM table_name_44 WHERE time_retired = "+2.2 secs";
``` | 45,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_44 (grid INTEGER, time_retired VARCHAR)\n\n Question: What is the average grid for the +2.2 secs time/retired?\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_15 (facility_id INTEGER, city_of_license VARCHAR, erp___power_w VARCHAR)
Question: Which Facility ID has a City of license of springfield, ma, and a ERP / Powe... | Here is the SQLite query to answer your question:
```sql
SELECT MAX(facility_id) FROM table_name_15 WHERE city_of_license = 'springfield, ma' AND erp___power_w < 230;
``` | 45,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_15 (facility_id INTEGER, city_of_license VARCHAR, erp___power_w VARCHAR)\n\n Question: Which Facility ID has a City of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (frequency VARCHAR, facility_id VARCHAR)
Question: Which Frequency has a Facility ID of 13598?
Here is the SQLite query to answer to the question: Which Fr... | Here is the SQLite query to answer the question:
```sql
SELECT frequency FROM table_name_33 WHERE facility_id = '13598';
``` | 45,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_33 (frequency VARCHAR, facility_id VARCHAR)\n\n Question: Which Frequency has a Facility ID of 13598?\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_64 (facility_id INTEGER, call_sign VARCHAR)
Question: WHich Facility ID has a Call sign of wnpr?
Here is the SQLite query to answer to the question: WHich Fac... | The query you've provided attempts to calculate the average `facility_id` for entries with the call sign "wnpr". However, since you're asking for the specific facility ID that matches the call sign, you should use a simple `SELECT` statement. Here’s how you can formulate that query:
```sql
SELECT facility_id FROM tabl... | 45,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_64 (facility_id INTEGER, call_sign VARCHAR)\n\n Question: WHich Facility ID has a Call sign of wnpr?\n\nHere is the SQL... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (frequency VARCHAR, facility_id VARCHAR)
Question: Which Frequency has a Facility ID of 13598?
Here is the SQLite query to answer to the question: Which Fr... | ```sql
SELECT frequency FROM table_name_71 WHERE facility_id = '13598'
``` | 45,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_71 (frequency VARCHAR, facility_id VARCHAR)\n\n Question: Which Frequency has a Facility ID of 13598?\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_81 (name VARCHAR, points VARCHAR)
Question: What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points?
Here is the SQLite query... | Your SQL query has a small error in the syntax for the COUNT function. The alias should not be included within the COUNT() function. Instead, you should count the cases explicitly and then give the alias after. Here’s the corrected query:
```sql
SELECT COUNT(*) AS st__m_
FROM table_name_81
WHERE name = "Martin Schmi... | 45,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_81 (name VARCHAR, points VARCHAR)\n\n Question: What is the total number of 1sts that Martin Schmitt had where he less ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (attendance VARCHAR, home VARCHAR)
Question: What is the total number of attendance for games where buffalo was the home team?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about the total number of attendance for games where Buffalo was the home team:
```
SELECT SUM(attendance) FROM table_name_83 WHERE home = "buffalo"
``` | 45,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_83 (attendance VARCHAR, home VARCHAR)\n\n Question: What is the total number of attendance for games where buffalo was ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (score VARCHAR, visitor VARCHAR, date VARCHAR)
Question: What was the score of the game on April 28 where Buffalo were the visiting team?
Here is the SQLit... | Here is the SQLite query to answer the question about the score of the game on April 28 where Buffalo were the visiting team:
```
SELECT score FROM table_name_64 WHERE visitor = "Buffalo" AND date = "April 28";
``` | 45,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_64 (score VARCHAR, visitor VARCHAR, date VARCHAR)\n\n Question: What was the score of the game on April 28 where Buffal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (date VARCHAR, visitor VARCHAR)
Question: What date was the game where the visiting team was philadelphia?
Here is the SQLite query to answer to the questi... | Your SQLite query to find the date of the game where the visiting team was Philadelphia is correctly formatted. Here it is wrapped as you requested:
```
SELECT date FROM table_name_10 WHERE visitor = "philadelphia";
``` | 45,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_10 (date VARCHAR, visitor VARCHAR)\n\n Question: What date was the game where the visiting team was philadelphia?\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_53 (gold VARCHAR, year VARCHAR, location VARCHAR)
Question: Who got the gold in seoul before 2002?
Here is the SQLite query to answer to the question: Who got... | Your SQLite query is correct for the given question based on the provided schema. Here is the query wrapped properly:
```
SELECT gold FROM table_name_53 WHERE year < 2002 AND location = "seoul";
``` | 45,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_53 (gold VARCHAR, year VARCHAR, location VARCHAR)\n\n Question: Who got the gold in seoul before 2002?\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_14 (location VARCHAR, silver VARCHAR)
Question: Where did sohn bong-gak win silver?
Here is the SQLite query to answer to the question: Where did sohn bong-ga... | Here is the SQLite query to answer the question: Where did sohn bong-gak win silver?:
```
SELECT location FROM table_name_14 WHERE silver = "sohn bong-gak";
``` | 45,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_14 (location VARCHAR, silver VARCHAR)\n\n Question: Where did sohn bong-gak win silver?\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_99 (bronze VARCHAR, gold VARCHAR)
Question: Who won the bronze when jin kanno won the gold?
Here is the SQLite query to answer to the question: Who won the br... | Here is the SQLite query to answer the question: Who won the bronze when Jin Kanno won the gold?:
```sql
SELECT bronze FROM table_name_99 WHERE gold = "jin kanno";
``` | 45,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_99 (bronze VARCHAR, gold VARCHAR)\n\n Question: Who won the bronze when jin kanno won the gold?\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_69 (score VARCHAR, outcome VARCHAR, tournament VARCHAR)
Question: Which Score has an Outcome of runner-up, and a Tournament of johannesburg?
Here is the SQLit... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_69 WHERE outcome = "runner-up" AND tournament = "johannesburg";
``` | 45,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_69 (score VARCHAR, outcome VARCHAR, tournament VARCHAR)\n\n Question: Which Score has an Outcome of runner-up, and a To... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (surface VARCHAR, opponent VARCHAR, score VARCHAR)
Question: Which Surface has an Opponent of kerry melville reid, and a Score of 6–3, 2–6, 3–6?
Here is th... | Here is the SQLite query to answer the question about which surface has an opponent of "kerry melville reid" and a score of "6–3, 2–6, 3–6":
```sql
SELECT surface FROM table_name_53 WHERE opponent = "kerry melville reid" AND score = "6–3, 2–6, 3–6"
``` | 45,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_53 (surface VARCHAR, opponent VARCHAR, score VARCHAR)\n\n Question: Which Surface has an Opponent of kerry melville rei... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (outcome VARCHAR, opponent VARCHAR, surface VARCHAR)
Question: Which Outcome has an Opponent of wendy turnbull, and a Surface of grass?
Here is the SQLite ... | Here is the SQLite query to answer the question:
```
SELECT outcome FROM table_name_54 WHERE opponent = "wendy turnbull" AND surface = "grass";
``` | 45,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_54 (outcome VARCHAR, opponent VARCHAR, surface VARCHAR)\n\n Question: Which Outcome has an Opponent of wendy turnbull, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (tournament VARCHAR, date VARCHAR)
Question: Which Tournament has a Date of 22 january 1979?
Here is the SQLite query to answer to the question: Which Tourn... | Here is the SQLite query to answer the question: Which Tournament has a Date of 22 january 1979?:
```
SELECT tournament FROM table_name_6 WHERE date = "22 january 1979";
``` | 45,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_6 (tournament VARCHAR, date VARCHAR)\n\n Question: Which Tournament has a Date of 22 january 1979?\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_86 (outcome VARCHAR, score VARCHAR)
Question: Which Outcome has a Score of 6–4, 2–6, 6–3?
Here is the SQLite query to answer to the question: Which Outcome ha... | It seems that the question is asking for rows where the score is one of "6–4", "2–6", or "6–3". The provided query incorrectly looks for a single combined score. Here’s the correct SQLite query to get the desired outcomes for the specified scores:
```
SELECT outcome FROM table_name_86 WHERE score IN ("6–4", "2–6", "6–... | 45,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_86 (outcome VARCHAR, score VARCHAR)\n\n Question: Which Outcome has a Score of 6–4, 2–6, 6–3?\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_69 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)
Question: Which nation has total medals under 63, less than 2 silver, more tha... | Here is the SQLite query formatted as per your request:
```
SELECT nation FROM table_name_69 WHERE total < 63 AND silver < 2 AND bronze > 2 AND rank = "8";
``` | 45,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_69 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)\n\n Question: Which nation has total m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)
Question: How many golds have bronze values of 4 and silver values over 2?
Here is the SQLite query to answe... | Your provided SQLite query is correct for the given question. Here it is wrapped in the specified format:
```
SELECT COUNT(gold) FROM table_name_65 WHERE bronze = 4 AND silver > 2;
``` | 45,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_65 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)\n\n Question: How many golds have bronze values of 4 and silver value... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
Question: What is the sum of silver values that have bronze values under 4, golds over 2, and a... | Your query is almost correct, but there is a small mistake regarding the condition for the `gold` column. In SQL, the `gold` column is defined as a `VARCHAR`, and to check if it is greater than a number (2 in this case) will not work as intended. You should convert the `gold` values to integers (if applicable) or ensur... | 45,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_52 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)\n\n Question: What is the sum of silver values that hav... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (gold INTEGER, bronze VARCHAR, total VARCHAR)
Question: What is the sum of gold values that have bronze values over 0 and totals under 2?
Here is the SQLit... | Here is the SQLite query to answer the question regarding the sum of gold values that have bronze values over 0 and totals under 2:
```
SELECT SUM(gold) FROM table_name_34 WHERE bronze > 0 AND total < 2
``` | 45,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_34 (gold INTEGER, bronze VARCHAR, total VARCHAR)\n\n Question: What is the sum of gold values that have bronze values o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (gold INTEGER, total VARCHAR, bronze VARCHAR)
Question: What is the smallest gold value that has a total over 15 and bronze values under 31?
Here is the SQ... | Your SQLite query looks good, but I'll make a small correction to ensure that the comparisons are done correctly for the `total` and `bronze` columns. Since `total` is a `VARCHAR`, we should convert it to an integer for the comparison. Here's the corrected query:
```
SELECT MIN(gold) FROM table_name_51 WHERE CAST(tota... | 45,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_51 (gold INTEGER, total VARCHAR, bronze VARCHAR)\n\n Question: What is the smallest gold value that has a total over 15... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (equatorial_diameter VARCHAR, body VARCHAR)
Question: What is the Equatorial diameter of the Body: Mars?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about the equatorial diameter of Mars:
```
SELECT equatorial_diameter FROM table_name_24 WHERE body = "Mars";
``` | 45,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_24 (equatorial_diameter VARCHAR, body VARCHAR)\n\n Question: What is the Equatorial diameter of the Body: Mars?\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_33 (equatorial_diameter VARCHAR, body VARCHAR)
Question: What is the Equatorial diameter of the Body: ceres?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question regarding the equatorial diameter of the body "ceres":
```
SELECT equatorial_diameter FROM table_name_33 WHERE body = "ceres"
``` | 45,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_33 (equatorial_diameter VARCHAR, body VARCHAR)\n\n Question: What is the Equatorial diameter of the Body: ceres?\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_79 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)
Question: What is the Flattening ratio associated with the Equatorial diameter of 49,528km?
Here is... | Here's the SQLite query to find the Flattening ratio associated with the Equatorial diameter of 49,528km:
```
SELECT flattening_ratio FROM table_name_79 WHERE equatorial_diameter = "49,528km";
``` | 45,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_79 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)\n\n Question: What is the Flattening ratio associated with t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (equatorial_bulge VARCHAR, body VARCHAR)
Question: What is the Equatorial bulge of the Body: Earth?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question about the Equatorial bulge of the Body: Earth:
```
SELECT equatorial_bulge FROM table_name_74 WHERE body = "Earth";
``` | 45,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_74 (equatorial_bulge VARCHAR, body VARCHAR)\n\n Question: What is the Equatorial bulge of the Body: Earth?\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_75 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)
Question: What is the Flattening ratio associated with the Equatorial diameter of 120,536km?
Here i... | Here is the SQLite query to answer the question regarding the Flattening ratio associated with the Equatorial diameter of 120,536km:
```
SELECT flattening_ratio FROM table_name_75 WHERE equatorial_diameter = "120,536km"
``` | 45,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_75 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)\n\n Question: What is the Flattening ratio associated with 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 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)
Question: What is the Flattening ratio associated with the Equatorial diameter of 12,756.28km?
Here... | Here is the SQLite query to find the Flattening ratio associated with the Equatorial diameter of 12,756.28 km:
```
SELECT flattening_ratio FROM table_name_27 WHERE equatorial_diameter = "12,756.28km"
``` | 45,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_27 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)\n\n Question: What is the Flattening ratio associated with t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (yards INTEGER, attempts VARCHAR, average VARCHAR, long VARCHAR)
Question: What is the average Yards with an average of less than 4 and the long is 12 with ... | Here is the SQLite query to answer the question you provided:
```
SELECT AVG(yards) FROM table_name_53 WHERE average < '4' AND long = '12' AND attempts < '29'
``` | 45,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_53 (yards INTEGER, attempts VARCHAR, average VARCHAR, long VARCHAR)\n\n Question: What is the average Yards with an ave... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (yards INTEGER, average INTEGER)
Question: What is the least amount of yards when the average is less than 2.6?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question:
```
SELECT MIN(yards) FROM table_name_65 WHERE average < 2.6
``` | 45,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_65 (yards INTEGER, average INTEGER)\n\n Question: What is the least amount of yards when the average is less than 2.6?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (touchdowns INTEGER, yards VARCHAR)
Question: What is the lease amount of touchdowns with 1318 yards?
Here is the SQLite query to answer to the question: W... | The SQLite query you provided contains a small error in the WHERE clause because `yards` is defined as a VARCHAR type, and comparing it directly to an integer like `1318` may not yield the expected results. Instead, you should compare `yards` to the string representation of `1318`. Here is the corrected query:
```sql
... | 45,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_41 (touchdowns INTEGER, yards VARCHAR)\n\n Question: What is the lease amount of touchdowns with 1318 yards?\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_80 (touchdowns VARCHAR, average INTEGER)
Question: What is the number of touchdowns with the average is less than 2.6?
Here is the SQLite query to answer to t... | Your SQLite query is correctly formulated to count the number of touchdowns where the average is less than 2.6. Here it is wrapped as requested:
```
SELECT COUNT(touchdowns) FROM table_name_80 WHERE average < 2.6;
``` | 45,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_80 (touchdowns VARCHAR, average INTEGER)\n\n Question: What is the number of touchdowns with the average is less than 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (long VARCHAR, attempts VARCHAR)
Question: What is the total number for long when there are 19 attempts?
Here is the SQLite query to answer to the question... | The provided SQLite query is almost correct, but it needs a slight adjustment. Since the `attempts` column is of type VARCHAR, we should ensure we're comparing it to a string value, specifically `'19'`. Here is the updated query:
```sql
SELECT COUNT(long) FROM table_name_52 WHERE attempts = '19';
``` | 45,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_52 (long VARCHAR, attempts VARCHAR)\n\n Question: What is the total number for long when there are 19 attempts?\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_78 (margin_of_victory VARCHAR, tournament VARCHAR)
Question: What was the margin of victory for Olazabal in the German Masters?
Here is the SQLite query to an... | To retrieve the margin of victory for Olazabal specifically in the German Masters, you'll need to include a condition to filter by the player's name as well. Here’s the corrected SQLite query:
```sql
SELECT margin_of_victory
FROM table_name_78
WHERE tournament = "German Masters" AND player_name = "Olazabal";
```
(N... | 45,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_78 (margin_of_victory VARCHAR, tournament VARCHAR)\n\n Question: What was the margin of victory for Olazabal in the Ger... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (winning_score VARCHAR, runner_s__up VARCHAR)
Question: What was Olazabal's winning score in the event in which Phillip Price finished 2nd?
Here is the SQL... | Here is the SQLite query to answer your question about Olazabal's winning score in the event where Phillip Price finished 2nd:
```
SELECT winning_score FROM table_name_90 WHERE runner_s__up = "Phillip Price";
``` | 45,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_90 (winning_score VARCHAR, runner_s__up VARCHAR)\n\n Question: What was Olazabal's winning score in the event in which ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (winning_score VARCHAR, tournament VARCHAR)
Question: What was Olazabal's winning score in the German Masters?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about Olazabal's winning score in the German Masters:
```sql
SELECT winning_score FROM table_name_62 WHERE tournament = "German Masters" AND winning_score LIKE '%Olazabal%';
```
Note that the assumption is made that the `winning_score` might include the player's name; ... | 45,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_62 (winning_score VARCHAR, tournament VARCHAR)\n\n Question: What was Olazabal's winning score in the German Masters?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (margin_of_victory VARCHAR, tournament VARCHAR)
Question: What was Olazabal's margin of victory int he Ebel European Masters Swiss Open?
Here is the SQLite ... | Here's the SQLite query to find Olazabal's margin of victory in the Ebel European Masters Swiss Open:
```
SELECT margin_of_victory FROM table_name_6 WHERE tournament = "Ebel European Masters Swiss Open";
``` | 45,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_6 (margin_of_victory VARCHAR, tournament VARCHAR)\n\n Question: What was Olazabal's margin of victory int he Ebel Europ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (series_ep VARCHAR, netflix VARCHAR)
Question: Which Series Ep has a Netflix of s08e18?
Here is the SQLite query to answer to the question: Which Series Ep... | Here is the SQLite query to answer the question:
```
SELECT series_ep FROM table_name_83 WHERE netflix = "s08e18";
``` | 45,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_83 (series_ep VARCHAR, netflix VARCHAR)\n\n Question: Which Series Ep has a Netflix of s08e18?\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_92 (segment_b VARCHAR, segment_d VARCHAR)
Question: Which Segment B has a Segment D of stone wool insulation?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question: Which Segment B has a Segment D of stone wool insulation?:
```
SELECT segment_b FROM table_name_92 WHERE segment_d = "stone wool insulation";
``` | 45,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_92 (segment_b VARCHAR, segment_d VARCHAR)\n\n Question: Which Segment B has a Segment D of stone wool insulation?\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_70 (segment_a VARCHAR, segment_c VARCHAR)
Question: Which Segment A has a Segment C of poster restoration?
Here is the SQLite query to answer to the question:... | Your provided SQLite query is correct. It retrieves the values of `segment_a` where the `segment_c` is equal to "poster restoration". Here it is wrapped as you requested:
```
SELECT segment_a FROM table_name_70 WHERE segment_c = "poster restoration";
``` | 45,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_70 (segment_a VARCHAR, segment_c VARCHAR)\n\n Question: Which Segment A has a Segment C of poster restoration?\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_54 (segment_c VARCHAR, segment_b VARCHAR)
Question: Which Segment C has a Segment B of fish food?
Here is the SQLite query to answer to the question: Which Se... | Here is the SQLite query to answer the question: Which Segment C has a Segment B of fish food?:
```sql
SELECT segment_c FROM table_name_54 WHERE segment_b = "fish food";
``` | 45,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_54 (segment_c VARCHAR, segment_b VARCHAR)\n\n Question: Which Segment C has a Segment B of fish food?\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_43 (segment_c VARCHAR, netflix VARCHAR)
Question: Which Segment C has a Netflix of s08e16?
Here is the SQLite query to answer to the question: Which Segment C... | Here is the SQLite query to answer the question regarding which Segment C has a Netflix of s08e16:
```
SELECT segment_c FROM table_name_43 WHERE netflix = "s08e16";
``` | 45,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_43 (segment_c VARCHAR, netflix VARCHAR)\n\n Question: Which Segment C has a Netflix of s08e16?\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_26 (competition VARCHAR, opponent VARCHAR, date VARCHAR)
Question: What was the name of the competition that had Peterborough Phantoms as an opponent and a dat... | Here is the SQLite query to answer the given question:
```
SELECT competition FROM table_name_26 WHERE opponent = "Peterborough Phantoms" AND date = '2';
```
Please make sure that the date format matches the format stored in your database (as a string in this case). If "2" is stored differently, you may need to adju... | 45,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_26 (competition VARCHAR, opponent VARCHAR, date VARCHAR)\n\n Question: What was the name of the competition that had Pe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (tally VARCHAR, county VARCHAR)
Question: What is the Tally in Kerry County?
Here is the SQLite query to answer to the question: What is the Tally in Kerry... | Here is the SQLite query to answer the question: What is the Tally in Kerry County?:
```
SELECT tally FROM table_name_36 WHERE county = "Kerry";
``` | 45,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_36 (tally VARCHAR, county VARCHAR)\n\n Question: What is the Tally in Kerry County?\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_31 (matches INTEGER, player VARCHAR, total VARCHAR)
Question: With a Total of less than 29, what is Ian Ryan's most Matches?
Here is the SQLite query to answe... | Your SQLite query is mostly correct, but it requires a little adjustment to ensure that the total is treated as an integer for comparison. Assuming `total` should be treated as a numeric value, you may want to cast it. Additionally, note the correct casing for the player's name if there are case sensitivity issues in y... | 45,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_31 (matches INTEGER, player VARCHAR, total VARCHAR)\n\n Question: With a Total of less than 29, what is Ian Ryan's most... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (lema_sublema VARCHAR, votes VARCHAR, ch_of_deputies VARCHAR)
Question: Which LEMA/SUBLEMA that has Votes smaller than 218656, and a Ch of Deputies of 0?
H... | Here is the SQLite query to answer the question:
```
SELECT lema_sublema FROM table_name_22 WHERE votes < 218656 AND ch_of_deputies = "0"
``` | 45,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_22 (lema_sublema VARCHAR, votes VARCHAR, ch_of_deputies VARCHAR)\n\n Question: Which LEMA/SUBLEMA that has Votes smalle... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (lema_sublema VARCHAR, ch_of_senators VARCHAR)
Question: Which LEMA/SUBLEMA has a Ch of Senators of 2?
Here is the SQLite query to answer to the question: W... | The SQLite query you provided is correct for retrieving the LEMA/SUBLEMA that has a Ch of Senators equal to 2. Here it is wrapped in the requested format:
```
SELECT lema_sublema FROM table_name_4 WHERE ch_of_senators = "2";
``` | 45,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_4 (lema_sublema VARCHAR, ch_of_senators VARCHAR)\n\n Question: Which LEMA/SUBLEMA has a Ch of Senators of 2?\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 (tournament VARCHAR, score_in_the_final VARCHAR)
Question: what tornament had the scores 6–7, 6–2, 6–4?
Here is the SQLite query to answer to the question:... | To find the tournament that had the scores "6–7, 6–2, 6–4", your SQLite query is correctly constructed. Here it is again wrapped in code:
```
SELECT tournament FROM table_name_22 WHERE score_in_the_final = "6–7, 6–2, 6–4";
```
Make sure that the score format matches exactly, including any special characters or space... | 45,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_22 (tournament VARCHAR, score_in_the_final VARCHAR)\n\n Question: what tornament had the scores 6–7, 6–2, 6–4?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (partner VARCHAR, score_in_the_final VARCHAR)
Question: what partner made the scores 6–4, 6–1?
Here is the SQLite query to answer to the question: what par... | Your SQLite query to find the partner who made the scores 6–4, 6–1 looks good. However, depending on how the scores are stored in the database, you might also want to ensure that you are checking for any additional whitespace or different character representations. Here is the original query wrapped correctly:
```
SEL... | 45,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_19 (partner VARCHAR, score_in_the_final VARCHAR)\n\n Question: what partner made the scores 6–4, 6–1?\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_60 (year VARCHAR, notes VARCHAR)
Question: What year had 6.62 m in the notes?
Here is the SQLite query to answer to the question: What year had 6.62 m in the ... | Here is the SQLite query to answer the question: What year had 6.62 m in the notes?:
```
SELECT year FROM table_name_60 WHERE notes = "6.62 m"
``` | 45,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_60 (year VARCHAR, notes VARCHAR)\n\n Question: What year had 6.62 m in the notes?\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_1 (competition VARCHAR, position VARCHAR, venue VARCHAR)
Question: Which competition in Budapest, Hungary gave a result of 8th?
Here is the SQLite query to an... | Here is the SQLite query to answer the question "Which competition in Budapest, Hungary gave a result of 8th?":
```
SELECT competition FROM table_name_1 WHERE position = '8th' AND venue = 'Budapest, Hungary';
``` | 45,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_1 (competition VARCHAR, position VARCHAR, venue VARCHAR)\n\n Question: Which competition in Budapest, Hungary gave a re... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (year INTEGER, competition VARCHAR, position VARCHAR)
Question: Which year did the World indoor championships gave a position of 3rd?
Here is the SQLite qu... | The SQL query you've provided will not yield the correct answer to the question, as it incorrectly uses the `SUM` function for the `year` field, which is intended to aggregate values rather than retrieve specific information.
Instead, you should select the `year` directly for entries that match the specified competit... | 45,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_12 (year INTEGER, competition VARCHAR, position VARCHAR)\n\n Question: Which year did the World indoor championships ga... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (notes VARCHAR, venue VARCHAR)
Question: What were the notes in Toronto, Canada?
Here is the SQLite query to answer to the question: What were the notes in... | Here is the SQLite query to answer the question about the notes in Toronto, Canada:
```
SELECT notes FROM table_name_32 WHERE venue = "Toronto, Canada";
``` | 45,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_32 (notes VARCHAR, venue VARCHAR)\n\n Question: What were the notes in Toronto, Canada?\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_65 (points INTEGER, year VARCHAR, class VARCHAR, team VARCHAR)
Question: Name the most points for class of 125cc and team of mv agusta with year more than 1957... | Your SQLite query to find the maximum points for the class of 125cc and team of MV Agusta with the year more than 1957 is correct. Here's the code wrapped in the requested format:
```
SELECT MAX(points) FROM table_name_65 WHERE class = "125cc" AND team = "mv agusta" AND year > 1957;
``` | 45,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_65 (points INTEGER, year VARCHAR, class VARCHAR, team VARCHAR)\n\n Question: Name the most points for class of 125cc an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (zx_spectrum VARCHAR, year VARCHAR, genre VARCHAR)
Question: Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?
Here is the SQL... | Here is the SQLite query to answer your question:
```
SELECT zx_spectrum FROM table_name_92 WHERE year > '1984' AND genre = 'arcade/strategy';
``` | 45,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_92 (zx_spectrum VARCHAR, year VARCHAR, genre VARCHAR)\n\n Question: Which ZX Spectrum has a Year larger than 1984, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (year VARCHAR, title VARCHAR)
Question: How many years have a Title of kriegspiel?
Here is the SQLite query to answer to the question: How many years have ... | Here is the SQLite query to answer the question "How many years have a Title of kriegspiel?":
```sql
SELECT COUNT(year) FROM table_name_16 WHERE title = "kriegspiel";
``` | 45,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_16 (year VARCHAR, title VARCHAR)\n\n Question: How many years have a Title of kriegspiel?\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_7 (zx_spectrum VARCHAR, c64 VARCHAR, title VARCHAR, c VARCHAR)
Question: Which ZX Spectrum has a C=64 of c64, and a Title of ankh?
Here is the SQLite query to... | The provided query has a small error in the WHERE clause. The condition for checking if `c` is equal to `64` should be correctly formatted, and comparing `c` to `64` should not include the `=` operator in that manner. Additionally, the `c64` should be a string if you're looking for a value of `c64`.
Here's the correc... | 45,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_7 (zx_spectrum VARCHAR, c64 VARCHAR, title VARCHAR, c VARCHAR)\n\n Question: Which ZX Spectrum has a C=64 of c64, 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_22 (title VARCHAR, others VARCHAR, genre VARCHAR)
Question: Which Title has Others of amstrad cpc, and a Genre of arcade?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding which title has "Others" as "amstrad cpc" and "Genre" as "arcade":
```
SELECT title FROM table_name_22 WHERE others = "amstrad cpc" AND genre = "arcade";
``` | 45,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_22 (title VARCHAR, others VARCHAR, genre VARCHAR)\n\n Question: Which Title has Others of amstrad cpc, and a Genre of a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (result VARCHAR, attendance VARCHAR)
Question: What was the result when the attendance was 12,000?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question regarding the result when the attendance was 12,000:
```
SELECT result FROM table_name_77 WHERE attendance = "12,000"
``` | 45,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_77 (result VARCHAR, attendance VARCHAR)\n\n Question: What was the result when the attendance was 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_21 (attendance VARCHAR, week VARCHAR, date VARCHAR)
Question: What was the attendance for weeks prior to 5 when there was no game scheduled?
Here is the SQLit... | The provided SQL query seems to have a misunderstanding regarding the condition for "no game scheduled." Typically, you would check for attendance records based on a given date or specific records indicating a game is not scheduled, rather than directly using the date field to match the phrase "no game scheduled."
As... | 45,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 (attendance VARCHAR, week VARCHAR, date VARCHAR)\n\n Question: What was the attendance for weeks prior to 5 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_37 (attendance VARCHAR, venue VARCHAR)
Question: What was the attendance number for the venue of Lakeside Park?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the attendance number for the venue of Lakeside Park:
```
SELECT attendance FROM table_name_37 WHERE venue = "Lakeside Park";
``` | 45,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_37 (attendance VARCHAR, venue VARCHAR)\n\n Question: What was the attendance number for the venue of Lakeside Park?\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_63 (week INTEGER, venue VARCHAR, date VARCHAR)
Question: What is the largest week number for the venue of League Park for the date of November 25, 1920?
Here ... | Here is the SQLite query to answer the question regarding the largest week number for the venue of League Park on November 25, 1920:
```
SELECT MAX(week) FROM table_name_63 WHERE venue = "League Park" AND date = "November 25, 1920";
``` | 45,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_63 (week INTEGER, venue VARCHAR, date VARCHAR)\n\n Question: What is the largest week number for the venue of League Pa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (surname VARCHAR, first VARCHAR)
Question: What is Michael's surname?
Here is the SQLite query to answer to the question: What is Michael's surname?:
```
S... | Here is the SQLite query to answer the question "What is Michael's surname?":
```
SELECT surname FROM table_name_16 WHERE first = "Michael";
``` | 45,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_16 (surname VARCHAR, first VARCHAR)\n\n Question: What is Michael's surname?\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_86 (first VARCHAR, dob VARCHAR, bats VARCHAR, throws VARCHAR)
Question: Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977?
Here is the ... | Here is the SQLite query that answers the question:
```
SELECT first FROM table_name_86 WHERE bats = "r" AND throws = "l" AND dob = "12 october 1977"
``` | 45,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_86 (first VARCHAR, dob VARCHAR, bats VARCHAR, throws VARCHAR)\n\n Question: Which First has Bats of r, and Throws of l,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (dob VARCHAR, surname VARCHAR)
Question: When was Maat born?
Here is the SQLite query to answer to the question: When was Maat born?:
```
SELECT dob FROM t... | Here is the SQLite query to answer the question "When was Maat born?":
```
SELECT dob FROM table_name_44 WHERE surname = "maat"
``` | 45,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_44 (dob VARCHAR, surname VARCHAR)\n\n Question: When was Maat born?\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_88 (bats VARCHAR, first VARCHAR)
Question: How many bats does Todd have?
Here is the SQLite query to answer to the question: How many bats does Todd have?:
``... | Here's the SQLite query to answer the question of how many bats Todd has:
```sql
SELECT bats FROM table_name_88 WHERE first = "Todd"
``` | 45,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_88 (bats VARCHAR, first VARCHAR)\n\n Question: How many bats does Todd have?\n\nHere is the SQLite query to answer to t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.