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_57 (away_team VARCHAR, tie_no VARCHAR)
Question: Who is the away team when there are 15 ties?
Here is the SQLite query to answer to the question: Who is the a... | Your SQL query to find the away team when there are 15 ties is correctly formatted. Here it is wrapped in the appropriate code block:
```
SELECT away_team FROM table_name_57 WHERE tie_no = "15";
```
This query selects the `away_team` from the `table_name_57` where the `tie_no` equals "15". | 13,200 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (away_team VARCHAR, tie_no VARCHAR)\n\n Question: Who is the away team when there are 15 ties?\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_9 (score VARCHAR, home_team VARCHAR)
Question: What is the score when Darlington is the home team?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about the score when Darlington is the home team:
```
SELECT score FROM table_name_9 WHERE home_team = "Darlington";
``` | 13,201 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_9 (score VARCHAR, home_team VARCHAR)\n\n Question: What is the score when Darlington is the home team?\n\nHere is the S... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (tie_no VARCHAR, home_team VARCHAR)
Question: What is the number of ties when Altrincham is the home team?
Here is the SQLite query to answer to the questi... | The provided query correctly retrieves the tie numbers for matches where Altrincham is the home team. However, to obtain the count of those ties, you should use the `COUNT()` function in your query. Here is the updated SQL query:
```
SELECT COUNT(tie_no) FROM table_name_88 WHERE home_team = "Altrincham";
``` | 13,202 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (tie_no VARCHAR, home_team VARCHAR)\n\n Question: What is the number of ties when Altrincham is the home team?\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_27 (pick INTEGER, nfl_club VARCHAR, round VARCHAR)
Question: What is the largest pick by the Baltimore Colts in a round later than 10?
Here is the SQLite quer... | Your SQLite query is almost correct, but it should ensure that the `round` is treated as an integer for comparison rather than a string. To do this, you can use the `CAST` function to convert `round` to an integer. Here’s the revised query:
```
SELECT MAX(pick) FROM table_name_27 WHERE nfl_club = "baltimore colts" AND... | 13,203 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (pick INTEGER, nfl_club VARCHAR, round VARCHAR)\n\n Question: What is the largest pick by the Baltimore Colts in a r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (country VARCHAR, label VARCHAR, catalog VARCHAR)
Question: Which Country has a Label of Toshiba-emi and a Catalog of vjcp-68403?
Here is the SQLite query ... | Here is the SQLite query to answer the question about which country has a label of "Toshiba-emi" and a catalog of "vjcp-68403":
```
SELECT country FROM table_name_95 WHERE label = 'Toshiba-emi' AND catalog = 'vjcp-68403';
``` | 13,204 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (country VARCHAR, label VARCHAR, catalog VARCHAR)\n\n Question: Which Country has a Label of Toshiba-emi and a Catal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (label VARCHAR, catalog VARCHAR)
Question: Which Label has a Catalog of 7243 8 49494 2 6?
Here is the SQLite query to answer to the question: Which Label h... | Here is the SQLite query to answer the question regarding which Label has a Catalog of "7243 8 49494 2 6":
```
SELECT label FROM table_name_98 WHERE catalog = "7243 8 49494 2 6"
``` | 13,205 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (label VARCHAR, catalog VARCHAR)\n\n Question: Which Label has a Catalog of 7243 8 49494 2 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_71 (catalog VARCHAR, country VARCHAR)
Question: Which Catalog has a Country of Japan?
Here is the SQLite query to answer to the question: Which Catalog has a ... | Here's the SQLite query to answer the question about which Catalog has a Country of Japan:
```sql
SELECT catalog FROM table_name_71 WHERE country = "Japan";
``` | 13,206 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (catalog VARCHAR, country VARCHAR)\n\n Question: Which Catalog has a Country of Japan?\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_89 (label VARCHAR, catalog VARCHAR, format VARCHAR, country VARCHAR)
Question: Which Label has a Format of cd, a Country of Japan and a Catalog of vjcp-68403?
... | Here is the SQLite query to answer the question:
```
SELECT label FROM table_name_89 WHERE format = "cd" AND country = "Japan" AND catalog = "vjcp-68403";
``` | 13,207 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (label VARCHAR, catalog VARCHAR, format VARCHAR, country VARCHAR)\n\n Question: Which Label has a Format of cd, a Co... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (played VARCHAR, points_for VARCHAR)
Question: How many rounds were played in the matching resulting in a Points For score of 343?
Here is the SQLite query... | To count the number of rounds played in matches where the Points For score is 343, you can modify your query to use the `COUNT` function. Here is the correct SQLite query:
```
SELECT COUNT(played) AS rounds_played FROM table_name_38 WHERE points_for = '343';
```
This query will return the number of rows (rounds) tha... | 13,208 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (played VARCHAR, points_for VARCHAR)\n\n Question: How many rounds were played in the matching resulting in a Points... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (height_metres___ft VARCHAR, town VARCHAR)
Question: What is the height in Rouen?
Here is the SQLite query to answer to the question: What is the height in... | Here is the SQLite query to answer the question about the height in Rouen:
```
SELECT height_metres___ft FROM table_name_23 WHERE town = "Rouen";
``` | 13,209 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (height_metres___ft VARCHAR, town VARCHAR)\n\n Question: What is the height in Rouen?\n\nHere is the SQLite query to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (held_record VARCHAR, structural_type VARCHAR, town VARCHAR)
Question: What is the church made from in Hamburg?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question: What is the church made from in Hamburg?:
```
SELECT held_record FROM table_name_88 WHERE structural_type = "church" AND town = "Hamburg"
``` | 13,210 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (held_record VARCHAR, structural_type VARCHAR, town VARCHAR)\n\n Question: What is the church made from in Hamburg?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (player VARCHAR, score VARCHAR)
Question: What Player's Score is 72-70-66=208?
Here is the SQLite query to answer to the question: What Player's Score is 7... | The SQL query you provided contains a syntax error. The correct way to check if the score is equal to 208 is to compare the score after summing the individual scores, not to perform the arithmetic in the WHERE clause directly. You also need to ensure that the score is treated as an integer.
Here is the corrected query... | 13,211 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (player VARCHAR, score VARCHAR)\n\n Question: What Player's Score is 72-70-66=208?\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_79 (to_par VARCHAR, place VARCHAR, score VARCHAR)
Question: What is the To par of the T8 Place Player with a Score of 72-70-66=208?
Here is the SQLite query t... | It looks like there is a slight mistake in your SQL query regarding the condition that checks the score. The score is saved as a string in the database, so we need to compare it to the exact string you are looking for (in this case, "72-70-66=208"). Here is the corrected SQLite query:
```
SELECT to_par FROM table_name... | 13,212 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (to_par VARCHAR, place VARCHAR, score VARCHAR)\n\n Question: What is the To par of the T8 Place Player with a Score ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (place VARCHAR, player VARCHAR)
Question: What is Kirk Triplett's Place?
Here is the SQLite query to answer to the question: What is Kirk Triplett's Place?... | Here is the SQLite query to answer the question: What is Kirk Triplett's Place?:
```
SELECT place FROM table_name_66 WHERE player = "Kirk Triplett";
``` | 13,213 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (place VARCHAR, player VARCHAR)\n\n Question: What is Kirk Triplett's Place?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (pick INTEGER, school_club_team VARCHAR, round VARCHAR)
Question: What is the pick for the Maryland-Eastern Shore team with a round lower than 2?
Here is t... | It looks like you're trying to write a query to get the pick for the Maryland-Eastern Shore team with a round lower than 2. However, if you're looking for the specific pick values (not the sum), your query can be adjusted. Here’s the correct SQL query:
```
SELECT pick FROM table_name_70 WHERE school_club_team = "maryl... | 13,214 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (pick INTEGER, school_club_team VARCHAR, round VARCHAR)\n\n Question: What is the pick for the Maryland-Eastern Shor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
Question: Which position at UCLA has a lower than 92 pick number?
Here is the SQLite query to an... | Here is the SQLite query you requested, wrapped in the appropriate code block:
```sql
SELECT position FROM table_name_27 WHERE pick < 92 AND school_club_team = "ucla";
``` | 13,215 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_27 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)\n\n Question: Which position at UCLA has a lower than 92 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (round VARCHAR, position VARCHAR)
Question: How many rounds have a position of C?
Here is the SQLite query to answer to the question: How many rounds have ... | Your SQLite query is almost correct, but please note that the position value in your query should match the case used in the database. If "C" in your question refers to an uppercase character, the comparison should be against "C". If it's supposed to be lowercase "c", you should adjust accordingly.
Here is the correct... | 13,216 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (round VARCHAR, position VARCHAR)\n\n Question: How many rounds have a position of C?\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_47 (school_club_team VARCHAR, round VARCHAR, player VARCHAR)
Question: Which team has fewer than 4 rounds for Jan Van Breda Kolff?
Here is the SQLite query to... | The query you provided requires a slight adjustment to correctly count the number of rounds for the player "Jan Van Breda Kolff" and check for teams with fewer than 4 rounds. Here's the corrected SQL query:
```sql
SELECT school_club_team
FROM table_name_47
WHERE player = "Jan Van Breda Kolff"
GROUP BY school_club_t... | 13,217 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_47 (school_club_team VARCHAR, round VARCHAR, player VARCHAR)\n\n Question: Which team has fewer than 4 rounds for Jan V... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (player VARCHAR, round INTEGER)
Question: Which player has fewer than 2 rounds?
Here is the SQLite query to answer to the question: Which player has fewer ... | The query you've provided does not correctly capture players who have fewer than 2 rounds. Instead, you will need to group the players and count the number of rounds for each player. The corrected query is as follows:
```
SELECT player
FROM table_name_54
GROUP BY player
HAVING COUNT(round) < 2;
``` | 13,218 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (player VARCHAR, round INTEGER)\n\n Question: Which player has fewer than 2 rounds?\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_19 (pick INTEGER, player VARCHAR, round VARCHAR)
Question: What is the pick for Mickey Johnson with fewer than 4 rounds?
Here is the SQLite query to answer to... | It looks like there is a small mistake in your query regarding the condition for the rounds. Since the `round` column is of type VARCHAR, you need to compare it appropriately. If you are looking for entries with fewer than 4 rounds, you would generally want to filter based on the actual values in the `round` column. As... | 13,219 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (pick INTEGER, player VARCHAR, round VARCHAR)\n\n Question: What is the pick for Mickey Johnson with fewer than 4 ro... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (all_games VARCHAR, nonconference_games VARCHAR)
Question: Which All Games have a Nonconference Games of 1–10?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to find which All Games have a Nonconference Games of 1–10:
```sql
SELECT all_games FROM table_name_93 WHERE nonconference_games = "1–10";
``` | 13,220 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (all_games VARCHAR, nonconference_games VARCHAR)\n\n Question: Which All Games have a Nonconference Games of 1–10?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (player VARCHAR, score VARCHAR)
Question: Who had a score of 68-67=135?
Here is the SQLite query to answer to the question: Who had a score of 68-67=135?:
... | The condition in the query you provided is not written correctly for SQLite. You want to check if the score is equal to 135 based on the operation 68 - 67.
Here's the corrected SQLite query:
```
SELECT player FROM table_name_98 WHERE score = '135';
```
Please note that scores in the database are stored as `VARCHAR`,... | 13,221 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (player VARCHAR, score VARCHAR)\n\n Question: Who had a score of 68-67=135?\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_91 (to_par VARCHAR, score VARCHAR)
Question: What is the to par for the player who scored 73-68=141?
Here is the SQLite query to answer to the question: What ... | It looks like the provided SQLite query contains a mistake in the WHERE clause. Specifically, you should compare the `score` column to a calculated value rather than performing the calculation directly in the condition.
The correct query would involve checking if the `score` matches the total score of 141:
```sql
SEL... | 13,222 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (to_par VARCHAR, score VARCHAR)\n\n Question: What is the to par for the player who scored 73-68=141?\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_75 (player VARCHAR, score VARCHAR)
Question: Who scored 69-71=140?
Here is the SQLite query to answer to the question: Who scored 69-71=140?:
```
SELECT playe... | The provided SQLite query contains a syntax error, as the condition for checking the score is not correctly formulated. To check if the score of a player is the result of the expression (69 - 71) equaling 140, we need to adjust it. Specifically, we should check if the score equals the calculated value of 69 - 71, which... | 13,223 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (player VARCHAR, score VARCHAR)\n\n Question: Who scored 69-71=140?\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (to_par VARCHAR, score VARCHAR)
Question: What was the to par of the player of who scored 70-70=140?
Here is the SQLite query to answer to the question: Wh... | The SQLite query you've provided has a mistake in the WHERE clause, as SQLite does not use the `=` operator for arithmetic calculations like `70 - 70`. Instead, you should check for the total score directly. Here's the corrected query to find the `to_par` of the player who scored 140:
```sql
SELECT to_par FROM table_n... | 13,224 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (to_par VARCHAR, score VARCHAR)\n\n Question: What was the to par of the player of who scored 70-70=140?\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_87 (name VARCHAR, cerclis_id VARCHAR, proposed VARCHAR, county VARCHAR)
Question: What name was proposed on 12/30/1982 in rockingham county with a CERCLIS ID o... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_87 WHERE proposed = "12/30/1982" AND county = "rockingham" AND cerclis_id = "nhd062004569"
``` | 13,225 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (name VARCHAR, cerclis_id VARCHAR, proposed VARCHAR, county VARCHAR)\n\n Question: What name was proposed on 12/30/1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (name VARCHAR, construction_completed VARCHAR)
Question: What name completed construction on 09/19/2008?
Here is the SQLite query to answer to the question... | Here is the SQLite query wrapped as requested:
```
SELECT name FROM table_name_71 WHERE construction_completed = "09/19/2008";
``` | 13,226 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (name VARCHAR, construction_completed VARCHAR)\n\n Question: What name completed construction on 09/19/2008?\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_6 (proposed VARCHAR, listed VARCHAR, county VARCHAR)
Question: When was the site listed 03/31/1989 in rockingham county proposed?
Here is the SQLite query to ... | Here is the SQLite query to answer the question regarding the site proposed in Rockingham County that was listed on 03/31/1989:
```
SELECT proposed FROM table_name_6 WHERE listed = "03/31/1989" AND county = "rockingham";
``` | 13,227 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (proposed VARCHAR, listed VARCHAR, county VARCHAR)\n\n Question: When was the site listed 03/31/1989 in rockingham co... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (cerclis_id VARCHAR, listed VARCHAR)
Question: What CERCLIS ID was listed 10/14/1992?
Here is the SQLite query to answer to the question: What CERCLIS ID w... | Here is the SQLite query to answer the question about what CERCLIS ID was listed on 10/14/1992:
```
SELECT cerclis_id FROM table_name_49 WHERE listed = "10/14/1992";
``` | 13,228 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (cerclis_id VARCHAR, listed VARCHAR)\n\n Question: What CERCLIS ID was listed 10/14/1992?\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_73 (name VARCHAR, county VARCHAR, proposed VARCHAR)
Question: What name was proposed on 09/08/1983 in hillsborough county?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about what name was proposed on 09/08/1983 in Hillsborough County:
```
SELECT name FROM table_name_73 WHERE county = "hillsborough" AND proposed = "09/08/1983";
``` | 13,229 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (name VARCHAR, county VARCHAR, proposed VARCHAR)\n\n Question: What name was proposed on 09/08/1983 in hillsborough ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (county VARCHAR, cerclis_id VARCHAR)
Question: What county is CERCLIS ID nhd062004569 in?
Here is the SQLite query to answer to the question: What county i... | Here is the SQLite query to answer the question about what county is associated with CERCLIS ID `nhd062004569`:
```
SELECT county FROM table_name_61 WHERE cerclis_id = 'nhd062004569';
``` | 13,230 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (county VARCHAR, cerclis_id VARCHAR)\n\n Question: What county is CERCLIS ID nhd062004569 in?\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 (week VARCHAR, record VARCHAR)
Question: What is the total number for the week with a record of 0-11?
Here is the SQLite query to answer to the question: W... | Your SQLite query correctly counts the number of records for the week with a record of "0-11." Here is the query wrapped in code format:
```
SELECT COUNT(week) FROM table_name_87 WHERE record = "0-11";
``` | 13,231 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (week VARCHAR, record VARCHAR)\n\n Question: What is the total number for the week with a record of 0-11?\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_19 (attendance VARCHAR, date VARCHAR)
Question: What is the attendance for the date of 11/11/01?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the attendance for the date of 11/11/01:
```
SELECT attendance FROM table_name_19 WHERE date = "11/11/01"
``` | 13,232 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (attendance VARCHAR, date VARCHAR)\n\n Question: What is the attendance for the date of 11/11/01?\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_55 (enrollment INTEGER, team_nickname VARCHAR, founded VARCHAR)
Question: what is the average enrollment when the team nickname is wolverines and founded is af... | Your SQLite query to calculate the average enrollment for teams with the nickname 'wolverines' founded after 1817 is almost correct, but the `founded` field is defined as a VARCHAR. You need to ensure that you're comparing it correctly as a numeric value. Here's the corrected version:
```sql
SELECT AVG(enrollment) FRO... | 13,233 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (enrollment INTEGER, team_nickname VARCHAR, founded VARCHAR)\n\n Question: what is the average enrollment when the t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (institution VARCHAR, location VARCHAR)
Question: what is the institution when the location is big rapids, michigan?
Here is the SQLite query to answer to ... | Here's the SQLite query to answer the question:
```
SELECT institution FROM table_name_48 WHERE location = "big rapids, michigan"
``` | 13,234 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (institution VARCHAR, location VARCHAR)\n\n Question: what is the institution when the location is big rapids, michi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (enrollment INTEGER, founded VARCHAR, institution VARCHAR)
Question: what is the least enrollment when founded after 1809 and the institution is university ... | Here is the SQLite query to answer the question:
```
SELECT MIN(enrollment) FROM table_name_60 WHERE founded > 1809 AND institution = "university of michigan"
``` | 13,235 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (enrollment INTEGER, founded VARCHAR, institution VARCHAR)\n\n Question: what is the least enrollment when founded 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 (institution VARCHAR, team_nickname VARCHAR)
Question: what is the institution when the team nickname is lakers?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question regarding the institution when the team nickname is "lakers":
```
SELECT institution FROM table_name_22 WHERE team_nickname = "lakers";
``` | 13,236 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (institution VARCHAR, team_nickname VARCHAR)\n\n Question: what is the institution when the team nickname is lakers?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (political_party VARCHAR, name VARCHAR)
Question: Which Political Party has a Name of mehdi bej frashëri (2nd time)?
Here is the SQLite query to answer to ... | Here's the SQLite query to answer the question regarding which Political Party has a Name of "mehdi bej frashëri (2nd time)":
```
SELECT political_party FROM table_name_72 WHERE name = "mehdi bej frashëri (2nd time)";
``` | 13,237 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (political_party VARCHAR, name VARCHAR)\n\n Question: Which Political Party has a Name of mehdi bej frashëri (2nd ti... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (political_party VARCHAR, name VARCHAR)
Question: Which Political Party has a Name of ibrahim bej biçakçiu?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about which Political Party has a Name of "ibrahim bej biçakçiu":
```
SELECT political_party FROM table_name_72 WHERE name = "ibrahim bej biçakçiu";
``` | 13,238 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (political_party VARCHAR, name VARCHAR)\n\n Question: Which Political Party has a Name of ibrahim bej biçakçiu?\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_88 (name VARCHAR, term_end VARCHAR)
Question: Which Name has a Term end of 18 july 1944?
Here is the SQLite query to answer to the question: Which Name has a ... | Here is the SQLite query to answer the question about which Name has a Term end of 18 July 1944:
```
SELECT name FROM table_name_88 WHERE term_end = "18 july 1944"
``` | 13,239 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_88 (name VARCHAR, term_end VARCHAR)\n\n Question: Which Name has a Term end of 18 july 1944?\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_52 (born_died VARCHAR, term_start VARCHAR)
Question: Which Born-Died has a Term start of 4 november 1943?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding which Born-Died has a Term start of 4 November 1943:
```
SELECT born_died FROM table_name_52 WHERE term_start = "4 november 1943"
``` | 13,240 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (born_died VARCHAR, term_start VARCHAR)\n\n Question: Which Born-Died has a Term start of 4 november 1943?\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_22 (political_party VARCHAR, name VARCHAR)
Question: Which Political Party has a Name of rexhep bej mitrovica?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question regarding which Political Party has a Name of "rexhep bej mitrovica":
```
SELECT political_party FROM table_name_22 WHERE name = "rexhep bej mitrovica";
``` | 13,241 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_22 (political_party VARCHAR, name VARCHAR)\n\n Question: Which Political Party has a Name of rexhep bej mitrovica?\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_23 (term_end VARCHAR, political_party VARCHAR, born_died VARCHAR)
Question: Which Term end has a Political Party of balli kombëtar, and a Born-Died of 1905–197... | Here is the SQLite query to answer the question:
```
SELECT term_end FROM table_name_23 WHERE political_party = "balli kombëtar" AND born_died = "1905–1972";
``` | 13,242 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (term_end VARCHAR, political_party VARCHAR, born_died VARCHAR)\n\n Question: Which Term end has a Political Party of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (tie_no VARCHAR, date VARCHAR, away_team VARCHAR)
Question: /What is Tie No, when Date is 18 February 1956, and when Away Team is Tottenham Hotspur?
Here i... | Here is the SQLite query to answer your question:
```
SELECT tie_no FROM table_name_44 WHERE date = "18 february 1956" AND away_team = "tottenham hotspur";
``` | 13,243 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (tie_no VARCHAR, date VARCHAR, away_team VARCHAR)\n\n Question: /What is Tie No, when Date is 18 February 1956, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)
Question: What is Tie No, when Date is 18 February 1956, and when Home Team is Charlton Athletic?
Here is... | Here is the SQLite query to answer the question regarding the Tie No for the specified Date and Home Team:
```
SELECT tie_no FROM table_name_10 WHERE date = "18 February 1956" AND home_team = "Charlton Athletic";
``` | 13,244 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)\n\n Question: What is Tie No, when Date is 18 February 1956, and w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (score VARCHAR, tie_no VARCHAR, home_team VARCHAR)
Question: What is Score, when Tie No is Replay, and when Home Team is Sunderland?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_75 WHERE tie_no = "Replay" AND home_team = "Sunderland"
``` | 13,245 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (score VARCHAR, tie_no VARCHAR, home_team VARCHAR)\n\n Question: What is Score, when Tie No is Replay, and when Home... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
Question: What is Home Team, when Date is 18 February 1956, and when Away Team is Blackburn Rovers?
He... | Here is the SQLite query to answer the question regarding the Home Team when the Date is 18 February 1956 and the Away Team is Blackburn Rovers:
```
SELECT home_team FROM table_name_59 WHERE date = "18 February 1956" AND away_team = "Blackburn Rovers";
``` | 13,246 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)\n\n Question: What is Home Team, when Date is 18 February 1956,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)
Question: What is Home Team, when Date is 18 February 1956, and when Tie No is 3?
Here is the SQLite quer... | Here is the SQLite query to answer the question regarding the Home Team when the Date is 18 February 1956 and Tie No is 3:
```
SELECT home_team FROM table_name_69 WHERE date = "18 February 1956" AND tie_no = "3";
``` | 13,247 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)\n\n Question: What is Home Team, when Date is 18 February 1956, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (home_team VARCHAR, tie_no VARCHAR)
Question: What is Home Team, when Tie No is 4?
Here is the SQLite query to answer to the question: What is Home Team, w... | Here is the SQLite query to answer the question: What is Home Team, when Tie No is 4?:
```
SELECT home_team FROM table_name_49 WHERE tie_no = "4";
``` | 13,248 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (home_team VARCHAR, tie_no VARCHAR)\n\n Question: What is Home Team, when Tie No is 4?\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_35 (method VARCHAR, opponent VARCHAR)
Question: What ws the method of resolution for the fight against joe kielur?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding the method of resolution for the fight against Joe Kielur:
```
SELECT method FROM table_name_35 WHERE opponent = "joe kielur"
``` | 13,249 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_35 (method VARCHAR, opponent VARCHAR)\n\n Question: What ws the method of resolution for the fight against joe kielur?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (event VARCHAR, opponent VARCHAR)
Question: What event did Soa Palelei fight against son hai suk?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question:
```sql
SELECT event FROM table_name_31 WHERE opponent = "son hai suk" AND event LIKE "%Soa Palelei%";
``` | 13,250 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (event VARCHAR, opponent VARCHAR)\n\n Question: What event did Soa Palelei fight against son hai suk?\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_60 (venue VARCHAR, year VARCHAR)
Question: WHich Venue is in 1994?
Here is the SQLite query to answer to the question: WHich Venue is in 1994?:
```
SELECT ven... | Here is the SQLite query to answer the question "Which Venue is in 1994?":
```
SELECT venue FROM table_name_60 WHERE year = '1994';
``` | 13,251 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (venue VARCHAR, year VARCHAR)\n\n Question: WHich Venue is in 1994?\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (venue VARCHAR, winners VARCHAR, year VARCHAR, score VARCHAR)
Question: WHICH Venue IS after 1992 with a Score of 1 – 0 and a Winners of us chaouia?
Here ... | Here is the SQLite query to answer the question: WHICH Venue IS after 1992 with a Score of 1 – 0 and a Winners of us chaouia?:
```
SELECT venue FROM table_name_93 WHERE year > 1992 AND score = "1 – 0" AND winners = "us chaouia";
``` | 13,252 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (venue VARCHAR, winners VARCHAR, year VARCHAR, score VARCHAR)\n\n Question: WHICH Venue IS after 1992 with a Score ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (tournament VARCHAR, date VARCHAR, surface VARCHAR, partner VARCHAR)
Question: Which tournament has a clay surface and partner henri leconte in 1983?
Here ... | Here is the corrected SQLite query to answer the question:
```sql
SELECT tournament FROM table_name_29 WHERE surface = "clay" AND partner = "henri leconte" AND date LIKE "1983%"
```
Note: The `date` field is treated as a string, so using `LIKE` with `"1983%"` allows matching any entries that begin with "1983". Depen... | 13,253 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_29 (tournament VARCHAR, date VARCHAR, surface VARCHAR, partner VARCHAR)\n\n Question: Which tournament has a clay surfa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (outcome VARCHAR, partner VARCHAR)
Question: What is the outcome of the tournament with partner ilie năstase?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the outcome of the tournament with partner ilie năstase:
```
SELECT outcome FROM table_name_65 WHERE partner = "ilie năstase"
``` | 13,254 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_65 (outcome VARCHAR, partner VARCHAR)\n\n Question: What is the outcome of the tournament with partner ilie năstase?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (goals_against INTEGER, lost INTEGER)
Question: What is the fewest goals against for teams with more than 27 losses?
Here is the SQLite query to answer to ... | Your provided SQLite query is correct for retrieving the fewest goals against for teams with more than 27 losses. Here it is wrapped in code format:
```
SELECT MIN(goals_against) FROM table_name_97 WHERE lost > 27
```
This query will return the minimum value of `goals_against` from the records where the `lost` colum... | 13,255 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (goals_against INTEGER, lost INTEGER)\n\n Question: What is the fewest goals against for teams with more than 27 los... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (position VARCHAR, drawn VARCHAR, played VARCHAR)
Question: What is the total number of positions for teams with more than 7 draws and under 40 played?
Her... | Here is the SQLite query to answer your question:
```
SELECT COUNT(position) FROM table_name_66 WHERE CAST(drawn AS INTEGER) > 7 AND CAST(played AS INTEGER) < 40;
```
This query counts the number of positions for teams that have more than 7 draws and have played fewer than 40 games, ensuring that the `drawn` and `pl... | 13,256 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_66 (position VARCHAR, drawn VARCHAR, played VARCHAR)\n\n Question: What is the total number of positions for teams with... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (lost INTEGER, points_1 VARCHAR, goals_for VARCHAR)
Question: What is the fewest losses for teams with points of 53 and more than 73 goals for?
Here is the... | Your query has a small issue with the logical condition for "points". The `points_1` should be greater than or equal to 53, not equal to "53", and you should ensure that you are treating `goals_for` as a numeric comparison. Here is the corrected version of your SQLite query:
```sql
SELECT MIN(lost) FROM table_name_23 ... | 13,257 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (lost INTEGER, points_1 VARCHAR, goals_for VARCHAR)\n\n Question: What is the fewest losses for teams with points of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (drawn INTEGER, goal_difference VARCHAR, goals_against VARCHAR)
Question: What is the fewest draws for teams with a 0 goal difference and under 55 goals aga... | Here is the SQLite query to answer the question about the fewest draws for teams with a 0 goal difference and under 55 goals against:
```
SELECT MIN(drawn) FROM table_name_45 WHERE goal_difference = '0' AND goals_against < 55
``` | 13,258 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (drawn INTEGER, goal_difference VARCHAR, goals_against VARCHAR)\n\n Question: What is the fewest draws for teams wit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (rank INTEGER)
Question: What is the sum of 2010-11 when the rank is greater than 11?
Here is the SQLite query to answer to the question: What is the sum o... | It looks like there is a misunderstanding in the question regarding the use of `2010-11` and the SQL syntax used in your query. The phrase "the sum of 2010-11" isn't clearly expressed in SQL, and the `COUNT(2010 AS _11)` syntax is incorrect. If you want to sum the values of `2010 - 11` (which equals `1999`) for rows wh... | 13,259 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (rank INTEGER)\n\n Question: What is the sum of 2010-11 when the rank is greater than 11?\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_89 (away VARCHAR, date VARCHAR, attendance VARCHAR)
Question: Which Away has a Date of 14 september 2008, and an Attendance larger than 1881?
Here is the SQLi... | Here is the SQLite query to answer the question:
```
SELECT away FROM table_name_89 WHERE date = "14 september 2008" AND attendance > 1881
``` | 13,260 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (away VARCHAR, date VARCHAR, attendance VARCHAR)\n\n Question: Which Away has a Date of 14 september 2008, and an At... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (date VARCHAR, away VARCHAR)
Question: What was victoria's away date?
Here is the SQLite query to answer to the question: What was victoria's away date?:
`... | Sure! Here’s the SQLite query to find Victoria's away date, wrapped in code formatting:
```
SELECT date FROM table_name_18 WHERE away = "victoria"
``` | 13,261 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (date VARCHAR, away VARCHAR)\n\n Question: What was victoria's away date?\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_31 (away VARCHAR, score VARCHAR, home VARCHAR)
Question: Which Away has a Score of 1:2, and a Home of vida?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question regarding which Away team has a Score of 1:2, and a Home team of vida:
```
SELECT away FROM table_name_31 WHERE score = "1:2" AND home = "vida"
``` | 13,262 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (away VARCHAR, score VARCHAR, home VARCHAR)\n\n Question: Which Away has a Score of 1:2, and a Home of vida?\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_50 (attendance INTEGER, away VARCHAR)
Question: Which Attendance has an Away of real juventud?
Here is the SQLite query to answer to the question: Which Atten... | Here is the SQLite query to answer the question "Which Attendance has an Away of real juventud?":
```
SELECT SUM(attendance) FROM table_name_50 WHERE away = "real juventud";
``` | 13,263 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (attendance INTEGER, away VARCHAR)\n\n Question: Which Attendance has an Away of real juventud?\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_13 (attendance INTEGER, round VARCHAR, venue VARCHAR)
Question: What was the lowest attendance in round r1 at H venue?
Here is the SQLite query to answer to t... | Your SQLite query looks good, but note that you are checking the venue as "h" in lowercase. Depending on the actual data, the venue might be "H" in uppercase. Here’s the query you’ve provided, formatted correctly:
```
SELECT MIN(attendance) FROM table_name_13 WHERE round = "r1" AND venue = "H"
```
This query will ret... | 13,264 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (attendance INTEGER, round VARCHAR, venue VARCHAR)\n\n Question: What was the lowest attendance in round r1 at H ven... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (pumpers INTEGER, cars VARCHAR)
Question: what is the highest pumpers when cars is 5?
Here is the SQLite query to answer to the question: what is the highe... | Your query is almost correct, but since the `cars` column is defined as `VARCHAR`, the comparison should be done with a string. Therefore, you should use '5' instead of 5 in the WHERE clause. Here’s the corrected query:
```sql
SELECT MAX(pumpers) FROM table_name_78 WHERE cars = '5'
``` | 13,265 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (pumpers INTEGER, cars VARCHAR)\n\n Question: what is the highest pumpers when cars is 5?\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_84 (tankers INTEGER, pumpers INTEGER)
Question: what is the highest tankers when pumpers is more than 2?
Here is the SQLite query to answer to the question: w... | Your SQLite query is correctly formulated to retrieve the highest number of tankers where the number of pumpers is greater than 2. Here it is wrapped as you requested:
```
SELECT MAX(tankers) FROM table_name_84 WHERE pumpers > 2;
``` | 13,266 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (tankers INTEGER, pumpers INTEGER)\n\n Question: what is the highest tankers when pumpers is more than 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_30 (skip VARCHAR, second VARCHAR)
Question: What is the skip with a second of Philippe Caux?
Here is the SQLite query to answer to the question: What is the s... | Certainly! Here is the SQLite query you can use to find the "skip" associated with the second "Philippe Caux":
```
SELECT skip FROM table_name_30 WHERE second = "Philippe Caux";
``` | 13,267 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_30 (skip VARCHAR, second VARCHAR)\n\n Question: What is the skip with a second of Philippe Caux?\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_19 (lead VARCHAR, season VARCHAR)
Question: What is the Lead in the 2004-05 Season?
Here is the SQLite query to answer to the question: What is the Lead in th... | Here is the SQLite query to answer the question about the Lead in the 2004-05 Season:
```sql
SELECT lead FROM table_name_19 WHERE season = "2004-05";
``` | 13,268 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (lead VARCHAR, season VARCHAR)\n\n Question: What is the Lead in the 2004-05 Season?\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_39 (third VARCHAR, lead VARCHAR, season VARCHAR)
Question: What is the Third in the 1993-94 season where Philippe Caux was a lead?
Here is the SQLite query to... | Your SQLite query looks correct! Here it is wrapped in the requested code format:
```
SELECT third FROM table_name_39 WHERE lead = "philippe caux" AND season = "1993-94";
``` | 13,269 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (third VARCHAR, lead VARCHAR, season VARCHAR)\n\n Question: What is the Third in the 1993-94 season where Philippe C... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (skip VARCHAR, lead VARCHAR)
Question: What is the skip when Tony Angiboust was a lead?
Here is the SQLite query to answer to the question: What is the ski... | Here is the SQLite query to answer the question about what the skip is when Tony Angiboust was a lead:
```sql
SELECT skip FROM table_name_40 WHERE lead = "Tony Angiboust"
``` | 13,270 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (skip VARCHAR, lead VARCHAR)\n\n Question: What is the skip when Tony Angiboust was a lead?\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_1 (against VARCHAR, lost VARCHAR, played VARCHAR)
Question: What is the sum of against scores when there are 3 losses and less than 6 games played?
Here is th... | It seems like you're looking for the sum of the "against" scores rather than a count, and there might be a need to change the data type from VARCHAR to an appropriate numeric type, assuming "against" holds numerical values. Here's the corrected SQLite query based on your description:
```sql
SELECT SUM(CAST(against AS ... | 13,271 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (against VARCHAR, lost VARCHAR, played VARCHAR)\n\n Question: What is the sum of against scores when there are 3 loss... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (played INTEGER, season VARCHAR)
Question: What is the highest amount of games played in the 2003-04 season?
Here is the SQLite query to answer to the ques... | Your SQLite query to find the highest amount of games played in the 2003-04 season is correctly constructed. Here it is wrapped as you requested:
```
SELECT MAX(played) FROM table_name_25 WHERE season = "2003-04";
``` | 13,272 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (played INTEGER, season VARCHAR)\n\n Question: What is the highest amount of games played in the 2003-04 season?\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_72 (sample_size INTEGER, date VARCHAR, margin_of_error VARCHAR)
Question: What was the sample size for the poll from Nov 9-11, 2007 with a margin of error less... | Here is the corrected SQLite query to answer the question regarding the sample size for the poll from Nov 9-11, 2007, with a margin of error less than 4.3:
```sql
SELECT sample_size
FROM table_name_72
WHERE date BETWEEN '2007-11-09' AND '2007-11-11'
AND CAST(margin_of_error AS REAL) < 4.3;
```
### Explanation:
1. ... | 13,273 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_72 (sample_size INTEGER, date VARCHAR, margin_of_error VARCHAR)\n\n Question: What was the sample size for the poll fro... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (sample_size VARCHAR, republican VARCHAR)
Question: What was the sample size for the poll featuring Republican Ron Paul?
Here is the SQLite query to answer... | Your SQLite query is almost correct, but it's important to ensure the casing for the name "Ron Paul" matches the data case in your table. SQLite string comparison is case-sensitive by default. Assuming proper casing, here is the wrapped query:
```
SELECT sample_size FROM table_name_80 WHERE republican = "Ron Paul"
```... | 13,274 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (sample_size VARCHAR, republican VARCHAR)\n\n Question: What was the sample size for the poll featuring Republican R... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (score INTEGER, country VARCHAR, player VARCHAR)
Question: When Tom Purtzer of the United States played what is the maximum score?
Here is the SQLite query... | Here is the SQLite query to find the maximum score when Tom Purtzer of the United States played:
```
SELECT MAX(score) FROM table_name_94 WHERE country = "United States" AND player = "Tom Purtzer";
``` | 13,275 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (score INTEGER, country VARCHAR, player VARCHAR)\n\n Question: When Tom Purtzer of the United States played what is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (to_par VARCHAR, player VARCHAR)
Question: Ben Crenshaw has what To par?
Here is the SQLite query to answer to the question: Ben Crenshaw has what To par?:... | Here is the SQLite query to answer the question: Ben Crenshaw has what To par?:
```
SELECT to_par FROM table_name_18 WHERE player = "ben crenshaw";
``` | 13,276 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (to_par VARCHAR, player VARCHAR)\n\n Question: Ben Crenshaw has what To par?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (to_par VARCHAR, player VARCHAR)
Question: What was the score to par after two rounds for Nick Price?
Here is the SQLite query to answer to the question: W... | Your query is almost correct, but it should account for the two rounds of play. One common way to handle this is to aggregate the results, specifically by filtering for Nick Price and then grouping by the player while summing up the `to_par` values. Here's the corrected version of the query:
```sql
SELECT SUM(to_par) ... | 13,277 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (to_par VARCHAR, player VARCHAR)\n\n Question: What was the score to par after two rounds for Nick Price?\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_32 (place VARCHAR, country VARCHAR)
Question: What place was the player from Italy in ?
Here is the SQLite query to answer to the question: What place was the... | Here is the SQLite query to answer the question "What place was the player from Italy in?":
```
SELECT place FROM table_name_32 WHERE country = "Italy"
``` | 13,278 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (place VARCHAR, country VARCHAR)\n\n Question: What place was the player from Italy in ?\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_18 (common_name VARCHAR, color VARCHAR)
Question: What is the common name for the creature with darker colors?
Here is the SQLite query to answer to the quest... | Your provided query seems to assume that "darker colors" is a specific value in the `color` column. If you want to identify creatures with generally darker colors, you might consider using a broader criterion. Here’s a revised version to retrieve common names of creatures that may have darker color descriptions:
```sq... | 13,279 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (common_name VARCHAR, color VARCHAR)\n\n Question: What is the common name for the creature with darker colors?\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_15 (length__female_ VARCHAR, common_name VARCHAR)
Question: What is the length of the Panther Chameleon?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about the length of the Panther Chameleon:
```
SELECT length__female_ FROM table_name_15 WHERE common_name = "Panther Chameleon";
``` | 13,280 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (length__female_ VARCHAR, common_name VARCHAR)\n\n Question: What is the length of the Panther Chameleon?\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_54 (color VARCHAR, scientific_name VARCHAR)
Question: What is the color of the Chamaeleo Calyptratus?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about the color of the Chamaeleo Calyptratus:
```
SELECT color FROM table_name_54 WHERE scientific_name = "Chamaeleo Calyptratus"
``` | 13,281 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (color VARCHAR, scientific_name VARCHAR)\n\n Question: What is the color of the Chamaeleo Calyptratus?\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_26 (to_par VARCHAR, score VARCHAR)
Question: What was the TO par for the player who scored 70-68-74-70=282?
Here is the SQLite query to answer to the question... | The SQL query provided has a syntax error in the condition for the `score`. We need to check for the score '282' as a string. Additionally, we should structure the condition correctly. Here's the corrected query to find the `to_par` for the player with the specified score:
```sql
SELECT to_par FROM table_name_26 WHERE... | 13,282 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (to_par VARCHAR, score VARCHAR)\n\n Question: What was the TO par for the player who scored 70-68-74-70=282?\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_67 (opponents_in_the_final VARCHAR, partner VARCHAR)
Question: What is Opponents In The Final, when Partner is "Jiří Novák"?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question "What is Opponents In The Final, when Partner is 'Jiří Novák'?":
```
SELECT opponents_in_the_final FROM table_name_67 WHERE partner = "Jiří Novák";
``` | 13,283 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (opponents_in_the_final VARCHAR, partner VARCHAR)\n\n Question: What is Opponents In The Final, when Partner is \"Ji... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (outcome VARCHAR, tournament VARCHAR)
Question: What is Outcome, when Tournament is "Milan , Italy"?
Here is the SQLite query to answer to the question: Wha... | Your SQLite query looks mostly correct, but it’s important to note that string comparisons in SQL are case sensitive unless specified otherwise. Also, you might want to ensure there are no extra spaces around "Milan , Italy". Here’s the code wrapped in triple backticks:
```
SELECT outcome FROM table_name_3 WHERE tourn... | 13,284 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (outcome VARCHAR, tournament VARCHAR)\n\n Question: What is Outcome, when Tournament is \"Milan , Italy\"?\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_61 (opponents_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)
Question: What is Opponents In The Final, when Surface is "Carpet", and when Tournamen... | Here is the SQLite query to answer the question:
```
SELECT opponents_in_the_final FROM table_name_61 WHERE surface = "Carpet" AND tournament = "Milan , Italy"
``` | 13,285 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (opponents_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)\n\n Question: What is Opponents In The Final, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (date VARCHAR, partner VARCHAR)
Question: What is the total number of Date, when Partner is "Carl-Uwe Steeb"?
Here is the SQLite query to answer to the que... | Your query looks almost perfect, but you should ensure the partner's name matches exactly as it is case-sensitive in SQLite. Here’s the corrected SQL query wrapped in code formatting:
```
SELECT COUNT(date) FROM table_name_67 WHERE partner = "Carl-Uwe Steeb"
``` | 13,286 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_67 (date VARCHAR, partner VARCHAR)\n\n Question: What is the total number of Date, when Partner is \"Carl-Uwe Steeb\"?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (cfl_team VARCHAR, college VARCHAR)
Question: Which team picked a player(s) from South Carolina?
Here is the SQLite query to answer to the question: Which ... | Here is the SQLite query to answer the question: Which team picked a player(s) from South Carolina?:
```sql
SELECT cfl_team FROM table_name_73 WHERE college = "South Carolina";
``` | 13,287 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (cfl_team VARCHAR, college VARCHAR)\n\n Question: Which team picked a player(s) from South Carolina?\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_40 (college VARCHAR, player VARCHAR)
Question: What college did Keith Shologan play for?
Here is the SQLite query to answer to the question: What college did ... | Here is the SQLite query to answer the question regarding which college Keith Shologan played for:
```
SELECT college FROM table_name_40 WHERE player = "Keith Shologan";
``` | 13,288 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (college VARCHAR, player VARCHAR)\n\n Question: What college did Keith Shologan play for?\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_91 (position VARCHAR, pick__number VARCHAR, player VARCHAR)
Question: What position does a Keith Shologan, who was picked higher than 6, play?
Here is the SQL... | It looks like there is a small error in your query regarding the condition for the pick number. Since you want to find a player picked higher than 6, the condition should check for `pick__number > 6`. Here’s the corrected SQLite query:
```sql
SELECT position FROM table_name_91 WHERE pick__number > 6 AND player = "Keit... | 13,289 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_91 (position VARCHAR, pick__number VARCHAR, player VARCHAR)\n\n Question: What position does a Keith Shologan, who was ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (year INTEGER, inflation_index__2000 INTEGER)
Question: What year before 1980 has is the highest Inflation Index (2000=100)?
Here is the SQLite query to an... | It looks like there is a small error in the provided SQL query. The intention is to find the year before 1980 that has the highest inflation index, but the query you provided does not properly retrieve that information. Instead, you need to select the year with the maximum inflation index. Here is the corrected query:
... | 13,290 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (year INTEGER, inflation_index__2000 INTEGER)\n\n Question: What year before 1980 has is the highest Inflation Index... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (frequency VARCHAR, voltage VARCHAR, part_number_s_ VARCHAR)
Question: Which frequency has voltage of 1.6v and part number kp80524kx300256kc80524kx300256pmg... | Here is the SQLite query to answer the question regarding which frequency has a voltage of 1.6v and the specified part number:
```
SELECT frequency FROM table_name_64 WHERE voltage = "1.6v" AND part_number_s_ = "kp80524kx300256kc80524kx300256pmg30002002aa"
``` | 13,291 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (frequency VARCHAR, voltage VARCHAR, part_number_s_ VARCHAR)\n\n Question: Which frequency has voltage of 1.6v and p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (model_number VARCHAR, socket VARCHAR)
Question: Which model number has socket μpga2 bga2 mmc-2?
Here is the SQLite query to answer to the question: Which ... | Here is the SQLite query to answer the question regarding which model number has the socket μpga2 bga2 mmc-2:
```
SELECT model_number FROM table_name_46 WHERE socket = "μpga2 bga2 mmc-2";
``` | 13,292 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_46 (model_number VARCHAR, socket VARCHAR)\n\n Question: Which model number has socket μpga2 bga2 mmc-2?\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_48 (l2_cache VARCHAR, model_number VARCHAR)
Question: What is the L2 cache for the Mobile Pentium 333?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the L2 cache for the Mobile Pentium 333:
```
SELECT l2_cache FROM table_name_48 WHERE model_number = "Mobile Pentium 333";
``` | 13,293 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (l2_cache VARCHAR, model_number VARCHAR)\n\n Question: What is the L2 cache for the Mobile Pentium 333?\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_37 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)
Question: How many totals have golds of 3, silvers of 3, and bronzes under 3?
Here is the SQL... | Your query looks mostly correct, but I will point out a few adjustments regarding the datatype handling, particularly since `silver`, `gold`, and `bronze` are defined as `VARCHAR`. When comparing numerical values, it is advisable to convert these varchar fields to integers.
Here’s a revised version of your SQLite quer... | 13,294 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)\n\n Question: How many totals have golds of 3, silvers... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (nation VARCHAR, rank VARCHAR)
Question: Which nation has a rank of 7?
Here is the SQLite query to answer to the question: Which nation has a rank of 7?:
`... | Here is the SQLite query to answer the question: Which nation has a rank of 7?:
```
SELECT nation FROM table_name_52 WHERE rank = '7';
``` | 13,295 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (nation VARCHAR, rank VARCHAR)\n\n Question: Which nation has a rank of 7?\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_76 (bronze INTEGER, silver VARCHAR, total VARCHAR)
Question: What is the average bronze with silvers of 1 and totals over 2?
Here is the SQLite query to answe... | Here's the SQLite query to answer the question about the average bronze with silvers of 1 and totals over 2:
```
SELECT AVG(bronze) FROM table_name_76 WHERE silver = '1' AND total > '2'
``` | 13,296 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_76 (bronze INTEGER, silver VARCHAR, total VARCHAR)\n\n Question: What is the average bronze with silvers of 1 and total... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (gold VARCHAR, nation VARCHAR)
Question: How many golds does Germany have?
Here is the SQLite query to answer to the question: How many golds does Germany ... | Here is the corrected SQLite query to count how many golds Germany has:
```sql
SELECT COUNT(gold) FROM table_name_45 WHERE nation = 'Germany';
``` | 13,297 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (gold VARCHAR, nation VARCHAR)\n\n Question: How many golds does Germany have?\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_43 (bronze VARCHAR, total VARCHAR, rank VARCHAR)
Question: What is the total number of bronzes with totals under 4 and ranks of 10?
Here is the SQLite query t... | Here's the SQLite query to answer the question regarding the total number of bronzes with totals under 4 and ranks of 10:
```
SELECT COUNT(bronze) FROM table_name_43 WHERE CAST(total AS INTEGER) < 4 AND rank = "10"
```
In this query, I've included `CAST(total AS INTEGER)` to convert the `total` from a VARCHAR to an ... | 13,298 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (bronze VARCHAR, total VARCHAR, rank VARCHAR)\n\n Question: What is the total number of bronzes with totals under 4 ... | |
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, wins VARCHAR, class VARCHAR, year VARCHAR)
Question: What is the lowest Points, when Class is 50cc, when Year is 1965, and when Wins is less... | Here is the corrected SQLite query to find the lowest Points, when Class is 50cc, Year is 1965, and Wins is less than 0:
```sql
SELECT MIN(points) FROM table_name_2 WHERE class = '50cc' AND year = '1965' AND wins < '0';
``` | 13,299 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (points INTEGER, wins VARCHAR, class VARCHAR, year VARCHAR)\n\n Question: What is the lowest Points, when Class is 50... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.