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_67 (goals_for INTEGER, position VARCHAR, draws VARCHAR)
Question: Name the least goals when position is more than 4 and draws is more than 11
Here is the SQLi... | Here is the SQLite query to answer the question "Name the least goals when position is more than 4 and draws is more than 11":
```
SELECT MIN(goals_for) FROM table_name_67 WHERE position > 4 AND draws > 11;
``` | 19,000 | [
{
"from": "human",
"value": " 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 (goals_for INTEGER, position VARCHAR, draws VARCHAR)\n\n Question: Name the least goals when position is more than 4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (wins INTEGER, club VARCHAR, goals_against VARCHAR)
Question: Name the most wins which have clubbed of elche cf and goals against more than 43
Here is the ... | Your SQLite query looks correct for the given requirements. You're selecting the maximum number of wins from the table where the club is "elche cf" and the goals against are greater than 43. Here’s the query wrapped as you requested:
```
SELECT MAX(wins) FROM table_name_51 WHERE club = "elche cf" AND goals_against > 4... | 19,001 | [
{
"from": "human",
"value": " 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 (wins INTEGER, club VARCHAR, goals_against VARCHAR)\n\n Question: Name the most wins which have clubbed of elche cf ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_6 (shirt_no INTEGER, birth_date VARCHAR, weight VARCHAR)
Question: Birth Date of 8 November 1980, and a Weight smaller than 93 has what sum of a shirt number?
... | Your query is almost correct, but there is a small issue regarding the data type of the `weight` column. Since `weight` is defined as a `VARCHAR`, you need to cast it to a numeric type to perform a comparison. Here's the corrected SQL query:
```sql
SELECT SUM(shirt_no)
FROM table_name_6
WHERE birth_date = "8 Novembe... | 19,002 | [
{
"from": "human",
"value": " 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 (shirt_no INTEGER, birth_date VARCHAR, weight VARCHAR)\n\n Question: Birth Date of 8 November 1980, and a Weight smal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (weight VARCHAR, shirt_no VARCHAR, height VARCHAR)
Question: Shirt number of 18, and a Height larger than 195 has how much weight?
Here is the SQLite query... | The SQLite query you provided counts the number of weights that satisfy the conditions. However, if you want to find out the actual weights corresponding to the shirt number of 18 and a height larger than 195, you should select the weights instead of counting them. Here's the corrected query:
```sql
SELECT weight FROM... | 19,003 | [
{
"from": "human",
"value": " 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 (weight VARCHAR, shirt_no VARCHAR, height VARCHAR)\n\n Question: Shirt number of 18, and a Height larger than 195 ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (to_par VARCHAR, player VARCHAR)
Question: Name the To par for leland gibson
Here is the SQLite query to answer to the question: Name the To par for leland... | Here is the SQLite query to answer the question about naming the To par for Leland Gibson:
```
SELECT to_par FROM table_name_59 WHERE player = "leland gibson"
``` | 19,004 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, player VARCHAR)\n\n Question: Name the To par for leland gibson\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_47 (place VARCHAR, player VARCHAR)
Question: Name the place for ed oliver
Here is the SQLite query to answer to the question: Name the place for ed oliver:
``... | Here is the SQLite query to answer the question: Name the place for ed oliver:
```
SELECT place FROM table_name_47 WHERE player = "ed oliver"
``` | 19,005 | [
{
"from": "human",
"value": " 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 (place VARCHAR, player VARCHAR)\n\n Question: Name the place for ed oliver\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_4 (player VARCHAR, score VARCHAR)
Question: Name the player with score of 74-68-71=213
Here is the SQLite query to answer to the question: Name the player wit... | The SQL query you've provided contains an issue with the syntax for calculating the score. The calculation needs to be performed in a way that checks if the sum of the scores equals 213. Here's how you can correctly write the SQL query:
```sql
SELECT player FROM table_name_4 WHERE (CAST(score AS INTEGER) = 213);
```
... | 19,006 | [
{
"from": "human",
"value": " 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 (player VARCHAR, score VARCHAR)\n\n Question: Name the player with score of 74-68-71=213\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_61 (to_par VARCHAR, player VARCHAR)
Question: Name the To par for dick metz
Here is the SQLite query to answer to the question: Name the To par for dick metz:... | Here is the SQLite query to answer the question: Name the To par for dick metz:
```
SELECT to_par FROM table_name_61 WHERE player = "dick metz"
``` | 19,007 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, player VARCHAR)\n\n Question: Name the To par for dick metz\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_45 (year VARCHAR, mixed_doubles VARCHAR)
Question: What year was there no competition in Mixed Doubles?
Here is the SQLite query to answer to the question: Wh... | Your query is almost correct, assuming that the `mixed_doubles` column would contain a value like "no competition" to indicate a year with no competition in Mixed Doubles.
If this is the accepted formatting within your dataset, your query will work for that specific case. However, if you want to find years where ther... | 19,008 | [
{
"from": "human",
"value": " 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 (year VARCHAR, mixed_doubles VARCHAR)\n\n Question: What year was there no competition in Mixed Doubles?\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_67 (score VARCHAR, date VARCHAR)
Question: what was the score for the game on 14 april 2001?
Here is the SQLite query to answer to the question: what was the ... | Here is the SQLite query to answer the question about the score for the game on 14 April 2001:
```
SELECT score FROM table_name_67 WHERE date = "14 april 2001"
``` | 19,009 | [
{
"from": "human",
"value": " 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 (score VARCHAR, date VARCHAR)\n\n Question: what was the score for the game on 14 april 2001?\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_25 (score VARCHAR, date VARCHAR)
Question: what is the score for the game on 21 april 2001?
Here is the SQLite query to answer to the question: what is the sc... | Here is the SQLite query to answer the question about the score for the game on 21 April 2001:
```
SELECT score FROM table_name_25 WHERE date = "21 april 2001"
``` | 19,010 | [
{
"from": "human",
"value": " 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 (score VARCHAR, date VARCHAR)\n\n Question: what is the score for the game on 21 april 2001?\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_75 (competition VARCHAR, date VARCHAR)
Question: what is the competition on 21 april 2001?
Here is the SQLite query to answer to the question: what is the com... | Here is the SQLite query to answer the question regarding the competition on 21 April 2001:
```
SELECT competition FROM table_name_75 WHERE date = "21 april 2001"
``` | 19,011 | [
{
"from": "human",
"value": " 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 (competition VARCHAR, date VARCHAR)\n\n Question: what is the competition on 21 april 2001?\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_57 (opponent VARCHAR, record VARCHAR)
Question: Who is the opponent the Seattle Seahawks played when their record was 1-3?
Here is the SQLite query to answer ... | Your SQLite query looks good for retrieving the opponent of the Seattle Seahawks when their record was 1-3. To ensure clarity and correctness, here is the query wrapped in proper formatting:
```
SELECT opponent FROM table_name_57 WHERE record = "1-3";
```
This query will return the opponent(s) from the `table_name_57... | 19,012 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, record VARCHAR)\n\n Question: Who is the opponent the Seattle Seahawks played when their record w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (date VARCHAR, attendance VARCHAR)
Question: On what date was the crowd size of 71,789?
Here is the SQLite query to answer to the question: On what date wa... | Here is the SQLite query to answer the question: On what date was the crowd size of 71,789?:
```sql
SELECT date FROM table_name_35 WHERE attendance = "71,789";
``` | 19,013 | [
{
"from": "human",
"value": " 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 (date VARCHAR, attendance VARCHAR)\n\n Question: On what date was the crowd size of 71,789?\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_7 (week INTEGER, record VARCHAR)
Question: Which week did the Seattle Seahawks have a record of 6-6?
Here is the SQLite query to answer to the question: Which... | The provided query is attempting to calculate the average week when the record is "6-6", but it does not directly answer the question regarding which specific week had that record.
To find the specific week(s) where the Seattle Seahawks had a record of "6-6", you should select the `week` directly from the table where ... | 19,014 | [
{
"from": "human",
"value": " 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 (week INTEGER, record VARCHAR)\n\n Question: Which week did the Seattle Seahawks have a record of 6-6?\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_36 (result VARCHAR, attendance VARCHAR)
Question: What was the final score (result) for the game where 51,100 attended?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding the final score for the game where 51,100 attended:
```
SELECT result FROM table_name_36 WHERE attendance = '51,100';
``` | 19,015 | [
{
"from": "human",
"value": " 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 (result VARCHAR, attendance VARCHAR)\n\n Question: What was the final score (result) for the game where 51,100 atten... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (game_site VARCHAR, attendance VARCHAR)
Question: Where was the game held when the attendance was 56,770?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about where the game was held when the attendance was 56,770:
```
SELECT game_site FROM table_name_63 WHERE attendance = "56,770"
``` | 19,016 | [
{
"from": "human",
"value": " 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 (game_site VARCHAR, attendance VARCHAR)\n\n Question: Where was the game held when the attendance was 56,770?\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_71 (week INTEGER, game_site VARCHAR, date VARCHAR)
Question: Which week was the game held at Kingdome on October 13, 1991?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about which week the game was held at Kingdome on October 13, 1991:
```
SELECT week FROM table_name_71 WHERE game_site = "Kingdome" AND date = "October 13, 1991";
``` | 19,017 | [
{
"from": "human",
"value": " 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 (week INTEGER, game_site VARCHAR, date VARCHAR)\n\n Question: Which week was the game held at Kingdome on October 13... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (opponent VARCHAR, loss VARCHAR)
Question: Who was the opponent at the game that had a loss of Harden (9-6)?
Here is the SQLite query to answer to the ques... | Your SQLite query is mostly correct, but it seems like the string for the loss should likely be formatted to maintain proper case sensitivity, especially if the database is set up in a case-sensitive manner. Additionally, to ensure clarity and correctness, we may want to explicitly match the capitalization of "Harden".... | 19,018 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, loss VARCHAR)\n\n Question: Who was the opponent at the game that had a loss of Harden (9-6)?\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_17 (laps INTEGER, year VARCHAR, co_drivers VARCHAR, class VARCHAR)
Question: Name the sum of Laps for co-drivers of oliver gavin jan magnussen and class of gts... | Here is the SQLite query to answer the question regarding the sum of laps for the specified co-drivers, class, and year condition:
```
SELECT SUM(laps) FROM table_name_17 WHERE co_drivers = "oliver gavin jan magnussen" AND class = "gts" AND year < '2004'
``` | 19,019 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (laps INTEGER, year VARCHAR, co_drivers VARCHAR, class VARCHAR)\n\n Question: Name the sum of Laps for co-drivers of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (team VARCHAR, laps VARCHAR, year VARCHAR)
Question: Name the team with laps more than 333 and year less than 2004
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question of naming the team with laps more than 333 and year less than 2004:
```
SELECT team FROM table_name_84 WHERE laps > 333 AND year < '2004'
``` | 19,020 | [
{
"from": "human",
"value": " 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 (team VARCHAR, laps VARCHAR, year VARCHAR)\n\n Question: Name the team with laps more than 333 and year less than 20... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (team VARCHAR, laps VARCHAR)
Question: Name the team with Laps of 333
Here is the SQLite query to answer to the question: Name the team with Laps of 333:
`... | Here is the SQLite query to answer the question: Name the team with Laps of 333:
```
SELECT team FROM table_name_92 WHERE laps = '333'
``` | 19,021 | [
{
"from": "human",
"value": " 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 (team VARCHAR, laps VARCHAR)\n\n Question: Name the team with Laps of 333\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_34 (points_for VARCHAR, tries_for VARCHAR)
Question: What is the points for where the tries for is 29?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question:
```
SELECT points_for FROM table_name_34 WHERE tries_for = '29';
``` | 19,022 | [
{
"from": "human",
"value": " 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 (points_for VARCHAR, tries_for VARCHAR)\n\n Question: What is the points for where the tries for is 29?\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_17 (points_for VARCHAR, club VARCHAR)
Question: What is the points for of Club of penallta rfc?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question regarding the points for the club "penallta rfc":
```
SELECT points_for FROM table_name_17 WHERE club = "penallta rfc";
``` | 19,023 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (points_for VARCHAR, club VARCHAR)\n\n Question: What is the points for of Club of penallta rfc?\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_12 (try_bonus VARCHAR, club VARCHAR)
Question: What is the try bonus for ynysybwl rfc?
Here is the SQLite query to answer to the question: What is the try bon... | Here is the SQLite query to answer the question about the try bonus for ynysybwl rfc:
```
SELECT try_bonus FROM table_name_12 WHERE club = "ynysybwl rfc"
``` | 19,024 | [
{
"from": "human",
"value": " 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 (try_bonus VARCHAR, club VARCHAR)\n\n Question: What is the try bonus for ynysybwl rfc?\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_81 (points_against VARCHAR, played VARCHAR, lost VARCHAR)
Question: What is the points against for the team that played 22 and lost 6?
Here is the SQLite quer... | Here is the SQLite query to answer the question about the points against for the team that played 22 and lost 6:
```
SELECT points_against FROM table_name_81 WHERE played = '22' AND lost = '6';
``` | 19,025 | [
{
"from": "human",
"value": " 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 (points_against VARCHAR, played VARCHAR, lost VARCHAR)\n\n Question: What is the points against for the team that pl... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (score INTEGER, player VARCHAR)
Question: What is the score of Tommy Bolt
Here is the SQLite query to answer to the question: What is the score of Tommy ... | Here's the SQLite query to answer the question about the score of Tommy Bolt:
```
SELECT score FROM table_name_23 WHERE player = "Tommy Bolt"
```
Note that I have corrected the case of the player's name to match the standard casing typically associated with names, as SQL is case-sensitive by default depending on the... | 19,026 | [
{
"from": "human",
"value": " 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 (score INTEGER, player VARCHAR)\n\n Question: What is the score of Tommy Bolt\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_12 (place VARCHAR, score INTEGER)
Question: WHich Places have a score smaller than 69?
Here is the SQLite query to answer to the question: WHich Places have a... | Here is the SQLite query to answer the question about which places have a score smaller than 69:
```
SELECT place FROM table_name_12 WHERE score < 69
``` | 19,027 | [
{
"from": "human",
"value": " 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 (place VARCHAR, score INTEGER)\n\n Question: WHich Places have a score smaller than 69?\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_6 (to_par VARCHAR, place VARCHAR, player VARCHAR)
Question: What is the To Par that has Tommy Bolt with a Place of t6?
Here is the SQLite query to answer to t... | Your query is mostly correct, but it's good practice to ensure the case sensitivity matches the data in the database. SQLite is case-insensitive for string comparisons by default, but just to ensure it matches exactly with potential capitalization, it might be clearer to ensure the casing is consistent. Here’s the SQLi... | 19,028 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: What is the To Par that has Tommy Bolt with a Place of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
Question: Who is the entrant with a cooper t43 chassis before 1958?
Here is the SQLite query to answer to ... | Your SQLite query is correct for the given question. Here it is wrapped in the required format:
```
SELECT entrant FROM table_name_47 WHERE year < 1958 AND chassis = "cooper t43";
``` | 19,029 | [
{
"from": "human",
"value": " 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 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)\n\n Question: Who is the entrant with a cooper t43 chassis before 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (Id VARCHAR)
Question: Name the 2006 when the 2010 is 27
Here is the SQLite query to answer to the question: Name the 2006 when the 2010 is 27:
```
SELECT ... | It looks like there might be some confusion in your question. In the provided schema, your `table_name_26` has only one column, which is `Id` of type VARCHAR.
To generate a query related to "2006" and "2010", we need to reinterpret your request, as there are no columns corresponding to those years in the provided sch... | 19,030 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (Id VARCHAR)\n\n Question: Name the 2006 when the 2010 is 27\n\nHere is the SQLite query to answer to the question: ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (main_cast_seasons VARCHAR, portrayed_by VARCHAR)
Question: Which main cast seasons were portrayed by Joe Jonas?
Here is the SQLite query to answer to the ... | Your SQLite query is mostly correct, but make sure to match the casing in the character name as per the database. Here's the improved version wrapped in the requested formatting:
```
SELECT main_cast_seasons FROM table_name_13 WHERE portrayed_by = "Joe Jonas";
```
This query will retrieve all main cast seasons that ... | 19,031 | [
{
"from": "human",
"value": " 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 (main_cast_seasons VARCHAR, portrayed_by VARCHAR)\n\n Question: Which main cast seasons were portrayed by Joe Jonas?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (_number_of_episodes VARCHAR, portrayed_by VARCHAR)
Question: How many episodes were portrayed by Nick Jonas?
Here is the SQLite query to answer to the que... | Your SQLite query is almost correct, but since `_number_of_episodes` is declared as `VARCHAR`, you might want to ensure that you properly count the episodes regardless of how the values are stored in the `_number_of_episodes` column. Here’s a revised version that also takes into consideration the case sensitivity of th... | 19,032 | [
{
"from": "human",
"value": " 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 (_number_of_episodes VARCHAR, portrayed_by VARCHAR)\n\n Question: How many episodes were portrayed by Nick Jonas?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (_number_of_episodes INTEGER, character VARCHAR)
Question: How many episodes had the character of Nick Lucas?
Here is the SQLite query to answer to the que... | Your provided SQLite query is almost correct, but it's a good practice to ensure that the character's name is case-sensitive if the database is case-sensitive. Here's the refined version of the query:
```sql
SELECT SUM(_number_of_episodes) FROM table_name_91 WHERE character = "Nick Lucas";
```
This will return the to... | 19,033 | [
{
"from": "human",
"value": " 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 (_number_of_episodes INTEGER, character VARCHAR)\n\n Question: How many episodes had the character of Nick Lucas?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (character VARCHAR, portrayed_by VARCHAR)
Question: What character is portrayed by Joe Jonas?
Here is the SQLite query to answer to the question: What char... | Here is the SQLite query formatted as requested:
```
SELECT character FROM table_name_59 WHERE portrayed_by = "Joe Jonas";
``` | 19,034 | [
{
"from": "human",
"value": " 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 (character VARCHAR, portrayed_by VARCHAR)\n\n Question: What character is portrayed by Joe Jonas?\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_90 (extra VARCHAR, tournament VARCHAR)
Question: What was the extra info for the Commonwealth Games?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question about the extra info for the Commonwealth Games:
```
SELECT extra FROM table_name_90 WHERE tournament = "Commonwealth Games";
``` | 19,035 | [
{
"from": "human",
"value": " 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 (extra VARCHAR, tournament VARCHAR)\n\n Question: What was the extra info for the Commonwealth Games?\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_16 (year INTEGER, tournament VARCHAR)
Question: What year was the Commonwealth Games?
Here is the SQLite query to answer to the question: What year was the Co... | The SQL query you've provided attempts to sum up the years for the Commonwealth Games, but to simply find the year(s) when the Commonwealth Games were held, you would generally want to select the specific years without summing. Below is the corrected query:
```
SELECT year FROM table_name_16 WHERE tournament = "common... | 19,036 | [
{
"from": "human",
"value": " 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 INTEGER, tournament VARCHAR)\n\n Question: What year was the Commonwealth Games?\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_90 (occupation VARCHAR, residence VARCHAR)
Question: What job is at red bank?
Here is the SQLite query to answer to the question: What job is at red bank?:
``... | Here is the SQLite query to answer the question "What job is at red bank?":
```
SELECT occupation FROM table_name_90 WHERE residence = "red bank"
``` | 19,037 | [
{
"from": "human",
"value": " 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 (occupation VARCHAR, residence VARCHAR)\n\n Question: What job is at red bank?\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_34 (year INTEGER, pts VARCHAR, entrant VARCHAR)
Question: What year did Ecurie Bleue score more than 0 points?
Here is the SQLite query to answer to the quest... | The provided SQL query does not accurately address the question of which years Ecurie Bleue scored more than 0 points. Instead, it incorrectly attempts to calculate the average year. To obtain the correct years, you should select the distinct years where Ecurie Bleue's points are greater than 0.
Here’s the corrected q... | 19,038 | [
{
"from": "human",
"value": " 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, pts VARCHAR, entrant VARCHAR)\n\n Question: What year did Ecurie Bleue score more than 0 points?\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_66 (starting_point VARCHAR, operates VARCHAR, name VARCHAR)
Question: What is the starting point of the north/south operating Palafox Street route?
Here is th... | Here is the SQLite query to answer the question about the starting point of the north/south operating Palafox Street route:
```
SELECT starting_point FROM table_name_66 WHERE operates = "north/south" AND name = "palafox street";
``` | 19,039 | [
{
"from": "human",
"value": " 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 (starting_point VARCHAR, operates VARCHAR, name VARCHAR)\n\n Question: What is the starting point of the north/south... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (name VARCHAR, direction VARCHAR, terminus VARCHAR)
Question: Which bi-directional route has a terminus at Ecat/Rosa Park Transit Center?
Here is the SQLit... | Here is the SQLite query to answer the question about which bi-directional route has a terminus at Ecat/Rosa Park Transit Center:
```
SELECT name FROM table_name_50 WHERE direction = "bi-directional" AND terminus = "Ecat/Rosa Park Transit Center";
``` | 19,040 | [
{
"from": "human",
"value": " 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 (name VARCHAR, direction VARCHAR, terminus VARCHAR)\n\n Question: Which bi-directional route has a terminus at Ecat/... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (name VARCHAR, terminus VARCHAR)
Question: Which route has a terminus of pine Forest?
Here is the SQLite query to answer to the question: Which route has a... | Here is the SQLite query to answer the question regarding which route has a terminus of "pine forest":
```sql
SELECT name FROM table_name_57 WHERE terminus = "pine forest";
``` | 19,041 | [
{
"from": "human",
"value": " 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 (name VARCHAR, terminus VARCHAR)\n\n Question: Which route has a terminus of pine Forest?\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_27 (starting_point VARCHAR, terminus VARCHAR)
Question: What is the starting point of the route that has its terminus at Ecat/Rosa Park Transit Center?
Here i... | Here is the SQLite query to answer the question of what is the starting point of the route that has its terminus at "Ecat/Rosa Park Transit Center":
```
SELECT starting_point FROM table_name_27 WHERE terminus = "Ecat/Rosa Park Transit Center";
``` | 19,042 | [
{
"from": "human",
"value": " 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 (starting_point VARCHAR, terminus VARCHAR)\n\n Question: What is the starting point of the route that has its termin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (direction VARCHAR, starting_point VARCHAR, terminus VARCHAR)
Question: What is the direction of the route that stars at downtown transit center and has a t... | Here is the SQLite query that answers your question:
```
SELECT direction FROM table_name_50 WHERE starting_point = "downtown transit center" AND terminus = "Pensacola Beach"
``` | 19,043 | [
{
"from": "human",
"value": " 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 (direction VARCHAR, starting_point VARCHAR, terminus VARCHAR)\n\n Question: What is the direction of the route that ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (operates VARCHAR, terminus VARCHAR, name VARCHAR)
Question: Where does the Bayou Blvd./12th Avenue route that has a terminus at the downtown transit center ... | Your SQLite query is correct for the question you provided. Here it is formatted as you requested:
```
SELECT operates FROM table_name_5 WHERE terminus = "downtown transit center" AND name = "bayou blvd./12th avenue";
``` | 19,044 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (operates VARCHAR, terminus VARCHAR, name VARCHAR)\n\n Question: Where does the Bayou Blvd./12th Avenue route that ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (full_professors VARCHAR, head VARCHAR, lecturers VARCHAR)
Question: How many full professors work under Hartmut Kliemt with more than 0 lecturers?
Here is... | Your SQL query is almost correct, but there is a small issue with the condition checking the number of lecturers. Since `lecturers` is defined as a `VARCHAR`, you need to convert it to an integer for comparison. Here’s the corrected query:
```sql
SELECT COUNT(full_professors)
FROM table_name_72
WHERE head = "Hartmut... | 19,045 | [
{
"from": "human",
"value": " 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 (full_professors VARCHAR, head VARCHAR, lecturers VARCHAR)\n\n Question: How many full professors work under Hartmut... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (lecturers INTEGER, department VARCHAR, full_professors VARCHAR)
Question: What is the least amount of lecturers in the accounting department with less than... | Your SQLite query looks almost correct, but there is a slight adjustment needed for the `full_professors` field since it is likely stored as a string (VARCHAR) and needs to be cast to an integer for comparison. Here's the revised query, wrapped as you requested:
```
SELECT MIN(lecturers)
FROM table_name_86
WHERE dep... | 19,046 | [
{
"from": "human",
"value": " 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 (lecturers INTEGER, department VARCHAR, full_professors VARCHAR)\n\n Question: What is the least amount of lecturers... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (honorary_professors INTEGER, lecturers VARCHAR, department VARCHAR)
Question: What is the average number of honorary professors in the economics department ... | Here is the SQLite query to answer the question:
```
SELECT AVG(honorary_professors) FROM table_name_9 WHERE lecturers = '1' AND department = 'economics';
``` | 19,047 | [
{
"from": "human",
"value": " 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 (honorary_professors INTEGER, lecturers VARCHAR, department VARCHAR)\n\n Question: What is the average number of hono... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_39 (loss VARCHAR, date VARCHAR)
Question: What Loss occured on the Date of June 12?
Here is the SQLite query to answer to the question: What Loss occured on t... | Here is the SQLite query to answer the question about what loss occurred on the date of June 12:
```sql
SELECT loss FROM table_name_39 WHERE date = "June 12";
``` | 19,048 | [
{
"from": "human",
"value": " 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 (loss VARCHAR, date VARCHAR)\n\n Question: What Loss occured on the Date of June 12?\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_27 (loss VARCHAR, attendance VARCHAR)
Question: What Loss had an Attendance of 17,675?
Here is the SQLite query to answer to the question: What Loss had an At... | Here is the SQLite query to answer the question: What Loss had an Attendance of 17,675?:
```
SELECT loss FROM table_name_27 WHERE attendance = '17,675';
``` | 19,049 | [
{
"from": "human",
"value": " 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 (loss VARCHAR, attendance VARCHAR)\n\n Question: What Loss had an Attendance of 17,675?\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_35 (loss VARCHAR, attendance VARCHAR)
Question: What Loss had an Attendance of 17,675?
Here is the SQLite query to answer to the question: What Loss had an At... | Your SQLite query is correct for the given schema and question. Here it is wrapped in the requested format:
```
SELECT loss FROM table_name_35 WHERE attendance = "17,675"
``` | 19,050 | [
{
"from": "human",
"value": " 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 (loss VARCHAR, attendance VARCHAR)\n\n Question: What Loss had an Attendance of 17,675?\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_84 (date VARCHAR, score VARCHAR, loss VARCHAR)
Question: On what Date had a Score of 5-2 and a Loss of Greinke (1-2)?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question:
```
SELECT date FROM table_name_84 WHERE score = "5-2" AND loss = "greinke (1-2)"
``` | 19,051 | [
{
"from": "human",
"value": " 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 (date VARCHAR, score VARCHAR, loss VARCHAR)\n\n Question: On what Date had a Score of 5-2 and a Loss of Greinke (1-2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (score VARCHAR, attendance VARCHAR)
Question: What was the Score that has an Attendance of 39,446?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer your question regarding the score with an attendance of 39,446:
```
SELECT score FROM table_name_3 WHERE attendance = "39,446"
``` | 19,052 | [
{
"from": "human",
"value": " 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 (score VARCHAR, attendance VARCHAR)\n\n Question: What was the Score that has an Attendance of 39,446?\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_87 (loss VARCHAR, score VARCHAR)
Question: What was the Loss that had a Score of 9-1?
Here is the SQLite query to answer to the question: What was the Loss th... | Here is the SQLite query to answer the question about the Loss that had a Score of 9-1:
```
SELECT loss FROM table_name_87 WHERE score = "9-1";
``` | 19,053 | [
{
"from": "human",
"value": " 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 (loss VARCHAR, score VARCHAR)\n\n Question: What was the Loss that had a Score of 9-1?\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_17 (counties_represented VARCHAR, party VARCHAR, committee VARCHAR)
Question: What counties represented have a democratic committee, and a committee of ways an... | Your SQLite query is correct in its structure for retrieving the counties represented that have a democratic committee and are part of the committee of ways and means. However, if you want to ensure that it considers both conditions correctly, you can use the `OR` operator instead of `AND` because the question seems to... | 19,054 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (counties_represented VARCHAR, party VARCHAR, committee VARCHAR)\n\n Question: What counties represented have a demo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR)
Question: What is the average first elected year that has a district of 11 and a committee of e... | Your SQLite query is correct for calculating the average `first_elected` year for entries that match the specified `district` and `committee`. Here it is wrapped as you requested:
```
SELECT AVG(first_elected) FROM table_name_18 WHERE district = "11" AND committee = "environmental matters";
``` | 19,055 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR)\n\n Question: What is the average first elected year th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)
Question: What is the total number of First elected that has a co... | Here is the SQLite query you requested, formatted as specified:
```
SELECT COUNT(first_elected) FROM table_name_80 WHERE counties_represented = "baltimore county" AND district = "06.0 6" AND committee = "economic matters";
``` | 19,056 | [
{
"from": "human",
"value": " 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 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)\n\n Question: What 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_86 (district VARCHAR, first_elected VARCHAR, counties_represented VARCHAR, committee VARCHAR)
Question: What district has counties represented by Baltimore cou... | ```sql
SELECT district
FROM table_name_86
WHERE counties_represented = "Baltimore county"
AND committee = "health and government operations"
AND first_elected < '2002';
``` | 19,057 | [
{
"from": "human",
"value": " 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 (district VARCHAR, first_elected VARCHAR, counties_represented VARCHAR, committee VARCHAR)\n\n Question: What distri... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (first_elected INTEGER, district VARCHAR, committee VARCHAR)
Question: What is the Highest first elected year that has a district of 06.0 6, and a committee... | Your provided SQLite query is correct for the given schema and question. It accurately selects the maximum `first_elected` year for entries that match the specified `district` and `committee`. Here it is wrapped in code formatting as you requested:
```
SELECT MAX(first_elected) FROM table_name_99 WHERE district = "06.... | 19,058 | [
{
"from": "human",
"value": " 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 (first_elected INTEGER, district VARCHAR, committee VARCHAR)\n\n Question: What is the Highest first elected year th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (name VARCHAR, goals VARCHAR, nationality VARCHAR)
Question: Who was from Morocco and scored 6 goals?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question: Who was from Morocco and scored 6 goals?:
```sql
SELECT name FROM table_name_57 WHERE goals = '6' AND nationality = 'Morocco';
``` | 19,059 | [
{
"from": "human",
"value": " 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 (name VARCHAR, goals VARCHAR, nationality VARCHAR)\n\n Question: Who was from Morocco and scored 6 goals?\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 (ranking INTEGER, years VARCHAR, goals VARCHAR)
Question: Who has the highest ranking from 1996–13, and more than 17 goals?
Here is the SQLite query to an... | Here is the corrected SQLite query to answer the question regarding who has the highest ranking from 1996–13, with more than 17 goals:
```
SELECT ranking
FROM table_name_80
WHERE years = "1996–13" AND CAST(goals AS INTEGER) > 17
ORDER BY ranking ASC
LIMIT 1;
```
This query selects the ranking from `table_name_80`... | 19,060 | [
{
"from": "human",
"value": " 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 (ranking INTEGER, years VARCHAR, goals VARCHAR)\n\n Question: Who has the highest ranking from 1996–13, and more th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (ranking INTEGER, nationality VARCHAR, years VARCHAR)
Question: What was the average ranking of Saudi Arabia in the years of 2000–?
Here is the SQLite quer... | There seems to be a small mistake in the query you provided. The `years` column appears to contain a range that includes the years from 2000 onwards. However, in your query, you are using an exact match for "2000–". Instead, we should be looking for entries starting from 2000 onwards.
Here is the corrected SQLite que... | 19,061 | [
{
"from": "human",
"value": " 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 (ranking INTEGER, nationality VARCHAR, years VARCHAR)\n\n Question: What was the average ranking of Saudi Arabia in ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (nationality VARCHAR, goals VARCHAR)
Question: Which nation had 14 goals?
Here is the SQLite query to answer to the question: Which nation had 14 goals?:
`... | Here is the SQLite query to answer the question regarding which nation had 14 goals:
```
SELECT nationality FROM table_name_89 WHERE goals = '14'
```
Note that since the `goals` column is defined as a `VARCHAR`, the value `14` should be treated as a string, hence the quotes. | 19,062 | [
{
"from": "human",
"value": " 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 (nationality VARCHAR, goals VARCHAR)\n\n Question: Which nation had 14 goals?\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_28 (nationality VARCHAR, name VARCHAR)
Question: What nationality is hamzah idris?
Here is the SQLite query to answer to the question: What nationality is ham... | Here is the SQLite query to answer the question: What nationality is hamzah idris?:
```
SELECT nationality FROM table_name_28 WHERE name = "hamzah idris"
``` | 19,063 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_28 (nationality VARCHAR, name VARCHAR)\n\n Question: What nationality is hamzah idris?\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_76 (goals INTEGER, ranking VARCHAR, years VARCHAR)
Question: Who had fewer goals than 4 during the years of 1996–13?
Here is the SQLite query to answer to the... | The provided SQL query has a couple of issues. The criteria for the `ranking` should likely be handled correctly since it is a VARCHAR type and you want rows where `goals` is fewer than 4. Additionally, the clause for filtering the years is incorrect as it should check whether the `years` falls within a specific range ... | 19,064 | [
{
"from": "human",
"value": " 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 (goals INTEGER, ranking VARCHAR, years VARCHAR)\n\n Question: Who had fewer goals than 4 during the years of 1996–13... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (top_25 INTEGER, events VARCHAR, top_5 VARCHAR)
Question: what is the lowest top-25 when the events is less than 17 and top-5 is more than 0?
Here is the S... | Here is the SQLite query to answer your question:
```
SELECT MIN(top_25) FROM table_name_47 WHERE events < 17 AND top_5 > 0
``` | 19,065 | [
{
"from": "human",
"value": " 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 (top_25 INTEGER, events VARCHAR, top_5 VARCHAR)\n\n Question: what is the lowest top-25 when the events is less than... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)
Question: what is the top-5 when the tournament is totals and the top-25 is more than 4?
Here is the SQ... | Your SQLite query is almost correct, but it seems you're trying to retrieve the average of the `top_5` values under specific conditions. If that's indeed the intention, your query is fine as it focuses on the average. If your intention was to retrieve the `top_5` values directly rather than the average, then you would ... | 19,066 | [
{
"from": "human",
"value": " 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 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)\n\n Question: what is the top-5 when the tournament is totals an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (events INTEGER, top_5 VARCHAR, top_25 VARCHAR)
Question: what is the average number of events when the top-5 is less than 1 and top 25 more than 1
Here is... | Here is the SQLite query to find the average number of events when the top-5 is less than 1 and top-25 is more than 1:
```
SELECT AVG(events) FROM table_name_89 WHERE top_5 < 1 AND top_25 > 1;
``` | 19,067 | [
{
"from": "human",
"value": " 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 (events INTEGER, top_5 VARCHAR, top_25 VARCHAR)\n\n Question: what is the average number of events when the top-5 is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (top_5 INTEGER, wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)
Question: what is the highest top-5 when the top-25 is less than 4, cuts made is more than ... | It seems there is a small error in the condition regarding the `wins` column, as you want to check for "wins is 0" but the query has "wins < 0". Here’s the corrected SQLite query:
```
SELECT MAX(top_5)
FROM table_name_29
WHERE top_25 < 4 AND cuts_made > 3 AND wins = '0';
```
This will give you the highest `top_5` ... | 19,068 | [
{
"from": "human",
"value": " 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 (top_5 INTEGER, wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)\n\n Question: what is the highest top-5 when the to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (top_5 VARCHAR, tournament VARCHAR, events VARCHAR)
Question: what is the total number of times the tournament was pga championship and evens is less than 4... | Your SQLite query is almost correct, but it contains a small mistake in spelling for the "events" column, as it should probably be "events" instead of "evens". Assuming that "events" is defined as a numerical value in your table, the query should look like this:
```sql
SELECT COUNT(top_5) FROM table_name_95 WHERE tour... | 19,069 | [
{
"from": "human",
"value": " 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 (top_5 VARCHAR, tournament VARCHAR, events VARCHAR)\n\n Question: what is the total number of times the tournament w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (year INTEGER, entrant VARCHAR, points VARCHAR)
Question: What year did Elf Team Tyrrell have 34 points?
Here is the SQLite query to answer to the question... | The query you provided is not correct for answering the question about what year Elf Team Tyrrell had 34 points. You need to select the distinct year instead of the average year. Here's the correct query:
```
SELECT year FROM table_name_59 WHERE entrant = "elf team tyrrell" AND points = "34"
```
This query will retur... | 19,070 | [
{
"from": "human",
"value": " 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 (year INTEGER, entrant VARCHAR, points VARCHAR)\n\n Question: What year did Elf Team Tyrrell have 34 points?\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_84 (points VARCHAR, year VARCHAR, entrant VARCHAR)
Question: After 1972, how many points did Marlboro Team Alfa Romeo have?
Here is the SQLite query to answer... | Your query is almost correct, but to get the total points for the "Marlboro Team Alfa Romeo" after 1972, you need to sum the points rather than just select them. Additionally, since the points are stored as a VARCHAR, you will need to convert them to an integer or numeric type for the summation.
Here’s an updated quer... | 19,071 | [
{
"from": "human",
"value": " 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 (points VARCHAR, year VARCHAR, entrant VARCHAR)\n\n Question: After 1972, how many points did Marlboro Team Alfa Rom... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (chassis VARCHAR, points VARCHAR)
Question: What chassis had 39 points?
Here is the SQLite query to answer to the question: What chassis had 39 points?:
```... | Here is the SQLite query to answer the question: What chassis had 39 points?:
```
SELECT chassis FROM table_name_5 WHERE points = '39';
``` | 19,072 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (chassis VARCHAR, points VARCHAR)\n\n Question: What chassis had 39 points?\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_3 (points VARCHAR, engine VARCHAR, chassis VARCHAR)
Question: How many points did the Ford V8 with a Tyrrell 007 have?
Here is the SQLite query to answer to t... | Your SQLite query to find out how many points the Ford V8 with a Tyrrell 007 has is correctly structured. Here it is wrapped in the code block as you requested:
```
SELECT points FROM table_name_3 WHERE engine = "ford v8" AND chassis = "tyrrell 007";
``` | 19,073 | [
{
"from": "human",
"value": " 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 (points VARCHAR, engine VARCHAR, chassis VARCHAR)\n\n Question: How many points did the Ford V8 with a Tyrrell 007 ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (chassis VARCHAR, points VARCHAR, engine VARCHAR, year VARCHAR)
Question: Before 1976 and with 12 points, what chassis did the Ford V8 have?
Here is the SQ... | Here is the SQLite query to answer the question based on the provided schema:
```
SELECT chassis FROM table_name_66 WHERE engine = "ford v8" AND year < 1976 AND points = "12"
``` | 19,074 | [
{
"from": "human",
"value": " 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 (chassis VARCHAR, points VARCHAR, engine VARCHAR, year VARCHAR)\n\n Question: Before 1976 and with 12 points, what c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (year INTEGER, chassis VARCHAR, entrant VARCHAR, points VARCHAR)
Question: What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis?
Here is... | The query you provided has a small mistake. Instead of using `SUM(year)`, you should just select the `year` directly because you are looking for the year in which the conditions are met, not summing the years. Here's the corrected query:
```
SELECT year FROM table_name_75 WHERE entrant = "elf team tyrrell" AND points ... | 19,075 | [
{
"from": "human",
"value": " 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 (year INTEGER, chassis VARCHAR, entrant VARCHAR, points VARCHAR)\n\n Question: What year did Elf Team Tyrrell have 3... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10015132_11 (position VARCHAR, school_club_team VARCHAR)
Question: What position does the player who played for butler cc (ks) play?
Here is the SQLite query to an... | Here's the SQLite query to answer the question about the position of the player who played for Butler CC (KS):
```
SELECT position FROM table_10015132_11 WHERE school_club_team = "Butler CC (KS)"
``` | 19,076 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_11 (position VARCHAR, school_club_team VARCHAR)\n\n Question: What position does the player who played for butler c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR)
Question: How many schools did player number 3 play at?
Here is the SQLite query to answer to the question: How ... | Here is the SQLite query to answer the question of how many schools player number 3 played at:
```
SELECT COUNT(DISTINCT school_club_team) FROM table_10015132_11 WHERE no = "3";
``` | 19,077 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR)\n\n Question: How many schools did player number 3 play at?\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_10015132_11 (school_club_team VARCHAR, no VARCHAR)
Question: What school did player number 21 play for?
Here is the SQLite query to answer to the question: What sc... | Here is the SQLite query to answer the question of what school player number 21 played for:
```
SELECT school_club_team FROM table_10015132_11 WHERE no = "21";
``` | 19,078 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR)\n\n Question: What school did player number 21 play for?\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_10015132_11 (player VARCHAR, no VARCHAR)
Question: Who is the player that wears number 42?
Here is the SQLite query to answer to the question: Who is the player th... | Here is the SQLite query to answer the question: Who is the player that wears number 42?:
```
SELECT player FROM table_10015132_11 WHERE no = "42"
``` | 19,079 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_11 (player VARCHAR, no VARCHAR)\n\n Question: Who is the player that wears number 42?\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_10015132_11 (player VARCHAR, position VARCHAR, years_in_toronto VARCHAR)
Question: What player played guard for toronto in 1996-97?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question about which player played guard for Toronto in 1996-97:
```
SELECT player FROM table_10015132_11 WHERE position = "Guard" AND years_in_toronto = "1996-97"
``` | 19,080 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_11 (player VARCHAR, position VARCHAR, years_in_toronto VARCHAR)\n\n Question: What player played guard for toronto ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10015132_9 (player VARCHAR, school_club_team VARCHAR)
Question: Who are all of the players on the Westchester High School club team?
Here is the SQLite query to an... | Here is the SQLite query to answer the question about the players on the Westchester High School club team:
```
SELECT player FROM table_10015132_9 WHERE school_club_team = 'Westchester High School';
``` | 19,081 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_9 (player VARCHAR, school_club_team VARCHAR)\n\n Question: Who are all of the players on the Westchester High Schoo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR)
Question: What school/club team is Amir Johnson on?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question "What school/club team is Amir Johnson on?":
```
SELECT school_club_team FROM table_10015132_9 WHERE player = "Amir Johnson"
``` | 19,082 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR)\n\n Question: What school/club team is Amir Johnson on?\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_10015132_9 (no VARCHAR, years_in_toronto VARCHAR)
Question: What are the total amount of numbers on the Toronto team in 2005-06?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about the total amount of numbers on the Toronto team in 2005-06:
```
SELECT COUNT(no) FROM table_10015132_9 WHERE years_in_toronto = "2005-06";
``` | 19,083 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_9 (no VARCHAR, years_in_toronto VARCHAR)\n\n Question: What are the total amount of numbers on the Toronto team in ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10015132_9 (position VARCHAR, years_in_toronto VARCHAR)
Question: What are the total number of positions on the Toronto team in 2006-07?
Here is the SQLite query t... | Here is the SQLite query to answer the question based on the provided schema:
```
SELECT COUNT(position) FROM table_10015132_9 WHERE years_in_toronto = '2006-07';
``` | 19,084 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_9 (position VARCHAR, years_in_toronto VARCHAR)\n\n Question: What are the total number of positions on the Toronto ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10015132_9 (nationality VARCHAR, school_club_team VARCHAR)
Question: What are the nationality of the players on the Fresno State school/club team?
Here is the SQLi... | Here is the SQLite query to answer the question regarding the nationalities of the players on the Fresno State school/club team:
```
SELECT nationality FROM table_10015132_9 WHERE school_club_team = "Fresno State";
``` | 19,085 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_9 (nationality VARCHAR, school_club_team VARCHAR)\n\n Question: What are the nationality of the players on the Fres... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR)
Question: What school/club team is Trey Johnson on?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question of which school/club team Trey Johnson is on:
```
SELECT school_club_team FROM table_10015132_9 WHERE player = "Trey Johnson"
``` | 19,086 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR)\n\n Question: What school/club team is Trey Johnson on?\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_10026563_1 (ended_time_as_senior_g8_leader VARCHAR, person VARCHAR)
Question: When did Jacques Chirac stop being a G8 leader?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question "When did Jacques Chirac stop being a G8 leader?":
```
SELECT ended_time_as_senior_g8_leader FROM table_10026563_1 WHERE person = "Jacques Chirac"
``` | 19,087 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10026563_1 (ended_time_as_senior_g8_leader VARCHAR, person VARCHAR)\n\n Question: When did Jacques Chirac stop being a G8 le... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10026563_1 (entered_office_as_head_of_state_or_government VARCHAR, office VARCHAR)
Question: When did the Prime Minister of Italy take office?
Here is the SQLite q... | Here is the SQLite query to answer the question regarding when the Prime Minister of Italy took office:
```sql
SELECT entered_office_as_head_of_state_or_government FROM table_10026563_1 WHERE office = "Prime Minister of Italy";
``` | 19,088 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10026563_1 (entered_office_as_head_of_state_or_government VARCHAR, office VARCHAR)\n\n Question: When did the Prime Minister... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1008653_1 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)
Question: What is the English name of the country whose official na... | Here is the SQLite query to answer the question:
```
SELECT country___exonym__ FROM table_1008653_1 WHERE official_or_native_language_s___alphabet_script_ = "Dutch Papiamento";
``` | 19,089 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1008653_1 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)\n\n Question: What is the E... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1008653_1 (official_or_native_language_s___alphabet_script_ VARCHAR, capital___exonym__ VARCHAR)
Question: What official or native languages are spoken in the count... | Here is the SQLite query to answer the question regarding the official or native languages spoken in the country whose capital city is Canberra:
```
SELECT official_or_native_language_s___alphabet_script_ FROM table_1008653_1 WHERE capital___exonym__ = "Canberra"
``` | 19,090 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1008653_1 (official_or_native_language_s___alphabet_script_ VARCHAR, capital___exonym__ VARCHAR)\n\n Question: What official... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, capital___exonym__ VARCHAR)
Question: What is the local name given to the city of Canberra?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question about the local name given to the city of Canberra:
```
SELECT capital___endonym__ FROM table_1008653_1 WHERE capital___exonym__ = "Canberra"
``` | 19,091 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, capital___exonym__ VARCHAR)\n\n Question: What is the local name given to the city o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, country___endonym__ VARCHAR)
Question: What is the local name given to the capital of Anguilla?
Here is the SQLite query to... | Here is the SQLite query to answer the question about the local name given to the capital of Anguilla:
```
SELECT capital___endonym__ FROM table_1008653_1 WHERE country___endonym__ = "Anguilla"
``` | 19,092 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, country___endonym__ VARCHAR)\n\n Question: What is the local name given to the capit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1008653_1 (capital___exonym__ VARCHAR, capital___endonym__ VARCHAR)
Question: What is the English name given to the city of St. John's?
Here is the SQLite query to... | Here is the SQLite query to answer the question about the English name given to the city of St. John's:
```
SELECT capital___exonym__ FROM table_1008653_1 WHERE capital___endonym__ = "St. John's"
``` | 19,093 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1008653_1 (capital___exonym__ VARCHAR, capital___endonym__ VARCHAR)\n\n Question: What is the English name given to the city... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, country___endonym__ VARCHAR)
Question: How many capital cities does Australia have?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question:
```
SELECT COUNT(capital___endonym__) FROM table_1008653_1 WHERE country___endonym__ = "Australia"
``` | 19,094 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, country___endonym__ VARCHAR)\n\n Question: How many capital cities does Australia ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10088101_1 (original_air_date VARCHAR, production_code VARCHAR)
Question: The episode with production code 9abx02 was originally aired on what date?
Here is the SQ... | Here is the SQLite query to answer the question about the air date of the episode with production code 9abx02:
```
SELECT original_air_date FROM table_10088101_1 WHERE production_code = "9abx02"
``` | 19,095 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10088101_1 (original_air_date VARCHAR, production_code VARCHAR)\n\n Question: The episode with production code 9abx02 was or... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10088101_1 (no_in_series INTEGER, production_code VARCHAR)
Question: What is the episode number that has production code 8abx15?
Here is the SQLite query to answer... | Your SQLite query looks mostly correct, but you have a slight inconsistency with the casing of the production code. If the production code is consistently formatted in your database (i.e., all lower case, upper case, or mixed), it's essential to match that format. Since you used "8abx15" in your question, let's keep it... | 19,096 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10088101_1 (no_in_series INTEGER, production_code VARCHAR)\n\n Question: What is the episode number that has production code... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10295819_2 (ties_played INTEGER, years_played VARCHAR)
Question: Name the minimum tiesplayed for 6 years
Here is the SQLite query to answer to the question: Name t... | Here is the SQLite query to answer the question regarding the minimum ties played for 6 years:
```
SELECT MIN(ties_played) FROM table_10295819_2 WHERE years_played = '6'
``` | 19,097 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10295819_2 (ties_played INTEGER, years_played VARCHAR)\n\n Question: Name the minimum tiesplayed for 6 years\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_10342194_3 (amount_of_trees VARCHAR, _that_require_replacement VARCHAR, district VARCHAR)
Question: What is the amount of trees, that require replacement when distr... | Here is the SQLite query to answer the question regarding the amount of trees that require replacement in the Leninsky district:
```
SELECT amount_of_trees, _that_require_replacement FROM table_10342194_3 WHERE district = "leninsky"
```
Make sure to use the correct case for the district name if it is case-sensitive ... | 19,098 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10342194_3 (amount_of_trees VARCHAR, _that_require_replacement VARCHAR, district VARCHAR)\n\n Question: What is the amount o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_10342194_3 (district VARCHAR, total_amount_of_trees VARCHAR, amount_of_old_trees VARCHAR)
Question: What is the district when the total amount of trees is smaller t... | Here is the SQLite query that answers the given question based on the provided schema:
```sql
SELECT district
FROM table_10342194_3
WHERE total_amount_of_trees < '150817.6878461314'
AND amount_of_old_trees = '1,928 (1.89%)';
``` | 19,099 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_10342194_3 (district VARCHAR, total_amount_of_trees VARCHAR, amount_of_old_trees VARCHAR)\n\n Question: What is the district... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.