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_70 (year VARCHAR, wins INTEGER)
Question: What is the total number of Year, when Wins is less than 0?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question regarding the total number of Years when Wins is less than 0:
```
SELECT COUNT(year) FROM table_name_70 WHERE wins < 0
``` | 13,300 | [
{
"from": "human",
"value": " 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 (year VARCHAR, wins INTEGER)\n\n Question: What is the total number of Year, when Wins is less than 0?\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_42 (points INTEGER, year VARCHAR, class VARCHAR)
Question: What is the sum of Points, when Year is after 1959, and when Class is 250cc?
Here is the SQLite que... | Here is the SQLite query you can use to find the sum of points for the specified conditions:
```
SELECT SUM(points) FROM table_name_42 WHERE year > '1959' AND class = '250cc';
``` | 13,301 | [
{
"from": "human",
"value": " 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 (points INTEGER, year VARCHAR, class VARCHAR)\n\n Question: What is the sum of Points, when Year is after 1959, and ... | |
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 VARCHAR, points INTEGER)
Question: What is the total number of Wins, when Points is less than 1?
Here is the SQLite query to answer to the question: ... | Your SQLite query is correctly fetching the total number of wins where points are less than 1. Here it is wrapped in code:
```
SELECT COUNT(wins) FROM table_name_17 WHERE points < 1;
``` | 13,302 | [
{
"from": "human",
"value": " 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 VARCHAR, points INTEGER)\n\n Question: What is the total number of Wins, when Points is less than 1?\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_2 (wins INTEGER, year VARCHAR)
Question: What is the sum of Wins, when Year is 1959?
Here is the SQLite query to answer to the question: What is the sum of Wi... | Here is the SQLite query to answer the question regarding the sum of wins when the year is 1959:
```
SELECT SUM(wins) FROM table_name_2 WHERE year = '1959'
``` | 13,303 | [
{
"from": "human",
"value": " 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 (wins INTEGER, year VARCHAR)\n\n Question: What is the sum of Wins, when Year is 1959?\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_17 (played INTEGER, goals_for VARCHAR, goals_against VARCHAR)
Question: What is the fewest games played for teams with 73 goals for and more than 69 goals agai... | The SQLite query you need to find the fewest games played for teams with 73 goals for and more than 69 goals against is:
```
SELECT MIN(played) FROM table_name_17 WHERE goals_for = '73' AND goals_against > '69';
```
Please note that since `goals_for` and `goals_against` are defined as `VARCHAR`, you should treat the... | 13,304 | [
{
"from": "human",
"value": " 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 (played INTEGER, goals_for VARCHAR, goals_against VARCHAR)\n\n Question: What is the fewest games played for teams w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (goals_for INTEGER, lost VARCHAR)
Question: What is the highest number of goals for for teams with 25 losses?
Here is the SQLite query to answer to the que... | The provided SQL query contains a small error in the WHERE clause. Since `lost` is defined as a `VARCHAR`, we should compare it to the string '25' instead of the integer 25. Here is the corrected query:
```sql
SELECT MAX(goals_for) FROM table_name_26 WHERE lost = '25'
``` | 13,305 | [
{
"from": "human",
"value": " 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 (goals_for INTEGER, lost VARCHAR)\n\n Question: What is the highest number of goals for for teams with 25 losses?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (lost INTEGER, goals_against VARCHAR, position VARCHAR)
Question: What is the most losses for positions under 15 and 66 goals against?
Here is the SQLite q... | Here is the SQLite query that answers your question about finding the most losses for positions under 15 with 66 goals against:
```sql
SELECT MAX(lost)
FROM table_name_50
WHERE goals_against = '66' AND position < '15';
```
Please note that `goals_against` and `position` are treated as strings based on your schema ... | 13,306 | [
{
"from": "human",
"value": " 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 (lost INTEGER, goals_against VARCHAR, position VARCHAR)\n\n Question: What is the most losses for positions under 15... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (goals_against INTEGER, points_1 VARCHAR, goals_for VARCHAR)
Question: What is the average goals against for teams with more than 56 goals for and exactly 5... | Your SQLite query looks good, but there's a small correction needed for the comparison of the `goals_for` column, as it should be cast to an integer to ensure proper numerical comparison. Here’s the corrected query:
```sql
SELECT AVG(goals_against)
FROM table_name_20
WHERE points_1 = "50" AND CAST(goals_for AS INTEG... | 13,307 | [
{
"from": "human",
"value": " 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 (goals_against INTEGER, points_1 VARCHAR, goals_for VARCHAR)\n\n Question: What is the average goals against for tea... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_26 (leader VARCHAR, _percentage_of_seats VARCHAR)
Question: Which Leader has Spoilt Votes as % of Seats?
Here is the SQLite query to answer to the question: W... | Here's the correct SQLite query to find the Leader who has "Spoilt Votes" as a percentage of seats:
```sql
SELECT leader FROM table_name_26 WHERE _percentage_of_seats = "Spoilt Votes";
```
Make sure that the string "Spoilt Votes" matches exactly with the value stored in your database. If it's case-sensitive, adjust ... | 13,308 | [
{
"from": "human",
"value": " 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 (leader VARCHAR, _percentage_of_seats VARCHAR)\n\n Question: Which Leader has Spoilt Votes as % of Seats?\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_3 (_percentage_fpv VARCHAR, party VARCHAR)
Question: What is the %FPv for the Workers' Party?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question regarding the %FPv for the Workers' Party:
```
SELECT _percentage_fpv FROM table_name_3 WHERE party = "Workers' Party"
``` | 13,309 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (_percentage_fpv VARCHAR, party VARCHAR)\n\n Question: What is the %FPv for the Workers' Party?\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_23 (first_pref_votes VARCHAR, _percentage_fpv VARCHAR)
Question: What is the First Pref Votes for the % FPv of 0.06?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question about the First Pref Votes for the % FPv of 0.06:
```
SELECT first_pref_votes FROM table_name_23 WHERE _percentage_fpv = "0.06";
``` | 13,310 | [
{
"from": "human",
"value": " 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 (first_pref_votes VARCHAR, _percentage_fpv VARCHAR)\n\n Question: What is the First Pref Votes for the % FPv of 0.06... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (first_pref_votes VARCHAR, leader VARCHAR, party VARCHAR)
Question: What is the First Pref Votes where the Leader is n/a and the Party is Independent?
Here... | Your provided query is almost correct, but please note that SQL is case-sensitive when it comes to string comparisons unless stated otherwise. Therefore, you should ensure that the string "independent" matches the case used in your database entries. If you want to make it case insensitive, you can use the `LOWER()` fun... | 13,311 | [
{
"from": "human",
"value": " 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 (first_pref_votes VARCHAR, leader VARCHAR, party VARCHAR)\n\n Question: What is the First Pref Votes where the Leade... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (seats VARCHAR, leader VARCHAR)
Question: What is the number of Seats for Leader Enda kenny?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query you requested, formatted as specified:
```
SELECT seats FROM table_name_49 WHERE leader = "enda kenny"
``` | 13,312 | [
{
"from": "human",
"value": " 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 (seats VARCHAR, leader VARCHAR)\n\n Question: What is the number of Seats for Leader Enda kenny?\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_38 (date_to_ VARCHAR, h_ VARCHAR, appearances VARCHAR, date_from_ VARCHAR, g_ VARCHAR, goals VARCHAR, position_ VARCHAR, f_ VARCHAR)
Question: What is Date to ... | Here is the corrected SQLite query to answer your question:
```
SELECT date_to_ FROM table_name_38 WHERE position_ = "Defender" AND goals < 3 AND appearances > 113 AND date_from_ = "1997"
``` | 13,313 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (date_to_ VARCHAR, h_ VARCHAR, appearances VARCHAR, date_from_ VARCHAR, g_ VARCHAR, goals VARCHAR, position_ VARCHAR, f... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (club_source_ VARCHAR, i_ VARCHAR, name VARCHAR)
Question: What is Club Source [I ], when Name is "Andrew McCombie Category:Articles With hCards"?
Here is ... | Your SQLite query has a small mistake in the formatting of the column name. The correct way to reference column names with special characters or those that contain spaces or punctuation in SQLite is to wrap them in double quotes.
Here is the corrected version of your query:
```
SELECT "club_source_" FROM table_name_1... | 13,314 | [
{
"from": "human",
"value": " 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 (club_source_ VARCHAR, i_ VARCHAR, name VARCHAR)\n\n Question: What is Club Source [I ], when Name is \"Andrew McCom... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (name VARCHAR, goals VARCHAR, club_source_ VARCHAR, i_ VARCHAR)
Question: What is Name, when Goals is "80", and when Club Source [I ] is "71 [ dead link ]"?... | It looks like there is a small issue with the column name in your query. The column name `club_source_[i_]` should not have square brackets. Here is the corrected version of the SQLite query:
```
SELECT name FROM table_name_60 WHERE goals = "80" AND club_source_ = "71 [ dead link ]";
```
This query retrieves the `nam... | 13,315 | [
{
"from": "human",
"value": " 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 (name VARCHAR, goals VARCHAR, club_source_ VARCHAR, i_ VARCHAR)\n\n Question: What is Name, when Goals is \"80\", an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (appearances VARCHAR, position_ VARCHAR, f_ VARCHAR, date_to_ VARCHAR, h_ VARCHAR)
Question: What is Appearances, when Postion [F ] is "Defender", and when ... | There is a small mistake in your query regarding the column names. The correct column names based on the provided schema should not include brackets or additional characters. Here is the corrected query:
```
SELECT appearances FROM table_name_18 WHERE position_ = "Defender" AND date_to_ = "1938";
``` | 13,316 | [
{
"from": "human",
"value": " 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 (appearances VARCHAR, position_ VARCHAR, f_ VARCHAR, date_to_ VARCHAR, h_ VARCHAR)\n\n Question: What is Appearances... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (score INTEGER, place VARCHAR, player VARCHAR)
Question: WHAT IS AVERAGE SCORE WITH T3 PLACE, FOR DOUG SANDERS?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding the average score for Doug Sanders with a T3 place:
```
SELECT AVG(score) FROM table_name_75 WHERE place = 't3' AND player = 'doug sanders';
``` | 13,317 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_75 (score INTEGER, place VARCHAR, player VARCHAR)\n\n Question: WHAT IS AVERAGE SCORE WITH T3 PLACE, FOR DOUG SANDERS?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (money___ INTEGER, country VARCHAR, to_par VARCHAR, score VARCHAR)
Question: How much is the money ($) when the country is united states, to par is e and th... | The SQLite query you provided has a slight issue with the condition for the score. Instead of using an equation in the WHERE clause, you should compare the score directly to the string value "72-75-70-71=288". Here is the corrected query:
```sql
SELECT SUM(money___) AS $__
FROM table_name_59
WHERE country = "united ... | 13,318 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (money___ INTEGER, country VARCHAR, to_par VARCHAR, score VARCHAR)\n\n Question: How much is the money ($) when the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (to_par VARCHAR, player VARCHAR)
Question: what is the to par when the player is roger maltbie?
Here is the SQLite query to answer to the question: what is... | Here is the SQLite query to answer the question of what is the to par when the player is Roger Maltbie:
```
SELECT to_par FROM table_name_75 WHERE player = "roger maltbie"
``` | 13,319 | [
{
"from": "human",
"value": " 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, player VARCHAR)\n\n Question: what is the to par when the player is roger maltbie?\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_97 (money___ VARCHAR, score VARCHAR)
Question: How much is the money ($) when the score is 67-71-72-72=282?
Here is the SQLite query to answer to the question... | The provided query seems to confuse the evaluation of the score and its comparison. To find how much money corresponds to a score of 282, the correct method would typically involve looking for rows where the score matches the calculated total of 282.
Here's the corrected SQLite query:
```sql
SELECT money___ FROM tab... | 13,320 | [
{
"from": "human",
"value": " 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 (money___ VARCHAR, score VARCHAR)\n\n Question: How much is the money ($) when the score is 67-71-72-72=282?\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (to_par VARCHAR, place VARCHAR)
Question: what is the to par when the place is 8?
Here is the SQLite query to answer to the question: what is the to par wh... | Here is the SQLite query to answer the question about the to par when the place is 8:
```
SELECT to_par FROM table_name_82 WHERE place = "8";
``` | 13,321 | [
{
"from": "human",
"value": " 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 (to_par VARCHAR, place VARCHAR)\n\n Question: what is the to par when the place is 8?\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_17 (score VARCHAR, game VARCHAR, location_attendance VARCHAR)
Question: WHAT IS THE SCORE OF THE GAME LARGER THAN 47, AT THE ROSE GARDEN 20,250 IN ATTENDANCE?
... | It looks like there is a misunderstanding in your query regarding how to filter the `game`. Since the `game` field is a variable character (VARCHAR), the condition `game > 47` may not provide the expected results since string comparisons will be used instead of numeric comparisons. Additionally, the attendance location... | 13,322 | [
{
"from": "human",
"value": " 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 (score VARCHAR, game VARCHAR, location_attendance VARCHAR)\n\n Question: WHAT IS THE SCORE OF THE GAME LARGER THAN 4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_7 (tournament VARCHAR, date VARCHAR)
Question: What tournament was on May 31, 1987?
Here is the SQLite query to answer to the question: What tournament was on... | Here is the SQLite query to answer the question: What tournament was on May 31, 1987?:
```sql
SELECT tournament FROM table_name_7 WHERE date = "May 31, 1987";
``` | 13,323 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR, date VARCHAR)\n\n Question: What tournament was on May 31, 1987?\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_93 (tournament VARCHAR, date VARCHAR)
Question: What tournament was on May 31, 1987?
Here is the SQLite query to answer to the question: What tournament was o... | Here is the SQLite query to answer the question about what tournament was on May 31, 1987:
```
SELECT tournament FROM table_name_93 WHERE date = "May 31, 1987";
``` | 13,324 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR, date VARCHAR)\n\n Question: What tournament was on May 31, 1987?\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_72 (tournament VARCHAR, winning_score VARCHAR)
Question: What tournament had a winning score of –9 (69-71-67=207)?
Here is the SQLite query to answer to the q... | Your query is slightly incorrect in terms of the syntax for both the condition in the WHERE clause and how to represent the winning score. Here's the corrected version of the SQLite query:
```sql
SELECT tournament FROM table_name_72 WHERE winning_score = '-9';
```
Make sure that the winning score is quoted as it is s... | 13,325 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR, winning_score VARCHAR)\n\n Question: What tournament had a winning score of –9 (69-71-67=207)?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (runner_s__up VARCHAR, winning_score VARCHAR)
Question: Who was the runner(s)-up when the winning score was –13 (75-68-68=211)?
Here is the SQLite query to... | It looks like there's a small error in your SQLite query syntax, particularly in how you're specifying the winning score. The winning score should just be a direct string value representing the score, without any additional calculations or comments in the condition. According to the schema you provided, the winning sco... | 13,326 | [
{
"from": "human",
"value": " 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 (runner_s__up VARCHAR, winning_score VARCHAR)\n\n Question: Who was the runner(s)-up when the winning score was –13 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (tournament VARCHAR, margin_of_victory VARCHAR)
Question: What tournament had a 1 point margin of victory?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question about which tournament had a 1 point margin of victory:
```
SELECT tournament FROM table_name_12 WHERE margin_of_victory = '1 point';
``` | 13,327 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR, margin_of_victory VARCHAR)\n\n Question: What tournament had a 1 point margin of victory?\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_50 (tournament VARCHAR, runner_s__up VARCHAR)
Question: What tournament was Laura Davies the runner-up?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about what tournament Laura Davies was the runner-up in:
```
SELECT tournament FROM table_name_50 WHERE runner_s__up = "Laura Davies";
``` | 13,328 | [
{
"from": "human",
"value": " 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 (tournament VARCHAR, runner_s__up VARCHAR)\n\n Question: What tournament was Laura Davies the runner-up?\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_36 (location VARCHAR, opponent VARCHAR)
Question: What is the Location of the match against Bob Stines?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the location of the match against Bob Stines:
```
SELECT location FROM table_name_36 WHERE opponent = "Bob Stines";
``` | 13,329 | [
{
"from": "human",
"value": " 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 (location VARCHAR, opponent VARCHAR)\n\n Question: What is the Location of the match against Bob Stines?\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_41 (venue VARCHAR, date VARCHAR)
Question: What is the venue of the game that was played on 23 October 1966?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about the venue of the game played on 23 October 1966:
```
SELECT venue FROM table_name_41 WHERE date = "23 October 1966"
``` | 13,330 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, date VARCHAR)\n\n Question: What is the venue of the game that was played on 23 October 1966?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, date VARCHAR)
Question: Where was the friendly competition on 17 December 1967 played at?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about where the friendly competition on 17 December 1967 was played:
```
SELECT venue FROM table_name_72 WHERE competition = "friendly" AND date = "17 December 1967";
``` | 13,331 | [
{
"from": "human",
"value": " 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 (venue VARCHAR, competition VARCHAR, date VARCHAR)\n\n Question: Where was the friendly competition on 17 December 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (Id VARCHAR)
Question: What 2009 has statistics by surface in 2012?
Here is the SQLite query to answer to the question: What 2009 has statistics by surface... | It seems that you are trying to construct an SQLite query based on a specific schema and a question. However, the question as phrased is not clear, especially regarding how the data is structured. Given the schema provided — `CREATE TABLE table_name_66 (Id VARCHAR)` — it appears that there is a single column named `Id`... | 13,332 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What 2009 has statistics by surface in 2012?\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_12 (Id VARCHAR)
Question: What 2001 has a ATP World Tour Masters 1000 2007?
Here is the SQLite query to answer to the question: What 2001 has a ATP World Tour... | Based on the provided schema and the structure of the question, it appears that the query needs to retrieve some data related to ATP World Tour Masters 1000 in the year 2007, perhaps indicating some association with the year 2001. However, the provided SQL query does not match typical SQL standards, particularly regard... | 13,333 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What 2001 has a ATP World Tour Masters 1000 2007?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_30 (Id VARCHAR)
Question: What 2010 has an A 2006 & 2011?
Here is the SQLite query to answer to the question: What 2010 has an A 2006 & 2011?:
```
SELECT 2010... | It seems there are some inconsistencies in the query and the question you've provided. Based on the schema `CREATE TABLE table_name_30 (Id VARCHAR)`, there is no clear structure indicating that the table has columns representing specific years (2010, 2006, 2011).
However, assuming you meant to query entries in a form... | 13,334 | [
{
"from": "human",
"value": " 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 (Id VARCHAR)\n\n Question: What 2010 has an A 2006 & 2011?\n\nHere is the SQLite query to answer to the question: Wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (Id VARCHAR)
Question: What 2009 has a 0 in 2008 & 2010?
Here is the SQLite query to answer to the question: What 2009 has a 0 in 2008 & 2010?:
```
SELECT 2... | It looks like you're trying to retrieve the value for the year 2009 from a table named `table_name_3`, but your current SQL query doesn't accurately reference the column names you've provided nor the specified logic.
Assuming that each year (2009, 2008, 2010) is represented as a column in your table, you will need to... | 13,335 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (Id VARCHAR)\n\n Question: What 2009 has a 0 in 2008 & 2010?\n\nHere is the SQLite query to answer to the question: W... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_96 (finish VARCHAR, country VARCHAR, player VARCHAR)
Question: What was the finishing position of Hale Irwin, of the United states?
Here is the SQLite query t... | Here is the SQLite query to answer the question about the finishing position of Hale Irwin from the United States:
```
SELECT finish FROM table_name_96 WHERE country = "united states" AND player = "hale irwin"
``` | 13,336 | [
{
"from": "human",
"value": " 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 (finish VARCHAR, country VARCHAR, player VARCHAR)\n\n Question: What was the finishing position of Hale Irwin, of 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 (finish VARCHAR, year_s__won VARCHAR)
Question: Where did the player who won in 1965 finish?
Here is the SQLite query to answer to the question: Where did ... | Here is the SQLite query to answer the question about where the player who won in 1965 finished:
```
SELECT finish FROM table_name_92 WHERE year_s__won = "1965"
``` | 13,337 | [
{
"from": "human",
"value": " 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 (finish VARCHAR, year_s__won VARCHAR)\n\n Question: Where did the player who won in 1965 finish?\n\nHere is the SQLi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_29 (finish VARCHAR, player VARCHAR)
Question: Where did Jerry Pate finish?
Here is the SQLite query to answer to the question: Where did Jerry Pate finish?:
`... | Here is the SQLite query to answer the question: Where did Jerry Pate finish?:
```
SELECT finish FROM table_name_29 WHERE player = "Jerry Pate";
``` | 13,338 | [
{
"from": "human",
"value": " 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 (finish VARCHAR, player VARCHAR)\n\n Question: Where did Jerry Pate finish?\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_73 (total INTEGER, country VARCHAR, year_s__won VARCHAR)
Question: What was the average total for the player from the United States, who won in 1978?
Here is ... | Here is the SQLite query to answer your question:
```
SELECT AVG(total) FROM table_name_73 WHERE country = "United States" AND year_s__won = "1978";
``` | 13,339 | [
{
"from": "human",
"value": " 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 (total INTEGER, country VARCHAR, year_s__won VARCHAR)\n\n Question: What was the average total for the player from t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (opponent VARCHAR, date VARCHAR)
Question: What team was the opponent for the game played on September 19, 1999?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the opponent for the game played on September 19, 1999:
```sql
SELECT opponent FROM table_name_92 WHERE date = "September 19, 1999";
``` | 13,340 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, date VARCHAR)\n\n Question: What team was the opponent for the game played on September 19, 1999?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)
Question: What week was the bye week?
Here is the SQLite query to answer to the question: What week was the bye week?:
```... | It looks like you are trying to find the week in which the bye week occurs in your `table_name_46`. The average function isn't necessary in this case; you can use a simple select query to find the week. Here's a corrected version of your query:
```
SELECT week FROM table_name_46 WHERE opponent = "bye";
```
This query... | 13,341 | [
{
"from": "human",
"value": " 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 (week INTEGER, opponent VARCHAR)\n\n Question: What week was the bye week?\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_87 (opponent VARCHAR, date VARCHAR)
Question: What team was the opponent for the game played on December 19, 1999?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about the opponent for the game played on December 19, 1999:
```
SELECT opponent FROM table_name_87 WHERE date = "December 19, 1999";
``` | 13,342 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, date VARCHAR)\n\n Question: What team was the opponent for the game played on December 19, 1999?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (result VARCHAR, week VARCHAR)
Question: What is the result from the game played on week 7?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question regarding the result from the game played on week 7:
```sql
SELECT result FROM table_name_45 WHERE week = '7'
``` | 13,343 | [
{
"from": "human",
"value": " 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 (result VARCHAR, week VARCHAR)\n\n Question: What is the result from the game played on week 7?\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_86 (seats INTEGER, election VARCHAR)
Question: What is the lowest number of seats of the 1992 election?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about the lowest number of seats in the 1992 election:
```
SELECT MIN(seats) FROM table_name_86 WHERE election = '1992';
``` | 13,344 | [
{
"from": "human",
"value": " 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 (seats INTEGER, election VARCHAR)\n\n Question: What is the lowest number of seats of the 1992 election?\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_96 (seats VARCHAR, share_of_votes VARCHAR)
Question: How many seats had a 41.2% share of votes?
Here is the SQLite query to answer to the question: How many s... | Your query is close, but to count how many seats had a 41.2% share of votes, you should use the `COUNT()` function. Here is the corrected query wrapped in code formatting:
```
SELECT COUNT(seats) AS num_seats
FROM table_name_96
WHERE share_of_votes = "41.2%"
```
This query will count the number of rows where the `... | 13,345 | [
{
"from": "human",
"value": " 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 (seats VARCHAR, share_of_votes VARCHAR)\n\n Question: How many seats had a 41.2% share of votes?\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_40 (share_of_votes VARCHAR, number_of_ndc_votes VARCHAR)
Question: What is the share of votes with 3,567,021 NDC votes?
Here is the SQLite query to answer to ... | Here is the SQLite query to answer the question:
```
SELECT share_of_votes FROM table_name_40 WHERE number_of_ndc_votes = "3,567,021"
``` | 13,346 | [
{
"from": "human",
"value": " 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 (share_of_votes VARCHAR, number_of_ndc_votes VARCHAR)\n\n Question: What is the share of votes with 3,567,021 NDC vo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (total VARCHAR, set_3 VARCHAR)
Question: What was the total when the set 3 score was 25–27?
Here is the SQLite query to answer to the question: What was th... | Here is the SQLite query to answer the question regarding the total when the set 3 score was 25–27:
```
SELECT total FROM table_name_12 WHERE set_3 = '25–27';
``` | 13,347 | [
{
"from": "human",
"value": " 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 (total VARCHAR, set_3 VARCHAR)\n\n Question: What was the total when the set 3 score was 25–27?\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_88 (date VARCHAR, total VARCHAR)
Question: On what date was the total 60–77?
Here is the SQLite query to answer to the question: On what date was the total 60... | Your SQLite query for retrieving the date when the total was 60–77 contains a slight issue because "60–77" is a range and may not be stored as an exact string. If the `total` column contains string representations of ranges (like "60–77"), then your query is accurate, but if it contains numeric values or is intended to... | 13,348 | [
{
"from": "human",
"value": " 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 (date VARCHAR, total VARCHAR)\n\n Question: On what date was the total 60–77?\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_58 (set_1 VARCHAR, total VARCHAR)
Question: What is the score for set 1 with a total of 117–109?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the score for set 1 with a total of 117–109:
```
SELECT set_1 FROM table_name_58 WHERE total = "117–109"
``` | 13,349 | [
{
"from": "human",
"value": " 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 (set_1 VARCHAR, total VARCHAR)\n\n Question: What is the score for set 1 with a total of 117–109?\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_28 (team VARCHAR, car_no VARCHAR)
Question: What team operates car 11?
Here is the SQLite query to answer to the question: What team operates car 11?:
```
SEL... | Here is the SQLite query to answer the question: What team operates car 11?:
```
SELECT team FROM table_name_28 WHERE car_no = "11";
``` | 13,350 | [
{
"from": "human",
"value": " 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 (team VARCHAR, car_no VARCHAR)\n\n Question: What team operates car 11?\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_7 (time_retired VARCHAR, driver VARCHAR)
Question: What was the time/retired of Darren Manning?
Here is the SQLite query to answer to the question: What was t... | Here is the SQLite query to answer the question about the time retired of Darren Manning:
```
SELECT time_retired FROM table_name_7 WHERE driver = 'Darren Manning';
``` | 13,351 | [
{
"from": "human",
"value": " 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 (time_retired VARCHAR, driver VARCHAR)\n\n Question: What was the time/retired of Darren Manning?\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_65 (points VARCHAR, car_no VARCHAR)
Question: How many points did car 20 score?
Here is the SQLite query to answer to the question: How many points did car 20... | To count how many points car 20 scored, you would need to sum the points for that car. However, since the points are stored as a VARCHAR type, you should convert them to an INTEGER or REAL for aggregation. Here is the correct SQLite query:
```sql
SELECT SUM(CAST(points AS INTEGER)) AS total_points
FROM table_name_65
W... | 13,352 | [
{
"from": "human",
"value": " 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 (points VARCHAR, car_no VARCHAR)\n\n Question: How many points did car 20 score?\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_46 (car_no VARCHAR, team VARCHAR, driver VARCHAR)
Question: What is the car number for Jeff Simmons on the Rahal Letterman team?
Here is the SQLite query to a... | Here is the SQLite query to answer the question about the car number for Jeff Simmons on the Rahal Letterman team:
```
SELECT car_no FROM table_name_46 WHERE team = "Rahal Letterman" AND driver = "Jeff Simmons"
``` | 13,353 | [
{
"from": "human",
"value": " 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 (car_no VARCHAR, team VARCHAR, driver VARCHAR)\n\n Question: What is the car number for Jeff Simmons on the Rahal Le... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (name VARCHAR, length_meters VARCHAR, km_from_kingston VARCHAR)
Question: What is Name, when Length Meters is greater than 66.4, and when Km From Kingston i... | Here is the SQLite query to answer the question:
```
SELECT name FROM table_name_54 WHERE length_meters > 66.4 AND km_from_kingston = 138.8
``` | 13,354 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (name VARCHAR, length_meters VARCHAR, km_from_kingston VARCHAR)\n\n Question: What is Name, when Length Meters is 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 (length_feet VARCHAR, length_meters VARCHAR, parish VARCHAR, km_from_kingston VARCHAR)
Question: What is the total number of Length Feet, when Parish is Cla... | Your SQLite query is almost correct but needs some adjustments regarding the data types. Since `length_meters` is stored as a `VARCHAR`, we need to convert it to a numerical value for the comparison. Furthermore, we must ensure that `km_from_kingston` is treated as a numerical value, especially if it's stored as a `VAR... | 13,355 | [
{
"from": "human",
"value": " 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 (length_feet VARCHAR, length_meters VARCHAR, parish VARCHAR, km_from_kingston VARCHAR)\n\n Question: What is the tot... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (km_from_kingston INTEGER, mi_from_kingston VARCHAR, length_meters VARCHAR)
Question: What is the highest Km From Kingston, when Mi From Kingston is less th... | Here is the SQLite query to answer the question based on the provided schema:
```
SELECT MAX(km_from_kingston)
FROM table_name_61
WHERE mi_from_kingston < 108
AND length_meters = '260.6';
```
Note: `length_meters` is compared as a string since it's defined as a VARCHAR in the schema. Make sure that the data type ... | 13,356 | [
{
"from": "human",
"value": " 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 (km_from_kingston INTEGER, mi_from_kingston VARCHAR, length_meters VARCHAR)\n\n Question: What is the highest Km Fro... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (length_feet VARCHAR, name VARCHAR, mi_from_kingston VARCHAR, length_meters VARCHAR)
Question: What is Lenth Feet, when Mi From Kingston is greater than 84.... | Here's the SQLite query to answer your question:
```sql
SELECT length_feet
FROM table_name_28
WHERE mi_from_kingston > 84.5
AND length_meters > 55.5
AND name = "Unnamed";
```
Note: Ensure that "Unnamed" matches the exact casing as it appears in your database if it's case-sensitive. | 13,357 | [
{
"from": "human",
"value": " 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 (length_feet VARCHAR, name VARCHAR, mi_from_kingston VARCHAR, length_meters VARCHAR)\n\n Question: What is Lenth Fee... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (place VARCHAR, player VARCHAR)
Question: Which Place has a Player of lee trevino?
Here is the SQLite query to answer to the question: Which Place has a Pl... | Here is the SQLite query to answer the question of which place has a player of "lee trevino":
```
SELECT place FROM table_name_95 WHERE player = "lee trevino";
``` | 13,358 | [
{
"from": "human",
"value": " 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 (place VARCHAR, player VARCHAR)\n\n Question: Which Place has a Player of lee trevino?\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_5 (country VARCHAR, place VARCHAR, score VARCHAR)
Question: Name Country which has a Place of t7, and a Score of 73-69-73=215?
Here is the SQLite query to ans... | The SQL query you provided has a small issue with the condition for checking the score. The formula for score calculation should be done outside the query, as we typically don't use mathematical calculations directly in a string comparison against the score field.
You should first compute the score and then compare i... | 13,359 | [
{
"from": "human",
"value": " 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 (country VARCHAR, place VARCHAR, score VARCHAR)\n\n Question: Name Country which has a Place of t7, and a Score of 73... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_49 (week VARCHAR, tournament VARCHAR)
Question: Which week held a tournament in Rome?
Here is the SQLite query to answer to the question: Which week held a to... | Here is the SQLite query to answer the question: Which week held a tournament in Rome?:
```
SELECT week FROM table_name_49 WHERE tournament = "Rome";
``` | 13,360 | [
{
"from": "human",
"value": " 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 (week VARCHAR, tournament VARCHAR)\n\n Question: Which week held a tournament in Rome?\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_79 (res VARCHAR, record VARCHAR)
Question: What is the result of the fight when record is 12-2?
Here is the SQLite query to answer to the question: What is th... | Here is the SQLite query to answer the question regarding the result of the fight when the record is 12-2:
```
SELECT res FROM table_name_79 WHERE record = '12-2';
``` | 13,361 | [
{
"from": "human",
"value": " 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 (res VARCHAR, record VARCHAR)\n\n Question: What is the result of the fight when record is 12-2?\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_7 (round INTEGER, event VARCHAR)
Question: How many rounds was the fight at UFC 34?
Here is the SQLite query to answer to the question: How many rounds was th... | Your query is almost correct, but it should not sum the rounds if you are looking for the count of rounds for UFC 34. Instead, you should simply count the distinct rounds for that event. Here's the revised SQLite query:
```sql
SELECT COUNT(round) FROM table_name_7 WHERE event = "ufc 34";
```
This query will give you... | 13,362 | [
{
"from": "human",
"value": " 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 (round INTEGER, event VARCHAR)\n\n Question: How many rounds was the fight at UFC 34?\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_26 (location VARCHAR, opponent VARCHAR)
Question: What is the location of the fight against Zaza Tkeshelashvili?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about the location of the fight against Zaza Tkeshelashvili:
```
SELECT location FROM table_name_26 WHERE opponent = "Zaza Tkeshelashvili";
``` | 13,363 | [
{
"from": "human",
"value": " 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 (location VARCHAR, opponent VARCHAR)\n\n Question: What is the location of the fight against Zaza Tkeshelashvili?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_89 (year INTEGER, title VARCHAR)
Question: what is the average year when the title is baka to test to shōkanjū?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the average year when the title is "baka to test to shōkanjū":
```
SELECT AVG(year) FROM table_name_89 WHERE title = "baka to test to shōkanjū";
``` | 13,364 | [
{
"from": "human",
"value": " 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 (year INTEGER, title VARCHAR)\n\n Question: what is the average year when the title is baka to test to shōkanjū?\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_96 (title VARCHAR, imprint VARCHAR, artist VARCHAR)
Question: what is the title when the imprint is dengeki bunko and the artist is kiyotaka haimura?
Here is ... | Here is the SQLite query to answer the question regarding the title when the imprint is "dengeki bunko" and the artist is "kiyotaka haimura":
```
SELECT title FROM table_name_96 WHERE imprint = "dengeki bunko" AND artist = "kiyotaka haimura"
``` | 13,365 | [
{
"from": "human",
"value": " 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 (title VARCHAR, imprint VARCHAR, artist VARCHAR)\n\n Question: what is the title when the imprint is dengeki bunko a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (imprint VARCHAR, title VARCHAR)
Question: what is the imprint when the title is owari no chronicle (ahead series)?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question about the imprint when the title is "owari no chronicle (ahead series)":
```
SELECT imprint FROM table_name_22 WHERE title = "owari no chronicle (ahead series)"
``` | 13,366 | [
{
"from": "human",
"value": " 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 (imprint VARCHAR, title VARCHAR)\n\n Question: what is the imprint when the title is owari no chronicle (ahead serie... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (year INTEGER, author VARCHAR)
Question: what is the earliest year when the author is reki kawahara?
Here is the SQLite query to answer to the question: wh... | Here is the SQLite query to answer the question regarding the earliest year when the author is reki kawahara:
```
SELECT MIN(year) FROM table_name_42 WHERE author = "reki kawahara";
``` | 13,367 | [
{
"from": "human",
"value": " 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 (year INTEGER, author VARCHAR)\n\n Question: what is the earliest year when the author is reki kawahara?\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_75 (character VARCHAR, artist VARCHAR, year VARCHAR)
Question: who is the character when the artist is take and the year is before 2006?
Here is the SQLite qu... | Here is the SQLite query to answer the question:
```sql
SELECT character FROM table_name_75 WHERE artist = "take" AND year < '2006'
``` | 13,368 | [
{
"from": "human",
"value": " 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 (character VARCHAR, artist VARCHAR, year VARCHAR)\n\n Question: who is the character when the artist is take and the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (language VARCHAR, draw VARCHAR)
Question: Which language has 3 draws?
Here is the SQLite query to answer to the question: Which language has 3 draws?:
```... | It looks like there is a small issue with your query. The `draw` column is defined as a `VARCHAR` type, but you are comparing it with an integer value `3`. You need to use the string representation of the number instead. Here is the corrected SQLite query:
```
SELECT language FROM table_name_15 WHERE draw = '3';
```
... | 13,369 | [
{
"from": "human",
"value": " 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 (language VARCHAR, draw VARCHAR)\n\n Question: Which language has 3 draws?\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_56 (away_team VARCHAR, time VARCHAR)
Question: What is the away team score for the match at 6:00 PM and an away team of Hawthorn?
Here is the SQLite query to ... | The given SQLite query to find the away team score for a match at 6:00 PM and with the away team of Hawthorn is mostly correct, but it seems to incorrectly refer to the `away_team` as `score`. However, based on the provided schema, there is no specific column for scores; we would need another column to reflect the scor... | 13,370 | [
{
"from": "human",
"value": " 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 (away_team VARCHAR, time VARCHAR)\n\n Question: What is the away team score for the match at 6:00 PM and an away tea... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (tenure VARCHAR, date_of_death VARCHAR)
Question: What is the Tenure of the Officer with a Date of death of 2001-08-31?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding the Tenure of the Officer with a Date of death of 2001-08-31:
```
SELECT tenure FROM table_name_16 WHERE date_of_death = "2001-08-31"
``` | 13,371 | [
{
"from": "human",
"value": " 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 (tenure VARCHAR, date_of_death VARCHAR)\n\n Question: What is the Tenure of the Officer with a Date of death of 2001... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (cause_of_death VARCHAR, rank VARCHAR, name VARCHAR)
Question: What is Detective Donald William Schneider's Cause of death?
Here is the SQLite query to ans... | Here's the SQLite query wrapped in the requested format:
```
SELECT cause_of_death FROM table_name_37 WHERE rank = "detective" AND name = "donald william schneider";
``` | 13,372 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (cause_of_death VARCHAR, rank VARCHAR, name VARCHAR)\n\n Question: What is Detective Donald William Schneider's Caus... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (tenure VARCHAR, name VARCHAR)
Question: What is Gary David Saunders' Tenure?
Here is the SQLite query to answer to the question: What is Gary David Saunde... | Here is the SQLite query to answer the question regarding Gary David Saunders' tenure:
```
SELECT tenure FROM table_name_23 WHERE name = "Gary David Saunders";
``` | 13,373 | [
{
"from": "human",
"value": " 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 (tenure VARCHAR, name VARCHAR)\n\n Question: What is Gary David Saunders' Tenure?\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_47 (date_of_death VARCHAR, name VARCHAR, cause_of_death VARCHAR, tenure VARCHAR)
Question: What is gunfire victim Maria Cecilia Rosa with 6 years of Tenure Dat... | Here is the SQLite query to answer the question:
```
SELECT date_of_death FROM table_name_47 WHERE cause_of_death = "gunfire" AND tenure = "6 years" AND name = "maria cecilia rosa"
``` | 13,374 | [
{
"from": "human",
"value": " 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_of_death VARCHAR, name VARCHAR, cause_of_death VARCHAR, tenure VARCHAR)\n\n Question: What is gunfire victim M... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (lijsttrekker VARCHAR, year VARCHAR, chair VARCHAR)
Question: What is Lijsttrekker, when Year is after 1990, and when Chair is "Ingrid Van Engelshoven"?
He... | Here is the SQLite query to answer the question:
```sql
SELECT lijsttrekker FROM table_name_51 WHERE year > '1990' AND chair = 'Ingrid Van Engelshoven';
``` | 13,375 | [
{
"from": "human",
"value": " 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 (lijsttrekker VARCHAR, year VARCHAR, chair VARCHAR)\n\n Question: What is Lijsttrekker, when Year is after 1990, and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (fractievoorzitter VARCHAR, lijsttrekker VARCHAR, year VARCHAR)
Question: What is Fractievoorzitter, when Lijsttrekker is "No Elections", and when Year is a... | Here is the corrected SQLite query based on the schema and the requirements:
```sql
SELECT fractievoorzitter FROM table_name_80 WHERE lijsttrekker = "No Elections" AND year > 2005
``` | 13,376 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (fractievoorzitter VARCHAR, lijsttrekker VARCHAR, year VARCHAR)\n\n Question: What is Fractievoorzitter, when Lijstt... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (cabinet VARCHAR, chair VARCHAR, year VARCHAR, fractievoorzitter VARCHAR)
Question: What is Cabinet, when Year is after 1981, when Fractievoorzitter is "Han... | Here is the SQLite query to answer the question you provided:
```
SELECT cabinet FROM table_name_42 WHERE year > 1981 AND fractievoorzitter = "Hans Van Mierlo" AND chair = "W.I.J.M. Vrijhoef"
``` | 13,377 | [
{
"from": "human",
"value": " 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 (cabinet VARCHAR, chair VARCHAR, year VARCHAR, fractievoorzitter VARCHAR)\n\n Question: What is Cabinet, when Year i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (lijsttrekker VARCHAR, cabinet VARCHAR, fractievoorzitter VARCHAR)
Question: What is Lijsttrekker, when Cabinet is "Hans Van Mierlo", and when Fractievoorzi... | Here is the SQLite query to answer the question:
```
SELECT lijsttrekker FROM table_name_81 WHERE cabinet = "Hans Van Mierlo" AND fractievoorzitter = "Thom De Graaf"
``` | 13,378 | [
{
"from": "human",
"value": " 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 (lijsttrekker VARCHAR, cabinet VARCHAR, fractievoorzitter VARCHAR)\n\n Question: What is Lijsttrekker, when Cabinet ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (cabinet VARCHAR, chair VARCHAR, fractievoorzitter VARCHAR, year VARCHAR, lijsttrekker VARCHAR)
Question: What is Cabinet, when Year is before 2001, when Li... | Here's the SQLite query wrapped in code formatting as you requested:
```
SELECT cabinet FROM table_name_79 WHERE year < 2001 AND lijsttrekker = "No Elections" AND fractievoorzitter = "Hans Van Mierlo" AND chair = "S. Van Der Loo"
``` | 13,379 | [
{
"from": "human",
"value": " 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 (cabinet VARCHAR, chair VARCHAR, fractievoorzitter VARCHAR, year VARCHAR, lijsttrekker VARCHAR)\n\n Question: What i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (territory VARCHAR, channel VARCHAR, broadcaster VARCHAR)
Question: Which territory has a channel of 144 and a broadcaster of Astro?
Here is the SQLite que... | Here's the SQLite query formatted as requested:
```
SELECT territory FROM table_name_23 WHERE channel = 144 AND broadcaster = "Astro"
``` | 13,380 | [
{
"from": "human",
"value": " 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 (territory VARCHAR, channel VARCHAR, broadcaster VARCHAR)\n\n Question: Which territory has a channel of 144 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_52 (tennis VARCHAR, school VARCHAR)
Question: What is the tennis status for youngstown state?
Here is the SQLite query to answer to the question: What is the ... | Here is the SQLite query to answer the question about the tennis status for Youngstown State:
```
SELECT tennis FROM table_name_52 WHERE school = "youngstown state";
``` | 13,381 | [
{
"from": "human",
"value": " 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 (tennis VARCHAR, school VARCHAR)\n\n Question: What is the tennis status for youngstown state?\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_73 (school VARCHAR, indoor_track VARCHAR, soccer VARCHAR, tennis VARCHAR)
Question: Which school has yes for soccer, tennis and indoor track.
Here is the SQLi... | Here is the SQLite query you can use to find the school that has "yes" for soccer, tennis, and indoor track:
```
SELECT school FROM table_name_73 WHERE soccer = "yes" AND tennis = "yes" AND indoor_track = "yes";
``` | 13,382 | [
{
"from": "human",
"value": " 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 (school VARCHAR, indoor_track VARCHAR, soccer VARCHAR, tennis VARCHAR)\n\n Question: Which school has yes for soccer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (bask VARCHAR, indoor_track VARCHAR, school VARCHAR)
Question: What is the basketball status for Valparaiso who has an indoor track status of yes?
Here is ... | Here is the SQLite query to answer the question regarding the basketball status for Valparaiso who has an indoor track status of yes:
```
SELECT bask FROM table_name_69 WHERE indoor_track = "yes" AND school = "valparaiso"
``` | 13,383 | [
{
"from": "human",
"value": " 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 (bask VARCHAR, indoor_track VARCHAR, school VARCHAR)\n\n Question: What is the basketball status for Valparaiso who ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (indoor_track VARCHAR, tennis VARCHAR, golf VARCHAR)
Question: What is the indoor track status for the school that has yes for tennis and no for golf?
Here... | Here is the SQLite query to answer the question about the indoor track status for the school that has "yes" for tennis and "no" for golf:
```sql
SELECT indoor_track FROM table_name_91 WHERE tennis = "yes" AND golf = "no"
``` | 13,384 | [
{
"from": "human",
"value": " 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 (indoor_track VARCHAR, tennis VARCHAR, golf VARCHAR)\n\n Question: What is the indoor track status for the school th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_80 (swimming VARCHAR, tennis VARCHAR, indoor_track VARCHAR, soccer VARCHAR)
Question: What is th eswimming status for the school that has yes on indoor track, ... | Here is the SQLite query to answer the question regarding the swimming status for the school that has "yes" on indoor track, soccer, and tennis:
```
SELECT swimming FROM table_name_80 WHERE indoor_track = "yes" AND soccer = "yes" AND tennis = "yes";
``` | 13,385 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (swimming VARCHAR, tennis VARCHAR, indoor_track VARCHAR, soccer VARCHAR)\n\n Question: What is th eswimming status f... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_78 (tennis VARCHAR, school VARCHAR, swimming VARCHAR, golf VARCHAR, soccer VARCHAR)
Question: What is the status for tennis at cleveland state who has yes for ... | Your SQLite query is correct. Below is the wrapped code as you requested:
```
SELECT tennis FROM table_name_78 WHERE golf = "yes" AND soccer = "yes" AND swimming = "yes" AND school = "cleveland state"
``` | 13,386 | [
{
"from": "human",
"value": " 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 (tennis VARCHAR, school VARCHAR, swimming VARCHAR, golf VARCHAR, soccer VARCHAR)\n\n Question: What is the status fo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_69 (event VARCHAR, opponent VARCHAR)
Question: What event did Soares fight against josh spearman?
Here is the SQLite query to answer to the question: What eve... | Here is the SQLite query to answer the question: What event did Soares fight against josh spearman?:
```
SELECT event FROM table_name_69 WHERE opponent = "josh spearman" AND event LIKE "%Soares%";
``` | 13,387 | [
{
"from": "human",
"value": " 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 (event VARCHAR, opponent VARCHAR)\n\n Question: What event did Soares fight against josh spearman?\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_4 (round INTEGER, method VARCHAR)
Question: What round was the fight won or loss by a decision?
Here is the SQLite query to answer to the question: What round... | Here is the SQLite query to answer the question about the round in which the fight was won or lost by a decision:
```
SELECT MIN(round) FROM table_name_4 WHERE method = "decision";
``` | 13,388 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (round INTEGER, method VARCHAR)\n\n Question: What round was the fight won or loss by a decision?\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_65 (location VARCHAR, round VARCHAR, method VARCHAR)
Question: Where was the fight that lasted 3 rounds and was won or loss by a decision?
Here is the SQLite ... | Here is the SQLite query to answer the question about where the fight that lasted 3 rounds and was won or lost by a decision took place:
```sql
SELECT location FROM table_name_65 WHERE round = '3' AND method = 'decision';
``` | 13,389 | [
{
"from": "human",
"value": " 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 (location VARCHAR, round VARCHAR, method VARCHAR)\n\n Question: Where was the fight that lasted 3 rounds and was won... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_45 (top_5 INTEGER, starts VARCHAR, year VARCHAR, team_s_ VARCHAR)
Question: what is the lowest top 5 when the year is after 1995, team(s) is #15 billy ballew m... | Your SQLite query is almost correct, but the `starts` column is defined as a `VARCHAR`, so you should cast it to an integer for comparison. Here's the corrected version of your query:
```sql
SELECT MIN(top_5)
FROM table_name_45
WHERE year > 1995
AND team_s_ = "#15 billy ballew motorsports"
AND CAST(starts AS I... | 13,390 | [
{
"from": "human",
"value": " 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 (top_5 INTEGER, starts VARCHAR, year VARCHAR, team_s_ VARCHAR)\n\n Question: what is the lowest top 5 when the year ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (method VARCHAR, opponent VARCHAR)
Question: What was the method in the fight against Chris Myers?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question regarding the method used in the fight against Chris Myers:
```
SELECT method FROM table_name_15 WHERE opponent = "chris myers";
``` | 13,391 | [
{
"from": "human",
"value": " 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 (method VARCHAR, opponent VARCHAR)\n\n Question: What was the method in the fight against Chris Myers?\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_27 (record VARCHAR, event VARCHAR)
Question: What is the record in TKO 20: Champion Vs Champion?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the record in "TKO 20: Champion Vs Champion":
```sql
SELECT record FROM table_name_27 WHERE event = "TKO 20: Champion Vs Champion";
``` | 13,392 | [
{
"from": "human",
"value": " 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 (record VARCHAR, event VARCHAR)\n\n Question: What is the record in TKO 20: Champion Vs Champion?\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_2 (round VARCHAR, location VARCHAR, opponent VARCHAR)
Question: How many rounds in the fight in Quebec, Canada against David Loiseau?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding how many rounds in the fight in Quebec, Canada against David Loiseau:
```
SELECT COUNT(round) FROM table_name_2 WHERE location = "quebec, canada" AND opponent = "david loiseau";
``` | 13,393 | [
{
"from": "human",
"value": " 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 (round VARCHAR, location VARCHAR, opponent VARCHAR)\n\n Question: How many rounds in the fight in Quebec, Canada agai... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (event VARCHAR, method VARCHAR)
Question: Which event has a method of TKO (punches)?
Here is the SQLite query to answer to the question: Which event has a ... | Here is the SQLite query to answer the question:
```
SELECT event FROM table_name_52 WHERE method = "tko (punches)"
``` | 13,394 | [
{
"from": "human",
"value": " 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 (event VARCHAR, method VARCHAR)\n\n Question: Which event has a method of TKO (punches)?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (opponent VARCHAR, method VARCHAR)
Question: Who is the opponent when the method is technical submission (guillotine choke)?
Here is the SQLite query to an... | Your provided SQLite query looks correct for retrieving the opponent associated with the method "technical submission (guillotine choke)". Here it is wrapped in code format:
```
SELECT opponent FROM table_name_22 WHERE method = "technical submission (guillotine choke)"
``` | 13,395 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, method VARCHAR)\n\n Question: Who is the opponent when the method is technical submission (guillo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR)
Question: What was the school/club after round 12, and picked smaller than 342?
Here is the SQLite ... | Your SQLite query looks almost correct, but it's important to note that the `round` and `pick` columns should be integers for comparisons. If they are stored as text (VARCHAR), you might need to cast them to integers. Here is the adjusted query wrapped in the appropriate code block:
```sql
SELECT school_club_team
FRO... | 13,396 | [
{
"from": "human",
"value": " 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 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR)\n\n Question: What was the school/club after round 12, and p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (pick INTEGER, school_club_team VARCHAR)
Question: What is the average pick for Florida State?
Here is the SQLite query to answer to the question: What is ... | Here's the SQLite query to find the average pick for Florida State:
```
SELECT AVG(pick) FROM table_name_70 WHERE school_club_team = "Florida State";
``` | 13,397 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (pick INTEGER, school_club_team VARCHAR)\n\n Question: What is the average pick for Florida State?\n\nHere is the SQ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_91 (pick VARCHAR, player VARCHAR, round VARCHAR)
Question: What is the total number for the pick of the player Wayne Fowler and a round after 7?
Here is the S... | Here is the SQLite query you provided, wrapped as requested:
```
SELECT COUNT(pick) FROM table_name_91 WHERE player = "wayne fowler" AND round > 7
``` | 13,398 | [
{
"from": "human",
"value": " 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 (pick VARCHAR, player VARCHAR, round VARCHAR)\n\n Question: What is the total number for the pick of the player Wayn... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (college VARCHAR, overall VARCHAR, round VARCHAR)
Question: Which college had an overall smaller than 315 in round 17?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question:
```
SELECT college FROM table_name_41 WHERE overall < 315 AND round = 17;
``` | 13,399 | [
{
"from": "human",
"value": " 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 (college VARCHAR, overall VARCHAR, round VARCHAR)\n\n Question: Which college had an overall smaller than 315 in rou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.