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_25 (date VARCHAR, week VARCHAR)
Question: What was the date of week 3?
Here is the SQLite query to answer to the question: What was the date of week 3?:
```
S... | ```sql
SELECT date FROM table_name_25 WHERE week = '3'
``` | 12,600 | [
{
"from": "human",
"value": " 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 (date VARCHAR, week VARCHAR)\n\n Question: What was the date of week 3?\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_30 (date VARCHAR, opponent VARCHAR)
Question: On what date was the opponent the Miami Dolphins?
Here is the SQLite query to answer to the question: On what da... | Your SQLite query looks good! Here is the wrapped code for clarity:
```
SELECT date FROM table_name_30 WHERE opponent = "miami dolphins";
```
This query selects the dates from `table_name_30` where the opponent is "miami dolphins". | 12,601 | [
{
"from": "human",
"value": " 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 (date VARCHAR, opponent VARCHAR)\n\n Question: On what date was the opponent the Miami Dolphins?\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_78 (week INTEGER, attendance VARCHAR)
Question: Which week was the team's bye week?
Here is the SQLite query to answer to the question: Which week was the tea... | Here is the SQLite query to answer the question regarding which week was the team's bye week:
```
SELECT week FROM table_name_78 WHERE attendance = "bye";
``` | 12,602 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (week INTEGER, attendance VARCHAR)\n\n Question: Which week was the team's bye week?\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_66 (result VARCHAR, week VARCHAR)
Question: What was the result of the week 13 game?
Here is the SQLite query to answer to the question: What was the result o... | The SQLite query you provided looks almost correct, but you need to ensure that the week is treated as a string since the `week` column is defined as VARCHAR. Here’s the corrected query wrapped in the requested format:
```
SELECT result FROM table_name_66 WHERE week = '13'
``` | 12,603 | [
{
"from": "human",
"value": " 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 (result VARCHAR, week VARCHAR)\n\n Question: What was the result of the week 13 game?\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 (range__varies_with_payload_weight_ VARCHAR, name_designation VARCHAR)
Question: What is the range (varies by payload weight) for Shahab-4?
Here is the SQL... | Your SQLite query is correctly formulated to retrieve the range for "Shahab-4" from the specified table. Here it is wrapped as per your request:
```
SELECT range__varies_with_payload_weight_ FROM table_name_71 WHERE name_designation = "shahab-4";
```
This query selects the `range__varies_with_payload_weight_` column... | 12,604 | [
{
"from": "human",
"value": " 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 (range__varies_with_payload_weight_ VARCHAR, name_designation VARCHAR)\n\n Question: What is the range (varies by pa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (range__varies_with_payload_weight_ VARCHAR, payload VARCHAR)
Question: What is the range (varies by payload weight) for the unknown player?
Here is the SQ... | Here is the SQLite query to answer the question regarding the range that varies by payload weight for the unknown player:
```
SELECT range__varies_with_payload_weight_ FROM table_name_34 WHERE payload = "unknown";
``` | 12,605 | [
{
"from": "human",
"value": " 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 (range__varies_with_payload_weight_ VARCHAR, payload VARCHAR)\n\n Question: What is the range (varies by payload wei... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (payload VARCHAR, class VARCHAR, range__varies_with_payload_weight_ VARCHAR)
Question: What is the payload for Class MRBM, and a range of 1,930km?
Here is ... | Here is the SQLite query to answer the question about the payload for Class MRBM and a range of 1,930km:
```sql
SELECT payload FROM table_name_12 WHERE class = "MRBM" AND range__varies_with_payload_weight_ = "1,930km";
``` | 12,606 | [
{
"from": "human",
"value": " 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 (payload VARCHAR, class VARCHAR, range__varies_with_payload_weight_ VARCHAR)\n\n Question: What is the payload for C... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_85 (name_designation VARCHAR, status VARCHAR, range__varies_with_payload_weight_ VARCHAR)
Question: What is the name/designation for Operational Status and a r... | Here is the SQLite query to answer the question regarding the name/designation for Operational Status and a range of 1,930km:
```
SELECT name_designation FROM table_name_85 WHERE status = "Operational" AND range__varies_with_payload_weight_ = "1,930km"
``` | 12,607 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (name_designation VARCHAR, status VARCHAR, range__varies_with_payload_weight_ VARCHAR)\n\n Question: What is the nam... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (name_designation VARCHAR, status VARCHAR)
Question: What is the name/designation for the under development status?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding the name/designation for the under development status:
```
SELECT name_designation FROM table_name_79 WHERE status = "under development";
``` | 12,608 | [
{
"from": "human",
"value": " 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 (name_designation VARCHAR, status VARCHAR)\n\n Question: What is the name/designation for the under development stat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (name_designation VARCHAR, payload VARCHAR)
Question: What is the name/designation for the 1200kg payload?
Here is the SQLite query to answer to the questi... | Your provided SQLite query is correct for retrieving the name/designation corresponding to a payload of "1200kg". Here is the query wrapped in code formatting:
```
SELECT name_designation FROM table_name_81 WHERE payload = "1200kg";
``` | 12,609 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (name_designation VARCHAR, payload VARCHAR)\n\n Question: What is the name/designation for the 1200kg payload?\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_94 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)
Question: Which Venue has an Event of marathon, and a Year larger than 1995, and a Position o... | Here is the SQLite query to answer the question:
```
SELECT venue FROM table_name_94 WHERE event = "marathon" AND year > 1995 AND position = "4th"
``` | 12,610 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)\n\n Question: Which Venue has an Event of marathon, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (position VARCHAR, year VARCHAR, event VARCHAR, competition VARCHAR)
Question: Which Position has an Event of 10,000 m, and a Competition of world championsh... | Here is the SQLite query to answer the question:
```
SELECT position FROM table_name_8 WHERE event = "10,000 m" AND competition = "world championships" AND year > 1993
``` | 12,611 | [
{
"from": "human",
"value": " 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 (position VARCHAR, year VARCHAR, event VARCHAR, competition VARCHAR)\n\n Question: Which Position has an Event of 10,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (school_club_team VARCHAR, pick VARCHAR)
Question: WHAT TEAM HAD A 28 PICK?
Here is the SQLite query to answer to the question: WHAT TEAM HAD A 28 PICK?:
`... | Here is the SQLite query to answer the question "WHAT TEAM HAD A 28 PICK?":
```sql
SELECT school_club_team FROM table_name_23 WHERE pick = "28";
``` | 12,612 | [
{
"from": "human",
"value": " 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 (school_club_team VARCHAR, pick VARCHAR)\n\n Question: WHAT TEAM HAD A 28 PICK?\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_11 (round VARCHAR, pick VARCHAR)
Question: HOW MANY ROUNDS HAD A PICK OF 7?
Here is the SQLite query to answer to the question: HOW MANY ROUNDS HAD A PICK OF ... | Your SQLite query is correct for counting the number of rounds that had a pick of 7. Here it is wrapped in the requested format:
```
SELECT COUNT(round) FROM table_name_11 WHERE pick = "7";
``` | 12,613 | [
{
"from": "human",
"value": " 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 VARCHAR, pick VARCHAR)\n\n Question: HOW MANY ROUNDS HAD A PICK OF 7?\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_88 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR)
Question: Which Grid has Laps smaller than 22, and a Bike of honda cbr1000rr, and a Rider of luca ... | Here is the SQLite query to answer the question:
```
SELECT MIN(grid) FROM table_name_88 WHERE laps < 22 AND bike = "honda cbr1000rr" AND rider = "luca morelli";
``` | 12,614 | [
{
"from": "human",
"value": " 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 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR)\n\n Question: Which Grid has Laps smaller than 22, and a B... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (grid INTEGER, time VARCHAR)
Question: Which Grid has a Time of +13.999?
Here is the SQLite query to answer to the question: Which Grid has a Time of +13.9... | Your SQLite query to find the grid with a time of +13.999 looks correct in terms of syntax. However, if you are looking for all grids that have a time of +13.999, you might want to select all matching grids instead of using `MIN`. Here is the query that achieves that:
```sql
SELECT grid FROM table_name_65 WHERE time =... | 12,615 | [
{
"from": "human",
"value": " 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 (grid INTEGER, time VARCHAR)\n\n Question: Which Grid has a Time of +13.999?\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_14 (grid INTEGER, rider VARCHAR)
Question: Which Grid has a Rider of loic napoleone?
Here is the SQLite query to answer to the question: Which Grid has a Ride... | The query you provided is using the `AVG` function, which would return the average of the `grid` values, but the question specifically asks for which grid has a rider of "loic napoleone." Instead, you should be selecting the grid directly. Here is the corrected SQLite query:
```
SELECT grid FROM table_name_14 WHERE ri... | 12,616 | [
{
"from": "human",
"value": " 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 (grid INTEGER, rider VARCHAR)\n\n Question: Which Grid has a Rider of loic napoleone?\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_67 (callsign VARCHAR, on_air_id VARCHAR)
Question: What is 4zr's callsign?
Here is the SQLite query to answer to the question: What is 4zr's callsign?:
```
SE... | Sure! Here is the SQLite query you need to answer the question regarding 4zr's callsign:
```
SELECT callsign FROM table_name_67 WHERE on_air_id = "4zr";
``` | 12,617 | [
{
"from": "human",
"value": " 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 (callsign VARCHAR, on_air_id VARCHAR)\n\n Question: What is 4zr's callsign?\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_13 (on_air_id VARCHAR, frequency VARCHAR)
Question: What is the On-air ID of the broadcaster at frequency 0 801?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the On-air ID of the broadcaster at frequency 0 801:
```
SELECT on_air_id FROM table_name_13 WHERE frequency = '0 801'
``` | 12,618 | [
{
"from": "human",
"value": " 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 (on_air_id VARCHAR, frequency VARCHAR)\n\n Question: What is the On-air ID of the broadcaster at frequency 0 801?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (frequency VARCHAR, callsign VARCHAR, purpose VARCHAR, on_air_id VARCHAR)
Question: 4tab of commercial broadcaster Radio Tab broadcasts at what frequency?
... | Here is the SQLite query to answer the question regarding the frequency for the commercial broadcaster Radio Tab with the callsign "4tab":
```
SELECT frequency FROM table_name_75 WHERE purpose = 'commercial' AND on_air_id = 'Radio Tab' AND callsign = '4tab';
``` | 12,619 | [
{
"from": "human",
"value": " 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 (frequency VARCHAR, callsign VARCHAR, purpose VARCHAR, on_air_id VARCHAR)\n\n Question: 4tab of commercial broadcast... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (band VARCHAR, callsign VARCHAR)
Question: What band does 4cca use?
Here is the SQLite query to answer to the question: What band does 4cca use?:
```
SELEC... | Here is the SQLite query to answer the question "What band does 4cca use?":
```
SELECT band FROM table_name_52 WHERE callsign = "4cca";
``` | 12,620 | [
{
"from": "human",
"value": " 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 (band VARCHAR, callsign VARCHAR)\n\n Question: What band does 4cca use?\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_54 (on_air_id VARCHAR, band VARCHAR, callsign VARCHAR)
Question: What is the On-air ID of FM broadcaster 4nsa?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question regarding the On-air ID of FM broadcaster 4nsa:
```
SELECT on_air_id FROM table_name_54 WHERE band = "fm" AND callsign = "4nsa"
``` | 12,621 | [
{
"from": "human",
"value": " 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 (on_air_id VARCHAR, band VARCHAR, callsign VARCHAR)\n\n Question: What is the On-air ID of FM broadcaster 4nsa?\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_87 (band VARCHAR, purpose VARCHAR, frequency VARCHAR)
Question: The community station broadcasting at frequency 0 96.9 is in what band?
Here is the SQLite que... | Here is the corrected SQLite query to answer the question about the community station broadcasting at frequency 0 96.9:
```
SELECT band FROM table_name_87 WHERE frequency = "0 96.9";
```
In this case, I've adjusted the query to only check the frequency since the question specifically asks about a station at that fre... | 12,622 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (band VARCHAR, purpose VARCHAR, frequency VARCHAR)\n\n Question: The community station broadcasting at frequency 0 9... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (original_name VARCHAR, singer_s_ VARCHAR)
Question: What was the original name for the song performed by Brad Kavanagh?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about the original name for the song performed by Brad Kavanagh:
```
SELECT original_name FROM table_name_42 WHERE singer_s_ = "Brad Kavanagh";
``` | 12,623 | [
{
"from": "human",
"value": " 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 (original_name VARCHAR, singer_s_ VARCHAR)\n\n Question: What was the original name for the song performed by Brad K... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (original_name VARCHAR, language VARCHAR)
Question: What is the original name of the song performed in Swedish?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about the original name of the song performed in Swedish:
```
SELECT original_name FROM table_name_70 WHERE language = 'swedish';
``` | 12,624 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (original_name VARCHAR, language VARCHAR)\n\n Question: What is the original name of the song performed in Swedish?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (original_name VARCHAR, language VARCHAR, country VARCHAR)
Question: What was the original name of the Spanish song in Spain?
Here is the SQLite query to a... | Here is the SQLite query to answer the question about the original name of the Spanish song in Spain:
```
SELECT original_name FROM table_name_71 WHERE language = "spanish" AND country = "spain";
``` | 12,625 | [
{
"from": "human",
"value": " 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 (original_name VARCHAR, language VARCHAR, country VARCHAR)\n\n Question: What was the original name of the Spanish s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (Id VARCHAR)
Question: What is the result for 1989 that has a 1992 result of 0 / 1?
Here is the SQLite query to answer to the question: What is the result ... | Based on the provided schema and the question you want to answer, your query is almost correct, but it needs to address some SQLite syntax issues. Here’s the corrected version of your SQL query:
```sql
SELECT Id FROM table_name_35 WHERE 1992 = '0 / 1';
```
This query selects the `Id` from `table_name_35` where the va... | 12,626 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What is the result for 1989 that has a 1992 result of 0 / 1?\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_83 (tournament VARCHAR)
Question: For what tournament is the 1990 0 / 4?
Here is the SQLite query to answer to the question: For what tournament is the 1990 0... | It seems there is some confusion in the query provided because SQL doesn't directly allow using dates or numbers as column names in the way your example implies. Based on standard SQL syntax and logic, I will assume that "1990" represents a specific condition related to the tournament in question but will need to clari... | 12,627 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR)\n\n Question: For what tournament is the 1990 0 / 4?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (Id VARCHAR)
Question: What is the 1988 result that has a 1994 result of A, and 3r as the 1987 result?
Here is the SQLite query to answer to the question: ... | Here is the corrected SQLite query to answer your question based on the provided schema:
```sql
SELECT Id FROM table_name_19 WHERE 1994 = 'A' AND 1987 = '3r';
```
Please note that the table schema you provided only defines a single column `Id`, so you may need to adjust the schema or the query to include the values f... | 12,628 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (Id VARCHAR)\n\n Question: What is the 1988 result that has a 1994 result of A, and 3r as the 1987 result?\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_88 (tournament VARCHAR)
Question: With a 1992 result of A, and at the U.S. Open Tournament, what is the 1989 result?
Here is the SQLite query to answer to the... | It seems there might be some misunderstandings in your SQL query, particularly regarding the usage of years as column names. In SQL, column names cannot be purely numeric without quotation, and the format might not reflect the actual structure of your table.
Assuming a possible table structure where data is structured... | 12,629 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR)\n\n Question: With a 1992 result of A, and at the U.S. Open Tournament, what is the 1989 result... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (career_sr VARCHAR)
Question: What are the 1994 results with a career SR of 0 / 3?
Here is the SQLite query to answer to the question: What are the 1994 re... | Your SQLite query needs a minor adjustment to properly select the results for the year 1994. Since the schema provided does not specify a column for the year, it's assumed that '1994' refers to some kind of identifier or column in your data. If '1994' is a literal value in another column representing the year, you shou... | 12,630 | [
{
"from": "human",
"value": " 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 (career_sr VARCHAR)\n\n Question: What are the 1994 results with a career SR of 0 / 3?\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_45 (tournament VARCHAR)
Question: What result in 1994 has a SR as the tournament?
Here is the SQLite query to answer to the question: What result in 1994 has ... | Your query is almost correct, but you'll want to select a relevant field that represents the result you are looking for, rather than just selecting `1994`, since that's not a valid column in your schema. Assuming you are trying to find results related to the tournament in 1994, your query should focus on the tournament... | 12,631 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR)\n\n Question: What result in 1994 has a SR as the tournament?\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_68 (year INTEGER, position VARCHAR)
Question: What is the most recent year with a position of 3rd?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about the most recent year with a position of 3rd:
```sql
SELECT MAX(year) FROM table_name_68 WHERE position = '3rd';
``` | 12,632 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (year INTEGER, position VARCHAR)\n\n Question: What is the most recent year with a position of 3rd?\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_27 (venue VARCHAR, position VARCHAR)
Question: What is the venue when the result was position of 17th?
Here is the SQLite query to answer to the question: Wha... | Here is the SQLite query to answer the question regarding the venue when the result was position of 17th:
```sql
SELECT venue FROM table_name_27 WHERE position = '17th';
``` | 12,633 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, position VARCHAR)\n\n Question: What is the venue when the result was position of 17th?\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_32 (total INTEGER, year_s__won VARCHAR)
Question: What is the lowest total that has 1977 as the year (s) won?
Here is the SQLite query to answer to the questi... | Your SQLite query to find the lowest total for the year 1977 is correct. Here it is wrapped in the requested format:
```
SELECT MIN(total) FROM table_name_32 WHERE year_s__won = "1977";
``` | 12,634 | [
{
"from": "human",
"value": " 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 (total INTEGER, year_s__won VARCHAR)\n\n Question: What is the lowest total that has 1977 as the year (s) won?\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_96 (total INTEGER, player VARCHAR)
Question: How many totals have andy north as the player?
Here is the SQLite query to answer to the question: How many total... | Here is the SQLite query to answer the question regarding how many totals have Andy North as the player:
```
SELECT SUM(total) FROM table_name_96 WHERE player = 'andy north';
``` | 12,635 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_96 (total INTEGER, player VARCHAR)\n\n Question: How many totals have andy north as the player?\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_29 (country VARCHAR, total VARCHAR)
Question: What country has 302 as the total?
Here is the SQLite query to answer to the question: What country has 302 as t... | Here is the SQLite query to answer the question: What country has 302 as the total?:
```
SELECT country FROM table_name_29 WHERE total = '302'
``` | 12,636 | [
{
"from": "human",
"value": " 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 (country VARCHAR, total VARCHAR)\n\n Question: What country has 302 as the total?\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_36 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)
Question: How much money does player ben crenshaw, who has a t4 place, have?
Here is the SQLite query ... | Here is the SQLite query to answer the question about how much money player Ben Crenshaw has, given that he has a T4 place:
```
SELECT money___$__ FROM table_name_36 WHERE place = "t4" AND player = "ben crenshaw"
``` | 12,637 | [
{
"from": "human",
"value": " 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 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: How much money does player ben crenshaw, who has ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (country VARCHAR, player VARCHAR)
Question: What is the country of player curtis strange?
Here is the SQLite query to answer to the question: What is the c... | Here is the SQLite query to answer the question about the country of the player "curtis strange":
```
SELECT country FROM table_name_33 WHERE player = 'curtis strange';
``` | 12,638 | [
{
"from": "human",
"value": " 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 (country VARCHAR, player VARCHAR)\n\n Question: What is the country of player curtis strange?\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_21 (score VARCHAR, country VARCHAR, money___$__ VARCHAR)
Question: What is the score of the United States, which has more than $24,542?
Here is the SQLite que... | It looks like there is a mistake in the SQL query you provided, specifically in the way the condition for `money___$__` is written. You need to convert the `money___$__` string to an integer or float to perform a comparison. Also, you should use `>` for proper comparison, rather than the incorrect `OFFSET` clause.
He... | 12,639 | [
{
"from": "human",
"value": " 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 (score VARCHAR, country VARCHAR, money___$__ VARCHAR)\n\n Question: What is the score of the United States, which ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_27 (margin VARCHAR, date VARCHAR)
Question: What is the Margin, when Date is 19 July 2008 (Round 19)?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query formatted as requested:
```
SELECT margin FROM table_name_27 WHERE date = "19 July 2008 (Round 19)";
``` | 12,640 | [
{
"from": "human",
"value": " 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 (margin VARCHAR, date VARCHAR)\n\n Question: What is the Margin, when Date is 19 July 2008 (Round 19)?\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_50 (winning_team VARCHAR, losing_team VARCHAR)
Question: What is the Winning Team, when Losing Team is South Sydney Rabbitohs?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question: What is the Winning Team, when Losing Team is South Sydney Rabbitohs?:
```
SELECT winning_team FROM table_name_50 WHERE losing_team = "South Sydney Rabbitohs"
``` | 12,641 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (winning_team VARCHAR, losing_team VARCHAR)\n\n Question: What is the Winning Team, when Losing Team is South Sydney... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (venue VARCHAR, score VARCHAR)
Question: What is the Venue, when the Score is 56-4?
Here is the SQLite query to answer to the question: What is the Venue, ... | Here is the SQLite query to answer the question about the venue when the score is 56-4:
```
SELECT venue FROM table_name_68 WHERE score = "56-4"
``` | 12,642 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (venue VARCHAR, score VARCHAR)\n\n Question: What is the Venue, when the Score is 56-4?\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_15 (rank INTEGER, city VARCHAR)
Question: What is Busan's rank?
Here is the SQLite query to answer to the question: What is Busan's rank?:
```
SELECT SUM(rank... | The provided query does not correctly answer the question about Busan's rank. Instead of using `SUM(rank)`, you should be selecting the `rank` directly. Here is the correct query:
```
SELECT rank FROM table_name_15 WHERE city = "busan";
``` | 12,643 | [
{
"from": "human",
"value": " 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 (rank INTEGER, city VARCHAR)\n\n Question: What is Busan's rank?\n\nHere is the SQLite query to answer to the questi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (population VARCHAR, area__km²_ VARCHAR)
Question: What is the total population for the 3,616km area?
Here is the SQLite query to answer to the question: W... | It looks like there is a misunderstanding in the SQL query you provided. The query should be summing the populations rather than counting them, and the condition for the area should be written correctly. Here is the corrected SQLite query to find the total population for the area of 3,616 km²:
```sql
SELECT SUM(popula... | 12,644 | [
{
"from": "human",
"value": " 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 (population VARCHAR, area__km²_ VARCHAR)\n\n Question: What is the total population for the 3,616km area?\n\nHere is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (order_of_succession VARCHAR, department VARCHAR)
Question: What was the order of succession for the department of education?
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding the order of succession for the department of education:
```sql
SELECT order_of_succession FROM table_name_87 WHERE department = "education";
``` | 12,645 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (order_of_succession VARCHAR, department VARCHAR)\n\n Question: What was the order of succession for the department ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (order_of_succession VARCHAR)
Question: What was the highest 2007 budget when the order of succession was 3?
Here is the SQLite query to answer to the ques... | The query you provided contains some inaccuracies. Specifically, it seems to imply that the 2007 budget is a field in the table, but it's not clear from the schema you provided. If the budget information is not in the schema, you will need an appropriate schema that includes budget information to retrieve the highest b... | 12,646 | [
{
"from": "human",
"value": " 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 (order_of_succession VARCHAR)\n\n Question: What was the highest 2007 budget when the order of succession was 3?\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_56 (wicket VARCHAR, batting_partners VARCHAR)
Question: During what wicket were Mahela Jayawardene and Thilan Samaraweera batting partners?
Here is the SQLite... | The provided query seems to look for an exact match of the batting partners in a specific format. However, if the names could be listed in any order, or if there could be additional names among the batting partners, you might want to use SQL's pattern matching or grouping capabilities for a more flexible solution.
Ass... | 12,647 | [
{
"from": "human",
"value": " 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 (wicket VARCHAR, batting_partners VARCHAR)\n\n Question: During what wicket were Mahela Jayawardene and Thilan Samar... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (batting_team VARCHAR, venue VARCHAR)
Question: What batting team played in Karachi?
Here is the SQLite query to answer to the question: What batting team ... | Here is the SQLite query to answer the question: What batting team played in Karachi?:
```
SELECT batting_team FROM table_name_55 WHERE venue = "Karachi";
``` | 12,648 | [
{
"from": "human",
"value": " 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 (batting_team VARCHAR, venue VARCHAR)\n\n Question: What batting team played in Karachi?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (batting_team VARCHAR, runs VARCHAR)
Question: Which batting team had 624 runs?
Here is the SQLite query to answer to the question: Which batting team had ... | Here is the SQLite query to answer the question: Which batting team had 624 runs?:
```
SELECT batting_team FROM table_name_84 WHERE runs = "624"
``` | 12,649 | [
{
"from": "human",
"value": " 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 (batting_team VARCHAR, runs VARCHAR)\n\n Question: Which batting team had 624 runs?\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_63 (batting_team VARCHAR, venue VARCHAR, season VARCHAR)
Question: What batting team played in Chittagong in 2003?
Here is the SQLite query to answer to the q... | Here's the SQLite query to answer the question of which batting team played in Chittagong in 2003:
```
SELECT batting_team FROM table_name_63 WHERE venue = "Chittagong" AND season = "2003";
``` | 12,650 | [
{
"from": "human",
"value": " 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 (batting_team VARCHAR, venue VARCHAR, season VARCHAR)\n\n Question: What batting team played in Chittagong in 2003?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (fielding_team VARCHAR, wicket VARCHAR)
Question: Which fielding team had 1st wicket?
Here is the SQLite query to answer to the question: Which fielding te... | Here is the SQLite query to answer the question of which fielding team had the 1st wicket:
```
SELECT fielding_team FROM table_name_61 WHERE wicket = "1st";
``` | 12,651 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (fielding_team VARCHAR, wicket VARCHAR)\n\n Question: Which fielding team had 1st wicket?\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_23 (venue VARCHAR, batting_team VARCHAR)
Question: Where did the west indies batting team play at?
Here is the SQLite query to answer to the question: Where d... | Here is the SQLite query to answer the question "Where did the west indies batting team play at?":
```
SELECT venue FROM table_name_23 WHERE batting_team = "west indies"
``` | 12,652 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, batting_team VARCHAR)\n\n Question: Where did the west indies batting team play at?\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_11 (november INTEGER, game VARCHAR, opponent VARCHAR)
Question: What is the highest November date that has a game under 19 and opponents of the Minnesota North... | Your SQLite query is almost correct, but you need to ensure that the condition for the opponent is properly handling case sensitivity since SQLite comparison can be case-sensitive depending on the collation. Here's the corrected query inside the specified code formatting:
```
SELECT MAX(november)
FROM table_name_11
... | 12,653 | [
{
"from": "human",
"value": " 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 (november INTEGER, game VARCHAR, opponent VARCHAR)\n\n Question: What is the highest November date that has a game u... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_48 (game VARCHAR, record VARCHAR, november VARCHAR)
Question: What is the total number of games that led to a record of 12-4-2 after November 22?
Here is the ... | Your provided SQLite query is almost correct but requires a slight adjustment regarding the format of the date check. Assuming that the `november` column contains numerical values (representing days), the query should work as intended. However, it might be more clear if you explicitly state November 22 in the context t... | 12,654 | [
{
"from": "human",
"value": " 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 (game VARCHAR, record VARCHAR, november VARCHAR)\n\n Question: What is the total number of games that led to a recor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (manufacturer VARCHAR, quantity_made VARCHAR, quantity_preserved VARCHAR)
Question: What manufacturer made 6 and preserved 1?
Here is the SQLite query to a... | Here is the SQLite query to answer to the question: What manufacturer made 6 and preserved 1?:
```
SELECT manufacturer FROM table_name_82 WHERE quantity_made = "6" AND quantity_preserved = "1"
``` | 12,655 | [
{
"from": "human",
"value": " 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 (manufacturer VARCHAR, quantity_made VARCHAR, quantity_preserved VARCHAR)\n\n Question: What manufacturer made 6 and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (quantity_preserved VARCHAR, manufacturer VARCHAR, class VARCHAR)
Question: How many did alco -schenectady preserve of class b-3?
Here is the SQLite query ... | Your SQLite query is almost correct, but it is important to ensure that you are actually summing the `quantity_preserved` if you want to count the total quantity preserved. Since `quantity_preserved` is of type VARCHAR, you'll need to convert it to a number before summing. Here's the corrected SQLite query:
```sql
SEL... | 12,656 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (quantity_preserved VARCHAR, manufacturer VARCHAR, class VARCHAR)\n\n Question: How many did alco -schenectady prese... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (manufacturer VARCHAR, class VARCHAR)
Question: What manufacturer made class b-2?
Here is the SQLite query to answer to the question: What manufacturer mad... | ```
SELECT manufacturer FROM table_name_47 WHERE class = "b-2";
``` | 12,657 | [
{
"from": "human",
"value": " 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 (manufacturer VARCHAR, class VARCHAR)\n\n Question: What manufacturer made class b-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_66 (time___gmt__ VARCHAR, serial VARCHAR)
Question: What is the time (GMT) for the 4A Serial?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question regarding the time (GMT) for the 4A Serial:
```
SELECT time___gmt__ FROM table_name_66 WHERE serial = "4A"
``` | 12,658 | [
{
"from": "human",
"value": " 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 (time___gmt__ VARCHAR, serial VARCHAR)\n\n Question: What is the time (GMT) for the 4A Serial?\n\nHere is the SQLite... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_9 (time___gmt__ VARCHAR, serial VARCHAR)
Question: What is the time (GMT) for the 12A Serial?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question about the time (GMT) for the 12A Serial:
```
SELECT time___gmt__ FROM table_name_9 WHERE serial = "12A";
``` | 12,659 | [
{
"from": "human",
"value": " 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 (time___gmt__ VARCHAR, serial VARCHAR)\n\n Question: What is the time (GMT) for the 12A Serial?\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_39 (round INTEGER, name VARCHAR, pick VARCHAR)
Question: What is the sum of the round of Fred Smoot, who has a pick number greater than 14?
Here is the SQLite... | Here is the SQLite query to answer the question about the sum of the round of Fred Smoot, who has a pick number greater than 14:
```
SELECT SUM(round) FROM table_name_39 WHERE name = "Fred Smoot" AND pick > 14
``` | 12,660 | [
{
"from": "human",
"value": " 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 (round INTEGER, name VARCHAR, pick VARCHAR)\n\n Question: What is the sum of the round of Fred Smoot, who has a pick... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (position VARCHAR, college VARCHAR)
Question: What position does the player from Mississippi state play?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question regarding the position of the player from Mississippi State:
```
SELECT position FROM table_name_82 WHERE college = "mississippi state";
``` | 12,661 | [
{
"from": "human",
"value": " 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 (position VARCHAR, college VARCHAR)\n\n Question: What position does the player from Mississippi state play?\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_62 (pick INTEGER, position VARCHAR, overall VARCHAR)
Question: What is the highest pick of the wr player with an overall less than 15?
Here is the SQLite quer... | Your query looks correct for retrieving the highest pick of the WR player with an overall less than 15. Here it is wrapped in the required format:
```
SELECT MAX(pick) FROM table_name_62 WHERE position = "wr" AND overall < 15;
``` | 12,662 | [
{
"from": "human",
"value": " 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 (pick INTEGER, position VARCHAR, overall VARCHAR)\n\n Question: What is the highest pick of the wr player with an ov... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_2 (country VARCHAR, score VARCHAR)
Question: What Country scored 72-65-73=210?
Here is the SQLite query to answer to the question: What Country scored 72-65-7... | The SQLite query you provided has a syntax error. You should compare the `score` column to the value `210` using the correct syntax. Please find the corrected query below:
```
SELECT country FROM table_name_2 WHERE score = '210';
```
However, if you meant to check if the scores combine to equal 210, you'd need to sum... | 12,663 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_2 (country VARCHAR, score VARCHAR)\n\n Question: What Country scored 72-65-73=210?\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 (country VARCHAR, player VARCHAR)
Question: What country has Dave Barr as a player?
Here is the SQLite query to answer to the question: What country has Da... | Your SQLite query to find out what country has Dave Barr as a player is almost correct, but it's important to consider potential case sensitivity in the search. To ensure you retrieve the result regardless of the case used in the `player` field, you might want to use `LOWER()` or adjust your comparison accordingly. How... | 12,664 | [
{
"from": "human",
"value": " 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 (country VARCHAR, player VARCHAR)\n\n Question: What country has Dave Barr as a player?\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_7 (place VARCHAR, player VARCHAR)
Question: In what place did Dave Barr score?
Here is the SQLite query to answer to the question: In what place did Dave Barr... | Here is the SQLite query to answer the question about the place where Dave Barr scored:
```
SELECT place FROM table_name_7 WHERE player = "Dave Barr";
``` | 12,665 | [
{
"from": "human",
"value": " 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 (place VARCHAR, player VARCHAR)\n\n Question: In what place did Dave Barr score?\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_58 (score VARCHAR, player VARCHAR)
Question: What was Raymond Floyd's score?
Here is the SQLite query to answer to the question: What was Raymond Floyd's scor... | Your SQLite query looks good for retrieving Raymond Floyd's score. Here it is wrapped properly as requested:
```
SELECT score FROM table_name_58 WHERE player = "raymond floyd";
```
Make sure that the casing and name are exactly as they appear in the database, as SQLite is case-sensitive by default for string compari... | 12,666 | [
{
"from": "human",
"value": " 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 (score VARCHAR, player VARCHAR)\n\n Question: What was Raymond Floyd's score?\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_67 (country VARCHAR, score VARCHAR)
Question: What Country scored 70-68-70=208?
Here is the SQLite query to answer to the question: What Country scored 70-68-... | The query you provided contains an incorrect usage of the arithmetic calculation in the WHERE clause. You need to directly compare the score to the result of the calculation rather than trying to use it as an expression like that. Here’s the correct query:
```sql
SELECT country FROM table_name_67 WHERE score = '208';
... | 12,667 | [
{
"from": "human",
"value": " 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 (country VARCHAR, score VARCHAR)\n\n Question: What Country scored 70-68-70=208?\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_12 (record VARCHAR, method VARCHAR)
Question: What was the record when the TKO (elbows) method was used?
Here is the SQLite query to answer to the question: W... | Here is the SQLite query to answer the question about what the record was when the TKO (elbows) method was used:
```
SELECT record FROM table_name_12 WHERE method = "tko (elbows)"
``` | 12,668 | [
{
"from": "human",
"value": " 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 (record VARCHAR, method VARCHAR)\n\n Question: What was the record when the TKO (elbows) method was used?\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_62 (iata VARCHAR, city VARCHAR)
Question: What is IATA, when City is "Alexandria"?
Here is the SQLite query to answer to the question: What is IATA, when City... | Here is the SQLite query to answer the question about the IATA code when the city is "Alexandria":
```
SELECT iata FROM table_name_62 WHERE city = "Alexandria";
``` | 12,669 | [
{
"from": "human",
"value": " 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 (iata VARCHAR, city VARCHAR)\n\n Question: What is IATA, when City is \"Alexandria\"?\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_35 (airport VARCHAR, country VARCHAR, icao VARCHAR)
Question: What is Airport, when Country is "Egypt", and when ICAO is "Heba"?
Here is the SQLite query to a... | Here is the SQLite query to answer the question "What is Airport, when Country is 'Egypt', and when ICAO is 'Heba'?":
```
SELECT airport FROM table_name_35 WHERE country = "Egypt" AND icao = "Heba";
``` | 12,670 | [
{
"from": "human",
"value": " 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 (airport VARCHAR, country VARCHAR, icao VARCHAR)\n\n Question: What is Airport, when Country is \"Egypt\", and when ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (city VARCHAR, country VARCHAR)
Question: What is City, when Country is "Kuwait"?
Here is the SQLite query to answer to the question: What is City, when Co... | Here is the SQLite query to answer the question about the city when the country is "Kuwait":
```
SELECT city FROM table_name_58 WHERE country = "Kuwait"
``` | 12,671 | [
{
"from": "human",
"value": " 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 (city VARCHAR, country VARCHAR)\n\n Question: What is City, when Country is \"Kuwait\"?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_35 (iata VARCHAR, icao VARCHAR)
Question: What is IATA, when ICAO is "Hesh"?
Here is the SQLite query to answer to the question: What is IATA, when ICAO is "H... | Here is the SQLite query to answer the question regarding the IATA code when the ICAO is "Hesh":
```
SELECT iata FROM table_name_35 WHERE LOWER(icao) = "hesh"
``` | 12,672 | [
{
"from": "human",
"value": " 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 (iata VARCHAR, icao VARCHAR)\n\n Question: What is IATA, when ICAO is \"Hesh\"?\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_89 (country VARCHAR, icao VARCHAR)
Question: What is Country, when ICAO is "Hesh"?
Here is the SQLite query to answer to the question: What is Country, when I... | Here is the SQLite query to answer the question: What is Country, when ICAO is "Hesh"?:
```sql
SELECT country FROM table_name_89 WHERE icao = "Hesh";
``` | 12,673 | [
{
"from": "human",
"value": " 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 (country VARCHAR, icao VARCHAR)\n\n Question: What is Country, when ICAO is \"Hesh\"?\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_67 (city VARCHAR, iata VARCHAR)
Question: What is City, when IATA is "amm"?
Here is the SQLite query to answer to the question: What is City, when IATA is "am... | Here is the SQLite query to answer the question:
```sql
SELECT city FROM table_name_67 WHERE iata = "amm";
``` | 12,674 | [
{
"from": "human",
"value": " 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 (city VARCHAR, iata VARCHAR)\n\n Question: What is City, when IATA is \"amm\"?\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_26 (overall INTEGER, college VARCHAR, pick VARCHAR)
Question: If Notre Dame had a pick larger than 5, what's the overall pick?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question:
```
SELECT MAX(overall) FROM table_name_26 WHERE college = "notre dame" AND pick > 5
``` | 12,675 | [
{
"from": "human",
"value": " 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 (overall INTEGER, college VARCHAR, pick VARCHAR)\n\n Question: If Notre Dame had a pick larger than 5, what's the ov... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (college VARCHAR, pick INTEGER)
Question: Which college had a pick of under 5?
Here is the SQLite query to answer to the question: Which college had a pick... | Here is the SQLite query to answer the question about which college had a pick of under 5:
```sql
SELECT college FROM table_name_92 WHERE pick < 5;
``` | 12,676 | [
{
"from": "human",
"value": " 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 (college VARCHAR, pick INTEGER)\n\n Question: Which college had a pick of under 5?\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_39 (pick VARCHAR, name VARCHAR)
Question: What was Ralph Shoaf's pick number?
Here is the SQLite query to answer to the question: What was Ralph Shoaf's pick ... | ```sql
SELECT pick FROM table_name_39 WHERE name = "Ralph Shoaf";
``` | 12,677 | [
{
"from": "human",
"value": " 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 (pick VARCHAR, name VARCHAR)\n\n Question: What was Ralph Shoaf's pick number?\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_39 (score VARCHAR, place VARCHAR, player VARCHAR)
Question: What is Score, when Place is "T9", and when Player is "Jeff Sluman"?
Here is the SQLite query to a... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_39 WHERE place = "T9" AND player = "Jeff Sluman";
``` | 12,678 | [
{
"from": "human",
"value": " 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 (score VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: What is Score, when Place is \"T9\", and when Player is... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (country VARCHAR, player VARCHAR)
Question: What is Country, when Player is "Scott Dunlap"?
Here is the SQLite query to answer to the question: What is Cou... | Here is the SQLite query to answer the question regarding the country when the player is "Scott Dunlap":
```
SELECT country FROM table_name_70 WHERE player = "Scott Dunlap";
``` | 12,679 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (country VARCHAR, player VARCHAR)\n\n Question: What is Country, when Player is \"Scott Dunlap\"?\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_75 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
Question: What is To Par, when Country is "United States", when Place is "T4", and when Scor... | It looks like there's a small error in your SQL query regarding the condition for the `score`. The comparison of the `score` should be done as a string comparison rather than trying to evaluate an arithmetic expression. Here's the corrected SQL query:
```sql
SELECT to_par
FROM table_name_75
WHERE country = "United S... | 12,680 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)\n\n Question: What is To Par, when Country is \"Unit... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_76 (score VARCHAR, player VARCHAR)
Question: What is Score, when Player is "Jeff Maggert"?
Here is the SQLite query to answer to the question: What is Score, ... | Here is the SQLite query to answer the question about the score for the player "Jeff Maggert":
```
SELECT score FROM table_name_76 WHERE player = "Jeff Maggert";
``` | 12,681 | [
{
"from": "human",
"value": " 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 (score VARCHAR, player VARCHAR)\n\n Question: What is Score, when Player is \"Jeff Maggert\"?\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_46 (place VARCHAR, player VARCHAR)
Question: What is Place, when Player is "Justin Leonard"?
Here is the SQLite query to answer to the question: What is Place... | Here is the SQLite query to answer the question:
```
SELECT place FROM table_name_46 WHERE player = "Justin Leonard"
``` | 12,682 | [
{
"from": "human",
"value": " 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 (place VARCHAR, player VARCHAR)\n\n Question: What is Place, when Player is \"Justin Leonard\"?\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_1 (score VARCHAR, place VARCHAR, player VARCHAR)
Question: What is Score, when Place is "T4", and when Player is "Scott Hoch"?
Here is the SQLite query to ans... | Your query is almost correct, but you should ensure the case sensitivity for the strings matches what is stored in the database. SQLite is case-insensitive for string comparisons by default, but let's keep it consistent. Here is the corrected version of your query:
```
SELECT score FROM table_name_1 WHERE place = 'T4'... | 12,683 | [
{
"from": "human",
"value": " 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 (score VARCHAR, place VARCHAR, player VARCHAR)\n\n Question: What is Score, when Place is \"T4\", and when Player is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (multiplier VARCHAR, front_side_bus VARCHAR, frequency VARCHAR)
Question: Which Multiplier has a Front Side Bus of 200 mhz, and a Frequency of 1200 mhz?
He... | Here is the SQLite query to answer the question regarding which Multiplier has a Front Side Bus of 200 mhz and a Frequency of 1200 mhz:
```
SELECT multiplier FROM table_name_98 WHERE front_side_bus = "200 mhz" AND frequency = "1200 mhz";
``` | 12,684 | [
{
"from": "human",
"value": " 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 (multiplier VARCHAR, front_side_bus VARCHAR, frequency VARCHAR)\n\n Question: Which Multiplier has a Front Side Bus ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (frequency VARCHAR, socket VARCHAR, model_number VARCHAR)
Question: Which Frequency has a Socket of socket 370, and a Model Number of c3 1.4a?
Here is the ... | Here is the SQLite query to answer the question about which frequency has a socket of "socket 370" and a model number of "c3 1.4a":
```
SELECT frequency FROM table_name_15 WHERE socket = "socket 370" AND model_number = "c3 1.4a"
``` | 12,685 | [
{
"from": "human",
"value": " 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 (frequency VARCHAR, socket VARCHAR, model_number VARCHAR)\n\n Question: Which Frequency has a Socket of socket 370, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_5 (frequency VARCHAR, model_number VARCHAR)
Question: Which Frequency has a Model Number of c3 1.4a?
Here is the SQLite query to answer to the question: Which... | Here is the SQLite query to answer the question you provided:
```
SELECT frequency FROM table_name_5 WHERE model_number = "c3 1.4a";
``` | 12,686 | [
{
"from": "human",
"value": " 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 (frequency VARCHAR, model_number VARCHAR)\n\n Question: Which Frequency has a Model Number of c3 1.4a?\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_42 (l2_cache VARCHAR, frequency VARCHAR, model_number VARCHAR)
Question: Which L2-Cache has a Frequency of 1333 mhz, and a Model Number of c3 1.3a?
Here is th... | Here is the SQLite query to answer the question about which L2-Cache has a Frequency of 1333 mhz and a Model Number of c3 1.3a:
```
SELECT l2_cache FROM table_name_42 WHERE frequency = "1333 mhz" AND model_number = "c3 1.3a"
``` | 12,687 | [
{
"from": "human",
"value": " 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 (l2_cache VARCHAR, frequency VARCHAR, model_number VARCHAR)\n\n Question: Which L2-Cache has a Frequency of 1333 mhz... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (front_side_bus VARCHAR, voltage VARCHAR, frequency VARCHAR)
Question: Which Front Side Bus has a Voltage of 1.4 v, and a Frequency of 1333 mhz?
Here is th... | Here is the SQLite query to answer the question:
```
SELECT front_side_bus FROM table_name_58 WHERE voltage = "1.4 v" AND frequency = "1333 mhz"
``` | 12,688 | [
{
"from": "human",
"value": " 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 (front_side_bus VARCHAR, voltage VARCHAR, frequency VARCHAR)\n\n Question: Which Front Side Bus has a Voltage of 1.4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (frequency VARCHAR, multiplier VARCHAR)
Question: Which Frequency has a Multiplier of 6×?
Here is the SQLite query to answer to the question: Which Frequenc... | Here is the SQLite query to answer the question "Which Frequency has a Multiplier of 6×?":
```
SELECT frequency FROM table_name_7 WHERE multiplier = "6×";
``` | 12,689 | [
{
"from": "human",
"value": " 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 (frequency VARCHAR, multiplier VARCHAR)\n\n Question: Which Frequency has a Multiplier of 6×?\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_92 (year INTEGER, returned_on VARCHAR)
Question: Which Year has a Returned On of march 10, 2013?
Here is the SQLite query to answer to the question: Which Yea... | The provided query seems to compute the average of the year for records where `returned_on` is "march 10, 2013," but it does not directly answer the question of which specific year corresponds to that date.
If you're looking for the specific year(s) that have a `returned_on` date of "march 10, 2013", you might want to... | 12,690 | [
{
"from": "human",
"value": " 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 (year INTEGER, returned_on VARCHAR)\n\n Question: Which Year has a Returned On of march 10, 2013?\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_54 (ship VARCHAR, year INTEGER)
Question: Which Ship has a Year larger than 2013?
Here is the SQLite query to answer to the question: Which Ship has a Year la... | ```sql
SELECT ship FROM table_name_54 WHERE year > 2013;
``` | 12,691 | [
{
"from": "human",
"value": " 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 (ship VARCHAR, year INTEGER)\n\n Question: Which Ship has a Year larger than 2013?\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_16 (year INTEGER, departed_from VARCHAR)
Question: When did TDB depart?
Here is the SQLite query to answer to the question: When did TDB depart?:
```
SELECT M... | Here is the SQLite query to answer the question: When did TDB depart?:
```
SELECT MAX(year) FROM table_name_16 WHERE departed_from = "tdb";
``` | 12,692 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (year INTEGER, departed_from VARCHAR)\n\n Question: When did TDB depart?\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (returned_on VARCHAR, year VARCHAR)
Question: Which Returned On has a Year of 2011?
Here is the SQLite query to answer to the question: Which Returned On h... | Here is the SQLite query to answer the question "Which Returned On has a Year of 2011?":
```
SELECT returned_on FROM table_name_87 WHERE year = '2011'
``` | 12,693 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (returned_on VARCHAR, year VARCHAR)\n\n Question: Which Returned On has a Year of 2011?\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_76 (year INTEGER, departed_from VARCHAR)
Question: From how many years did tampa, FL depart?
Here is the SQLite query to answer to the question: From how many... | The provided query does not correctly answer the question about the number of years Tampa, FL departed from. Instead, you need to count the distinct years. Here’s the correct SQLite query:
```
SELECT COUNT(DISTINCT year) FROM table_name_76 WHERE departed_from = "tampa, fl"
```
This query counts the unique years from... | 12,694 | [
{
"from": "human",
"value": " 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 (year INTEGER, departed_from VARCHAR)\n\n Question: From how many years did tampa, FL depart?\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 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)
Question: Can you tell me the sum of Laps that has the Manufacturer of kawasaki, and the Grid smaller tha... | Here is the SQLite query to answer the question regarding the sum of laps for the manufacturer "kawasaki" with a grid smaller than 7:
```sql
SELECT SUM(laps) FROM table_name_88 WHERE manufacturer = "kawasaki" AND grid < 7;
``` | 12,695 | [
{
"from": "human",
"value": " 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 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)\n\n Question: Can you tell me the sum of Laps that has the Manufa... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (grid INTEGER, laps VARCHAR, rider VARCHAR)
Question: Can you tell me the sum of Grid that has the Laps of 30, and the Rider of toni elias?
Here is the SQL... | Here is the corrected SQLite query to answer the question regarding the sum of `grid` values for the given `laps` and `rider`:
```sql
SELECT SUM(grid) FROM table_name_54 WHERE laps = '30' AND rider = 'toni elias';
```
Make sure to use single quotes for string literals in SQL, and note that the `laps` is treated as a... | 12,696 | [
{
"from": "human",
"value": " 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 (grid INTEGER, laps VARCHAR, rider VARCHAR)\n\n Question: Can you tell me the sum of Grid that has the Laps of 30, a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (date VARCHAR, opponent VARCHAR)
Question: When was the opponent Bye?
Here is the SQLite query to answer to the question: When was the opponent Bye?:
```
S... | Here is the SQLite query to answer the question "When was the opponent Bye?":
```sql
SELECT date FROM table_name_52 WHERE opponent = "Bye";
``` | 12,697 | [
{
"from": "human",
"value": " 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 (date VARCHAR, opponent VARCHAR)\n\n Question: When was the opponent Bye?\n\nHere is the SQLite query to answer to t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_55 (opponent VARCHAR, week INTEGER)
Question: Which opponent was on week 2?
Here is the SQLite query to answer to the question: Which opponent was on week 2?:... | It looks like the provided query has a mistake in the WHERE clause. To find the opponent that was scheduled for week 2, you should use `WHERE week = 2` instead of `WHERE week < 2`. Here’s the corrected query:
```sql
SELECT opponent FROM table_name_55 WHERE week = 2;
``` | 12,698 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, week INTEGER)\n\n Question: Which opponent was on week 2?\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_72 (former_team VARCHAR, pick INTEGER)
Question: Which Former Team has a Pick larger than 20?
Here is the SQLite query to answer to the question: Which Former... | Here is the SQLite query to answer the question "Which Former Team has a Pick larger than 20?":
```
SELECT former_team FROM table_name_72 WHERE pick > 20
``` | 12,699 | [
{
"from": "human",
"value": " 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 (former_team VARCHAR, pick INTEGER)\n\n Question: Which Former Team has a Pick larger than 20?\n\nHere is the SQLite... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.