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_75 (position INTEGER, drawn VARCHAR, points VARCHAR)
Question: At what average position is the drawn 9 and the points greater than 25?
Here is the SQLite quer... | Your SQLite query looks good for calculating the average position where the drawn number is 9 and the points are greater than 25. However, SQL typically treats the data in the `points` column as a string due to its VARCHAR type, so you may need to convert it to an integer or a numeric type for comparison. Here’s the re... | 49,400 | [
{
"from": "human",
"value": " 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 (position INTEGER, drawn VARCHAR, points VARCHAR)\n\n Question: At what average position is the drawn 9 and the poin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_83 (played VARCHAR, against VARCHAR, lost VARCHAR)
Question: How many played has an against greater than 57 and a lost bigger than 14?
Here is the SQLite quer... | Here is the SQLite query to answer the question:
```
SELECT COUNT(played) FROM table_name_83 WHERE against > 57 AND lost > 14
``` | 49,401 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (played VARCHAR, against VARCHAR, lost VARCHAR)\n\n Question: How many played has an against greater than 57 and a l... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (location VARCHAR, event VARCHAR)
Question: The event rip curl pro mademoiselle is in which location?
Here is the SQLite query to answer to the question: T... | Here is the SQLite query to answer the question regarding the location of the event "rip curl pro mademoiselle":
```
SELECT location FROM table_name_55 WHERE event = "rip curl pro mademoiselle";
``` | 49,402 | [
{
"from": "human",
"value": " 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 (location VARCHAR, event VARCHAR)\n\n Question: The event rip curl pro mademoiselle is in which location?\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_35 (winner VARCHAR, country VARCHAR, date VARCHAR)
Question: On the date november 24-december 6 what's the winner when the country is united states?
Here is t... | Here is the correct SQLite query to answer the question:
```
SELECT winner FROM table_name_35 WHERE country = "united states" AND date BETWEEN "2023-11-24" AND "2023-12-06";
```
Make sure to format the date properly based on your actual date storage format in the `date` column, as the format used in the original ques... | 49,403 | [
{
"from": "human",
"value": " 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 (winner VARCHAR, country VARCHAR, date VARCHAR)\n\n Question: On the date november 24-december 6 what's the winner w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (year INTEGER, event VARCHAR, venue VARCHAR)
Question: Which year was the 100 m event played in Thessaloniki, Greece?
Here is the SQLite query to answer to... | Here is the SQLite query to answer the question about the year the 100 m event was played in Thessaloniki, Greece:
```
SELECT MIN(year) FROM table_name_93 WHERE event = "100 m" AND venue = "Thessaloniki, Greece";
``` | 49,404 | [
{
"from": "human",
"value": " 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 (year INTEGER, event VARCHAR, venue VARCHAR)\n\n Question: Which year was the 100 m event played in Thessaloniki, Gr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (position VARCHAR, competition VARCHAR, year VARCHAR)
Question: Which position was the World Indoor Championships in a year later than 2008?
Here is the SQ... | Here is the SQLite query to answer the question "Which position was the World Indoor Championships in a year later than 2008?":
```sql
SELECT position FROM table_name_64 WHERE competition = "world indoor championships" AND year > '2008';
``` | 49,405 | [
{
"from": "human",
"value": " 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 (position VARCHAR, competition VARCHAR, year VARCHAR)\n\n Question: Which position was the World Indoor Championship... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (position VARCHAR, competition VARCHAR, year VARCHAR)
Question: What position was played at the World Athletics Final Competition in a year more recent than... | Here is the SQLite query that answers the question:
```
SELECT position FROM table_name_62 WHERE competition = "World Athletics Final" AND year > '2008';
``` | 49,406 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (position VARCHAR, competition VARCHAR, year VARCHAR)\n\n Question: What position was played at the World Athletics ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (position VARCHAR, competition VARCHAR, year VARCHAR)
Question: What position was played at the World Athletics Final Competition in a year more recent than... | Here is the SQLite query to answer the question regarding the position played at the World Athletics Final Competition in a year more recent than 2008:
```
SELECT position FROM table_name_11 WHERE competition = "World Athletics Final" AND year > '2008';
``` | 49,407 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_11 (position VARCHAR, competition VARCHAR, year VARCHAR)\n\n Question: What position was played at the World Athletics ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (goals VARCHAR, assists VARCHAR)
Question: What are the goals of the assists of 5?
Here is the SQLite query to answer to the question: What are the goals o... | Here is the SQLite query to answer the question regarding the goals corresponding to assists of "5":
```
SELECT goals FROM table_name_92 WHERE assists = "5";
``` | 49,408 | [
{
"from": "human",
"value": " 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 (goals VARCHAR, assists VARCHAR)\n\n Question: What are the goals of the assists of 5?\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_66 (assists VARCHAR, year VARCHAR)
Question: What is the assists for the year 1995?
Here is the SQLite query to answer to the question: What is the assists fo... | Here is the SQLite query to answer the question regarding assists for the year 1995:
```
SELECT assists FROM table_name_66 WHERE year = "1995";
``` | 49,409 | [
{
"from": "human",
"value": " 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 (assists VARCHAR, year VARCHAR)\n\n Question: What is the assists for the year 1995?\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_14 (assists VARCHAR, team VARCHAR, total_points VARCHAR)
Question: What assists has the Team SMU and the total points of 85?
Here is the SQLite query to answe... | Here is the SQLite query that answers the question regarding the assists for Team SMU with a total of 85 points:
```sql
SELECT assists FROM table_name_14 WHERE team = "SMU" AND total_points = "85";
``` | 49,410 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_14 (assists VARCHAR, team VARCHAR, total_points VARCHAR)\n\n Question: What assists has the Team SMU and the total poin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (year VARCHAR, assists VARCHAR)
Question: What year had 48 assists?
Here is the SQLite query to answer to the question: What year had 48 assists?:
```
SELE... | Your provided SQLite query is correct. Here it is wrapped in the requested format:
```
SELECT year FROM table_name_35 WHERE assists = "48";
``` | 49,411 | [
{
"from": "human",
"value": " 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 (year VARCHAR, assists VARCHAR)\n\n Question: What year had 48 assists?\n\nHere is the SQLite query to answer to the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (total_points VARCHAR, gp_gs VARCHAR)
Question: What is the total points for GP/GS of 24/23?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question regarding the total points for GP/GS of 24/23:
```
SELECT total_points FROM table_name_28 WHERE gp_gs = '24/23';
``` | 49,412 | [
{
"from": "human",
"value": " 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 (total_points VARCHAR, gp_gs VARCHAR)\n\n Question: What is the total points for GP/GS of 24/23?\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_29 (assists VARCHAR, team VARCHAR, total_points VARCHAR)
Question: What is the assists for the Team of Florida and the total points of 75?
Here is the SQLite ... | Here is the SQLite query to answer the question regarding assists for the team of Florida with total points of 75:
```
SELECT assists FROM table_name_29 WHERE team = "florida" AND total_points = "75"
``` | 49,413 | [
{
"from": "human",
"value": " 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 (assists VARCHAR, team VARCHAR, total_points VARCHAR)\n\n Question: What is the assists for the Team of Florida and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (attendance VARCHAR, home_team VARCHAR)
Question: What is the attendance of the match with F.C. central chugoku as the home team?
Here is the SQLite query ... | Your SQLite query looks great! Here it is wrapped in the requested format:
```
SELECT attendance FROM table_name_24 WHERE home_team = "f.c. central chugoku";
```
This query will correctly retrieve the attendance of the match where "F.C. central chugoku" is the home team. | 49,414 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (attendance VARCHAR, home_team VARCHAR)\n\n Question: What is the attendance of the match with F.C. central chugoku ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (away_team VARCHAR, match_no VARCHAR)
Question: What is the away team of match 9?
Here is the SQLite query to answer to the question: What is the away team... | Here is the SQLite query to answer the question "What is the away team of match 9?":
```
SELECT away_team FROM table_name_52 WHERE match_no = "9";
``` | 49,415 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR, match_no VARCHAR)\n\n Question: What is the away team of match 9?\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_30 (score VARCHAR, match_no VARCHAR)
Question: What is the score of match 15?
Here is the SQLite query to answer to the question: What is the score of match 1... | Here is the SQLite query to answer the question about the score of match 15:
```
SELECT score FROM table_name_30 WHERE match_no = "15";
``` | 49,416 | [
{
"from": "human",
"value": " 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 (score VARCHAR, match_no VARCHAR)\n\n Question: What is the score of match 15?\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_23 (attendance VARCHAR, away_team VARCHAR)
Question: What is the attendance of the match with kochi university as the away team?
Here is the SQLite query to a... | Here is the SQLite query to answer the question about the attendance of the match with Kochi University as the away team:
```
SELECT attendance FROM table_name_23 WHERE away_team = "kochi university";
``` | 49,417 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, away_team VARCHAR)\n\n Question: What is the attendance of the match with kochi university as t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (attendance VARCHAR, away_team VARCHAR)
Question: What is the attendance of the match with rosso kumamoto as the away team?
Here is the SQLite query to ans... | Your SQLite query looks good and correctly retrieves the attendance for the match with "rosso kumamoto" as the away team. Here it is wrapped in the code format you requested:
```
SELECT attendance FROM table_name_82 WHERE away_team = "rosso kumamoto";
``` | 49,418 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (attendance VARCHAR, away_team VARCHAR)\n\n Question: What is the attendance of the match with rosso kumamoto as the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (year VARCHAR, balance_sheet_total VARCHAR)
Question: What year did the company have a balance sheet total of €125,359,000?
Here is the SQLite query to ans... | The SQLite query provided achieves a count of how many times the company had a balance sheet total of €125,359,000, but it does not directly answer the question of which specific year that total occurred. To obtain the year in which the balance sheet total was €125,359,000, you would want to select the year instead of ... | 49,419 | [
{
"from": "human",
"value": " 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 (year VARCHAR, balance_sheet_total VARCHAR)\n\n Question: What year did the company have a balance sheet total of €1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (year INTEGER, album VARCHAR)
Question: What was the average Year of release for the Album, "Da Baddest Bitch"?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding the average year of release for the album "Da Baddest Bitch":
```
SELECT AVG(year) FROM table_name_31 WHERE album = "Da Baddest Bitch";
``` | 49,420 | [
{
"from": "human",
"value": " 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 (year INTEGER, album VARCHAR)\n\n Question: What was the average Year of release for the Album, \"Da Baddest Bitch\"... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (result VARCHAR, score VARCHAR)
Question: What was the result of the game with a score of 3-2?
Here is the SQLite query to answer to the question: What was... | Here is the SQLite query to answer the question of what the result of the game was with a score of 3-2:
```
SELECT result FROM table_name_99 WHERE score = "3-2"
``` | 49,421 | [
{
"from": "human",
"value": " 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 (result VARCHAR, score VARCHAR)\n\n Question: What was the result of the game with a score of 3-2?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (score VARCHAR, competition VARCHAR)
Question: What was the score of the 2014 World Cup Qualification?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question regarding the score of the 2014 World Cup Qualification:
```
SELECT score FROM table_name_91 WHERE competition = "2014 World Cup Qualification"
``` | 49,422 | [
{
"from": "human",
"value": " 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 (score VARCHAR, competition VARCHAR)\n\n Question: What was the score of the 2014 World Cup Qualification?\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_65 (result VARCHAR, score VARCHAR)
Question: What was the result of the game with a score of 4-1?
Here is the SQLite query to answer to the question: What was... | Your SQLite query is correct. Here it is wrapped in the requested code block format:
```
SELECT result FROM table_name_65 WHERE score = "4-1";
``` | 49,423 | [
{
"from": "human",
"value": " 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 (result VARCHAR, score VARCHAR)\n\n Question: What was the result of the game with a score of 4-1?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (venue VARCHAR, score VARCHAR)
Question: What venue held with game with a score of 3-2?
Here is the SQLite query to answer to the question: What venue held... | Here is the SQLite query to answer the question: What venue held a game with a score of 3-2?:
```sql
SELECT venue FROM table_name_42 WHERE score = "3-2";
``` | 49,424 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (venue VARCHAR, score VARCHAR)\n\n Question: What venue held with game with a score of 3-2?\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_20 (date VARCHAR, centerfold_model VARCHAR)
Question: When has a Centerfold model of krista kelly?
Here is the SQLite query to answer to the question: When ha... | Here is the SQLite query to answer the question about when a Centerfold model of Krista Kelly has occurred:
```
SELECT date FROM table_name_20 WHERE centerfold_model = "krista kelly"
``` | 49,425 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (date VARCHAR, centerfold_model VARCHAR)\n\n Question: When has a Centerfold model of krista kelly?\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_60 (cover_model VARCHAR)
Question: Which 20 Questions has a Cover model of rena mero , torrie wilson (two alternative covers)?
Here is the SQLite query to ans... | Your query seems to have a misunderstanding in the context of the question. If you're trying to check for covers with models "rena mero" or "torrie wilson", you should use the `IN` clause or `OR` to select records that match either model. Here’s the corrected query:
```sql
SELECT * FROM table_name_60
WHERE cover_mode... | 49,426 | [
{
"from": "human",
"value": " 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 (cover_model VARCHAR)\n\n Question: Which 20 Questions has a Cover model of rena mero , torrie wilson (two alternati... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (centerfold_model VARCHAR, date VARCHAR)
Question: When Centerfold model is on 3-04?
Here is the SQLite query to answer to the question: When Centerfold mo... | Here's the SQLite query to answer the question about the Centerfold model on the date 3-04:
```
SELECT centerfold_model FROM table_name_80 WHERE date = "3-04";
``` | 49,427 | [
{
"from": "human",
"value": " 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 (centerfold_model VARCHAR, date VARCHAR)\n\n Question: When Centerfold model is on 3-04?\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_22 (cover_model VARCHAR, centerfold_model VARCHAR)
Question: Which Cover model has a Centerfold model of scarlett keegan?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question: Which Cover model has a Centerfold model of scarlett keegan?:
```
SELECT cover_model FROM table_name_22 WHERE centerfold_model = "scarlett keegan";
``` | 49,428 | [
{
"from": "human",
"value": " 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 (cover_model VARCHAR, centerfold_model VARCHAR)\n\n Question: Which Cover model has a Centerfold model of scarlett k... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (date VARCHAR, centerfold_model VARCHAR)
Question: When has a Centerfold model of pilar lastra?
Here is the SQLite query to answer to the question: When ha... | Your SQLite query is correctly formulated to find the dates when there is a Centerfold model named "pilar lastra". Here is the query wrapped appropriately:
```
SELECT date FROM table_name_95 WHERE centerfold_model = "pilar lastra";
``` | 49,429 | [
{
"from": "human",
"value": " 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 (date VARCHAR, centerfold_model VARCHAR)\n\n Question: When has a Centerfold model of pilar lastra?\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_8 (share INTEGER, air_date VARCHAR, viewers VARCHAR)
Question: What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15?
H... | Your SQLite query is mostly correct, but there is a couple of adjustments needed. First, make sure that the comparison for the `viewers` column accounts for it being stored as a string (VARCHAR). You need to convert it to a numeric type for the comparison to work correctly.
Here is the adjusted query:
```sql
SELECT ... | 49,430 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (share INTEGER, air_date VARCHAR, viewers VARCHAR)\n\n Question: What is the lowest share with an air date of March 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_31 (team_s_ INTEGER, top_goalscorer_s_ VARCHAR, champion VARCHAR)
Question: What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champ... | Your SQLite query looks correct for the provided question. Here it is wrapped in code formatting:
```
SELECT MIN(team_s_) FROM table_name_31 WHERE top_goalscorer_s_ = "tvmk" AND champion = "flora"
```
This query retrieves the lowest value of `team_s_` where `top_goalscorer_s_` is "tvmk" and `champion` is "flora". | 49,431 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_31 (team_s_ INTEGER, top_goalscorer_s_ VARCHAR, champion VARCHAR)\n\n Question: What is the lowest team (s) that have t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (round VARCHAR, opposition VARCHAR)
Question: What round had the opponent Lyon?
Here is the SQLite query to answer to the question: What round had the oppon... | Here is the SQLite query to answer the question: What round had the opponent Lyon?:
```
SELECT round FROM table_name_1 WHERE opposition = "Lyon";
``` | 49,432 | [
{
"from": "human",
"value": " 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 (round VARCHAR, opposition VARCHAR)\n\n Question: What round had the opponent Lyon?\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_53 (first_leg VARCHAR, round VARCHAR)
Question: Who has the first leg that has a round in the semi-final?
Here is the SQLite query to answer to the question: ... | Your provided SQLite query is correct for retrieving the `first_leg` where the `round` is "semi-final". Here it is again wrapped in the appropriate backticks:
```
SELECT first_leg FROM table_name_53 WHERE round = "semi-final";
``` | 49,433 | [
{
"from": "human",
"value": " 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 (first_leg VARCHAR, round VARCHAR)\n\n Question: Who has the first leg that has a round in the semi-final?\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_28 (most_laps_led VARCHAR, winning_team VARCHAR, fastest_lap VARCHAR)
Question: What is Most Laps Led, when Winning Team is Chip Ganassi Racing, and when Faste... | Your query looks good! Here it is formatted correctly:
```sql
SELECT most_laps_led
FROM table_name_28
WHERE winning_team = "Chip Ganassi Racing"
AND fastest_lap = "Marco Andretti";
``` | 49,434 | [
{
"from": "human",
"value": " 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 (most_laps_led VARCHAR, winning_team VARCHAR, fastest_lap VARCHAR)\n\n Question: What is Most Laps Led, when Winning... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (winning_driver VARCHAR, most_laps_led VARCHAR, pole_position VARCHAR)
Question: Who is the Winning Driver, when Most Laps Led is Dario Franchitti, and when... | Here is the SQLite query to answer the question:
```
SELECT winning_driver FROM table_name_10 WHERE most_laps_led = "Dario Franchitti" AND pole_position = "Hélio Castroneves"
``` | 49,435 | [
{
"from": "human",
"value": " 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 (winning_driver VARCHAR, most_laps_led VARCHAR, pole_position VARCHAR)\n\n Question: Who is the Winning Driver, when... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (winning_team VARCHAR, most_laps_led VARCHAR)
Question: What is Winning Team, when Most Laps Led is Alex Tagliani?
Here is the SQLite query to answer to th... | Your SQLite query is correct but the string comparison is case-sensitive. If you want to ensure it works regardless of the case, you can use the `LOWER` function. Here's an improved version that accounts for case sensitivity:
```
SELECT winning_team FROM table_name_21 WHERE LOWER(most_laps_led) = LOWER("Alex Tagliani"... | 49,436 | [
{
"from": "human",
"value": " 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 (winning_team VARCHAR, most_laps_led VARCHAR)\n\n Question: What is Winning Team, when Most Laps Led is Alex Taglian... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (winning_driver VARCHAR, fastest_lap VARCHAR, most_laps_led VARCHAR)
Question: What is Winning Driver, when Fastest Lap is Ryan Hunter-Reay, and when Most La... | Here is the SQLite query you requested:
```
SELECT winning_driver FROM table_name_7 WHERE fastest_lap = "ryan hunter-reay" AND most_laps_led = "ryan briscoe"
``` | 49,437 | [
{
"from": "human",
"value": " 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 (winning_driver VARCHAR, fastest_lap VARCHAR, most_laps_led VARCHAR)\n\n Question: What is Winning Driver, when Faste... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (race VARCHAR, most_laps_led VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
Question: What is Race, when Winning Team is Chip Ganassi Racing, when Po... | Here is the SQLite query to answer the question:
```
SELECT race FROM table_name_91 WHERE winning_team = "Chip Ganassi Racing" AND pole_position = "Ryan Briscoe" AND most_laps_led = "Scott Dixon"
``` | 49,438 | [
{
"from": "human",
"value": " 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 (race VARCHAR, most_laps_led VARCHAR, winning_team VARCHAR, pole_position VARCHAR)\n\n Question: What is Race, when ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (winner VARCHAR, runner_up VARCHAR)
Question: Who was the Winner when the Runner-up was Real Salt Lake?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about who was the Winner when the Runner-up was Real Salt Lake:
```
SELECT winner FROM table_name_20 WHERE runner_up = "Real Salt Lake";
``` | 49,439 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (winner VARCHAR, runner_up VARCHAR)\n\n Question: Who was the Winner when the Runner-up was Real Salt Lake?\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_64 (season VARCHAR, runner_up VARCHAR)
Question: During which Season was the tournament in progress?
Here is the SQLite query to answer to the question: Durin... | To answer the question regarding which season the tournament was in progress, the query you've provided is almost there, but it assumes that "tournament in progress" is a value in the `runner_up` column. Typically, the `runner_up` column would contain the name of the team or participant that finished second, not a phra... | 49,440 | [
{
"from": "human",
"value": " 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 (season VARCHAR, runner_up VARCHAR)\n\n Question: During which Season was the tournament in progress?\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_15 (score VARCHAR, winner VARCHAR)
Question: What was the Score during the Season in which the Winner was C.F. Atlante?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding the score during the season in which the winner was C.F. Atlante:
```
SELECT score FROM table_name_15 WHERE winner = "C.F. Atlante";
``` | 49,441 | [
{
"from": "human",
"value": " 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 (score VARCHAR, winner VARCHAR)\n\n Question: What was the Score during the Season in which the Winner was C.F. Atla... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (score VARCHAR, losing_semifinalists VARCHAR)
Question: What was the Score when the Losing Semifinalists were Toluca Unam?
Here is the SQLite query to answ... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_88 WHERE losing_semifinalists = "Toluca Unam"
``` | 49,442 | [
{
"from": "human",
"value": " 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 (score VARCHAR, losing_semifinalists VARCHAR)\n\n Question: What was the Score when the Losing Semifinalists were To... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (laws_against_homosexuality VARCHAR, penalty VARCHAR, country VARCHAR)
Question: What law has a penalty of — in Iraq?
Here is the SQLite query to answer to... | Here is the SQLite query to find the law that has a penalty of — in Iraq:
```
SELECT laws_against_homosexuality FROM table_name_90 WHERE penalty = "—" AND country = "Iraq"
``` | 49,443 | [
{
"from": "human",
"value": " 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 (laws_against_homosexuality VARCHAR, penalty VARCHAR, country VARCHAR)\n\n Question: What law has a penalty of — in ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (laws_against_homosexuality VARCHAR, country VARCHAR)
Question: What are the laws against homosexuality in Malaysia?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question regarding the laws against homosexuality in Malaysia:
```
SELECT laws_against_homosexuality FROM table_name_34 WHERE country = "malaysia"
``` | 49,444 | [
{
"from": "human",
"value": " 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 (laws_against_homosexuality VARCHAR, country VARCHAR)\n\n Question: What are the laws against homosexuality in Malay... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (events INTEGER, top_25 VARCHAR, wins VARCHAR)
Question: What is the average Events when the top-25 is 12 and there are less than 0 wins?
Here is the SQLit... | Here is the SQLite query to answer your question wrapped as requested:
```
SELECT AVG(events) FROM table_name_62 WHERE top_25 = 12 AND wins < 0
``` | 49,445 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (events INTEGER, top_25 VARCHAR, wins VARCHAR)\n\n Question: What is the average Events when the top-25 is 12 and th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (events INTEGER, wins VARCHAR, top_25 VARCHAR, top_10 VARCHAR)
Question: What is the sum of Events when the top-25 is more than 5, and the top-10 is less th... | Here's the SQLite query wrapped in code formatting as requested:
```
SELECT SUM(events) FROM table_name_88 WHERE top_25 > 5 AND top_10 < 4 AND wins > 2;
``` | 49,446 | [
{
"from": "human",
"value": " 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 (events INTEGER, wins VARCHAR, top_25 VARCHAR, top_10 VARCHAR)\n\n Question: What is the sum of Events when the top-... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR)
Question: What is the average Top-10 when there were 17 cuts made with less than 0 wins?
Here is the SQLi... | Your SQLite query is correctly formatted to answer the question based on the provided schema. Here it is again, in the requested format:
```
SELECT AVG(top_10) FROM table_name_93 WHERE cuts_made = 17 AND wins < 0
```
This query calculates the average value of the `top_10` column from the `table_name_93` table where ... | 49,447 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_93 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR)\n\n Question: What is the average Top-10 when there were 17 cuts m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (cuts_made INTEGER, events INTEGER)
Question: What is the sum of Cuts made when there were more than 72 events?
Here is the SQLite query to answer to the q... | Here is the SQLite query to calculate the sum of cuts made when there were more than 72 events:
```
SELECT SUM(cuts_made) FROM table_name_95 WHERE events > 72
``` | 49,448 | [
{
"from": "human",
"value": " 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 (cuts_made INTEGER, events INTEGER)\n\n Question: What is the sum of Cuts made when there were more than 72 events?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (top_5 INTEGER, tournament VARCHAR, top_10 VARCHAR)
Question: What is the average Top-5 for the open championship, and a Top-10 smaller than 2?
Here is the... | Here is the SQLite query you can use to answer the question regarding the average Top-5 for the open championship with a Top-10 smaller than 2:
```
SELECT AVG(top_5) FROM table_name_98 WHERE tournament = "the open championship" AND top_10 < 2
``` | 49,449 | [
{
"from": "human",
"value": " 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 (top_5 INTEGER, tournament VARCHAR, top_10 VARCHAR)\n\n Question: What is the average Top-5 for the open championshi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_74 (original_airing VARCHAR, rating VARCHAR, episode_number_production_number VARCHAR)
Question: What was the date of airing for episodes with ratings under 10... | Your provided SQLite query looks mostly correct, but there's a small adjustment needed regarding the comparison of the rating. In SQLite, you need to properly handle the rating as a numerical comparison. Here’s the corrected version of the SQL query:
```
SELECT original_airing FROM table_name_74 WHERE CAST(rating AS F... | 49,450 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (original_airing VARCHAR, rating VARCHAR, episode_number_production_number VARCHAR)\n\n Question: What was the date ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (total_viewers__in_millions_ INTEGER, episode_number_production_number VARCHAR)
Question: What was the fewest number of viewers for the episode production n... | Here is the SQLite query wrapped in code format:
```
SELECT MIN(total_viewers__in_millions_) FROM table_name_54 WHERE episode_number_production_number = "109 5-22";
``` | 49,451 | [
{
"from": "human",
"value": " 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 (total_viewers__in_millions_ INTEGER, episode_number_production_number VARCHAR)\n\n Question: What was the fewest nu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_67 (first_aligned_day VARCHAR, date VARCHAR)
Question: What is the First Aligned date in 1614?
Here is the SQLite query to answer to the question: What is the... | Here is the correct SQLite query to find the First Aligned date in 1614:
```
SELECT first_aligned_day FROM table_name_67 WHERE date LIKE "1614%"
```
This query assumes that the `date` column contains values formatted in a way that includes the year and possibly a month or day, allowing for searching with the `LIKE` o... | 49,452 | [
{
"from": "human",
"value": " 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 (first_aligned_day VARCHAR, date VARCHAR)\n\n Question: What is the First Aligned date in 1614?\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_76 (_number_of_airlines VARCHAR, distance__km_ VARCHAR)
Question: How many Airlines have a total distance of 705 (km)?
Here is the SQLite query to answer to t... | Your provided SQLite query is almost correct, but since the `distance__km_` column is defined as a `VARCHAR`, you should compare it as a string rather than an integer. Here's the correct version of your query wrapped in code blocks:
```
SELECT COUNT(_number_of_airlines) FROM table_name_76 WHERE distance__km_ = '705'
`... | 49,453 | [
{
"from": "human",
"value": " 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 (_number_of_airlines VARCHAR, distance__km_ VARCHAR)\n\n Question: How many Airlines have a total distance of 705 (k... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (team_1 VARCHAR)
Question: What is the 1st leg result when team 1 is Gambia?
Here is the SQLite query to answer to the question: What is the 1st leg result... | To find the 1st leg result when team 1 is Gambia, the correct SQL query would typically need to retrieve a specific result from the table. However, the provided schema only includes a single column for `team_1` and does not seem to provide a column for results. Assuming that "1st leg result" refers to some type of resu... | 49,454 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (team_1 VARCHAR)\n\n Question: What is the 1st leg result when team 1 is Gambia?\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_16 (team_2 VARCHAR)
Question: What is the 2nd leg result when team 2 is Morocco?
Here is the SQLite query to answer to the question: What is the 2nd leg resul... | Here is the SQLite query to answer the question about the 2nd leg result when team 2 is Morocco:
```
SELECT 2 AS nd_leg FROM table_name_16 WHERE team_2 = "Morocco"
```
Please note that I have corrected the case of "Morocco" as it typically would be capitalized in a database. | 49,455 | [
{
"from": "human",
"value": " 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 (team_2 VARCHAR)\n\n Question: What is the 2nd leg result when team 2 is Morocco?\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (name VARCHAR, year VARCHAR)
Question: Which Name was in the Year 2001?
Here is the SQLite query to answer to the question: Which Name was in the Year 2001... | Here is the SQLite query to answer the question: Which Name was in the Year 2001?:
```
SELECT name FROM table_name_32 WHERE year = "2001";
``` | 49,456 | [
{
"from": "human",
"value": " 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 (name VARCHAR, year VARCHAR)\n\n Question: Which Name was in the Year 2001?\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_31 (name VARCHAR, out_of VARCHAR, rank VARCHAR)
Question: Which Name had a Rank of 18 Out of a number smaller than 149?
Here is the SQLite query to answer to ... | Here is the SQLite query wrapped in code formatting as requested:
```
SELECT name FROM table_name_31 WHERE out_of < 149 AND rank = '18';
```
Make sure that the `rank` comparison uses the correct type (string or integer) based on how your data is structured. In this case, I included the rank as a string since the sch... | 49,457 | [
{
"from": "human",
"value": " 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 (name VARCHAR, out_of VARCHAR, rank VARCHAR)\n\n Question: Which Name had a Rank of 18 Out of a number smaller than ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (name VARCHAR, rank VARCHAR)
Question: Which Name had the Rank, 15?
Here is the SQLite query to answer to the question: Which Name had the Rank, 15?:
```
S... | Your SQLite query is almost correct, but you should ensure that the rank value is treated as a string, since the schema defines rank as a VARCHAR. Here’s the corrected version of the query:
```
SELECT name FROM table_name_54 WHERE rank = '15'
```
This query retrieves the names from the table where the rank is equal ... | 49,458 | [
{
"from": "human",
"value": " 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 (name VARCHAR, rank VARCHAR)\n\n Question: Which Name had the Rank, 15?\n\nHere is the SQLite query to answer to the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (rank INTEGER, name VARCHAR, out_of VARCHAR)
Question: What is the lowest Rank for the Name, "area of permanent crops", Out of a number smaller than 181?
H... | Here is the SQLite query to find the lowest Rank for the Name "area of permanent crops" where Out Of is a number smaller than 181:
```
SELECT MIN(rank) FROM table_name_66 WHERE name = "area of permanent crops" AND out_of < 181;
``` | 49,459 | [
{
"from": "human",
"value": " 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 (rank INTEGER, name VARCHAR, out_of VARCHAR)\n\n Question: What is the lowest Rank for the Name, \"area of permanent... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (name VARCHAR, out_of VARCHAR, source VARCHAR, rank VARCHAR)
Question: Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number s... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_48 WHERE source = "World Bank" AND rank < 110 AND out_of < 199;
``` | 49,460 | [
{
"from": "human",
"value": " 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 (name VARCHAR, out_of VARCHAR, source VARCHAR, rank VARCHAR)\n\n Question: Which Name had the Source, World Bank, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (team VARCHAR, coach VARCHAR, captain VARCHAR)
Question: Which Team has Manzoor Elahi as Coach and Taufeeq Umar as Captain?
Here is the SQLite query to ans... | Your SQLite query looks correct for the given question. Here it is, wrapped in code formatting:
```
SELECT team FROM table_name_88 WHERE coach = "manzoor elahi" AND captain = "taufeeq umar";
``` | 49,461 | [
{
"from": "human",
"value": " 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 (team VARCHAR, coach VARCHAR, captain VARCHAR)\n\n Question: Which Team has Manzoor Elahi as Coach and Taufeeq Umar ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (city VARCHAR, team VARCHAR)
Question: Which City has the Bahawalpur Stags Team?
Here is the SQLite query to answer to the question: Which City has the Bah... | Your SQLite query is correctly formed to retrieve the city associated with the "Bahawalpur Stags" team. Here it is wrapped in the code block as you requested:
```
SELECT city FROM table_name_98 WHERE team = "bahawalpur stags";
``` | 49,462 | [
{
"from": "human",
"value": " 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 (city VARCHAR, team VARCHAR)\n\n Question: Which City has the Bahawalpur Stags Team?\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_90 (opponent VARCHAR, date VARCHAR)
Question: Who is the opponent of the December 18, 1994 game?
Here is the SQLite query to answer to the question: Who is th... | Here is the SQLite query to answer the question about the opponent of the December 18, 1994 game:
```
SELECT opponent FROM table_name_90 WHERE date = "December 18, 1994";
``` | 49,463 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, date VARCHAR)\n\n Question: Who is the opponent of the December 18, 1994 game?\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_48 (artist VARCHAR, date VARCHAR)
Question: What is the Artist with a Date that is june 1979?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question about the artist with a date in June 1979:
```
SELECT artist FROM table_name_48 WHERE date = "june 1979";
``` | 49,464 | [
{
"from": "human",
"value": " 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 (artist VARCHAR, date VARCHAR)\n\n Question: What is the Artist with a Date that is june 1979?\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_8 (writer VARCHAR, actual_title VARCHAR)
Question: What is the Writer with an Actual Title that is mork & mindy?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the writer with the actual title "mork & mindy":
```
SELECT writer FROM table_name_8 WHERE actual_title = "mork & mindy"
``` | 49,465 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (writer VARCHAR, actual_title VARCHAR)\n\n Question: What is the Writer with an Actual Title that is mork & mindy?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (writer VARCHAR, date VARCHAR)
Question: What is the Writer with a Date that is january 1975?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the writer with a date in January 1975:
```
SELECT writer FROM table_name_63 WHERE date = "january 1975"
``` | 49,466 | [
{
"from": "human",
"value": " 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 (writer VARCHAR, date VARCHAR)\n\n Question: What is the Writer with a Date that is january 1975?\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_66 (played INTEGER, drawn VARCHAR, against VARCHAR)
Question: What is the smallest played amount when there are 2 draws and an against of more than 73?
Here i... | Your SQLite query is almost correct, but there is a slight adjustment needed regarding the data type of the `drawn` column. Since it is defined as `VARCHAR`, you will need to compare the `drawn` field as a string, depending on how the '2' is stored.
Here's the corrected query:
```
SELECT MIN(played) FROM table_name_6... | 49,467 | [
{
"from": "human",
"value": " 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 (played INTEGER, drawn VARCHAR, against VARCHAR)\n\n Question: What is the smallest played amount when there are 2 d... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (episodes INTEGER, premiere VARCHAR)
Question: What is the earliest season with a premiere of february5,2007?
Here is the SQLite query to answer to the que... | Your SQLite query to find the earliest season with a premiere of February 5, 2007, is correct. However, for clarity and to align with typical date formatting, it's helpful to ensure the date is in a standard format, such as 'YYYY-MM-DD'. Assuming the format in your database is strictly how you provided it, the followin... | 49,468 | [
{
"from": "human",
"value": " 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 (episodes INTEGER, premiere VARCHAR)\n\n Question: What is the earliest season with a premiere of february5,2007?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (premiere VARCHAR, episodes INTEGER)
Question: Which premiere had more than 15 episodes?
Here is the SQLite query to answer to the question: Which premiere... | ```sql
SELECT premiere FROM table_name_36 WHERE episodes > 15;
``` | 49,469 | [
{
"from": "human",
"value": " 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 (premiere VARCHAR, episodes INTEGER)\n\n Question: Which premiere had more than 15 episodes?\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_15 (high_rebounds VARCHAR, date VARCHAR)
Question: Who had the highest rebounds of the game on April 7?
Here is the SQLite query to answer to the question: Wh... | Your SQLite query is almost correct, but it might need a bit of clarification to ensure it properly retrieves the highest rebounds for the specified date. However, given the schema, it appears that the `high_rebounds` field only holds the rebound counts without specifics on who obtained them. If the `high_rebounds` col... | 49,470 | [
{
"from": "human",
"value": " 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 (high_rebounds VARCHAR, date VARCHAR)\n\n Question: Who had the highest rebounds of the game on April 7?\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 (result VARCHAR, date VARCHAR)
Question: What is Result, when Date is 2003?
Here is the SQLite query to answer to the question: What is Result, when Date i... | Here is the SQLite query that addresses your question:
```
SELECT result FROM table_name_80 WHERE date = "2003";
``` | 49,471 | [
{
"from": "human",
"value": " 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 (result VARCHAR, date VARCHAR)\n\n Question: What is Result, when Date is 2003?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (record VARCHAR, date VARCHAR)
Question: What is Record, when Date is 1996?
Here is the SQLite query to answer to the question: What is Record, when Date i... | Here is the SQLite query to answer the question about what the Record is when the Date is 1996:
```
SELECT record FROM table_name_45 WHERE date = '1996';
``` | 49,472 | [
{
"from": "human",
"value": " 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 (record VARCHAR, date VARCHAR)\n\n Question: What is Record, when Date is 1996?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (notes VARCHAR, date VARCHAR)
Question: What is Notes, when Date is 2007?
Here is the SQLite query to answer to the question: What is Notes, when Date is 20... | ```sql
SELECT notes FROM table_name_9 WHERE date = "2007";
``` | 49,473 | [
{
"from": "human",
"value": " 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 (notes VARCHAR, date VARCHAR)\n\n Question: What is Notes, when Date is 2007?\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_28 (round INTEGER, opponent VARCHAR)
Question: What is the highest Round, when the Opponent is Junior Pitbull?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about the highest round when the opponent is Junior Pitbull:
```
SELECT MAX(round) FROM table_name_28 WHERE opponent = "Junior Pitbull"
``` | 49,474 | [
{
"from": "human",
"value": " 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 (round INTEGER, opponent VARCHAR)\n\n Question: What is the highest Round, when the Opponent is Junior Pitbull?\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_8 (date VARCHAR, result VARCHAR, method VARCHAR)
Question: What is Date, when Result is Loss, and when Method is Submission (Armbar)?
Here is the SQLite query... | Your SQLite query is correct. Here it is wrapped as requested:
```
SELECT date FROM table_name_8 WHERE result = "loss" AND method = "submission (armbar)"
``` | 49,475 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (date VARCHAR, result VARCHAR, method VARCHAR)\n\n Question: What is Date, when Result is Loss, and when Method is Su... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (coombe_road VARCHAR, selsdon VARCHAR)
Question: What is the Coombe Road time with a Selsdon evening peak?
Here is the SQLite query to answer to the questi... | Your SQLite query is already correctly written to retrieve the Coombe Road time corresponding to a Selsdon evening peak. Here's the query wrapped in code formatting:
```
SELECT coombe_road FROM table_name_17 WHERE selsdon = "evening peak";
```
This query selects the `coombe_road` values from `table_name_17` where th... | 49,476 | [
{
"from": "human",
"value": " 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 (coombe_road VARCHAR, selsdon VARCHAR)\n\n Question: What is the Coombe Road time with a Selsdon evening peak?\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_81 (woodside VARCHAR, coombe_road VARCHAR)
Question: What is the Woodside for the 16:19 Coombe Road?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question: What is the Woodside for the 16:19 Coombe Road?:
```
SELECT woodside FROM table_name_81 WHERE coombe_road = "16:19"
``` | 49,477 | [
{
"from": "human",
"value": " 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 (woodside VARCHAR, coombe_road VARCHAR)\n\n Question: What is the Woodside for the 16:19 Coombe Road?\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_65 (elmers_end VARCHAR, bingham_road VARCHAR)
Question: What is the Elmers End with a 09:54 Bingham Road?
Here is the SQLite query to answer to the question: ... | Your SQLite query is correctly formulated for the provided question. Here it is, wrapped as requested:
```
SELECT elmers_end FROM table_name_65 WHERE bingham_road = "09:54";
``` | 49,478 | [
{
"from": "human",
"value": " 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 (elmers_end VARCHAR, bingham_road VARCHAR)\n\n Question: What is the Elmers End with a 09:54 Bingham Road?\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_14 (coombe_road VARCHAR, woodside VARCHAR)
Question: What is the Coombe Road with a Woodside time of 07:23?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about the Coombe Road with a Woodside time of 07:23:
```sql
SELECT coombe_road FROM table_name_14 WHERE woodside = "07:23"
``` | 49,479 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_14 (coombe_road VARCHAR, woodside VARCHAR)\n\n Question: What is the Coombe Road with a Woodside time of 07:23?\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_30 (elmers_end VARCHAR, selsdon VARCHAR)
Question: What is the Elmers End with a 17:57 Selsdon time?
Here is the SQLite query to answer to the question: What ... | Your SQLite query to find the Elmers End corresponding to a Selsdon time of "17:57" is correct. Here it is wrapped in code format:
```
SELECT elmers_end FROM table_name_30 WHERE selsdon = "17:57";
``` | 49,480 | [
{
"from": "human",
"value": " 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 (elmers_end VARCHAR, selsdon VARCHAR)\n\n Question: What is the Elmers End with a 17:57 Selsdon time?\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_14 (selsdon VARCHAR, coombe_road VARCHAR)
Question: What is the Selsdon for the 17:19 Coombe Road?
Here is the SQLite query to answer to the question: What is... | Your SQLite query to find the Selsdon for the 17:19 Coombe Road is correct. Here it is wrapped properly:
```
SELECT selsdon FROM table_name_14 WHERE coombe_road = "17:19";
``` | 49,481 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_14 (selsdon VARCHAR, coombe_road VARCHAR)\n\n Question: What is the Selsdon for the 17:19 Coombe Road?\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_65 (wins INTEGER, losses INTEGER)
Question: What is the highest win for losses less than 2?
Here is the SQLite query to answer to the question: What is the hi... | Here is the SQLite query to answer the question about the highest win for losses less than 2:
```
SELECT MAX(wins) FROM table_name_65 WHERE losses < 2
``` | 49,482 | [
{
"from": "human",
"value": " 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 (wins INTEGER, losses INTEGER)\n\n Question: What is the highest win for losses less than 2?\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_46 (byes INTEGER, losses VARCHAR, against VARCHAR)
Question: What is the average Byes for the losses of 15, and before 1874?
Here is the SQLite query to answe... | It looks like there is a slight misunderstanding in your query. The column `against` is defined as `VARCHAR`, so comparing it with an integer (like `1874`) will not work in SQLite. SQLite does not enforce strict data typing, but it's best practice to compare values of the same type.
If you intended to compare `against... | 49,483 | [
{
"from": "human",
"value": " 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 (byes INTEGER, losses VARCHAR, against VARCHAR)\n\n Question: What is the average Byes for the losses of 15, and bef... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (against INTEGER, ballarat_fl VARCHAR, wins VARCHAR)
Question: What is the sum of against in Ballarat FL of East Point and wins less than 16?
Here is the S... | Your SQLite query is almost correct, but it needs a slight adjustment. The `wins` column is defined as `VARCHAR`, so you have to cast it to an integer to perform the comparison. Here is the corrected query:
```
SELECT SUM(against)
FROM table_name_75
WHERE ballarat_fl = "east point" AND CAST(wins AS INTEGER) < 16;
``... | 49,484 | [
{
"from": "human",
"value": " 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 (against INTEGER, ballarat_fl VARCHAR, wins VARCHAR)\n\n Question: What is the sum of against in Ballarat FL of East... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (school VARCHAR, pick VARCHAR)
Question: What is the School with a Pick that is 24?
Here is the SQLite query to answer to the question: What is the School ... | Your SQLite query is almost correct, but the value for `pick` should be enclosed in quotes since it is a VARCHAR type. Here's the revised query with the correct syntax:
```
SELECT school FROM table_name_99 WHERE pick = '24'
```
This query will return the schools that have a pick value of '24'. | 49,485 | [
{
"from": "human",
"value": " 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 (school VARCHAR, pick VARCHAR)\n\n Question: What is the School with a Pick that is 24?\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_86 (team VARCHAR, player VARCHAR)
Question: What is the Team with a Player that is david cooper?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question regarding the team with a player named "david cooper":
```
SELECT team FROM table_name_86 WHERE player = "david cooper";
``` | 49,486 | [
{
"from": "human",
"value": " 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 (team VARCHAR, player VARCHAR)\n\n Question: What is the Team with a Player that is david cooper?\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_10 (_2007 VARCHAR, visitors INTEGER, type VARCHAR)
Question: How many visitors in 2007 were there for ski jumping hill?
Here is the SQLite query to answer to ... | The query you provided is almost correct, but it includes the `_2007` column in the `SELECT` statement without using a `GROUP BY` clause, which may lead to incorrect results. If you're only interested in the total number of visitors for ski jumping hill in the year 2007, you should not include `_2007` in the select cla... | 49,487 | [
{
"from": "human",
"value": " 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 (_2007 VARCHAR, visitors INTEGER, type VARCHAR)\n\n Question: How many visitors in 2007 were there for ski jumping h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (games INTEGER, rank VARCHAR, rebounds VARCHAR, name VARCHAR)
Question: What is the highest Games, when Rebounds is greater than 100, when Name is Nikola Pe... | Your query is almost correct, but there's a small adjustment needed regarding the comparison for the `rank` column, since it is a VARCHAR type. You need to ensure that the comparison is done correctly based on how ranks are represented (e.g., if they are alphanumeric). If ranks are represented by numbers as strings (li... | 49,488 | [
{
"from": "human",
"value": " 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 (games INTEGER, rank VARCHAR, rebounds VARCHAR, name VARCHAR)\n\n Question: What is the highest Games, when Rebounds... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (games VARCHAR, rank VARCHAR, rebounds VARCHAR)
Question: What is the total number of Games, when Rank is less than 4, and when Rebounds is less than 102?
... | Your query has a good start, but there are a few corrections needed. Since `games`, `rank`, and `rebounds` are stored as `VARCHAR`, you need to convert them to appropriate numeric types for comparison.
Here is the corrected SQLite query to get the total number of games when rank is less than 4 and rebounds is less tha... | 49,489 | [
{
"from": "human",
"value": " 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 (games VARCHAR, rank VARCHAR, rebounds VARCHAR)\n\n Question: What is the total number of Games, when Rank is less t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (games INTEGER, name VARCHAR, rebounds VARCHAR)
Question: What is the lowest Games, when Name is Travis Watson, and when Rebounds is less than 136?
Here is... | Here is the SQLite query to answer the question:
```
SELECT MIN(games) FROM table_name_38 WHERE name = "Travis Watson" AND rebounds < 136
``` | 49,490 | [
{
"from": "human",
"value": " 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 (games INTEGER, name VARCHAR, rebounds VARCHAR)\n\n Question: What is the lowest Games, when Name is Travis Watson, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (rebounds INTEGER, team VARCHAR, games VARCHAR)
Question: What is the sum of Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14?
H... | Here is the SQLite query to answer the question regarding the sum of rebounds for the team "Aris Thessaloniki" when the number of games is greater than 14:
```
SELECT SUM(rebounds) FROM table_name_56 WHERE team = "Aris Thessaloniki" AND games > 14;
``` | 49,491 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_56 (rebounds INTEGER, team VARCHAR, games VARCHAR)\n\n Question: What is the sum of Rebounds, when Team is Aris Thessal... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, games VARCHAR)
Question: What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?
Here is the SQL... | Here is the SQLite query to answer the question about the highest rank for Travis Watson when the games played are less than 14:
```
SELECT MAX(rank) FROM table_name_52 WHERE name = "Travis Watson" AND games < 14;
``` | 49,492 | [
{
"from": "human",
"value": " 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 (rank INTEGER, name VARCHAR, games VARCHAR)\n\n Question: What is the highest Rank, when Name is Travis Watson, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (authors VARCHAR, name VARCHAR, novelty VARCHAR, location VARCHAR)
Question: What is Authors, when Novelty is Gen Nov, when Location is South Africa, and wh... | Here is the SQLite query to answer the question:
```
SELECT authors FROM table_name_90 WHERE novelty = "Gen Nov" AND location = "South Africa" AND name = "Criocephalosaurus"
``` | 49,493 | [
{
"from": "human",
"value": " 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 (authors VARCHAR, name VARCHAR, novelty VARCHAR, location VARCHAR)\n\n Question: What is Authors, when Novelty is Ge... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (status VARCHAR, location VARCHAR)
Question: What is Status, when Location is Russia?
Here is the SQLite query to answer to the question: What is Status, w... | Here is the SQLite query to answer the question "What is Status, when Location is Russia?":
```
SELECT status FROM table_name_69 WHERE location = "Russia";
``` | 49,494 | [
{
"from": "human",
"value": " 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 (status VARCHAR, location VARCHAR)\n\n Question: What is Status, when Location is Russia?\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_13 (authors VARCHAR, novelty VARCHAR, name VARCHAR)
Question: What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus?
Here is the S... | Here is the SQLite query to answer the question as requested:
```
SELECT authors FROM table_name_13 WHERE novelty = "Gen Et Sp Nov" AND name = "Lanthanocephalus"
``` | 49,495 | [
{
"from": "human",
"value": " 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 (authors VARCHAR, novelty VARCHAR, name VARCHAR)\n\n Question: What is Authors, when Novelty is Gen Et Sp Nov, 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_51 (name VARCHAR, authors VARCHAR)
Question: What is Name, when Authors are Kammerer & Sidor?
Here is the SQLite query to answer to the question: What is Name... | Your SQLite query is almost correct! However, SQL queries are case-sensitive when it comes to string comparisons, so it's essential to ensure that the author names match exactly as they are stored in the database. If the capitalization is uncertain, you might want to use a case-insensitive comparison with the `LOWER` f... | 49,496 | [
{
"from": "human",
"value": " 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 (name VARCHAR, authors VARCHAR)\n\n Question: What is Name, when Authors are Kammerer & Sidor?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (name VARCHAR, location VARCHAR, novelty VARCHAR)
Question: What is Name, when Location is Tanzania, and when Novelty is Gen Nov?
Here is the SQLite query ... | Here is the SQLite query to answer the question "What is Name, when Location is Tanzania, and when Novelty is Gen Nov?":
```sql
SELECT name FROM table_name_88 WHERE location = "Tanzania" AND novelty = "Gen Nov";
``` | 49,497 | [
{
"from": "human",
"value": " 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, location VARCHAR, novelty VARCHAR)\n\n Question: What is Name, when Location is Tanzania, and when No... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_24 (name VARCHAR, novelty VARCHAR, location VARCHAR, status VARCHAR, authors VARCHAR)
Question: What is Name, when Status is Valid, when Authors is Maisch, whe... | Here is the SQLite query to answer the specified question:
```
SELECT name FROM table_name_24 WHERE status = "Valid" AND authors = "Maisch" AND location = "Tanzania" AND novelty = "Gen Et Sp Nov";
``` | 49,498 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (name VARCHAR, novelty VARCHAR, location VARCHAR, status VARCHAR, authors VARCHAR)\n\n Question: What is Name, when ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (t568a_color VARCHAR, t568b_color VARCHAR)
Question: What is the T568A color for the cable with a white/orange stripe T568B color?
Here is the SQLite query... | You have the correct structure for your SQLite query. Here it is wrapped in the required formatting:
```
SELECT t568a_color FROM table_name_44 WHERE t568b_color = "white/orange stripe";
``` | 49,499 | [
{
"from": "human",
"value": " 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 (t568a_color VARCHAR, t568b_color VARCHAR)\n\n Question: What is the T568A color for the cable with a white/orange s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.