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_77 (home VARCHAR, record VARCHAR)
Question: Where was home with a record of 7–5–2?
Here is the SQLite query to answer to the question: Where was home with a r... | Here is the SQLite query to answer the question of where was home with a record of 7–5–2:
```
SELECT home FROM table_name_77 WHERE record = "7–5–2"
``` | 46,700 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (home VARCHAR, record VARCHAR)\n\n Question: Where was home with a record of 7–5–2?\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_14 (date VARCHAR, record VARCHAR)
Question: On what date was the record 8–6–3?
Here is the SQLite query to answer to the question: On what date was the record... | Your SQLite query is correct. Here it is wrapped in the appropriate code format:
```
SELECT date FROM table_name_14 WHERE record = "8–6–3";
``` | 46,701 | [
{
"from": "human",
"value": " 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 (date VARCHAR, record VARCHAR)\n\n Question: On what date was the record 8–6–3?\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_42 (score VARCHAR, visitor VARCHAR)
Question: What was the score when Pittsburgh was the visitor?
Here is the SQLite query to answer to the question: What was... | Here is the SQLite query to answer the question about the score when Pittsburgh was the visitor:
```
SELECT score FROM table_name_42 WHERE visitor = "pittsburgh";
``` | 46,702 | [
{
"from": "human",
"value": " 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 (score VARCHAR, visitor VARCHAR)\n\n Question: What was the score when Pittsburgh was the visitor?\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_98 (date VARCHAR, home VARCHAR)
Question: On what date were the NY Rangers home?
Here is the SQLite query to answer to the question: On what date were the NY ... | Here is the SQLite query to answer the question: On what date were the NY Rangers home?:
```
SELECT date FROM table_name_98 WHERE home = 'NY Rangers';
``` | 46,703 | [
{
"from": "human",
"value": " 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 (date VARCHAR, home VARCHAR)\n\n Question: On what date were the NY Rangers home?\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_49 (visitor VARCHAR, record VARCHAR)
Question: Which visitor had a record of 7–5–3?
Here is the SQLite query to answer to the question: Which visitor had a re... | Here is the SQLite query to answer the question of which visitor had a record of 7–5–3:
```sql
SELECT visitor FROM table_name_49 WHERE record = "7–5–3"
``` | 46,704 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_49 (visitor VARCHAR, record VARCHAR)\n\n Question: Which visitor had a record of 7–5–3?\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_89 (home VARCHAR, visitor VARCHAR, score VARCHAR)
Question: Who was home when Detroit was visiting with a score of 4 – 1?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question: Who was home when Detroit was visiting with a score of 4 – 1?:
```
SELECT home FROM table_name_89 WHERE visitor = "detroit" AND score = "4 – 1"
``` | 46,705 | [
{
"from": "human",
"value": " 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 (home VARCHAR, visitor VARCHAR, score VARCHAR)\n\n Question: Who was home when Detroit was visiting with a score of ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (date INTEGER, label VARCHAR, format VARCHAR)
Question: What is the earliest date with Great Expectations label with LP format?
Here is the SQLite query to... | Here is the SQLite query to answer the question:
```
SELECT MIN(date) FROM table_name_92 WHERE label = "Great Expectations" AND format = "LP";
``` | 46,706 | [
{
"from": "human",
"value": " 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 (date INTEGER, label VARCHAR, format VARCHAR)\n\n Question: What is the earliest date with Great Expectations label ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (format VARCHAR, catalog VARCHAR)
Question: What format was used for Mobil 1?
Here is the SQLite query to answer to the question: What format was used for ... | Here is the SQLite query to answer the question: What format was used for Mobil 1?:
```
SELECT format FROM table_name_21 WHERE catalog = "Mobil 1";
``` | 46,707 | [
{
"from": "human",
"value": " 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 (format VARCHAR, catalog VARCHAR)\n\n Question: What format was used for Mobil 1?\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_98 (result VARCHAR, competition VARCHAR)
Question: what team won the friendly match
Here is the SQLite query to answer to the question: what team won the frie... | Your SQLite query looks correct for retrieving the result of the friendly match from the specified table. Here's the query wrapped in the requested format:
```
SELECT result FROM table_name_98 WHERE competition = "friendly match"
``` | 46,708 | [
{
"from": "human",
"value": " 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 (result VARCHAR, competition VARCHAR)\n\n Question: what team won the friendly match\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_71 (runner_up VARCHAR, rank VARCHAR, last_win VARCHAR, wins VARCHAR)
Question: Which Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larg... | Here is the SQLite query to find the Runner-up with a Last win smaller than 1998, Wins of 1, and a Rank larger than 13:
```
SELECT runner_up
FROM table_name_71
WHERE last_win < '1998'
AND wins = '1'
AND rank > '13'
``` | 46,709 | [
{
"from": "human",
"value": " 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 (runner_up VARCHAR, rank VARCHAR, last_win VARCHAR, wins VARCHAR)\n\n Question: Which Runner-up has a Last win small... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (last_win VARCHAR, club VARCHAR, wins VARCHAR)
Question: How many Last wins have a Club of mansfield town, and Wins smaller than 1?
Here is the SQLite quer... | Here is the SQLite query formatted correctly to answer the question:
```
SELECT COUNT(last_win)
FROM table_name_42
WHERE club = 'mansfield town' AND wins < '1';
```
Note that I wrapped the string comparison for `wins` in single quotes, as it is stored as a `VARCHAR`. | 46,710 | [
{
"from": "human",
"value": " 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 (last_win VARCHAR, club VARCHAR, wins VARCHAR)\n\n Question: How many Last wins have a Club of mansfield town, 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_8 (driver VARCHAR, date VARCHAR, race VARCHAR)
Question: Which Driver has a Date of 16th september 1951, and a Race of dns?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about which driver has a date of 16th September 1951 and a race of "dns":
```sql
SELECT driver FROM table_name_8 WHERE date = "16th september 1951" AND race = "dns";
``` | 46,711 | [
{
"from": "human",
"value": " 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 (driver VARCHAR, date VARCHAR, race VARCHAR)\n\n Question: Which Driver has a Date of 16th september 1951, and a Race... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (race VARCHAR, event VARCHAR, driver VARCHAR)
Question: At which race did reg parnell win the goodwood trophy?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about at which race Reg Parnell won the Goodwood Trophy:
```
SELECT race FROM table_name_47 WHERE event = "goodwood trophy" AND driver = "reg parnell"
``` | 46,712 | [
{
"from": "human",
"value": " 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 (race VARCHAR, event VARCHAR, driver VARCHAR)\n\n Question: At which race did reg parnell win the goodwood trophy?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (race VARCHAR, date VARCHAR, event VARCHAR)
Question: Which Race has a Date of 31st may 1953, and an Event of grand prix de l'albigeois final?
Here is the ... | Here is the SQLite query to answer the question about which Race has a Date of 31st May 1953 and an Event of grand prix de l'albigeois final:
```
SELECT race FROM table_name_20 WHERE date = "31st may 1953" AND event = "grand prix de l'albigeois final"
``` | 46,713 | [
{
"from": "human",
"value": " 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 (race VARCHAR, date VARCHAR, event VARCHAR)\n\n Question: Which Race has a Date of 31st may 1953, and an Event of gr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (total_cargo__metric_tonnes_ INTEGER, _percentage_change VARCHAR)
Question: What's the average total cargo in metric tonnes that has an 11.8% Change?
Here ... | Your provided SQLite query looks correct for finding the average total cargo in metric tonnes with an 11.8% change. Here's the query, wrapped in the requested formatting:
```
SELECT AVG(total_cargo__metric_tonnes_) FROM table_name_97 WHERE _percentage_change = "11.8%"
``` | 46,714 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (total_cargo__metric_tonnes_ INTEGER, _percentage_change VARCHAR)\n\n Question: What's the average total cargo in me... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (rank INTEGER, airport VARCHAR)
Question: What is the highest rank of Tokyo International Airport?
Here is the SQLite query to answer to the question: What... | Your SQLite query to find the highest rank of Tokyo International Airport is correct. Here's how it looks wrapped in code formatting:
```
SELECT MAX(rank) FROM table_name_72 WHERE airport = "tokyo international airport"
```
This query will retrieve the maximum rank for the specified airport from the table. | 46,715 | [
{
"from": "human",
"value": " 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 (rank INTEGER, airport VARCHAR)\n\n Question: What is the highest rank of Tokyo International Airport?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (lost INTEGER, points VARCHAR, games VARCHAR)
Question: Where the games are smaller than 5 and the points are 6, what is the average lost?
Here is the SQLi... | Here is the SQLite query to answer the question where the games are smaller than 5 and the points are 6, to find the average lost:
```sql
SELECT AVG(lost) FROM table_name_92 WHERE points = '6' AND games < '5';
``` | 46,716 | [
{
"from": "human",
"value": " 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 (lost INTEGER, points VARCHAR, games VARCHAR)\n\n Question: Where the games are smaller than 5 and the points are 6,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (order INTEGER, built VARCHAR)
Question: with build 5/69-6/69 what's the order?
Here is the SQLite query to answer to the question: with build 5/69-6/69 wh... | The provided query is almost correct, but to get the specific order associated with the build "5/69-6/69", if you want the order rather than the sum of orders, you should select the order directly without aggregating. Here is the corrected SQLite query:
```
SELECT order FROM table_name_89 WHERE built = "5/69-6/69"
```... | 46,717 | [
{
"from": "human",
"value": " 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 (order INTEGER, built VARCHAR)\n\n Question: with build 5/69-6/69 what's the order?\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_20 (outcome VARCHAR, score VARCHAR)
Question: Which Outcome has a Score of 6–2, 6–2?
Here is the SQLite query to answer to the question: Which Outcome has a S... | Here is the SQLite query to answer the question: Which Outcome has a Score of 6–2, 6–2?:
```
SELECT outcome FROM table_name_20 WHERE score = "6–2, 6–2";
``` | 46,718 | [
{
"from": "human",
"value": " 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 (outcome VARCHAR, score VARCHAR)\n\n Question: Which Outcome has a Score of 6–2, 6–2?\n\nHere is the SQLite query to... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (date VARCHAR, outcome VARCHAR, score VARCHAR)
Question: Which Date has an Outcome of winner, and a Score of 7–5, 6–4?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding which date has an outcome of "winner" and a score of "7–5, 6–4":
```sql
SELECT date FROM table_name_69 WHERE outcome = 'winner' AND score = '7–5, 6–4';
``` | 46,719 | [
{
"from": "human",
"value": " 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 (date VARCHAR, outcome VARCHAR, score VARCHAR)\n\n Question: Which Date has an Outcome of winner, and a Score of 7–5... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)
Question: Which Tournament has an Outcome of winner, and a Surface of clay, and a Scor... | Here is the SQLite query to answer the question about which Tournament has an Outcome of winner, a Surface of clay, and a Score of 6–4, 6–1:
```
SELECT tournament FROM table_name_23 WHERE outcome = 'winner' AND surface = 'clay' AND score = '6–4, 6–1';
``` | 46,720 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)\n\n Question: Which Tournament has an Outcome ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (outcome VARCHAR, opponent VARCHAR)
Question: What was the outcome in mari andersson's tournament?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about the outcome in Mari Andersson's tournament:
```
SELECT outcome FROM table_name_41 WHERE opponent = "mari andersson";
``` | 46,721 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (outcome VARCHAR, opponent VARCHAR)\n\n Question: What was the outcome in mari andersson's tournament?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (loss VARCHAR, opponent VARCHAR, score VARCHAR)
Question: What's the loss of the game with the opponent of the Nationals with a score of 7-1?
Here is the S... | Here is the SQLite query to answer the question about the loss of the game with the opponent of the Nationals and a score of 7-1:
```
SELECT loss FROM table_name_69 WHERE opponent = "nationals" AND score = "7-1";
``` | 46,722 | [
{
"from": "human",
"value": " 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 (loss VARCHAR, opponent VARCHAR, score VARCHAR)\n\n Question: What's the loss of the game with the opponent of the N... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (opponent VARCHAR, record VARCHAR)
Question: Which opponent has a record of 70-52?
Here is the SQLite query to answer to the question: Which opponent has a... | Here is the SQLite query to answer the question: Which opponent has a record of 70-52?:
```
SELECT opponent FROM table_name_77 WHERE record = "70-52";
``` | 46,723 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (opponent VARCHAR, record VARCHAR)\n\n Question: Which opponent has a record of 70-52?\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_42 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
Question: What is the attendance of the game that has the opponent of The Nationals with a record of ... | Here's the corrected SQLite query to answer the question about the attendance of the game against The Nationals with a record of 68-51:
```sql
SELECT attendance FROM table_name_42 WHERE opponent = "The Nationals" AND record = "68-51";
```
This query retrieves the attendance for the specific game where the opponent i... | 46,724 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, opponent VARCHAR, record VARCHAR)\n\n Question: What is the attendance of the game that has the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (attendance VARCHAR, score VARCHAR)
Question: What's the attendance of the game with a score of 5-4?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the attendance of the game with a score of 5-4:
```
SELECT attendance FROM table_name_52 WHERE score = '5-4';
``` | 46,725 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, score VARCHAR)\n\n Question: What's the attendance of the game with a score of 5-4?\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_60 (opponent VARCHAR, record VARCHAR)
Question: Who's the opponent of the game with the record 64-51?
Here is the SQLite query to answer to the question: Who'... | Here is the SQLite query to answer the question: Who's the opponent of the game with the record 64-51?:
```
SELECT opponent FROM table_name_60 WHERE record = "64-51"
``` | 46,726 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, record VARCHAR)\n\n Question: Who's the opponent of the game with the record 64-51?\n\nHere is th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (opponent VARCHAR, game INTEGER)
Question: Who were the opponents in games before number 54?
Here is the SQLite query to answer to the question: Who were t... | Your SQLite query is correctly structured to answer the question about the opponents in games before number 54. Here it is wrapped in the requested format:
```
SELECT opponent FROM table_name_41 WHERE game < 54;
``` | 46,727 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (opponent VARCHAR, game INTEGER)\n\n Question: Who were the opponents in games before number 54?\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_83 (score VARCHAR, player VARCHAR)
Question: what was the score of bert yancey
Here is the SQLite query to answer to the question: what was the score of bert ... | Here is the SQLite query to answer the question about the score of Bert Yancey:
```
SELECT score FROM table_name_83 WHERE player = "bert yancey";
``` | 46,728 | [
{
"from": "human",
"value": " 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 (score VARCHAR, player VARCHAR)\n\n Question: what was the score of bert yancey\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_22 (length_fuel VARCHAR, quantity VARCHAR)
Question: What is the Length/Fuel of the bus with a Quantity of 30?
Here is the SQLite query to answer to the quest... | The SQLite query you provided is correctly formatted for the given schema and question. Here it is wrapped in triple backticks:
```
SELECT length_fuel FROM table_name_22 WHERE quantity = '30';
```
Note: Make sure to include quotes around '30', as the quantity is specified as a `VARCHAR` type in the schema. | 46,729 | [
{
"from": "human",
"value": " 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 (length_fuel VARCHAR, quantity VARCHAR)\n\n Question: What is the Length/Fuel of the bus with a Quantity of 30?\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_91 (length_fuel VARCHAR, floor_styling VARCHAR, year_built VARCHAR)
Question: What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styl... | The provided query has a slight issue regarding the condition for the year range. When checking for a range like "2000-2003", you should use comparison operators instead of filtering for an exact match. Here’s the corrected SQLite query:
```
SELECT length_fuel
FROM table_name_91
WHERE floor_styling = "high"
AND yea... | 46,730 | [
{
"from": "human",
"value": " 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 (length_fuel VARCHAR, floor_styling VARCHAR, year_built VARCHAR)\n\n Question: What is the Length/Fuel of the bus bu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (venue VARCHAR, competition VARCHAR, goal VARCHAR)
Question: In what Venue was the game with a Friendly Competition and 1 Goal played?
Here is the SQLite q... | Your SQLite query is almost correct, but there is a small issue with how you represent the goal value. The value for the `goal` column should likely be compared as a string since the schema specifies the `goal` field as `VARCHAR`. Here's the corrected query:
```
SELECT venue FROM table_name_29 WHERE competition = 'Fri... | 46,731 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, competition VARCHAR, goal VARCHAR)\n\n Question: In what Venue was the game with a Friendly Competit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (money___ VARCHAR, to_par VARCHAR, score VARCHAR)
Question: What is the amount of money that a +5 to par with a score of 76-69-70-70=285?
Here is the SQLit... | The SQLite query you've provided needs a few adjustments. Specifically, the condition for the score should be formulated correctly to check for equality rather than attempting a mathematical operation in the WHERE clause. The correct way is to directly compare the score to the string you want. Here is the updated query... | 46,732 | [
{
"from": "human",
"value": " 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 (money___ VARCHAR, to_par VARCHAR, score VARCHAR)\n\n Question: What is the amount of money that a +5 to par with a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR)
Question: What is the name of the player with a 71-69-71-69=280 score?
Here is the SQLite query to answer to the question: ... | It looks like there's a small misunderstanding in the query syntax. The `score` field in the database is stored as a string (VARCHAR), and the calculation you're attempting is incorrectly formatted. Instead, you should look for an exact match to the score string '280' in your query.
Here’s the corrected SQLite query:
... | 46,733 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR)\n\n Question: What is the name of the player with a 71-69-71-69=280 score?\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_95 (game__number INTEGER, home VARCHAR, points VARCHAR)
Question: Which average Game # has a Home of san jose, and Points smaller than 71?
Here is the SQLite ... | Your SQL query is almost correct, but since the `points` column is defined as `VARCHAR`, we need to cast it to an integer for the comparison. Here's the modified query:
```
SELECT AVG(game__number) FROM table_name_95 WHERE home = "san jose" AND CAST(points AS INTEGER) < 71
``` | 46,734 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (game__number INTEGER, home VARCHAR, points VARCHAR)\n\n Question: Which average Game # has a Home of san jose, and ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (home VARCHAR, game__number VARCHAR)
Question: Which Home has a Game # of 59?
Here is the SQLite query to answer to the question: Which Home has a Game # o... | The SQLite query to find out which Home has a Game # of 59 is as follows:
```
SELECT home FROM table_name_27 WHERE game__number = '59'
```
(Note that the game number is compared as a string since the column is defined as VARCHAR.) | 46,735 | [
{
"from": "human",
"value": " 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 (home VARCHAR, game__number VARCHAR)\n\n Question: Which Home has a Game # of 59?\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_99 (visitor VARCHAR, game__number VARCHAR, date VARCHAR)
Question: Which Visitor has a Game # larger than 62, and a Date of february 25?
Here is the SQLite qu... | Here is the SQLite query to answer the question:
```
SELECT visitor FROM table_name_99 WHERE game__number > 62 AND date = "february 25"
``` | 46,736 | [
{
"from": "human",
"value": " 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 (visitor VARCHAR, game__number VARCHAR, date VARCHAR)\n\n Question: Which Visitor has a Game # larger than 62, and a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_93 (owns VARCHAR, delivery_date VARCHAR)
Question: with delivery date of 2001 2001 what is the owns?
Here is the SQLite query to answer to the question: with ... | Here is the SQLite query to answer the question:
```
SELECT owns FROM table_name_93 WHERE delivery_date = "2001 2001";
``` | 46,737 | [
{
"from": "human",
"value": " 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 (owns VARCHAR, delivery_date VARCHAR)\n\n Question: with delivery date of 2001 2001 what is the owns?\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_35 (gross_tonnage INTEGER, delivery_date VARCHAR)
Question: with delivery date of 2001 2001 what is gross tonnage?
Here is the SQLite query to answer to the q... | Here's the SQLite query you can use to retrieve the average gross tonnage with a delivery date of "2001 2001":
```
SELECT AVG(gross_tonnage) FROM table_name_35 WHERE delivery_date = '2001 2001';
``` | 46,738 | [
{
"from": "human",
"value": " 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 (gross_tonnage INTEGER, delivery_date VARCHAR)\n\n Question: with delivery date of 2001 2001 what is gross tonnage?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (owns VARCHAR, delivery_date VARCHAR)
Question: with delivery date 1997 1997 what is the owns?
Here is the SQLite query to answer to the question: with del... | Here is the SQLite query to answer the question regarding the `owns` with the delivery date "1997 1997":
```
SELECT owns FROM table_name_65 WHERE delivery_date = "1997 1997"
``` | 46,739 | [
{
"from": "human",
"value": " 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 (owns VARCHAR, delivery_date VARCHAR)\n\n Question: with delivery date 1997 1997 what is the owns?\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_5 (present_conference VARCHAR, location VARCHAR)
Question: Which conference does the school from Gainesville, Florida, play in?
Here is the SQLite query to an... | Your SQLite query is correctly structured to retrieve the conference associated with the location "Gainesville, Florida." However, it's important to ensure that the case and format of the location match exactly what is stored in the database. Assuming "Gainesville, Florida" is properly formatted in the database as "gai... | 46,740 | [
{
"from": "human",
"value": " 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 (present_conference VARCHAR, location VARCHAR)\n\n Question: Which conference does the school from Gainesville, Flori... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (enrollment VARCHAR, nickname VARCHAR, founded VARCHAR)
Question: What is the number of enrollments for teams named the Buccaneers founded before 1911?
Her... | Here is the SQLite query to answer the question:
```
SELECT COUNT(enrollment) FROM table_name_23 WHERE nickname = "Buccaneers" AND founded < '1911';
``` | 46,741 | [
{
"from": "human",
"value": " 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 (enrollment VARCHAR, nickname VARCHAR, founded VARCHAR)\n\n Question: What is the number of enrollments for teams na... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (chart_no INTEGER, title VARCHAR)
Question: What is the highest chart number for the song Yardbirds aka Roger the Engineer?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the highest chart number for the song "Yardbirds aka Roger the Engineer":
```sql
SELECT MAX(chart_no) FROM table_name_17 WHERE title = "Yardbirds aka Roger the Engineer";
``` | 46,742 | [
{
"from": "human",
"value": " 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 (chart_no INTEGER, title VARCHAR)\n\n Question: What is the highest chart number for the song Yardbirds aka Roger th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (chart_no INTEGER, date VARCHAR)
Question: What is the average chart number for 11/1965?
Here is the SQLite query to answer to the question: What is the av... | Here is the SQLite query to answer the question about the average chart number for 11/1965:
```
SELECT AVG(chart_no) FROM table_name_97 WHERE date = "11/1965"
``` | 46,743 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (chart_no INTEGER, date VARCHAR)\n\n Question: What is the average chart number for 11/1965?\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_84 (origin VARCHAR, chart_no VARCHAR)
Question: What is origin country for a title that charted at 52?
Here is the SQLite query to answer to the question: Wha... | Your SQLite query is almost correct, but since `chart_no` is a VARCHAR type, you should treat the value `52` as a string. Here is the corrected query wrapped in code formatting:
```
SELECT origin FROM table_name_84 WHERE chart_no = '52'
``` | 46,744 | [
{
"from": "human",
"value": " 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 (origin VARCHAR, chart_no VARCHAR)\n\n Question: What is origin country for a title that charted at 52?\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_5 (record VARCHAR, game VARCHAR, opponent VARCHAR)
Question: What is the Record of the Game after 40 with New York Rangers as Opponent?
Here is the SQLite que... | Here is the SQLite query to answer the question:
```
SELECT record FROM table_name_5 WHERE game > 40 AND opponent = "new york rangers";
``` | 46,745 | [
{
"from": "human",
"value": " 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 (record VARCHAR, game VARCHAR, opponent VARCHAR)\n\n Question: What is the Record of the Game after 40 with New York ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (date VARCHAR, opponent_in_the_final VARCHAR)
Question: When did Adam Thompson play in the final?
Here is the SQLite query to answer to the question: When ... | It looks like the query you provided almost answers the question, but it seems to check for "Adam Thompson" as an opponent instead of the player who played in the final. Assuming Adam Thompson was one of the participants in the final, we need to find out the dates when he played in the final without limiting it to bein... | 46,746 | [
{
"from": "human",
"value": " 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 (date VARCHAR, opponent_in_the_final VARCHAR)\n\n Question: When did Adam Thompson play in the final?\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_84 (date VARCHAR, tournament VARCHAR)
Question: When was the Lagos tournament?
Here is the SQLite query to answer to the question: When was the Lagos tourname... | Here is the SQLite query to answer the question: When was the Lagos tournament?:
```
SELECT date FROM table_name_84 WHERE tournament = "Lagos";
``` | 46,747 | [
{
"from": "human",
"value": " 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, tournament VARCHAR)\n\n Question: When was the Lagos tournament?\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_28 (score VARCHAR, opponent VARCHAR, date VARCHAR)
Question: What was the score against the phillies on may 24?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question: What was the score against the phillies on May 24?:
```
SELECT score FROM table_name_28 WHERE opponent = "phillies" AND date = "may 24";
``` | 46,748 | [
{
"from": "human",
"value": " 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 (score VARCHAR, opponent VARCHAR, date VARCHAR)\n\n Question: What was the score against the phillies on may 24?\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_13 (attendance VARCHAR, opponent VARCHAR)
Question: Opponent of new england patriots had what attendance?
Here is the SQLite query to answer to the question: ... | Here is the corrected SQLite query to answer the question about the attendance of the opponent of the New England Patriots:
```sql
SELECT attendance FROM table_name_13 WHERE opponent = "new england patriots";
```
However, the question asks for the attendance of "the opponent" of the New England Patriots, which might ... | 46,749 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (attendance VARCHAR, opponent VARCHAR)\n\n Question: Opponent of new england patriots had what attendance?\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_58 (opponent VARCHAR, attendance VARCHAR)
Question: Attendance of 55,340 had what opponent?
Here is the SQLite query to answer to the question: Attendance of ... | Here is the SQLite query to answer the question regarding the attendance of 55,340:
```
SELECT opponent FROM table_name_58 WHERE attendance = "55,340";
``` | 46,750 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (opponent VARCHAR, attendance VARCHAR)\n\n Question: Attendance of 55,340 had what opponent?\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_12 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)
Question: Week smaller than 4, and a Game Site of rca dome, and a Opponent of new england ... | Here is the SQLite query to answer the question regarding the specified conditions:
```
SELECT date FROM table_name_12 WHERE week < 4 AND game_site = "rca dome" AND opponent = "new england patriots";
``` | 46,751 | [
{
"from": "human",
"value": " 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 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)\n\n Question: Week smaller than 4, and a Game Site... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (result VARCHAR, record VARCHAR)
Question: Record of 0–8 had what result?
Here is the SQLite query to answer to the question: Record of 0–8 had what result... | Your SQLite query looks correct for the question asked. Here it is wrapped in the appropriate code block:
```
SELECT result FROM table_name_33 WHERE record = "0–8";
```
This query selects the `result` from `table_name_33` where the `record` matches "0–8". | 46,752 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (result VARCHAR, record VARCHAR)\n\n Question: Record of 0–8 had what result?\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_25 (week INTEGER, record VARCHAR)
Question: Record of 0–8 had what lowest week?
Here is the SQLite query to answer to the question: Record of 0–8 had what low... | Your SQL query is correct for finding the lowest week associated with the record "0–8". Here it is wrapped in code formatting:
```
SELECT MIN(week) FROM table_name_25 WHERE record = "0–8";
``` | 46,753 | [
{
"from": "human",
"value": " 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 (week INTEGER, record VARCHAR)\n\n Question: Record of 0–8 had what lowest week?\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_51 (score VARCHAR, visitor VARCHAR)
Question: What was the score when the visitor was pittsburgh?
Here is the SQLite query to answer to the question: What was... | Here is the SQLite query to answer the question of what the score was when the visitor was Pittsburgh:
```
SELECT score FROM table_name_51 WHERE visitor = 'pittsburgh';
``` | 46,754 | [
{
"from": "human",
"value": " 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 (score VARCHAR, visitor VARCHAR)\n\n Question: What was the score when the visitor was pittsburgh?\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_18 (decision VARCHAR, date VARCHAR)
Question: What was the decision on November 26?
Here is the SQLite query to answer to the question: What was the decision ... | Here is the SQLite query to answer the question about the decision on November 26:
```sql
SELECT decision FROM table_name_18 WHERE date = "november 26";
``` | 46,755 | [
{
"from": "human",
"value": " 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 (decision VARCHAR, date VARCHAR)\n\n Question: What was the decision on November 26?\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_63 (usn_2013 INTEGER, cnn_2011 VARCHAR, bw_2013 VARCHAR, forbes_2011 VARCHAR)
Question: What is the USN 2013 ranking with a BW 2013 ranking less than 1000, a F... | Here is the SQLite query to answer the question regarding the USN 2013 ranking with the specified conditions:
```sql
SELECT usn_2013
FROM table_name_63
WHERE bw_2013 < 1000 AND forbes_2011 > 17 AND cnn_2011 < 13;
``` | 46,756 | [
{
"from": "human",
"value": " 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 (usn_2013 INTEGER, cnn_2011 VARCHAR, bw_2013 VARCHAR, forbes_2011 VARCHAR)\n\n Question: What is the USN 2013 rankin... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (ae_2011 INTEGER, forbes_2011 VARCHAR, ft_2011 VARCHAR)
Question: What is the average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking... | Here is the SQLite query to answer your question, wrapped in the appropriate code block:
```
SELECT AVG(ae_2011) FROM table_name_21 WHERE forbes_2011 = '24' AND ft_2011 < '44';
```
Note: In SQLite, comparisons on VARCHAR fields should be done by enclosing the values in quotes, so '24' and '44' are used as strings. | 46,757 | [
{
"from": "human",
"value": " 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 (ae_2011 INTEGER, forbes_2011 VARCHAR, ft_2011 VARCHAR)\n\n Question: What is the average AE 2011 ranking with a For... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (opponent VARCHAR, time__et_ VARCHAR, week VARCHAR, game_site VARCHAR)
Question: Who did they play at lincoln financial field at 8:30 (ET) after week 14?
H... | Here is the SQLite query to answer the question about who they played at Lincoln Financial Field at 8:30 (ET) after week 14:
```
SELECT opponent FROM table_name_88 WHERE week > 14 AND game_site = "lincoln financial field" AND time__et_ = "8:30";
``` | 46,758 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, time__et_ VARCHAR, week VARCHAR, game_site VARCHAR)\n\n Question: Who did they play at lincoln fi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (rank INTEGER, gold INTEGER)
Question: What is the average rank for nations with fewer than 0 gold medals?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question regarding the average rank for nations with fewer than 0 gold medals:
```
SELECT AVG(rank) FROM table_name_86 WHERE gold < 0
``` | 46,759 | [
{
"from": "human",
"value": " 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 (rank INTEGER, gold INTEGER)\n\n Question: What is the average rank for nations with fewer than 0 gold medals?\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_8 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
Question: What is the total number of bronze medals with more than 1 medal total and fewer than 1 silver meda... | The SQLite query you provided needs a small adjustment to properly compare the values in the `total` and `silver` columns, as they are defined as `VARCHAR`. You'll need to use the `CAST` function to convert these string values to integers for correct numerical comparison. Here's the revised query:
```sql
SELECT COUNT(... | 46,760 | [
{
"from": "human",
"value": " 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 (bronze VARCHAR, total VARCHAR, silver VARCHAR)\n\n Question: What is the total number of bronze medals with more tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_43 (rank INTEGER, silver INTEGER)
Question: What is the highest rank of a nation with fewer than 0 silver medals?
Here is the SQLite query to answer to the qu... | Your SQLite query is correct for finding the highest rank of a nation with fewer than 0 silver medals. Here’s the query wrapped as requested:
```
SELECT MAX(rank) FROM table_name_43 WHERE silver < 0
``` | 46,761 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (rank INTEGER, silver INTEGER)\n\n Question: What is the highest rank of a nation with fewer than 0 silver medals?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (bats VARCHAR, surname VARCHAR, first VARCHAR, throws VARCHAR)
Question: Which Bats have a First of josh, and Throws of r, and a Surname of cakebread?
Here... | Here is the SQLite query to answer the question:
```
SELECT bats FROM table_name_90 WHERE first = "josh" AND throws = "r" AND surname = "cakebread"
``` | 46,762 | [
{
"from": "human",
"value": " 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 (bats VARCHAR, surname VARCHAR, first VARCHAR, throws VARCHAR)\n\n Question: Which Bats have a First of josh, 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_25 (dob VARCHAR, first VARCHAR, throws VARCHAR, position VARCHAR)
Question: Which DOB has Throws of r, and a Position of c, and a First of torey?
Here is the ... | Your SQLite query is correctly formulated to answer the question based on the given schema. Here it is wrapped in code formatting for clarity:
```
SELECT dob FROM table_name_25 WHERE throws = "r" AND position = "c" AND first = "torey";
``` | 46,763 | [
{
"from": "human",
"value": " 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 (dob VARCHAR, first VARCHAR, throws VARCHAR, position VARCHAR)\n\n Question: Which DOB has Throws of r, and a Positi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_40 (dob VARCHAR, surname VARCHAR)
Question: Which DOB has a Surname of cresswell?
Here is the SQLite query to answer to the question: Which DOB has a Surname ... | Here is the SQLite query to answer the question regarding which DOB has a Surname of "cresswell":
```
SELECT dob FROM table_name_40 WHERE surname = "cresswell";
``` | 46,764 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_40 (dob VARCHAR, surname VARCHAR)\n\n Question: Which DOB has a Surname of cresswell?\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_58 (dob VARCHAR, first VARCHAR, position VARCHAR, bats VARCHAR, throws VARCHAR)
Question: Which DOB has Bats of r, and Throws of r, and a Position of rhp, and ... | Here is the SQLite query to answer the question you provided:
```
SELECT dob FROM table_name_58 WHERE bats = "r" AND throws = "r" AND position = "rhp" AND first = "john"
``` | 46,765 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (dob VARCHAR, first VARCHAR, position VARCHAR, bats VARCHAR, throws VARCHAR)\n\n Question: Which DOB has Bats of r, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (position VARCHAR, surname VARCHAR)
Question: Which Position did Ruzic play?
Here is the SQLite query to answer to the question: Which Position did Ruzic p... | Here is the SQLite query to answer the question about which position Ruzic played:
```
SELECT position FROM table_name_30 WHERE surname = "ruzic";
``` | 46,766 | [
{
"from": "human",
"value": " 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 (position VARCHAR, surname VARCHAR)\n\n Question: Which Position did Ruzic play?\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_77 (throws VARCHAR, first VARCHAR)
Question: How many throws did Torey have?
Here is the SQLite query to answer to the question: How many throws did Torey hav... | To count the number of throws Torey has, you should use the `COUNT` function in your SQL query. Here’s the correct query wrapped in the specified format:
```
SELECT COUNT(throws) FROM table_name_77 WHERE first = "torey";
``` | 46,767 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (throws VARCHAR, first VARCHAR)\n\n Question: How many throws did Torey have?\n\nHere is the SQLite query to answer ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (ties INTEGER, wins VARCHAR, losses VARCHAR, starts VARCHAR)
Question: Which Ties is the highest one that has Losses smaller than 9, and Starts of 26, and W... | Your SQLite query is correctly formulated to retrieve the highest number of ties that meet the specified conditions. Here it is wrapped properly:
```
SELECT MAX(ties) FROM table_name_65 WHERE losses < 9 AND starts = 26 AND wins < 21
``` | 46,768 | [
{
"from": "human",
"value": " 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 (ties INTEGER, wins VARCHAR, losses VARCHAR, starts VARCHAR)\n\n Question: Which Ties is the highest one that has Lo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (win__percentage VARCHAR, name VARCHAR, wins VARCHAR)
Question: Which Win % has a Name of tony rice, and Wins smaller than 28?
Here is the SQLite query to ... | Your query is almost correct, but you're looking for the `win__percentage` associated with a specific `name` and a condition on `wins`. Instead of using `COUNT(win__percentage)`, you should select `win__percentage` directly. Also, you'll need to ensure that the `wins` column is compared as an integer rather than a stri... | 46,769 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (win__percentage VARCHAR, name VARCHAR, wins VARCHAR)\n\n Question: Which Win % has a Name of tony rice, and Wins sm... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, win__percentage VARCHAR, name VARCHAR)
Question: Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mi... | Your SQLite query looks almost correct, but there's a small issue regarding the data type of the `ties` column, which is defined as `VARCHAR`. You should ensure that you're comparing it as an integer, so the value should be cast appropriately. Here's the revised version of your query with that consideration:
```sql
SE... | 46,770 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, win__percentage VARCHAR, name VARCHAR)\n\n Question: Which Wins have a Win % smaller th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (losses VARCHAR, name VARCHAR)
Question: How many Losses have a Name of blair kiel?
Here is the SQLite query to answer to the question: How many Losses hav... | Here is the SQLite query to answer the question: How many Losses have a Name of blair kiel?:
```
SELECT COUNT(losses) FROM table_name_45 WHERE name = "blair kiel"
``` | 46,771 | [
{
"from": "human",
"value": " 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 (losses VARCHAR, name VARCHAR)\n\n Question: How many Losses have a Name of blair kiel?\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_39 (losses INTEGER, name VARCHAR)
Question: Which Losses have a Name of jimmy clausen?
Here is the SQLite query to answer to the question: Which Losses have a... | Here is the SQLite query to answer the question regarding the losses of "jimmy clausen":
```
SELECT losses FROM table_name_39 WHERE name = "jimmy clausen"
``` | 46,772 | [
{
"from": "human",
"value": " 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 (losses INTEGER, name VARCHAR)\n\n Question: Which Losses have a Name of jimmy clausen?\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_8 (attendance VARCHAR, date VARCHAR)
Question: what is the number of attendance on june 24
Here is the SQLite query to answer to the question: what is the num... | Here is the SQLite query to answer the question: what is the number of attendance on June 24:
```
SELECT COUNT(attendance) FROM table_name_8 WHERE date = "june 24";
``` | 46,773 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, date VARCHAR)\n\n Question: what is the number of attendance on june 24\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_95 (date VARCHAR, home VARCHAR)
Question: Home of dallas happened on what date?
Here is the SQLite query to answer to the question: Home of dallas happened on... | ```sql
SELECT date FROM table_name_95 WHERE home = "dallas";
``` | 46,774 | [
{
"from": "human",
"value": " 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, home VARCHAR)\n\n Question: Home of dallas happened on what date?\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_39 (date VARCHAR, home VARCHAR)
Question: Home of buffalo happened on what date?
Here is the SQLite query to answer to the question: Home of buffalo happened ... | Here is the SQLite query to answer the question regarding the home of buffalo:
```
SELECT date FROM table_name_39 WHERE home = "buffalo";
``` | 46,775 | [
{
"from": "human",
"value": " 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 (date VARCHAR, home VARCHAR)\n\n Question: Home of buffalo happened on what date?\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_16 (attendance INTEGER, visitor VARCHAR, date VARCHAR)
Question: Visitor of dallas, and a Date of june 12 had what highest attendance?
Here is the SQLite quer... | Here is the SQLite query to answer the question about the highest attendance for the visitor of Dallas on June 12:
```
SELECT MAX(attendance) FROM table_name_16 WHERE visitor = "dallas" AND date = "june 12"
``` | 46,776 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, visitor VARCHAR, date VARCHAR)\n\n Question: Visitor of dallas, and a Date of june 12 had what ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (date VARCHAR, pos VARCHAR, venue VARCHAR)
Question: On which date was the position less than 4 at Piraeus?
Here is the SQLite query to answer to the quest... | Your SQLite query looks correct for the given question. Here it is properly formatted:
```
SELECT date FROM table_name_27 WHERE pos < 4 AND venue = "piraeus";
```
This query will return the dates when the position is less than 4 at the venue "Piraeus". | 46,777 | [
{
"from": "human",
"value": " 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 (date VARCHAR, pos VARCHAR, venue VARCHAR)\n\n Question: On which date was the position less than 4 at Piraeus?\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_39 (team VARCHAR, laps VARCHAR, points VARCHAR)
Question: Which team had 64 laps and 13 points?
Here is the SQLite query to answer to the question: Which team... | Here is the SQLite query to answer the question: Which team had 64 laps and 13 points?:
```
SELECT team FROM table_name_39 WHERE laps = '64' AND points = '13'
``` | 46,778 | [
{
"from": "human",
"value": " 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 (team VARCHAR, laps VARCHAR, points VARCHAR)\n\n Question: Which team had 64 laps and 13 points?\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_90 (laps VARCHAR, time_retired VARCHAR)
Question: How many laps did the team with a time/retired of +1.906 have?
Here is the SQLite query to answer to the que... | Your provided SQLite query has a small issue. The `COUNT(laps)` function will return the number of rows, but if you are looking for the number of laps for a specific team, you should select the `laps` field directly. Here’s the corrected version of the query, ensuring we retrieve the laps count for the team with the sp... | 46,779 | [
{
"from": "human",
"value": " 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 (laps VARCHAR, time_retired VARCHAR)\n\n Question: How many laps did the team with a time/retired of +1.906 have?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (time_retired VARCHAR, grid VARCHAR)
Question: What is the time/retired of the team with a grid of 14?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about the time retired of the team with a grid of 14:
```
SELECT time_retired FROM table_name_62 WHERE grid = '14'
```
(Note: In the context of your table schema where `grid` is a VARCHAR, you should compare it as a string by using quotes around the number 14.) | 46,780 | [
{
"from": "human",
"value": " 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 (time_retired VARCHAR, grid VARCHAR)\n\n Question: What is the time/retired of the team with a grid of 14?\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 (grid INTEGER, laps VARCHAR, team VARCHAR, points VARCHAR)
Question: What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?
Here... | Here is the SQLite query to answer the question about the lowest grid of PKV Racing, which had 13 points and less than 64 laps:
```
SELECT MIN(grid) FROM table_name_28 WHERE team = "pkv racing" AND points <= 13 AND laps < 64;
```
Please note that I used `points <= 13` instead of `points = 13` to account for any entr... | 46,781 | [
{
"from": "human",
"value": " 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 (grid INTEGER, laps VARCHAR, team VARCHAR, points VARCHAR)\n\n Question: What is the lowest grid of pkv racing, whic... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (grid VARCHAR, time_retired VARCHAR)
Question: What is the total grid of the team with a time/retired of +7.346?
Here is the SQLite query to answer to the ... | Your query is almost correct, but the expression for the time_retired should not include the plus sign (`+`) since it is likely stored as a string in the database. Here is the corrected version of your SQLite query:
```
SELECT COUNT(grid) FROM table_name_53 WHERE time_retired = "7.346"
```
Make sure to use correct d... | 46,782 | [
{
"from": "human",
"value": " 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 (grid VARCHAR, time_retired VARCHAR)\n\n Question: What is the total grid of the team with a time/retired of +7.346?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_56 (grid INTEGER, team VARCHAR, driver VARCHAR)
Question: What is the grid of pkv racing with the driver oriol servià?
Here is the SQLite query to answer to t... | Here is the corrected SQLite query to answer the question regarding the grid of pkv racing with the driver oriol servià:
```
SELECT grid FROM table_name_56 WHERE team = "pkv racing" AND driver = "oriol servià"
```
Note: The original query used `SUM(grid)`, which is unnecessary if you are looking for the specific gri... | 46,783 | [
{
"from": "human",
"value": " 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 (grid INTEGER, team VARCHAR, driver VARCHAR)\n\n Question: What is the grid of pkv racing with the driver oriol serv... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (attribute VARCHAR, category VARCHAR, cancelable VARCHAR, bubbles VARCHAR)
Question: When Cancelable of yes, bubble of yes and a Category of keyboard, what ... | Here is the SQLite query to answer the question you provided:
```
SELECT attribute FROM table_name_52 WHERE cancelable = "yes" AND bubbles = "yes" AND category = "keyboard"
``` | 46,784 | [
{
"from": "human",
"value": " 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 (attribute VARCHAR, category VARCHAR, cancelable VARCHAR, bubbles VARCHAR)\n\n Question: When Cancelable of yes, bub... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (cancelable VARCHAR, type VARCHAR, bubbles VARCHAR, category VARCHAR)
Question: When Bubbles of no, and a Category of miscellaneous, and a Type of propertyc... | Here is the SQLite query that answers your question:
```
SELECT cancelable FROM table_name_97 WHERE bubbles = "no" AND category = "miscellaneous" AND type = "propertychange"
``` | 46,785 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (cancelable VARCHAR, type VARCHAR, bubbles VARCHAR, category VARCHAR)\n\n Question: When Bubbles of no, and a Catego... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (category VARCHAR, type VARCHAR)
Question: When Type was rowexit what was the Category?
Here is the SQLite query to answer to the question: When Type was r... | Here is the SQLite query to answer the question: When Type was rowexit what was the Category?:
```
SELECT category FROM table_name_88 WHERE type = 'rowexit';
``` | 46,786 | [
{
"from": "human",
"value": " 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 (category VARCHAR, type VARCHAR)\n\n Question: When Type was rowexit what was the Category?\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_72 (category VARCHAR, cancelable VARCHAR, type VARCHAR)
Question: When Cancelable of yes, and a Type of drag, what was the Category?
Here is the SQLite query ... | Here is the SQLite query to answer the question:
```
SELECT category FROM table_name_72 WHERE cancelable = "yes" AND type = "drag"
``` | 46,787 | [
{
"from": "human",
"value": " 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 (category VARCHAR, cancelable VARCHAR, type VARCHAR)\n\n Question: When Cancelable of yes, and a Type of drag, what ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (attribute VARCHAR, type VARCHAR, category VARCHAR, bubbles VARCHAR, cancelable VARCHAR)
Question: When Event has Bubbles of yes, Cancelable of yes, Categor... | Here's the SQLite query you need to answer the question:
```
SELECT attribute FROM table_name_41 WHERE bubbles = "yes" AND cancelable = "yes" AND category = "mouse" AND type = "contextmenu"
``` | 46,788 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (attribute VARCHAR, type VARCHAR, category VARCHAR, bubbles VARCHAR, cancelable VARCHAR)\n\n Question: When Event ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (attribute VARCHAR, type VARCHAR)
Question: Let's say Type is of datasetcomplete, what is the Attribute?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question "Let's say Type is of datasetcomplete, what is the Attribute?":
```sql
SELECT attribute FROM table_name_62 WHERE type = "datasetcomplete";
``` | 46,789 | [
{
"from": "human",
"value": " 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 (attribute VARCHAR, type VARCHAR)\n\n Question: Let's say Type is of datasetcomplete, what is the Attribute?\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_71 (name VARCHAR, former_local_authority VARCHAR)
Question: What is the name of the parish that has a former local authority of St Neots urban district?
Here ... | Here's the SQLite query you can use to find the name of the parish that has a former local authority of St Neots urban district:
```
SELECT name FROM table_name_71 WHERE former_local_authority = "St Neots urban district";
``` | 46,790 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (name VARCHAR, former_local_authority VARCHAR)\n\n Question: What is the name of the parish that has a former local ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (district VARCHAR, former_local_authority VARCHAR)
Question: What district is the parish who had the South Cambridgeshire rural district as the former local... | Here is the SQLite query to answer the question regarding the district with South Cambridgeshire rural district as the former local authority:
```sql
SELECT district FROM table_name_71 WHERE former_local_authority = "South Cambridgeshire rural district";
``` | 46,791 | [
{
"from": "human",
"value": " 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 (district VARCHAR, former_local_authority VARCHAR)\n\n Question: What district is the parish who had the South Cambr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (district VARCHAR, population VARCHAR, name VARCHAR)
Question: What district is St Martin's Without parish in with a population less than 75?
Here is the S... | Here is the SQLite query to answer the question regarding the district of St Martin's Without parish with a population less than 75:
```
SELECT district FROM table_name_73 WHERE population < 75 AND LOWER(name) = "st martin's without";
``` | 46,792 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_73 (district VARCHAR, population VARCHAR, name VARCHAR)\n\n Question: What district is St Martin's Without parish in wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (home VARCHAR, guest VARCHAR)
Question: Who was the home team when FK kom were the guests?
Here is the SQLite query to answer to the question: Who was the ... | Here is the SQLite query to answer the question:
```
SELECT home FROM table_name_84 WHERE guest = "fk kom";
``` | 46,793 | [
{
"from": "human",
"value": " 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 (home VARCHAR, guest VARCHAR)\n\n Question: Who was the home team when FK kom were the guests?\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_65 (venue VARCHAR, guest VARCHAR)
Question: What venue was the match against the guest team, FK ibar, played at?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the venue where the match against the guest team, FK ibar, was played:
```
SELECT venue FROM table_name_65 WHERE guest = "FK ibar"
``` | 46,794 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, guest VARCHAR)\n\n Question: What venue was the match against the guest team, FK ibar, played at?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (score VARCHAR, home VARCHAR, date VARCHAR)
Question: What's the Score with a Home of Scotland and Date of 24 February?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_12 WHERE home = "Scotland" AND date = "24 February";
``` | 46,795 | [
{
"from": "human",
"value": " 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 (score VARCHAR, home VARCHAR, date VARCHAR)\n\n Question: What's the Score with a Home of Scotland and Date of 24 Fe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_11 (round INTEGER, pick VARCHAR, position VARCHAR, player VARCHAR)
Question: What round was john sutro, tackle, drafter with a pick lower than 79?
Here is the... | The query you provided has some issues; specifically, it uses `SUM(round)` which may not be necessary if you are only looking for the specific round that matches the criteria. It also does not clarify that it should be selecting the distinct round or just the round at which the specific conditions are met. Here’s a cor... | 46,796 | [
{
"from": "human",
"value": " 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 (round INTEGER, pick VARCHAR, position VARCHAR, player VARCHAR)\n\n Question: What round was john sutro, tackle, dra... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (pick VARCHAR, player VARCHAR)
Question: What pick was roger holdinsky?
Here is the SQLite query to answer to the question: What pick was roger holdinsky?:... | Here is the SQLite query to answer the question: What pick was roger holdinsky?:
```
SELECT pick FROM table_name_26 WHERE player = "roger holdinsky"
``` | 46,797 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (pick VARCHAR, player VARCHAR)\n\n Question: What pick was roger holdinsky?\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_51 (pick INTEGER, position VARCHAR, player VARCHAR)
Question: When was chuck morris, back, drafted?
Here is the SQLite query to answer to the question: When w... | Here is the SQLite query to answer the question: When was chuck morris, back, drafted?:
```
SELECT MIN(pick) FROM table_name_51 WHERE position = "back" AND player = "chuck morris"
``` | 46,798 | [
{
"from": "human",
"value": " 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 (pick INTEGER, position VARCHAR, player VARCHAR)\n\n Question: When was chuck morris, back, drafted?\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_5 (round INTEGER, school VARCHAR)
Question: What wss the average round drafted for xavier players?
Here is the SQLite query to answer to the question: What ws... | Here is the SQLite query to answer the question regarding the average round drafted for Xavier players:
```
SELECT AVG(round) FROM table_name_5 WHERE school = "xavier";
``` | 46,799 | [
{
"from": "human",
"value": " 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 (round INTEGER, school VARCHAR)\n\n Question: What wss the average round drafted for xavier players?\n\nHere is the S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.