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_81 (county VARCHAR, mascot VARCHAR)
Question: Which county has the mascot of Bruins?
Here is the SQLite query to answer to the question: Which county has the ... | Your SQLite query looks almost correct, but you should consider case sensitivity in SQLite. To ensure that you match the mascot regardless of case, you can use the `LOWER` function. Here's the revised query:
```
SELECT county FROM table_name_81 WHERE LOWER(mascot) = "bruins"
```
This will return the county (or counti... | 16,700 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (county VARCHAR, mascot VARCHAR)\n\n Question: Which county has the mascot of Bruins?\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_15 (school VARCHAR, year_joined VARCHAR, year_left VARCHAR)
Question: Which school joined in 1971 and left in 1975?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about which school joined in 1971 and left in 1975:
```
SELECT school FROM table_name_15 WHERE year_joined = "1971" AND year_left = "1975";
``` | 16,701 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_15 (school VARCHAR, year_joined VARCHAR, year_left VARCHAR)\n\n Question: Which school joined in 1971 and left in 1975?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
Question: Which IHSAA class A school are the Cavaliers from?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question: Which IHSAA class A school are the Cavaliers from?:
```
SELECT county FROM table_name_38 WHERE ihsaa_class = "A" AND mascot = "Cavaliers"
``` | 16,702 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)\n\n Question: Which IHSAA class A school are the Cavaliers fro... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_87 (county VARCHAR, mascot VARCHAR)
Question: Which county do the Trojans come from?
Here is the SQLite query to answer to the question: Which county do the T... | Here is the SQLite query to answer the question: Which county do the Trojans come from?:
```
SELECT county FROM table_name_87 WHERE mascot = "trojans";
``` | 16,703 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (county VARCHAR, mascot VARCHAR)\n\n Question: Which county do the Trojans come from?\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_78 (rank INTEGER, react VARCHAR, lane VARCHAR)
Question: What is the average ranking for a react of 0.17300000000000001 and less than 5 lanes?
Here is the SQL... | Here is the corrected SQLite query to answer your question:
```sql
SELECT AVG(rank) FROM table_name_78 WHERE react = '0.17300000000000001' AND lane < 5;
```
Notes:
1. Make sure that `react` is treated as a string, hence it is enclosed in single quotes.
2. Ensure that column `lane` is compared appropriately, assuming ... | 16,704 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (rank INTEGER, react VARCHAR, lane VARCHAR)\n\n Question: What is the average ranking for a react of 0.1730000000000... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (year VARCHAR, finish_position VARCHAR)
Question: What was the 4th day in the year before 2012 that the finish is 33rd?
Here is the SQLite query to answer ... | To correctly retrieve the 4th day in the year before 2012 where the finish position is 33rd, you would need to adjust the query to specifically look for the year 2011 and ensure that you are fetching the correct day. However, based on your initial query structure, it seems you're attempting to return a static value ins... | 16,705 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (year VARCHAR, finish_position VARCHAR)\n\n Question: What was the 4th day in the year before 2012 that the finish 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 (gold INTEGER, total VARCHAR, bronze VARCHAR)
Question: What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals?
... | The provided SQL query has a minor issue in the condition for `bronze` medals, as `bronze` is defined as a `VARCHAR` type. To compare it correctly as a numeric value, you need to cast it to an integer or ensure that you're comparing it appropriately. Here’s the corrected query:
```sql
SELECT SUM(gold)
FROM table_name... | 16,706 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (gold INTEGER, total VARCHAR, bronze VARCHAR)\n\n Question: What is the sum of gold medals won by teams that won 5 t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (gold INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR)
Question: What is the sum of gold medals won by teams that won fewer than 3 silver medals, more ... | It looks like there are a couple of issues with your query, particularly with how you're comparing the `silver` and `total` fields. Since `silver` and `total` are VARCHAR types, we should also convert them to integers for comparison. Here's the corrected SQLite query:
```sql
SELECT SUM(gold)
FROM table_name_51
WHERE... | 16,707 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (gold INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR)\n\n Question: What is the sum of gold medals won by team... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (nation VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)
Question: What nation won fewer than 14 total medals, 1 silver medal, and rank 5?
Here is the... | Here is the SQLite query that answers the question based on the provided schema:
```
SELECT nation FROM table_name_62 WHERE total < 14 AND silver = 1 AND rank = "5";
``` | 16,708 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (nation VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)\n\n Question: What nation won fewer than 14 total meda... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
Question: Which IHSAA Football Class has an IHSAA Class of aa, and an Enrollment of ... | Here is the SQLite query to answer the question regarding the IHSAA Football Class:
```
SELECT ihsaa_football_class FROM table_name_14 WHERE ihsaa_class = "aa" AND enrollment = '475'
``` | 16,709 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_14 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)\n\n Question: Which IHSAA Football Class has... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR)
Question: Which School has a Location of peru?
Here is the SQLite query to answer to the question: Which School has a Lo... | Here is the SQLite query to answer the question: Which School has a Location of peru?:
```
SELECT school FROM table_name_37 WHERE location = "peru";
``` | 16,710 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR)\n\n Question: Which School has a Location of peru?\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_53 (mascot VARCHAR, ihsaa_class VARCHAR, location VARCHAR)
Question: Which Mascot has an IHSAA Class of aaa, and a Location of russiaville?
Here is the SQLite... | Here is the SQLite query to answer the question about which mascot has an IHSAA Class of "aaa" and a location of "russiaville":
```
SELECT mascot FROM table_name_53 WHERE ihsaa_class = 'aaa' AND location = 'russiaville';
``` | 16,711 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_53 (mascot VARCHAR, ihsaa_class VARCHAR, location VARCHAR)\n\n Question: Which Mascot has an IHSAA Class of aaa, and a ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (ihsaa_class VARCHAR, school VARCHAR)
Question: Which IHSAA Class has a School of taylor?
Here is the SQLite query to answer to the question: Which IHSAA C... | Here is the SQLite query to answer the question: Which IHSAA Class has a School of taylor?:
```
SELECT ihsaa_class FROM table_name_51 WHERE school = 'taylor';
``` | 16,712 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (ihsaa_class VARCHAR, school VARCHAR)\n\n Question: Which IHSAA Class has a School of taylor?\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_80 (date VARCHAR, opponent VARCHAR)
Question: what is the date when the opponent is leeds united?
Here is the SQLite query to answer to the question: what is ... | Here is the SQLite query to answer the question regarding the date when the opponent is Leeds United:
```
SELECT date FROM table_name_80 WHERE opponent = "leeds united";
``` | 16,713 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_80 (date VARCHAR, opponent VARCHAR)\n\n Question: what is the date when the opponent is leeds united?\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_23 (date VARCHAR, scorers VARCHAR)
Question: what is the date when scorers is parkinson?
Here is the SQLite query to answer to the question: what is the date ... | Here is the SQLite query to answer the question regarding the date when scorers is "parkinson":
```
SELECT date FROM table_name_23 WHERE scorers = "parkinson"
``` | 16,714 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (date VARCHAR, scorers VARCHAR)\n\n Question: what is the date when scorers is parkinson?\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_43 (opponent VARCHAR, date VARCHAR)
Question: who is the opponent on 31 jul?
Here is the SQLite query to answer to the question: who is the opponent on 31 jul... | Here is the SQLite query to answer the question "who is the opponent on 31 jul?":
```
SELECT opponent FROM table_name_43 WHERE date = "31 jul";
``` | 16,715 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (opponent VARCHAR, date VARCHAR)\n\n Question: who is the opponent on 31 jul?\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 (result VARCHAR, opponent VARCHAR)
Question: what is the result when the opponent is blackburn rovers?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question about the result when the opponent is Blackburn Rovers:
```
SELECT result FROM table_name_39 WHERE opponent = "blackburn rovers"
``` | 16,716 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_39 (result VARCHAR, opponent VARCHAR)\n\n Question: what is the result when the opponent is blackburn rovers?\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_42 (result VARCHAR, week VARCHAR)
Question: What was the result on week 6?
Here is the SQLite query to answer to the question: What was the result on week 6?:... | Here is the SQLite query to answer the question about the result on week 6:
```
SELECT result FROM table_name_42 WHERE week = '6'
``` | 16,717 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (result VARCHAR, week VARCHAR)\n\n Question: What was the result on week 6?\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_41 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
Question: What is the sum on week against the Tampa Bay Buccaneers with less than 60,320 in attendance?... | It looks like there is a small syntax issue in your provided query. The `attendance` column is of type VARCHAR, so you need to compare it after converting it to an integer. Additionally, the "OFFSET" keyword should not be used in this context, as you want to compare attendance directly.
Here is the corrected SQLite qu... | 16,718 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (week INTEGER, opponent VARCHAR, attendance VARCHAR)\n\n Question: What is the sum on week against the Tampa Bay Buc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (week INTEGER, result VARCHAR)
Question: What is the highest week with a w 33-14 result?
Here is the SQLite query to answer to the question: What is the hi... | Here is the SQLite query to answer the question regarding the highest week with a result of "w 33-14":
```
SELECT MAX(week) FROM table_name_38 WHERE result = "w 33-14"
``` | 16,719 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (week INTEGER, result VARCHAR)\n\n Question: What is the highest week with a w 33-14 result?\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_45 (netscape VARCHAR, firefox VARCHAR)
Question: What percentage of users were using Netscape during the period in which 21.67% were using Firefox?
Here is th... | Your current query doesn't accurately answer the question regarding the percentage of users using Netscape when 21.67% were using Firefox. Instead, we need to compute the percentage of users using Netscape specifically during the period when Firefox usage is 21.67%.
Assuming that `netscape` and `firefox` represent use... | 16,720 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (netscape VARCHAR, firefox VARCHAR)\n\n Question: What percentage of users were using Netscape during the period in ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_3 (safari VARCHAR, opera VARCHAR)
Question: What percentage of users were using Safari during the period in which 2.33% were using Opera?
Here is the SQLite q... | It looks like there is a misunderstanding in the provided SQL query. The query should calculate the percentage of users using Safari when given that 2.33% of users were using Opera.
To achieve this, you typically need to perform a calculation based on the counts of users using Safari and Opera. However, given the sch... | 16,721 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_3 (safari VARCHAR, opera VARCHAR)\n\n Question: What percentage of users were using Safari during the period in which 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (netscape VARCHAR, internet_explorer VARCHAR)
Question: What percentage of users were using Netscape during the period in which 63.67% were using Internet E... | To answer the question of what percentage of users were using Netscape during the period when 63.67% were using Internet Explorer, you need to calculate the percentage of users using Netscape for the specific condition.
The provided SQL query is not correct for this calculation. Instead, you should calculate the numbe... | 16,722 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_54 (netscape VARCHAR, internet_explorer VARCHAR)\n\n Question: What percentage of users were using Netscape during the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (firefox VARCHAR, netscape VARCHAR)
Question: What percentage of users were using Firefox during the period in which *0.77% were using Netscape?
Here is the... | Your current query does not accurately answer the question about calculating the percentage of Firefox users when Netscape users are at 0.77%. To properly calculate this, you need to determine the counts of users for both browsers when Netscape users represent that percentage of the total.
Here’s how you can structure... | 16,723 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (firefox VARCHAR, netscape VARCHAR)\n\n Question: What percentage of users were using Firefox during the period in wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_97 (other_mozilla VARCHAR, opera VARCHAR)
Question: What percentage of users were using other Mozilla browsers during the period in which 2.29% were using Oper... | To find the percentage of users who were using other Mozilla browsers during the period when 2.29% were using Opera, you will need to calculate the total number of users and the number of users using other Mozilla browsers when Opera usage is 2.29%. However, the provided SQL query does not achieve this; it simply selec... | 16,724 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (other_mozilla VARCHAR, opera VARCHAR)\n\n Question: What percentage of users were using other Mozilla browsers duri... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_59 (opera VARCHAR, internet_explorer VARCHAR)
Question: What percentage of users were using Opera during the period in which 63.67% were using Internet Explore... | The provided query is not correctly structured to answer the question regarding the percentage of users using Opera when 63.67% were using Internet Explorer. Instead, you need to calculate the percentage of users using Opera relative to the users using Internet Explorer during that specific observation.
Assuming that ... | 16,725 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_59 (opera VARCHAR, internet_explorer VARCHAR)\n\n Question: What percentage of users were using Opera during the period... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (country VARCHAR, entities VARCHAR)
Question: Which Country has Entities of emsa?
Here is the SQLite query to answer to the question: Which Country has Ent... | Here is the SQLite query to answer the question "Which Country has Entities of emsa?":
```
SELECT country FROM table_name_57 WHERE entities = "emsa";
``` | 16,726 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_57 (country VARCHAR, entities VARCHAR)\n\n Question: Which Country has Entities of emsa?\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 (power__mw_ INTEGER, voltage__kv_ VARCHAR, country VARCHAR)
Question: Which Power (MW) has a Voltage (kV) of 500, and a Country of argentina?
Here is the S... | Here is the SQLite query to answer the question: Which Power (MW) has a Voltage (kV) of 500, and a Country of argentina?:
```
SELECT power__mw_ FROM table_name_26 WHERE voltage__kv_ = '500' AND country = 'argentina';
``` | 16,727 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_26 (power__mw_ INTEGER, voltage__kv_ VARCHAR, country VARCHAR)\n\n Question: Which Power (MW) has a Voltage (kV) of 500... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_44 (voltage__kv_ VARCHAR, supply_point VARCHAR, country VARCHAR, power__mw_ VARCHAR)
Question: How much Voltage (kV) has a Country of argentina, and a Power (M... | Here is the SQLite query that answers the question:
```sql
SELECT voltage__kv_
FROM table_name_44
WHERE country = 'argentina'
AND CAST(power__mw_ AS REAL) > 30
AND supply_point = 'yacyretá';
```
This query selects the voltage from records that match the specified country, have power greater than 30, and corr... | 16,728 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (voltage__kv_ VARCHAR, supply_point VARCHAR, country VARCHAR, power__mw_ VARCHAR)\n\n Question: How much Voltage (kV... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (number INTEGER, western_name VARCHAR)
Question: What is the lowest number for the english word Aquarius?
Here is the SQLite query to answer to the questio... | Your SQLite query to find the lowest number for the English word "Aquarius" is correct. Here it is wrapped as requested:
```
SELECT MIN(number) FROM table_name_32 WHERE western_name = "aquarius"
``` | 16,729 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (number INTEGER, western_name VARCHAR)\n\n Question: What is the lowest number for the english word Aquarius?\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_98 (sanskrit VARCHAR, greek VARCHAR)
Question: What is the Sanskrit for the Greek word λέων?
Here is the SQLite query to answer to the question: What is the S... | Here is the SQLite query to answer the question: What is the Sanskrit for the Greek word λέων?:
```
SELECT sanskrit FROM table_name_98 WHERE greek = "λέων"
``` | 16,730 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (sanskrit VARCHAR, greek VARCHAR)\n\n Question: What is the Sanskrit for the Greek word λέων?\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_69 (date VARCHAR, home_team VARCHAR)
Question: What date has wrexham as the home team?
Here is the SQLite query to answer to the question: What date has wrexh... | Here is the SQLite query to answer the question: What date has wrexham as the home team?:
```
SELECT date FROM table_name_69 WHERE home_team = "wrexham";
``` | 16,731 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_69 (date VARCHAR, home_team VARCHAR)\n\n Question: What date has wrexham as the home team?\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_38 (away_team VARCHAR, tie_no VARCHAR)
Question: What away team has 7 as the tie no.?
Here is the SQLite query to answer to the question: What away team has 7... | Here is the SQLite query to answer the question about which away team has 7 as the tie number:
```
SELECT away_team FROM table_name_38 WHERE tie_no = "7";
``` | 16,732 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_38 (away_team VARCHAR, tie_no VARCHAR)\n\n Question: What away team has 7 as the tie no.?\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_44 (away_team VARCHAR, home_team VARCHAR)
Question: What away team has wrexham as the home team?
Here is the SQLite query to answer to the question: What away... | Here is the SQLite query to answer the question: What away team has wrexham as the home team?:
```
SELECT away_team FROM table_name_44 WHERE home_team = "wrexham";
``` | 16,733 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_44 (away_team VARCHAR, home_team VARCHAR)\n\n Question: What away team has wrexham as the home team?\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_82 (home_team VARCHAR, tie_no VARCHAR)
Question: What home team has 6 as the tie no.?
Here is the SQLite query to answer to the question: What home team has 6... | Here is the SQLite query to find the home team that has 6 as the tie number:
```
SELECT home_team FROM table_name_82 WHERE tie_no = '6';
``` | 16,734 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (home_team VARCHAR, tie_no VARCHAR)\n\n Question: What home team has 6 as the tie no.?\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_82 (kickoff_time VARCHAR, date VARCHAR)
Question: What was the kickoff time for the December 14, 2003 game?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question regarding the kickoff time for the December 14, 2003 game:
```
SELECT kickoff_time FROM table_name_82 WHERE date = "December 14, 2003";
``` | 16,735 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_82 (kickoff_time VARCHAR, date VARCHAR)\n\n Question: What was the kickoff time for the December 14, 2003 game?\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_33 (rank VARCHAR, nationality VARCHAR)
Question: What is Zimbabwe's rank?
Here is the SQLite query to answer to the question: What is Zimbabwe's rank?:
```
SE... | Sure! Here is the SQLite query to answer the question of Zimbabwe's rank:
```
SELECT rank FROM table_name_33 WHERE nationality = "Zimbabwe";
``` | 16,736 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (rank VARCHAR, nationality VARCHAR)\n\n Question: What is Zimbabwe's rank?\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_85 (rank INTEGER, name VARCHAR, lane VARCHAR)
Question: What is Meagen Nay's rank with a lane greater than 5?
Here is the SQLite query to answer to the questi... | The provided SQLite query correctly attempts to find Meagen Nay's rank with a lane greater than 5, but the use of `SUM(rank)` implies that you want to sum the ranks rather than simply select the rank if it's unique. If you're looking for Meagen Nay's rank, you might want to select her rank directly.
Here's the correct... | 16,737 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_85 (rank INTEGER, name VARCHAR, lane VARCHAR)\n\n Question: What is Meagen Nay's rank with a lane greater than 5?\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_6 (debut_year INTEGER, goals VARCHAR, games VARCHAR, years_at_club VARCHAR)
Question: What is the debut year for the player with fewer than 54 games, fewer tha... | Your query is almost correct, but it contains a mistake in the SELECT statement. You should select the debut year directly instead of the average. Here's the corrected query that retrieves the debut year for players who meet the specified criteria:
```sql
SELECT debut_year FROM table_name_6 WHERE games < 54 AND years_... | 16,738 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_6 (debut_year INTEGER, goals VARCHAR, games VARCHAR, years_at_club VARCHAR)\n\n Question: What is the debut year for th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (years_at_club VARCHAR, games VARCHAR, goals VARCHAR, debut_year VARCHAR)
Question: What are the years for the player with fewer than 62 goals, debut year o... | Here's the correct SQLite query wrapped in code format:
```sql
SELECT years_at_club FROM table_name_61 WHERE CAST(goals AS INTEGER) < 62 AND debut_year = '1981' AND CAST(games AS INTEGER) = 28;
```
In this query, I added `CAST` to convert the `goals` and `games` columns from VARCHAR to INTEGER for proper comparison,... | 16,739 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (years_at_club VARCHAR, games VARCHAR, goals VARCHAR, debut_year VARCHAR)\n\n Question: What are the years for the p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_10 (debut_year INTEGER, player VARCHAR)
Question: What is the debut year of Mark Eaves?
Here is the SQLite query to answer to the question: What is the debut ... | Here is the SQLite query to answer the question about the debut year of Mark Eaves:
```
SELECT debut_year FROM table_name_10 WHERE player = "Mark Eaves";
``` | 16,740 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_10 (debut_year INTEGER, player VARCHAR)\n\n Question: What is the debut year of Mark Eaves?\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_5 (player VARCHAR, total VARCHAR, opposition VARCHAR)
Question: Which Player has a Total of 9, and an Opposition of offaly?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question regarding which player has a total of 9 and an opposition of "offaly":
```
SELECT player FROM table_name_5 WHERE total = '9' AND opposition = 'offaly';
``` | 16,741 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (player VARCHAR, total VARCHAR, opposition VARCHAR)\n\n Question: Which Player has a Total of 9, and an Opposition of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_64 (county VARCHAR, opposition VARCHAR)
Question: Which County has an Opposition of offaly?
Here is the SQLite query to answer to the question: Which County h... | Here is the SQLite query to answer the question "Which County has an Opposition of offaly?":
```
SELECT county FROM table_name_64 WHERE opposition = "offaly"
``` | 16,742 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (county VARCHAR, opposition VARCHAR)\n\n Question: Which County has an Opposition of offaly?\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_21 (player VARCHAR, total VARCHAR, tally VARCHAR)
Question: Which Player has a Total smaller than 11, and a Tally of 0-9?
Here is the SQLite query to answer t... | Your SQLite query needs a slight correction, particularly for the conditions related to the `tally` column, as it should involve a range check. The `tally` is in the form of a string "0-9", which might indicate that players can have a tally within that range, but it's important to treat it correctly based on its intend... | 16,743 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (player VARCHAR, total VARCHAR, tally VARCHAR)\n\n Question: Which Player has a Total smaller than 11, and a Tally o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR)
Question: What country has todd hamilton as the player?
Here is the SQLite query to answer to the question: What country ... | Here is the SQLite query to answer the question: What country has todd hamilton as the player?:
```
SELECT country FROM table_name_90 WHERE player = "todd hamilton"
``` | 16,744 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR)\n\n Question: What country has todd hamilton as the player?\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_43 (country VARCHAR, player VARCHAR)
Question: What country has david toms as the player?
Here is the SQLite query to answer to the question: What country has... | Here is the SQLite query to answer the question: What country has david toms as the player?:
```
SELECT country FROM table_name_43 WHERE player = "david toms"
``` | 16,745 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (country VARCHAR, player VARCHAR)\n\n Question: What country has david toms as the player?\n\nHere is the SQLite que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (date VARCHAR, course VARCHAR)
Question: Which date was a rest day?
Here is the SQLite query to answer to the question: Which date was a rest day?:
```
SEL... | Here's the SQLite query to answer the question of which date was a rest day, formatted as you requested:
```
SELECT date FROM table_name_81 WHERE course = "rest day";
``` | 16,746 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_81 (date VARCHAR, course VARCHAR)\n\n Question: Which date was a rest day?\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_13 (location VARCHAR, year VARCHAR)
Question: What is the location for 2012?
Here is the SQLite query to answer to the question: What is the location for 2012... | Here is the SQLite query to answer the question "What is the location for 2012?":
```
SELECT location FROM table_name_13 WHERE year = '2012'
``` | 16,747 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_13 (location VARCHAR, year VARCHAR)\n\n Question: What is the location for 2012?\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_1 (rounds INTEGER, champion VARCHAR)
Question: What are the rounds for champion New Zealand (130 points)?
Here is the SQLite query to answer to the question: ... | It looks like you're looking for the rounds associated with the champion "New Zealand" with the score of 130 points. However, the query you provided is calculating the average of the rounds instead of retrieving the actual rounds.
Here’s the corrected SQLite query to retrieve the rounds for the champion "New Zealand ... | 16,748 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (rounds INTEGER, champion VARCHAR)\n\n Question: What are the rounds for champion New Zealand (130 points)?\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_87 (season VARCHAR, player_of_the_year VARCHAR)
Question: For which season is Tim Mikkelson player of the year?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the season for which Tim Mikkelson is player of the year:
```
SELECT season FROM table_name_87 WHERE player_of_the_year = "Tim Mikkelson";
``` | 16,749 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_87 (season VARCHAR, player_of_the_year VARCHAR)\n\n Question: For which season is Tim Mikkelson player of the year?\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_7 (collaboration VARCHAR, name VARCHAR, indication VARCHAR)
Question: What company collaborated in SBI-087 for rheumatoid arthritis?
Here is the SQLite query ... | Here is the SQLite query to answer the question about the company that collaborated in SBI-087 for rheumatoid arthritis:
```
SELECT collaboration FROM table_name_7 WHERE name = "SBI-087" AND indication = "rheumatoid arthritis";
``` | 16,750 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_7 (collaboration VARCHAR, name VARCHAR, indication VARCHAR)\n\n Question: What company collaborated in SBI-087 for rheu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_63 (collaboration VARCHAR, indication VARCHAR)
Question: What company collaborated in non-hodgkin lymphoma?
Here is the SQLite query to answer to the question... | Here is the SQLite query to answer the question about which company collaborated in non-hodgkin lymphoma:
```
SELECT collaboration FROM table_name_63 WHERE indication = "non-hodgkin lymphoma";
``` | 16,751 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_63 (collaboration VARCHAR, indication VARCHAR)\n\n Question: What company collaborated in non-hodgkin lymphoma?\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_99 (collaboration VARCHAR, status VARCHAR, indication VARCHAR)
Question: What company collaborated in pre-clinical autoimmune disease and inflammation?
Here i... | Here's the SQLite query that answers the question about which company collaborated in pre-clinical autoimmune disease and inflammation:
```
SELECT collaboration FROM table_name_99 WHERE status = "pre-clinical" AND indication = "autoimmune disease and inflammation";
``` | 16,752 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_99 (collaboration VARCHAR, status VARCHAR, indication VARCHAR)\n\n Question: What company collaborated in pre-clinical ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (name VARCHAR, indication VARCHAR)
Question: Which study included autoimmune disease and inflammation?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: Which study included autoimmune disease and inflammation?:
```
SELECT name FROM table_name_41 WHERE indication LIKE "%autoimmune disease%" AND indication LIKE "%inflammation%";
``` | 16,753 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (name VARCHAR, indication VARCHAR)\n\n Question: Which study included autoimmune disease and inflammation?\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_50 (indication VARCHAR, status VARCHAR)
Question: What did the phase 2b status target?
Here is the SQLite query to answer to the question: What did the phase ... | Here is the SQLite query to answer the question "What did the phase 2b status target?":
```
SELECT indication FROM table_name_50 WHERE status = "phase 2b"
``` | 16,754 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_50 (indication VARCHAR, status VARCHAR)\n\n Question: What did the phase 2b status target?\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_5 (collaboration VARCHAR, indication VARCHAR)
Question: What company collaborated with non-hodgkin lymphoma?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about what company collaborated with non-hodgkin lymphoma:
```
SELECT collaboration FROM table_name_5 WHERE indication = "non-hodgkin lymphoma"
``` | 16,755 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_5 (collaboration VARCHAR, indication VARCHAR)\n\n Question: What company collaborated with non-hodgkin lymphoma?\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_8 (water__sqmi_ INTEGER, longitude VARCHAR, pop__2010_ VARCHAR, township VARCHAR)
Question: what is the average water sqmi with a population (2010) more than 4... | Here is the SQLite query to answer the question regarding the average water square miles with a population (2010) greater than 47 in the Brenna Township with longitude less than -97.171507:
```sql
SELECT AVG(water__sqmi_)
FROM table_name_8
WHERE pop__2010_ > 47
AND township = 'Brenna'
AND longitude < -97.17150... | 16,756 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (water__sqmi_ INTEGER, longitude VARCHAR, pop__2010_ VARCHAR, township VARCHAR)\n\n Question: what is the average wat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_62 (latitude VARCHAR, township VARCHAR, geo_id VARCHAR)
Question: what is the latitude for the berlin township with a geo id less than 3801706260
Here is the ... | The query you provided counts the number of entries rather than retrieving the latitude for the specified conditions. If you want to get the latitude of the Berlin township where the `geo_id` is less than `3801706260`, you should use the following query:
```
SELECT latitude FROM table_name_62 WHERE township = "berlin"... | 16,757 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_62 (latitude VARCHAR, township VARCHAR, geo_id VARCHAR)\n\n Question: what is the latitude for the berlin township with... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (ansi_code INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR, latitude VARCHAR, geo_id VARCHAR)
Question: what is the highest ANSI code with a latitude more... | Here is the SQLite query to answer your question:
```
SELECT MAX(ansi_code) FROM table_name_98 WHERE latitude > 47.623288 AND geo_id > 3805508060 AND land___sqmi__ > 35.66 AND longitude < -102.054248
``` | 16,758 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (ansi_code INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR, latitude VARCHAR, geo_id 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_97 (latitude INTEGER, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR)
Question: what is the lowest latitude for the land sqmi less than 32.696 and a water sqmi le... | Here is the SQLite query to answer the question regarding the lowest latitude for the land sqmi less than 32.696 and a water sqmi less than 0:
```
SELECT MIN(latitude) FROM table_name_97 WHERE land___sqmi__ < 32.696 AND water__sqmi_ < 0
``` | 16,759 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_97 (latitude INTEGER, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR)\n\n Question: what is the lowest latitude for the la... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (quantity INTEGER, class_from_1928 VARCHAR)
Question: What's the sum of Quantity for the Class of 1928 of CI-30?
Here is the SQLite query to answer to the q... | Your SQLite query looks correct for the given question and schema. Here it is properly wrapped:
```
SELECT SUM(quantity) FROM table_name_1 WHERE class_from_1928 = "ci-30";
```
This query will return the sum of the `quantity` for all records in `table_name_1` where the `class_from_1928` is "ci-30". | 16,760 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (quantity INTEGER, class_from_1928 VARCHAR)\n\n Question: What's the sum of Quantity for the Class of 1928 of CI-30?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (class_to_1928 VARCHAR, quantity VARCHAR, seats VARCHAR)
Question: What Class to 1928 has the Quantity smaller than 440 and Seats of 29/29?
Here is the SQL... | Here is the SQLite query formatted as requested:
```sql
SELECT class_to_1928 FROM table_name_16 WHERE quantity < 440 AND seats = "29/29";
``` | 16,761 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_16 (class_to_1928 VARCHAR, quantity VARCHAR, seats VARCHAR)\n\n Question: What Class to 1928 has the Quantity smaller t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_18 (best_fit__all_data_ VARCHAR, parameter VARCHAR)
Question: What is the best fit (all data) when the parameter shows fluctuation amplitude at 8h −1 mpc?
Her... | Your SQLite query to answer the question is correctly structured. Here it is wrapped in the appropriate code format:
```
SELECT best_fit__all_data_ FROM table_name_18 WHERE parameter = "fluctuation amplitude at 8h −1 mpc";
``` | 16,762 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_18 (best_fit__all_data_ VARCHAR, parameter VARCHAR)\n\n Question: What is the best fit (all data) when the parameter sh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_92 (best_fit__wmap VARCHAR, _extra_parameter_ VARCHAR, best_fit__all_data_ VARCHAR)
Question: What is the best fit (WMAP, extra parameter)when the best fit (al... | The SQLite query you provided needs to utilize a different approach because the value ".0224 ± .0009" is not a simple string comparison in a SQL context. Instead, you typically want to check if the `best_fit__all_data_` falls within a certain range.
Given that the range is from `0.0224 - 0.0009` to `0.0224 + 0.0009`,... | 16,763 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_92 (best_fit__wmap VARCHAR, _extra_parameter_ VARCHAR, best_fit__all_data_ VARCHAR)\n\n Question: What is the best fit ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (parameter VARCHAR, best_fit__wmap_only_ VARCHAR, symbol VARCHAR)
Question: What is the parameter when the best fit (WMAP only) is .9 ± .1, and symbol is a?... | Here is the SQLite query to answer the question regarding the parameter when the best fit (WMAP only) is .9 ± .1, and symbol is 'a':
```sql
SELECT parameter FROM table_name_94 WHERE best_fit__wmap_only_ = ".9 ± .1" AND symbol = "a"
``` | 16,764 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_94 (parameter VARCHAR, best_fit__wmap_only_ VARCHAR, symbol VARCHAR)\n\n Question: What is the parameter when the best ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_23 (heat INTEGER, lane VARCHAR, time VARCHAR)
Question: What is the highest heat for more than 3 lanes and a time of 2:09.12?
Here is the SQLite query to answ... | It looks like there are some errors in your original query, such as the condition `lane > 3`, which doesn't correctly filter for the number of lanes. Instead, we need to count the distinct lanes for each heat and filter those with more than 3 distinct lanes for the specific time.
Here’s the corrected SQLite query:
``... | 16,765 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (heat INTEGER, lane VARCHAR, time VARCHAR)\n\n Question: What is the highest heat for more than 3 lanes and a time o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_21 (time VARCHAR, nationality VARCHAR, heat VARCHAR)
Question: What is Russia's time with a heat higher than 3?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question about Russia's time with a heat higher than 3:
```
SELECT time FROM table_name_21 WHERE nationality = "russia" AND heat > 3;
``` | 16,766 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (time VARCHAR, nationality VARCHAR, heat VARCHAR)\n\n Question: What is Russia's time with a heat higher than 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_45 (time VARCHAR, lane VARCHAR, heat VARCHAR, nationality VARCHAR)
Question: What is Hungary's time with a heat higher than 2 and two lanes?
Here is the SQLit... | Your query has a slight issue regarding the condition that checks for "two lanes". It needs to ensure that the results relate to Hungary with a heat higher than 2 across multiple lanes. Here’s the corrected query:
```sql
SELECT time
FROM table_name_45
WHERE heat > 2 AND nationality = "hungary"
GROUP BY time
HAVING... | 16,767 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_45 (time VARCHAR, lane VARCHAR, heat VARCHAR, nationality VARCHAR)\n\n Question: What is Hungary's time with a heat hig... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_86 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
Question: When the name is badnawar, and the reserved for (sc / st /none)... | Here is the SQLite query to answer the question about the constituency number for the name "badnawar" where the reserved status is "none":
```sql
SELECT constituency_number FROM table_name_86 WHERE reserved_for___sc___st__none_ = "none" AND name = "badnawar"
``` | 16,768 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_86 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)\n\n Question: When the name is ba... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
Question: What is the number of electorates when the name is badnawar?
Here is the SQLite query to ans... | Here is the SQLite query to answer the question about the number of electorates when the name is "badnawar":
```
SELECT number_of_electorates__2009_ FROM table_name_61 WHERE name = "badnawar";
``` | 16,769 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (number_of_electorates__2009_ VARCHAR, name VARCHAR)\n\n Question: What is the number of electorates when the name i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (number_of_electorates__2009_ INTEGER, district VARCHAR)
Question: What is the average number of electorates (2009) when the district is indore?
Here is th... | Here is the SQLite query to answer the question regarding the average number of electorates (2009) when the district is Indore:
```
SELECT AVG(number_of_electorates__2009_) FROM table_name_58 WHERE district = 'indore';
``` | 16,770 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (number_of_electorates__2009_ INTEGER, district VARCHAR)\n\n Question: What is the average number of electorates (20... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
Question: What is the name when the reserved is (sc / st /none) of st, wi... | Here is the SQLite query to answer the question you provided:
```
SELECT name FROM table_name_77 WHERE reserved_for___sc___st__none_ = "st" AND constituency_number = "196"
``` | 16,771 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_77 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)\n\n Question: What is the name wh... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (nationality VARCHAR, rank VARCHAR)
Question: What is the nationality for rank 27?
Here is the SQLite query to answer to the question: What is the national... | Here is the SQLite query to answer the question about the nationality for rank 27:
```
SELECT nationality FROM table_name_79 WHERE rank = '27'
``` | 16,772 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (nationality VARCHAR, rank VARCHAR)\n\n Question: What is the nationality for rank 27?\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_78 (rating VARCHAR, player VARCHAR, comp VARCHAR)
Question: What is the sum rating with more than 1 comp for mark miller?
Here is the SQLite query to answer t... | The query you've provided has some issues. You need to first aggregate the number of distinct `comp` entries for each `player`. Then, you can sum the `rating` for those `player` entries that have more than 1 `comp`. However, please note that `rating` is defined as a `VARCHAR`, and summing a string may not make sense un... | 16,773 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_78 (rating VARCHAR, player VARCHAR, comp VARCHAR)\n\n Question: What is the sum rating with more than 1 comp for mark m... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_70 (games INTEGER, rating VARCHAR, yards VARCHAR)
Question: What is the games average with less than 3.8 in rating and less than 9 yards?
Here is the SQLite q... | Here is the SQLite query to answer the question regarding the average of games with a rating of less than 3.8 and yards less than 9:
```
SELECT AVG(games) FROM table_name_70 WHERE rating < '3.8' AND yards < '9';
```
(Note that since "rating" is a VARCHAR, the comparison uses string format. Ensure that "yards" are co... | 16,774 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_70 (games INTEGER, rating VARCHAR, yards VARCHAR)\n\n Question: What is the games average with less than 3.8 in rating ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (rating INTEGER, player VARCHAR, yards VARCHAR)
Question: What is the average rating for john kidd with more than 0 yards?
Here is the SQLite query to answ... | The query you provided is almost correct, but the `yards` column is defined as `VARCHAR`, so we need to convert it to an integer for the comparison against 0. Here’s the corrected SQLite query:
```
SELECT AVG(rating) FROM table_name_51 WHERE player = "john kidd" AND CAST(yards AS INTEGER) > 0;
``` | 16,775 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_51 (rating INTEGER, player VARCHAR, yards VARCHAR)\n\n Question: What is the average rating for john kidd with more tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_79 (share_of_seats VARCHAR, european_election__uk_ VARCHAR)
Question: Which Share of seats has a European election (UK) of 2009?
Here is the SQLite query to a... | Here is the corrected SQLite query to answer the question regarding the share of seats with a European election (UK) of 2009:
```sql
SELECT share_of_seats FROM table_name_79 WHERE european_election__uk_ = '2009';
```
Note: The value '2009' is enclosed in quotes because it is treated as a string (VARCHAR) in the datab... | 16,776 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_79 (share_of_seats VARCHAR, european_election__uk_ VARCHAR)\n\n Question: Which Share of seats has a European election ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (european_election__uk_ VARCHAR, share_of_votes VARCHAR)
Question: Which European election (UK) has a Share of votes of 19%?
Here is the SQLite query to an... | Your query is almost correct, but you should be aware that the `share_of_votes` column is stored as a `VARCHAR`, and you might need to include the "%" symbol in the query or handle it correctly if it has leading or trailing spaces. Here's the corrected query:
```sql
SELECT european_election__uk_ FROM table_name_41 WHE... | 16,777 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_41 (european_election__uk_ VARCHAR, share_of_votes VARCHAR)\n\n Question: Which European election (UK) has a Share of v... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (bronze INTEGER, rank VARCHAR, total VARCHAR)
Question: What is the fewest bronzes for ranks of 3 with totals under 2?
Here is the SQLite query to answer t... | Here is the SQLite query that answers the question about the fewest bronzes for ranks of 3 with totals under 2:
```
SELECT MIN(bronze) FROM table_name_58 WHERE rank = "3" AND total < 2
``` | 16,778 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_58 (bronze INTEGER, rank VARCHAR, total VARCHAR)\n\n Question: What is the fewest bronzes for ranks of 3 with totals un... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_42 (rank VARCHAR, nation VARCHAR)
Question: Which rank is Austria?
Here is the SQLite query to answer to the question: Which rank is Austria?:
```
SELECT rank... | Here is the correct SQLite query to find the rank of Austria:
```
SELECT rank FROM table_name_42 WHERE nation = "Austria";
``` | 16,779 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (rank VARCHAR, nation VARCHAR)\n\n Question: Which rank is Austria?\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
Question: What is the sum of bronzes for countries with 1 gold and under 1 silver?
Here is the SQLite query ... | Your SQL query for calculating the sum of bronzes looks almost correct, but there is a minor adjustment needed in the WHERE clause. Specifically, since `gold` and `silver` are of type `VARCHAR`, you should not directly compare them to integers. Instead, you need to check if they are equal to '1' for `gold` and less tha... | 16,780 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (bronze INTEGER, gold VARCHAR, silver VARCHAR)\n\n Question: What is the sum of bronzes for countries with 1 gold an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_4 (total VARCHAR, bronze VARCHAR, silver VARCHAR)
Question: What is the total number of totals for nations with 1 silver and more than 1 bronze?
Here is the S... | Your query is almost correct, but to properly compare the values in the `bronze` and `silver` columns, you should cast them to integers since they are stored as VARCHAR. Here’s the modified query:
```sql
SELECT COUNT(total)
FROM table_name_4
WHERE CAST(bronze AS INTEGER) > 1 AND CAST(silver AS INTEGER) = 1;
```
Th... | 16,781 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_4 (total VARCHAR, bronze VARCHAR, silver VARCHAR)\n\n Question: What is the total number of totals for nations with 1 s... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_12 (nationality VARCHAR, games VARCHAR, event VARCHAR)
Question: What is the Nationality of the athlete in 1999 Fort-de-France in the Triple Jump?
Here is the... | Here is the SQLite query to answer the question:
```
SELECT nationality FROM table_name_12 WHERE games = "1999 Fort-de-France" AND event = "Triple Jump";
``` | 16,782 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_12 (nationality VARCHAR, games VARCHAR, event VARCHAR)\n\n Question: What is the Nationality of the athlete in 1999 For... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_19 (date VARCHAR, event VARCHAR)
Question: What is the Date of the athlete in the shot put Event?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question about the date of the athlete in the shot put event:
```
SELECT date FROM table_name_19 WHERE event = "shot put";
``` | 16,783 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_19 (date VARCHAR, event VARCHAR)\n\n Question: What is the Date of the athlete in the shot put Event?\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_43 (district VARCHAR, position VARCHAR, first_election VARCHAR)
Question: What District has a Member with a First Election date of 1985?
Here is the SQLite qu... | The SQLite query you've provided is correctly structured to retrieve the district where a member had their first election in 1985. Here’s the code wrapped as requested:
```
SELECT district FROM table_name_43 WHERE position = "member" AND first_election = "1985"
```
Make sure that the `position` column in the databas... | 16,784 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_43 (district VARCHAR, position VARCHAR, first_election VARCHAR)\n\n Question: What District has a Member with a First E... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (party VARCHAR, position VARCHAR, name VARCHAR)
Question: What Party is Member Alicia Hughes from?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question: What Party is Member Alicia Hughes from?:
```
SELECT party FROM table_name_95 WHERE position = 'member' AND name = 'Alicia Hughes';
``` | 16,785 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_95 (party VARCHAR, position VARCHAR, name VARCHAR)\n\n Question: What Party is Member Alicia Hughes from?\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 (position VARCHAR, first_election VARCHAR, name VARCHAR)
Question: What Position does First Elected in 2003 William D. Euille hold ?
Here is the SQLite que... | Here is the SQLite query to answer the question about the position held by William D. Euille, who was first elected in 2003:
```
SELECT position FROM table_name_42 WHERE first_election = "2003" AND name = "William D. Euille";
``` | 16,786 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_42 (position VARCHAR, first_election VARCHAR, name VARCHAR)\n\n Question: What Position does First Elected in 2003 Will... | |
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_election VARCHAR, name VARCHAR)
Question: What is Kerry J. Donley's First Election date?
Here is the SQLite query to answer to the question: What is... | Here is the SQLite query to answer the question about Kerry J. Donley's First Election date:
```
SELECT first_election FROM table_name_23 WHERE name = "Kerry J. Donley";
``` | 16,787 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_23 (first_election VARCHAR, name VARCHAR)\n\n Question: What is Kerry J. Donley's First Election date?\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_48 (party VARCHAR, name VARCHAR)
Question: What is Kerry J. Donley's Party?
Here is the SQLite query to answer to the question: What is Kerry J. Donley's Part... | Here is the SQLite query to answer the question: What is Kerry J. Donley's Party?:
```
SELECT party FROM table_name_48 WHERE name = "Kerry J. Donley";
``` | 16,788 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_48 (party VARCHAR, name VARCHAR)\n\n Question: What is Kerry J. Donley's Party?\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_64 (position VARCHAR, first_election VARCHAR)
Question: What is the Position of the person with a First Election of 1988 as Vice Mayor 2009?
Here is the SQLit... | It seems there's a slight misunderstanding in the query you provided. The query attempts to find a position where the `first_election` is matched exactly to the string `"1988 as vice mayor 2009"`, which is likely not what you want if you are actually looking for a record where someone had their first election in 1988 a... | 16,789 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_64 (position VARCHAR, first_election VARCHAR)\n\n Question: What is the Position of the person with a First Election of... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (final_points VARCHAR, total VARCHAR, draw VARCHAR)
Question: What are the final points a 0 total and 22 draws?
Here is the SQLite query to answer to the q... | ```sql
SELECT final_points FROM table_name_60 WHERE total = "0" AND draw = "22"
``` | 16,790 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_60 (final_points VARCHAR, total VARCHAR, draw VARCHAR)\n\n Question: What are the final points a 0 total and 22 draws?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (televote_points VARCHAR, televotes VARCHAR)
Question: Who received 6,131 televotes?
Here is the SQLite query to answer to the question: Who received 6,131 ... | Here's the SQLite query to answer the question about who received 6,131 televotes:
```
SELECT televote_points FROM table_name_1 WHERE televotes = '6,131';
``` | 16,791 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_1 (televote_points VARCHAR, televotes VARCHAR)\n\n Question: Who received 6,131 televotes?\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_74 (televotes VARCHAR, draw VARCHAR)
Question: What are televotes for 1 draw?
Here is the SQLite query to answer to the question: What are televotes for 1 dra... | Here is the SQLite query to answer the question about the televotes for 1 draw:
```
SELECT televotes FROM table_name_74 WHERE draw = '1'
```
(Note: Ensure that the value you compare matches the data type in your table; if draw is stored as a numeric type, you may not need the quotes.) | 16,792 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_74 (televotes VARCHAR, draw VARCHAR)\n\n Question: What are televotes for 1 draw?\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_89 (draw INTEGER, artist VARCHAR, points VARCHAR)
Question: What is the draw for the artist Ketil Stokkan which has less than 44 points?
Here is the SQLite qu... | Here is the SQLite query to answer the question regarding the draw for the artist Ketil Stokkan which has less than 44 points:
```
SELECT MIN(draw) FROM table_name_89 WHERE artist = "Ketil Stokkan" AND points < 44
``` | 16,793 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_89 (draw INTEGER, artist VARCHAR, points VARCHAR)\n\n Question: What is the draw for the artist Ketil Stokkan which has... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_32 (artist VARCHAR, language VARCHAR)
Question: Which artist speaks croatian?
Here is the SQLite query to answer to the question: Which artist speaks croatian... | Here is the SQLite query to answer the question: Which artist speaks Croatian?:
```
SELECT artist FROM table_name_32 WHERE language = "croatian"
``` | 16,794 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_32 (artist VARCHAR, language VARCHAR)\n\n Question: Which artist speaks croatian?\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_90 (score VARCHAR, high_points VARCHAR)
Question: Which Score has High points of douglas (15)?
Here is the SQLite query to answer to the question: Which Score... | Here is the SQLite query to answer the question regarding which Score has High points of "douglas (15)":
```
SELECT score FROM table_name_90 WHERE high_points = "douglas (15)";
``` | 16,795 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_90 (score VARCHAR, high_points VARCHAR)\n\n Question: Which Score has High points of douglas (15)?\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_21 (high_assists VARCHAR, game VARCHAR, record VARCHAR)
Question: Which High assists have a Game larger than 21, and a Record of 18-6?
Here is the SQLite quer... | Here is the SQLite query to answer the question:
```
SELECT high_assists FROM table_name_21 WHERE game > 21 AND record = '18-6'
``` | 16,796 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_21 (high_assists VARCHAR, game VARCHAR, record VARCHAR)\n\n Question: Which High assists have a Game larger than 21, an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (record VARCHAR, location VARCHAR)
Question: Which Record has a Location of madison square garden?
Here is the SQLite query to answer to the question: Which... | Here is the SQLite query to answer the question: Which Record has a Location of madison square garden?:
```
SELECT record FROM table_name_8 WHERE location = "madison square garden";
``` | 16,797 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_8 (record VARCHAR, location VARCHAR)\n\n Question: Which Record has a Location of madison square garden?\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_33 (Id VARCHAR)
Question: Which 2012 has a 2009 smaller than 3.38?
Here is the SQLite query to answer to the question: Which 2012 has a 2009 smaller than 3.38... | It seems there is a misunderstanding in your question and the provided SQL query. The query you've given doesn't align with the schema you've provided, as there are no columns named "2012" or "2009" in the `table_name_33` table.
Based on the schema you've shared, the only column available is `Id`, which is of type `V... | 16,798 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_33 (Id VARCHAR)\n\n Question: Which 2012 has a 2009 smaller than 3.38?\n\nHere is the SQLite query to answer to the que... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (Id VARCHAR)
Question: Which 2009 has a 2012 larger than 9,265?
Here is the SQLite query to answer to the question: Which 2009 has a 2012 larger than 9,265... | The provided query has some issues, including the use of improper syntax for column names and the incorrect understanding of limits. Based on your question, you're asking for a value from the year 2009 where a corresponding value from 2012 is larger than 9,265. However, without proper context on how to extract the data... | 16,799 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_61 (Id VARCHAR)\n\n Question: Which 2009 has a 2012 larger than 9,265?\n\nHere is the SQLite query to answer to the que... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.