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_99 (field_goals VARCHAR, extra_points VARCHAR, touchdowns VARCHAR, points VARCHAR)
Question: What is the total number of field goals for a player that had less... | Here is the SQLite query to answer the question about the total number of field goals for a player that had less than 3 touchdowns, had 4 points, and had less than 4 extra points:
```
SELECT SUM(CAST(field_goals AS INTEGER))
FROM table_name_99
WHERE CAST(touchdowns AS INTEGER) < 3
AND CAST(points AS INTEGER) = 4
A... | 22,100 | [
{
"from": "human",
"value": " 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 (field_goals VARCHAR, extra_points VARCHAR, touchdowns VARCHAR, points VARCHAR)\n\n Question: What is the total numb... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_98 (draws INTEGER, ntfa_div_2 VARCHAR)
Question: What is the lowest number of draws of the NTFA Div 2 Lilydale?
Here is the SQLite query to answer to the ques... | Your SQLite query is correct for finding the lowest number of draws for NTFA Div 2 Lilydale. Below it is wrapped as per your request:
```
SELECT MIN(draws) FROM table_name_98 WHERE ntfa_div_2 = "lilydale";
``` | 22,101 | [
{
"from": "human",
"value": " 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 (draws INTEGER, ntfa_div_2 VARCHAR)\n\n Question: What is the lowest number of draws of the NTFA Div 2 Lilydale?\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_41 (draws INTEGER, wins VARCHAR, byes VARCHAR)
Question: What is the lowest number of draws of the team with 9 wins and less than 0 byes?
Here is the SQLite q... | Here is the SQLite query to answer the question regarding the lowest number of draws of the team with 9 wins and less than 0 byes:
```
SELECT MIN(draws) FROM table_name_41 WHERE wins = '9' AND byes < '0'
``` | 22,102 | [
{
"from": "human",
"value": " 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 (draws INTEGER, wins VARCHAR, byes VARCHAR)\n\n Question: What is the lowest number of draws of the team with 9 wins... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (against INTEGER, ntfa_div_2 VARCHAR)
Question: What is the lowest number of against of NTFA Div 2 Fingal Valley?
Here is the SQLite query to answer to the... | Your SQLite query to find the lowest number of "against" for "NTFA Div 2 Fingal Valley" looks correct. Here's the formatted code wrapped in triple backticks:
```
SELECT MIN(against) FROM table_name_38 WHERE ntfa_div_2 = "fingal valley";
```
Make sure that the casing and spelling of "fingal valley" match exactly as t... | 22,103 | [
{
"from": "human",
"value": " 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 (against INTEGER, ntfa_div_2 VARCHAR)\n\n Question: What is the lowest number of against of NTFA Div 2 Fingal Valley... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_34 (rank INTEGER, area__sqmi_ VARCHAR)
Question: What is the largest rank with 2,080 area?
Here is the SQLite query to answer to the question: What is the lar... | It looks like there is a small error in your SQL query regarding how to specify the area value of 2080. In SQL, you should represent the number as a string if the column type is `VARCHAR`. Additionally, the `OFFSET` clause isn't necessary here. You can use a regular equality check instead. Here is the corrected query:
... | 22,104 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_34 (rank INTEGER, area__sqmi_ VARCHAR)\n\n Question: What is the largest rank with 2,080 area?\n\nHere is the SQLite qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (area__km_2__ INTEGER, rank VARCHAR, location VARCHAR, population__2000_ VARCHAR)
Question: What is the largest area in Alaska with a population of 39 and r... | Here's the SQLite query wrapped in code formatting:
```sql
SELECT MAX(area__km_2__)
FROM table_name_41
WHERE location = "Alaska"
AND population__2000_ = "39"
AND rank > '19';
```
Note: Make sure that the case of "Alaska" matches the case in your database since string comparisons in SQL are case-sensitive by ... | 22,105 | [
{
"from": "human",
"value": " 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 (area__km_2__ INTEGER, rank VARCHAR, location VARCHAR, population__2000_ VARCHAR)\n\n Question: What is the largest ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (events INTEGER, country VARCHAR)
Question: How many events are in South Africa?
Here is the SQLite query to answer to the question: How many events are in... | Here is the SQLite query to answer the question: How many events are in South Africa?:
```
SELECT SUM(events) FROM table_name_25 WHERE country = 'south africa';
``` | 22,106 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (events INTEGER, country VARCHAR)\n\n Question: How many events are in South Africa?\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_98 (date VARCHAR, game VARCHAR)
Question: On what date was game 2 played?
Here is the SQLite query to answer to the question: On what date was game 2 played?:... | Here is the SQLite query to answer the question: On what date was game 2 played?:
```
SELECT date FROM table_name_98 WHERE game = "game 2";
``` | 22,107 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_98 (date VARCHAR, game VARCHAR)\n\n Question: On what date was game 2 played?\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_55 (game VARCHAR, home_team VARCHAR, date VARCHAR)
Question: Which game had Philadelphia as its home team and was played on April 23?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding which game had Philadelphia as its home team and was played on April 23:
```
SELECT game FROM table_name_55 WHERE home_team = "Philadelphia" AND date = "April 23";
``` | 22,108 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_55 (game VARCHAR, home_team VARCHAR, date VARCHAR)\n\n Question: Which game had Philadelphia as its home team and was p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (game VARCHAR, home_team VARCHAR)
Question: Which games had Philadelphia as home team?
Here is the SQLite query to answer to the question: Which games had ... | Here is the SQLite query to answer the question about which games had Philadelphia as the home team:
```
SELECT game FROM table_name_20 WHERE home_team = "Philadelphia";
``` | 22,109 | [
{
"from": "human",
"value": " 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 (game VARCHAR, home_team VARCHAR)\n\n Question: Which games had Philadelphia as home team?\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_64 (result VARCHAR, home_team VARCHAR, date VARCHAR)
Question: What was the result of the game played on April 16 with Philadelphia as home team?
Here is the ... | Here is the SQLite query to answer the question about the game played on April 16 with Philadelphia as the home team:
```sql
SELECT result FROM table_name_64 WHERE home_team = "Philadelphia" AND date = "April 16";
``` | 22,110 | [
{
"from": "human",
"value": " 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 (result VARCHAR, home_team VARCHAR, date VARCHAR)\n\n Question: What was the result of the game played on April 16 w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (result VARCHAR, date VARCHAR)
Question: What was the result of the April 16 game?
Here is the SQLite query to answer to the question: What was the result ... | Here is the SQLite query to answer the question about the result of the April 16 game:
```
SELECT result FROM table_name_94 WHERE date = "april 16";
``` | 22,111 | [
{
"from": "human",
"value": " 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 (result VARCHAR, date VARCHAR)\n\n Question: What was the result of the April 16 game?\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_88 (game VARCHAR, result VARCHAR)
Question: Which game had a result of 126-95?
Here is the SQLite query to answer to the question: Which game had a result of ... | Here is the SQLite query to answer the question about which game had a result of 126-95:
```
SELECT game FROM table_name_88 WHERE result = "126-95";
``` | 22,112 | [
{
"from": "human",
"value": " 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 (game VARCHAR, result VARCHAR)\n\n Question: Which game had a result of 126-95?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (services VARCHAR, local_authority VARCHAR, zone_2010 VARCHAR)
Question: Which Services have a Local authority of chiltern, and a Zone 2010 of 9?
Here is t... | Here is the SQLite query to answer the question regarding services with a local authority of "chiltern" and a zone 2010 of "9":
```sql
SELECT services FROM table_name_94 WHERE local_authority = "chiltern" AND zone_2010 = "9";
``` | 22,113 | [
{
"from": "human",
"value": " 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 (services VARCHAR, local_authority VARCHAR, zone_2010 VARCHAR)\n\n Question: Which Services have a Local authority o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (station VARCHAR, zone_2010 VARCHAR)
Question: Which Station has a Zone 2010 of 7?
Here is the SQLite query to answer to the question: Which Station has a ... | Here is the SQLite query to answer the question: Which Station has a Zone 2010 of 7?:
```
SELECT station FROM table_name_65 WHERE zone_2010 = '7';
``` | 22,114 | [
{
"from": "human",
"value": " 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 (station VARCHAR, zone_2010 VARCHAR)\n\n Question: Which Station has a Zone 2010 of 7?\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_46 (local_authority VARCHAR, station VARCHAR, zone_2010 VARCHAR, zone_2007 VARCHAR, zone_2008 VARCHAR)
Question: Which Local authority has a Zone 2007 of outsi... | Here is the SQLite query to answer the question:
```
SELECT local_authority
FROM table_name_46
WHERE zone_2007 = "outside zones"
AND zone_2008 = "outside zones"
AND zone_2010 = "outside zones"
AND station = "waltham cross";
``` | 22,115 | [
{
"from": "human",
"value": " 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 (local_authority VARCHAR, station VARCHAR, zone_2010 VARCHAR, zone_2007 VARCHAR, zone_2008 VARCHAR)\n\n 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_33 (local_authority VARCHAR, services VARCHAR)
Question: Which Local authority has Services of greater anglia?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question: Which Local authority has Services of greater anglia?:
```
SELECT local_authority FROM table_name_33 WHERE services = "greater anglia";
``` | 22,116 | [
{
"from": "human",
"value": " 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 (local_authority VARCHAR, services VARCHAR)\n\n Question: Which Local authority has Services of greater anglia?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (station VARCHAR, services VARCHAR, zone_2008 VARCHAR, zone_2007 VARCHAR)
Question: Which Station has a Zone 2008 of 8, and a Zone 2007 of outside zones, an... | Here is the SQLite query you requested, formatted correctly:
```
SELECT station FROM table_name_73 WHERE zone_2008 = "8" AND zone_2007 = "outside zones" AND services = "london overground"
``` | 22,117 | [
{
"from": "human",
"value": " 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 (station VARCHAR, services VARCHAR, zone_2008 VARCHAR, zone_2007 VARCHAR)\n\n Question: Which Station has a Zone 200... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_17 (zone_2008 VARCHAR, services VARCHAR, station VARCHAR)
Question: Which Zone 2008 has Services of greater anglia, and a Station of cheshunt?
Here is the SQL... | Here is the SQLite query to answer the question: Which Zone 2008 has Services of greater anglia, and a Station of cheshunt?:
```
SELECT zone_2008 FROM table_name_17 WHERE services = "greater anglia" AND station = "cheshunt";
``` | 22,118 | [
{
"from": "human",
"value": " 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 (zone_2008 VARCHAR, services VARCHAR, station VARCHAR)\n\n Question: Which Zone 2008 has Services of greater anglia,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_71 (touchdowns VARCHAR, player VARCHAR, extra_points VARCHAR, position VARCHAR)
Question: How many touchdowns are there when there were 0 extra points and Hal ... | The SQL query you've provided is almost correct, but since you want to count the touchdowns, you need to use the `COUNT` function. Also, you should ensure the value for `extra_points` is formatted correctly as a numeric value (assuming that extra_points should be stored as an integer). Here's the revised query:
```
SE... | 22,119 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (touchdowns VARCHAR, player VARCHAR, extra_points VARCHAR, position VARCHAR)\n\n Question: How many touchdowns are t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_8 (field_goals VARCHAR, player VARCHAR)
Question: How many field goals did duncan thompson have?
Here is the SQLite query to answer to the question: How many ... | Here is the SQLite query to answer the question: How many field goals did Duncan Thompson have?:
```
SELECT field_goals FROM table_name_8 WHERE player = "duncan thompson"
``` | 22,120 | [
{
"from": "human",
"value": " 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 (field_goals VARCHAR, player VARCHAR)\n\n Question: How many field goals did duncan thompson have?\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_7 (field_goals INTEGER, touchdowns VARCHAR, extra_points VARCHAR)
Question: What is the highest field goals when there were more than 1 touchdown and 0 extra p... | To find the highest number of field goals when there are more than 1 touchdown and 0 extra points, the SQL query should correctly check for `extra_points` equal to 0. Here's the corrected query:
```sql
SELECT MAX(field_goals) FROM table_name_7 WHERE touchdowns > 1 AND extra_points = '0';
```
Make sure that the condi... | 22,121 | [
{
"from": "human",
"value": " 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 (field_goals INTEGER, touchdowns VARCHAR, extra_points VARCHAR)\n\n Question: What is the highest field goals when th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_53 (field_goals INTEGER, points INTEGER)
Question: What is the lowest number of field goals when the points were less than 5?
Here is the SQLite query to answ... | Your SQLite query to find the lowest number of field goals when the points were less than 5 is correct. Here is the query wrapped in code formatting:
```
SELECT MIN(field_goals) FROM table_name_53 WHERE points < 5;
``` | 22,122 | [
{
"from": "human",
"value": " 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 (field_goals INTEGER, points INTEGER)\n\n Question: What is the lowest number of field goals when the points were le... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_94 (haat VARCHAR, city_of_license VARCHAR)
Question: what is the HAAT of devils lake
Here is the SQLite query to answer to the question: what is the HAAT of d... | Here is the SQLite query to answer the question about the HAAT of Devils Lake:
```
SELECT haat FROM table_name_94 WHERE city_of_license = "devils lake";
``` | 22,123 | [
{
"from": "human",
"value": " 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 (haat VARCHAR, city_of_license VARCHAR)\n\n Question: what is the HAAT of devils lake\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_20 (date VARCHAR, winner VARCHAR)
Question: What was the date with a winner of km (mi)?
Here is the SQLite query to answer to the question: What was the date ... | Here is the SQLite query to answer the question about the date with a winner of "km (mi)":
```
SELECT date FROM table_name_20 WHERE winner = "km (mi)"
``` | 22,124 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_20 (date VARCHAR, winner VARCHAR)\n\n Question: What was the date with a winner of km (mi)?\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_97 (erp_w INTEGER, frequency_mhz VARCHAR)
Question: What is the highest ERP W of an 89.1 frequency translator?
Here is the SQLite query to answer to the quest... | Your provided SQLite query is almost correct, but there is a small adjustment needed regarding the type of the `frequency_mhz` field. Since `frequency_mhz` is defined as `VARCHAR`, the comparison with `89.1` should be done as a string (i.e., '89.1').
Here is the corrected version of your query:
```
SELECT MAX(erp_w) ... | 22,125 | [
{
"from": "human",
"value": " 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 (erp_w INTEGER, frequency_mhz VARCHAR)\n\n Question: What is the highest ERP W of an 89.1 frequency translator?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_57 (class VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
Question: What is the class of the translator with 10 ERP W and a call sign of w273bl?
Here is the SQLite... | Here is the SQLite query to answer the question about the class of the translator with 10 ERP W and a call sign of w273bl:
```
SELECT class FROM table_name_57 WHERE erp_w = '10' AND call_sign = 'w273bl';
``` | 22,126 | [
{
"from": "human",
"value": " 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 (class VARCHAR, erp_w VARCHAR, call_sign VARCHAR)\n\n Question: What is the class of the translator with 10 ERP W an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (fcc_info VARCHAR, city_of_license VARCHAR)
Question: What is the FCC info of the translator with an Irmo, South Carolina city license?
Here is the SQLite ... | Here is the SQLite query to answer the question regarding the FCC info of the translator with an Irmo, South Carolina city license:
```
SELECT fcc_info FROM table_name_51 WHERE city_of_license = "Irmo, South Carolina";
``` | 22,127 | [
{
"from": "human",
"value": " 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 (fcc_info VARCHAR, city_of_license VARCHAR)\n\n Question: What is the FCC info of the translator with an Irmo, South... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (call_sign VARCHAR, city_of_license VARCHAR)
Question: What is the call sign of the translator in Spring Valley, Nevada?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about the call sign of the translator in Spring Valley, Nevada:
```
SELECT call_sign FROM table_name_16 WHERE city_of_license = "Spring Valley, Nevada";
``` | 22,128 | [
{
"from": "human",
"value": " 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 (call_sign VARCHAR, city_of_license VARCHAR)\n\n Question: What is the call sign of the translator in Spring Valley,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_60 (call_sign VARCHAR, erp_w VARCHAR, city_of_license VARCHAR)
Question: What is the call sign of the translator with an ERP W greater than 38 and a city licen... | Here is the SQLite query to answer the question:
```
SELECT call_sign FROM table_name_60 WHERE erp_w > 38 AND city_of_license = "Great Falls, Montana";
``` | 22,129 | [
{
"from": "human",
"value": " 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 (call_sign VARCHAR, erp_w VARCHAR, city_of_license VARCHAR)\n\n Question: What is the call sign of the translator wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (erp_w VARCHAR, frequency_mhz VARCHAR)
Question: Name the ERP W for frequency of 92.7
Here is the SQLite query to answer to the question: Name the ERP W fo... | Here is the SQLite query to answer the question "Name the ERP W for frequency of 92.7":
```
SELECT erp_w FROM table_name_66 WHERE frequency_mhz = '92.7';
``` | 22,130 | [
{
"from": "human",
"value": " 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 (erp_w VARCHAR, frequency_mhz VARCHAR)\n\n Question: Name the ERP W for frequency of 92.7\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_56 (erp_w VARCHAR, city_of_license VARCHAR)
Question: Name the ERP W for glens falls, new york
Here is the SQLite query to answer to the question: Name the ER... | Here is the SQLite query to answer the question regarding the ERP W for Glens Falls, New York:
```
SELECT erp_w FROM table_name_56 WHERE city_of_license = "glens falls, new york"
``` | 22,131 | [
{
"from": "human",
"value": " 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 (erp_w VARCHAR, city_of_license VARCHAR)\n\n Question: Name the ERP W for glens falls, new york\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_37 (fcc_info VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
Question: Name the FCC info for frequency Mhz less than 97.3 and call sign of w237br
Here is t... | Here is the SQLite query to answer the question:
```
SELECT fcc_info FROM table_name_37 WHERE frequency_mhz < 97.3 AND call_sign = "w237br";
``` | 22,132 | [
{
"from": "human",
"value": " 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 (fcc_info VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)\n\n Question: Name the FCC info for frequency Mhz less ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (erp_w INTEGER, call_sign VARCHAR)
Question: Name the average ERP W and call sign of w237br
Here is the SQLite query to answer to the question: Name the av... | Your query is almost correct, but it seems like you only want to calculate the average ERP value for the specific call sign provided. If you also need to include the call sign in the result (though it would be redundant since you are filtering by it), you can achieve this by including the call sign in a way that it wil... | 22,133 | [
{
"from": "human",
"value": " 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 (erp_w INTEGER, call_sign VARCHAR)\n\n Question: Name the average ERP W and call sign of w237br\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_5 (score VARCHAR, points VARCHAR, game VARCHAR)
Question: Which Score has Points of 64, and a Game of 49?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: Which Score has Points of 64, and a Game of 49?:
```
SELECT score FROM table_name_5 WHERE points = '64' AND game = '49';
``` | 22,134 | [
{
"from": "human",
"value": " 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 (score VARCHAR, points VARCHAR, game VARCHAR)\n\n Question: Which Score has Points of 64, and a Game of 49?\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_71 (points INTEGER, january VARCHAR, score VARCHAR, record VARCHAR)
Question: Which Points have a Score of 4–1, and a Record of 18–10–8–1, and a January larger... | Here is the SQLite query to answer the specified question:
```
SELECT AVG(points) FROM table_name_71 WHERE score = "4–1" AND record = "18–10–8–1" AND january > 2
``` | 22,135 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_71 (points INTEGER, january VARCHAR, score VARCHAR, record VARCHAR)\n\n Question: Which Points have a Score of 4–1, and... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (points VARCHAR, january VARCHAR)
Question: How many Points have a January of 18?
Here is the SQLite query to answer to the question: How many Points have ... | Your provided SQLite query is almost correct, but since the `january` column is of type `VARCHAR`, you should ensure that you're accurately comparing it to the string value '18' rather than the integer 18.
Here is the adjusted version:
```
SELECT COUNT(points) FROM table_name_88 WHERE january = '18';
```
This quer... | 22,136 | [
{
"from": "human",
"value": " 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 (points VARCHAR, january VARCHAR)\n\n Question: How many Points have a January of 18?\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_96 (game VARCHAR, score VARCHAR, points VARCHAR)
Question: How many Games have a Score of 5–4, and Points smaller than 49?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question regarding the number of Games with a Score of 5–4 and Points smaller than 49:
```
SELECT COUNT(game) FROM table_name_96 WHERE score = '5–4' AND CAST(points AS INTEGER) < 49;
```
Note: It's important to cast the `points` column to an integer if it is stored as a string ... | 22,137 | [
{
"from": "human",
"value": " 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 (game VARCHAR, score VARCHAR, points VARCHAR)\n\n Question: How many Games have a Score of 5–4, and Points 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_64 (gold INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR, type VARCHAR)
Question: What is the average gold of the winter athlete with 1 bronze, less tha... | Here is the corrected SQLite query to answer the question:
```
SELECT AVG(gold) FROM table_name_64
WHERE bronze = '1' AND type = 'winter' AND silver < '3' AND total < '4';
```
Please note that since `silver` and `total` are defined as `VARCHAR`, we compare them as strings, which is why quotes are used around the num... | 22,138 | [
{
"from": "human",
"value": " 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 (gold INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR, type VARCHAR)\n\n Question: What is the average gold o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_41 (total INTEGER, type VARCHAR, athlete VARCHAR)
Question: What is the highest total medals winter athlete Clara Hughes has?
Here is the SQLite query to answ... | Here is the SQLite query to find the highest total medals won by winter athlete Clara Hughes:
```
SELECT MAX(total) FROM table_name_41 WHERE type = "winter" AND athlete = "clara hughes";
``` | 22,139 | [
{
"from": "human",
"value": " 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 (total INTEGER, type VARCHAR, athlete VARCHAR)\n\n Question: What is the highest total medals winter athlete Clara H... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (bronze INTEGER, sport VARCHAR, gold VARCHAR)
Question: What is the lowest number of bronze a short track athlete with 0 gold medals has?
Here is the SQLit... | It looks like there's a small issue with the condition for gold medals. Since the `gold` column is of type `VARCHAR`, the condition should be checking for the string representation of 0 ("0") rather than an integer. Here’s the corrected SQLite query:
```
SELECT MIN(bronze) FROM table_name_47 WHERE sport = "short track... | 22,140 | [
{
"from": "human",
"value": " 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 (bronze INTEGER, sport VARCHAR, gold VARCHAR)\n\n Question: What is the lowest number of bronze a short track athlet... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_90 (project_name VARCHAR, country VARCHAR, peak VARCHAR)
Question: What is the Project Name with a Country that is kazakhstan and a Peak that is 150?
Here is ... | Your SQLite query looks correct. Here it is wrapped in code formatting as you requested:
```
SELECT project_name FROM table_name_90 WHERE country = "kazakhstan" AND peak = "150";
``` | 22,141 | [
{
"from": "human",
"value": " 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 (project_name VARCHAR, country VARCHAR, peak VARCHAR)\n\n Question: What is the Project Name with a Country that is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_14 (peak VARCHAR, project_name VARCHAR)
Question: What is the Peak with a Project Name that is talakan ph 1?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question: What is the Peak with a Project Name that is talakan ph 1?:
```
SELECT peak FROM table_name_14 WHERE project_name = "talakan ph 1";
``` | 22,142 | [
{
"from": "human",
"value": " 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 (peak VARCHAR, project_name VARCHAR)\n\n Question: What is the Peak with a Project Name that is talakan ph 1?\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_36 (project_name VARCHAR, country VARCHAR)
Question: What is the Project Name with a Country that is opec?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question about the Project Name with a Country that is "opec":
```
SELECT project_name FROM table_name_36 WHERE country = "opec";
``` | 22,143 | [
{
"from": "human",
"value": " 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 (project_name VARCHAR, country VARCHAR)\n\n Question: What is the Project Name with a Country that is opec?\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_47 (operator VARCHAR, peak VARCHAR)
Question: What is the Operator with a Peak that is 55?
Here is the SQLite query to answer to the question: What is the Ope... | Here is the SQLite query to answer the question about the operator with a peak of 55:
```
SELECT operator FROM table_name_47 WHERE peak = "55";
``` | 22,144 | [
{
"from": "human",
"value": " 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 (operator VARCHAR, peak VARCHAR)\n\n Question: What is the Operator with a Peak that is 55?\n\nHere is the SQLite qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_84 (score VARCHAR, record VARCHAR)
Question: What was the score when they had a 25-41-9 record?
Here is the SQLite query to answer to the question: What was t... | Here is the SQLite query to answer the question regarding the score when there was a 25-41-9 record:
```sql
SELECT score FROM table_name_84 WHERE record = "25-41-9";
``` | 22,145 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_84 (score VARCHAR, record VARCHAR)\n\n Question: What was the score when they had a 25-41-9 record?\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_81 (game INTEGER, score VARCHAR, record VARCHAR)
Question: What is the game associated with a score of 4 - 2, and a record of 25-39-9?
Here is the SQLite quer... | Here is the SQLite query that answers the question about the game associated with a score of 4 - 2 and a record of 25-39-9:
```
SELECT game FROM table_name_81 WHERE score = '4 - 2' AND record = '25-39-9';
```
This query directly retrieves the game(s) that meet the specified score and record criteria. If you are look... | 22,146 | [
{
"from": "human",
"value": " 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 (game INTEGER, score VARCHAR, record VARCHAR)\n\n Question: What is the game associated with a score of 4 - 2, 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_6 (attendance INTEGER, result VARCHAR)
Question: How many attendances have w 48-10 as the result?
Here is the SQLite query to answer to the question: How many... | Here is the SQLite query to answer the question of how many attendances have "w 48-10" as the result:
```
SELECT SUM(attendance) FROM table_name_6 WHERE result = "w 48-10";
``` | 22,147 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, result VARCHAR)\n\n Question: How many attendances have w 48-10 as the result?\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_78 (attendance VARCHAR, week VARCHAR)
Question: How many attendances have 9 as the week?
Here is the SQLite query to answer to the question: How many attendan... | Here is the corrected SQLite query to answer the question about how many attendances have 9 as the week:
```
SELECT COUNT(attendance) FROM table_name_78 WHERE week = '9'
```
Note that since the `week` column is of type `VARCHAR`, we should use quotes around the value `9`. | 22,148 | [
{
"from": "human",
"value": " 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 (attendance VARCHAR, week VARCHAR)\n\n Question: How many attendances have 9 as the week?\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_98 (attendance INTEGER, week VARCHAR, result VARCHAR)
Question: What is the lowest attendance that has a week less than 4, and w 13-7 as the result?
Here is t... | Here is the SQLite query that answers the question regarding the lowest attendance with the specified conditions:
```
SELECT MIN(attendance) FROM table_name_98 WHERE week < 4 AND result = "w 13-7"
``` | 22,149 | [
{
"from": "human",
"value": " 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 (attendance INTEGER, week VARCHAR, result VARCHAR)\n\n Question: What is the lowest attendance that has a week less ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (psd___pc VARCHAR, date VARCHAR)
Question: What is the psd-pc for 18-22/04/2009?
Here is the SQLite query to answer to the question: What is the psd-pc for... | Here is the SQLite query to answer the question about the psd-pc for the date range 18-22/04/2009:
```
SELECT psd___pc FROM table_name_65 WHERE date = "18-22/04/2009"
``` | 22,150 | [
{
"from": "human",
"value": " 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 (psd___pc VARCHAR, date VARCHAR)\n\n Question: What is the psd-pc for 18-22/04/2009?\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_74 (date VARCHAR, others VARCHAR)
Question: What date has the others of 2%?
Here is the SQLite query to answer to the question: What date has the others of 2%... | Here is the SQLite query to answer the question about what date has the others of 2%:
```sql
SELECT date FROM table_name_74 WHERE others = '2%';
``` | 22,151 | [
{
"from": "human",
"value": " 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 (date VARCHAR, others VARCHAR)\n\n Question: What date has the others of 2%?\n\nHere is the SQLite query to answer t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_75 (udmr VARCHAR, date VARCHAR)
Question: What was the UDMR for 18-22/04/2009?
Here is the SQLite query to answer to the question: What was the UDMR for 18-22... | Here is the SQLite query to answer the question about the UDMR for the date range 18-22/04/2009:
```
SELECT udmr FROM table_name_75 WHERE date BETWEEN "18-04-2009" AND "22-04-2009";
```
Please note that you'll need to ensure the date format matches the format used in your database for this query to work effectively. | 22,152 | [
{
"from": "human",
"value": " 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 (udmr VARCHAR, date VARCHAR)\n\n Question: What was the UDMR for 18-22/04/2009?\n\nHere is the SQLite query to answe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_52 (date VARCHAR, others VARCHAR, psd___pc VARCHAR)
Question: When the other is n/a and the psc-pc is 30% what is the date?
Here is the SQLite query to answer... | Your SQLite query is correctly formulated to retrieve the date where the `others` column has the value "n/a" and the `psd___pc` column has the value "30%". Below is the query wrapped in the requested code format:
```
SELECT date FROM table_name_52 WHERE others = "n/a" AND psd___pc = "30%"
``` | 22,153 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_52 (date VARCHAR, others VARCHAR, psd___pc VARCHAR)\n\n Question: When the other is n/a and the psc-pc is 30% what is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (polling_firm VARCHAR, others VARCHAR)
Question: What was the polling firm with others of 1%?
Here is the SQLite query to answer to the question: What was ... | Here is the SQLite query to answer the question regarding the polling firm with others of 1%:
```sql
SELECT polling_firm FROM table_name_25 WHERE others = '1%';
``` | 22,154 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (polling_firm VARCHAR, others VARCHAR)\n\n Question: What was the polling firm with others of 1%?\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_98 (elena_băsescu VARCHAR, polling_firm VARCHAR)
Question: What is the elena basescu when the poling firm of gallup?
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question:
```
SELECT elena_băsescu FROM table_name_98 WHERE polling_firm = "gallup"
``` | 22,155 | [
{
"from": "human",
"value": " 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 (elena_băsescu VARCHAR, polling_firm VARCHAR)\n\n Question: What is the elena basescu when the poling firm of gallup... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_46 (opponent VARCHAR, score VARCHAR, game VARCHAR, december VARCHAR)
Question: Game smaller than 34, and a December smaller than 14, and a Score of 10 - 6 has ... | Here is the SQLite query you requested:
```
SELECT opponent FROM table_name_46 WHERE game < 34 AND december < 14 AND score = "10 - 6"
``` | 22,156 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, score VARCHAR, game VARCHAR, december VARCHAR)\n\n Question: Game smaller than 34, and a December... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (record VARCHAR, game VARCHAR, december VARCHAR)
Question: Game larger than 34, and a December smaller than 23 had what record?
Here is the SQLite query to... | Here is the SQLite query to answer the question: Game larger than 34, and a December smaller than 23 had what record?:
```
SELECT record FROM table_name_20 WHERE game > 34 AND december < 23;
``` | 22,157 | [
{
"from": "human",
"value": " 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 (record VARCHAR, game VARCHAR, december VARCHAR)\n\n Question: Game larger than 34, and a December smaller than 23 h... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_68 (december INTEGER, record VARCHAR, game VARCHAR)
Question: Record of 15-12-4, and a Game larger than 31 involves what highest December?
Here is the SQLite ... | Your SQLite query looks correct for retrieving the highest December value for the specified conditions. Here it is wrapped in the appropriate code block:
```
SELECT MAX(december) FROM table_name_68 WHERE record = "15-12-4" AND game > 31;
``` | 22,158 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_68 (december INTEGER, record VARCHAR, game VARCHAR)\n\n Question: Record of 15-12-4, and a Game larger than 31 involves... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (points INTEGER, record VARCHAR, game VARCHAR)
Question: Which Points have a Record of 45–21–4, and a Game larger than 70?
Here is the SQLite query to answ... | You're on the right track with your SQL query! Just to summarize and clarify, your query is aiming to find the average `points` from the `table_name_77` table where the `record` matches "45–21–4" and the `game` value is greater than 70. Here’s the properly formatted version of your query:
```sql
SELECT AVG(points) FRO... | 22,159 | [
{
"from": "human",
"value": " 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 (points INTEGER, record VARCHAR, game VARCHAR)\n\n Question: Which Points have a Record of 45–21–4, and a Game large... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_88 (march INTEGER, score VARCHAR, points VARCHAR)
Question: Which March is the lowest one that has a Score of 5–6, and Points smaller than 100?
Here is the SQ... | Here is the SQLite query to answer the question:
```
SELECT MIN(march) FROM table_name_88 WHERE score = "5–6" AND points < 100
``` | 22,160 | [
{
"from": "human",
"value": " 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 (march INTEGER, score VARCHAR, points VARCHAR)\n\n Question: Which March is the lowest one that has a Score of 5–6, ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_65 (score VARCHAR, opponent VARCHAR, game VARCHAR, march VARCHAR, points VARCHAR)
Question: Which Score has a March larger than 15, and Points larger than 96, ... | Here is the SQLite query to answer the question:
```
SELECT score FROM table_name_65 WHERE march > 15 AND points > 96 AND game < 76 AND opponent = "@ washington capitals"
``` | 22,161 | [
{
"from": "human",
"value": " 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 (score VARCHAR, opponent VARCHAR, game VARCHAR, march VARCHAR, points VARCHAR)\n\n Question: Which Score has a March... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_51 (opponent VARCHAR, record VARCHAR)
Question: Which Opponent has a Record of 45–21–4?
Here is the SQLite query to answer to the question: Which Opponent has... | Here is the SQLite query to answer the question: Which Opponent has a Record of 45–21–4?:
```
SELECT opponent FROM table_name_51 WHERE record = "45–21–4"
``` | 22,162 | [
{
"from": "human",
"value": " 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 (opponent VARCHAR, record VARCHAR)\n\n Question: Which Opponent has a Record of 45–21–4?\n\nHere is the SQLite query... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_82 (year_completed INTEGER, floors VARCHAR)
Question: What year was the building completed that has 10 floors?
Here is the SQLite query to answer to the quest... | The provided SQL query calculates the average year the buildings with 10 floors were completed, which is not what the question asks. To directly answer the question about the year a building with 10 floors was completed, you should select the `year_completed` for that specific condition. Here's the corrected SQLite que... | 22,163 | [
{
"from": "human",
"value": " 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 (year_completed INTEGER, floors VARCHAR)\n\n Question: What year was the building completed that has 10 floors?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_13 (name VARCHAR, floors VARCHAR)
Question: What was the name of the building with 10 floors?
Here is the SQLite query to answer to the question: What was the... | Your SQLite query is almost correct, but since the floors are stored as a VARCHAR, you need to enclose the number 10 in quotes to compare it as a string. Here’s the corrected query:
```
SELECT name FROM table_name_13 WHERE floors = '10'
``` | 22,164 | [
{
"from": "human",
"value": " 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 (name VARCHAR, floors VARCHAR)\n\n Question: What was the name of the building with 10 floors?\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_44 (height_ft___m VARCHAR, year_completed VARCHAR, name VARCHAR)
Question: How tall is the florida life building, completed before 1990?
Here is the SQLite qu... | Here is the SQLite query to answer the question about the height of the Florida Life Building, completed before 1990:
```
SELECT height_ft___m FROM table_name_44 WHERE year_completed < '1990' AND name = 'florida life building';
``` | 22,165 | [
{
"from": "human",
"value": " 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 (height_ft___m VARCHAR, year_completed VARCHAR, name VARCHAR)\n\n Question: How tall is the florida life building, c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_28 (game VARCHAR, result VARCHAR)
Question: Result of 86-87 (2-4) is what game?
Here is the SQLite query to answer to the question: Result of 86-87 (2-4) is w... | Here is the corrected SQLite query to answer the question "Result of 86-87 (2-4) is what game?":
```sql
SELECT game FROM table_name_28 WHERE result = "2-4";
```
Make sure that the result format matches your database records for accurate results. | 22,166 | [
{
"from": "human",
"value": " 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 (game VARCHAR, result VARCHAR)\n\n Question: Result of 86-87 (2-4) is what game?\n\nHere is the SQLite query to answ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_16 (game VARCHAR, result VARCHAR)
Question: Result of 88-85 ot (1-0) involves what game?
Here is the SQLite query to answer to the question: Result of 88-85 o... | Your SQLite query is correctly formulated to find the game associated with the specific result. Here it is wrapped as requested:
```
SELECT game FROM table_name_16 WHERE result = "88-85 ot (1-0)"
``` | 22,167 | [
{
"from": "human",
"value": " 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 (game VARCHAR, result VARCHAR)\n\n Question: Result of 88-85 ot (1-0) involves what game?\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_83 (result VARCHAR, game VARCHAR)
Question: Game of game 5 had what result?
Here is the SQLite query to answer to the question: Game of game 5 had what result... | Here is the SQLite query to answer the question "Game of game 5 had what result?":
```sql
SELECT result FROM table_name_83 WHERE game = "game 5"
``` | 22,168 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_83 (result VARCHAR, game VARCHAR)\n\n Question: Game of game 5 had what result?\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_27 (game VARCHAR, road_team VARCHAR, result VARCHAR)
Question: Road Team of utah jazz, and a Result of 81-83 (3-2) involved what game?
Here is the SQLite quer... | Here is the SQL query to answer the question regarding the road team of Utah Jazz and the result of 81-83 (3-2):
```
SELECT game FROM table_name_27 WHERE road_team = "utah jazz" AND result = "81-83 (3-2)"
``` | 22,169 | [
{
"from": "human",
"value": " 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 (game VARCHAR, road_team VARCHAR, result VARCHAR)\n\n Question: Road Team of utah jazz, and a Result of 81-83 (3-2) ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_33 (game VARCHAR, home_team VARCHAR, result VARCHAR)
Question: Home Team of chicago bulls, and a Result of 81-83 (3-2) involved what game?
Here is the SQLite ... | Here is the SQLite query to answer the question about the home team of Chicago Bulls and the result of 81-83 (3-2):
```
SELECT game FROM table_name_33 WHERE home_team = "chicago bulls" AND result = "81-83 (3-2)"
``` | 22,170 | [
{
"from": "human",
"value": " 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 (game VARCHAR, home_team VARCHAR, result VARCHAR)\n\n Question: Home Team of chicago bulls, and a Result of 81-83 (3... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_38 (home_team VARCHAR, result VARCHAR)
Question: Result of 86-87 (2-4) involves what home team?
Here is the SQLite query to answer to the question: Result of ... | The provided SQLite query is almost correct but might need adjustment if you're looking for a specific format or clarity. Here's the corrected query wrapped in the proper format:
```
SELECT home_team FROM table_name_38 WHERE result = "86-87 (2-4)";
```
This query will retrieve the `home_team` from the `table_name_38... | 22,171 | [
{
"from": "human",
"value": " 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 (home_team VARCHAR, result VARCHAR)\n\n Question: Result of 86-87 (2-4) involves what home team?\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_16 (wins INTEGER, draws VARCHAR, scored VARCHAR, team VARCHAR)
Question: What is the fewest wins that has fewer than 23 goals scored, team of 2 de Mayo, and fe... | Your SQLite query has the right structure but includes a minor error in the condition for the `scored` column. The `scored` column is defined as `VARCHAR`, which means that direct comparison with an integer value (like `23`) will not work properly. You need to convert `scored` to an integer before comparing it to `23`.... | 22,172 | [
{
"from": "human",
"value": " 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 (wins INTEGER, draws VARCHAR, scored VARCHAR, team VARCHAR)\n\n Question: What is the fewest wins that has fewer tha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_61 (draws VARCHAR, losses VARCHAR, points VARCHAR)
Question: What is the number of draws for the team with more than 8 losses and 13 points?
Here is the SQLit... | The SQLite query you provided needs a small adjustment to properly evaluate numeric conditions. Since the columns `losses` and `points` are defined as `VARCHAR`, you should cast them to integers in the query to perform numerical comparisons. Here's the corrected query:
```
SELECT draws FROM table_name_61 WHERE CAST(lo... | 22,173 | [
{
"from": "human",
"value": " 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 (draws VARCHAR, losses VARCHAR, points VARCHAR)\n\n Question: What is the number of draws for the team 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_24 (march VARCHAR, points VARCHAR)
Question: How much March has Points of 85?
Here is the SQLite query to answer to the question: How much March has Points of... | Your provided SQLite query is almost correct, but since `points` is defined as a `VARCHAR`, you should compare it as a string. Here's the corrected query:
```sql
SELECT COUNT(march) FROM table_name_24 WHERE points = '85';
```
This query will count how many entries in the `march` column have a corresponding `points` ... | 22,174 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_24 (march VARCHAR, points VARCHAR)\n\n Question: How much March has Points of 85?\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_46 (game INTEGER, score VARCHAR, points VARCHAR)
Question: Which Game is the lowest one that has a Score of 2–3 ot, and Points larger than 76?
Here is the SQL... | Your SQLite query is correctly formulated to answer the question. Here it is wrapped in a code block:
```
SELECT MIN(game) FROM table_name_46 WHERE score = "2–3 ot" AND points > 76;
``` | 22,175 | [
{
"from": "human",
"value": " 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 (game INTEGER, score VARCHAR, points VARCHAR)\n\n Question: Which Game is the lowest one that has a Score of 2–3 ot,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_50 (game VARCHAR, march VARCHAR, points VARCHAR)
Question: How many games have a March of 19, and Points smaller than 83?
Here is the SQLite query to answer t... | Your query is almost correct, but since the `points` column is defined as `VARCHAR`, you may need to cast it to an integer for comparison. Here’s the corrected SQLite query:
```
SELECT COUNT(game) FROM table_name_50 WHERE march = '19' AND CAST(points AS INTEGER) < 83;
```
This query counts the number of games where ... | 22,176 | [
{
"from": "human",
"value": " 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 (game VARCHAR, march VARCHAR, points VARCHAR)\n\n Question: How many games have a March of 19, and Points smaller th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (almalı__qax_ VARCHAR, süskən VARCHAR)
Question: What is the Almali village with the Süskən village zərnə?
Here is the SQLite query to answer to the questi... | Here is the SQLite query to answer the question "What is the Almali village with the Süskən village zərnə?":
```sql
SELECT almalı__qax_ FROM table_name_77 WHERE süskən = "zərnə";
``` | 22,177 | [
{
"from": "human",
"value": " 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 (almalı__qax_ VARCHAR, süskən VARCHAR)\n\n Question: What is the Almali village with the Süskən village zərnə?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_81 (almalı__qax_ VARCHAR, malax VARCHAR)
Question: What is the Almali village with the Malax village qaxingiloy?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the Almali village with the Malax village "qaxingiloy":
```
SELECT almalı__qax_ FROM table_name_81 WHERE malax = "qaxingiloy";
``` | 22,178 | [
{
"from": "human",
"value": " 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 (almalı__qax_ VARCHAR, malax VARCHAR)\n\n Question: What is the Almali village with the Malax village qaxingiloy?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_25 (süskən VARCHAR, malax VARCHAR)
Question: What is the Süskən village with a Malax village meşəbaş?
Here is the SQLite query to answer to the question: What... | Here is the SQLite query to answer the question about the Süskən village with a Malax village meşəbaş:
```sql
SELECT süskən FROM table_name_25 WHERE malax = 'meşəbaş';
``` | 22,179 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_name_25 (süskən VARCHAR, malax VARCHAR)\n\n Question: What is the Süskən village with a Malax village meşəbaş?\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_90 (qaxmuğal VARCHAR, malax VARCHAR)
Question: What is the Qaxmuğal village with a Malax village meşəbaş?
Here is the SQLite query to answer to the question: ... | Here is the SQLite query to answer the question: What is the Qaxmuğal village with a Malax village meşəbaş?:
```
SELECT qaxmuğal FROM table_name_90 WHERE malax = "meşəbaş"
``` | 22,180 | [
{
"from": "human",
"value": " 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 (qaxmuğal VARCHAR, malax VARCHAR)\n\n Question: What is the Qaxmuğal village with a Malax village meşəbaş?\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_81 (qaxmuğal VARCHAR, fıstıqlı VARCHAR)
Question: What is the Qaxmuğal village with a Fistiqli village keşqutan?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question regarding the Qaxmuğal village with a Fistiqli village keşqutan:
```sql
SELECT qaxmuğal FROM table_name_81 WHERE fıstıqlı = "keşqutan";
``` | 22,181 | [
{
"from": "human",
"value": " 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 (qaxmuğal VARCHAR, fıstıqlı VARCHAR)\n\n Question: What is the Qaxmuğal village with a Fistiqli village keşqutan?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_54 (championships INTEGER, club VARCHAR)
Question: What are the highest championships where the club is Springfield Cardinals?
Here is the SQLite query to ans... | Here is the SQLite query to retrieve the highest championships for the club "Springfield Cardinals":
```sql
SELECT MAX(championships) FROM table_name_54 WHERE club = "Springfield Cardinals";
``` | 22,182 | [
{
"from": "human",
"value": " 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 (championships INTEGER, club VARCHAR)\n\n Question: What are the highest championships where the club is Springfield... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_36 (max_torque_at_rpm VARCHAR, displacement VARCHAR, engine VARCHAR)
Question: What is the maximum torque that has 2,445 CC Displacement, and an Iveco 8144.61 ... | Here is the SQLite query to answer the question about the maximum torque for the specified displacement and engine:
```
SELECT max_torque_at_rpm FROM table_name_36 WHERE displacement = '2,445 CC' AND engine = 'Iveco 8144.61';
``` | 22,183 | [
{
"from": "human",
"value": " 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 (max_torque_at_rpm VARCHAR, displacement VARCHAR, engine VARCHAR)\n\n Question: What is the maximum torque that has ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_77 (valvetrain VARCHAR, fuel_system VARCHAR)
Question: What Valvetrain has a fuel system made up of petrol engines?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about which Valvetrain has a fuel system made up of petrol engines:
```
SELECT valvetrain FROM table_name_77 WHERE fuel_system = "petrol engines";
``` | 22,184 | [
{
"from": "human",
"value": " 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 (valvetrain VARCHAR, fuel_system VARCHAR)\n\n Question: What Valvetrain has a fuel system made up of petrol engines?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_22 (population INTEGER, rank VARCHAR, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR)
Question: Which Population has an Altitude (mslm) larger th... | Here is the SQLite query wrapped in the appropriate code block:
```
SELECT SUM(population) FROM table_name_22 WHERE altitude__mslm_ > 98 AND density__inhabitants_km_2__ > 5869 AND rank = '1st';
``` | 22,185 | [
{
"from": "human",
"value": " 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 (population INTEGER, rank VARCHAR, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR)\n\n Question: Which... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_99 (population INTEGER, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR, rank VARCHAR)
Question: Which Population is the highest one that has a De... | Here is the SQLite query to answer the question:
```
SELECT MAX(population) FROM table_name_99 WHERE density__inhabitants_km_2__ > 2805.8 AND rank = "1st" AND altitude__mslm_ < 122
``` | 22,186 | [
{
"from": "human",
"value": " 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 (population INTEGER, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR, rank VARCHAR)\n\n Question: Which... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR, population VARCHAR)
Question: Which Altitude (mslm) is the highest one ... | Your query looks almost correct, but there are a couple of corrections needed regarding the types of the fields being queried. Since `area__km_2__` and `density__inhabitants_km_2__` are stored as `VARCHAR`, they might need to be converted to a numeric type for comparison. Also, the `population` is stored as `VARCHAR` b... | 22,187 | [
{
"from": "human",
"value": " 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 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR, population VARCHAR)\n\n Questio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_47 (altitude__mslm_ INTEGER, city VARCHAR, population VARCHAR)
Question: Which Altitude (mslm) is the highest one that has a City of legnano, and a Population ... | Here is the SQLite query to answer the question:
```
SELECT MAX(altitude__mslm_) FROM table_name_47 WHERE city = "legnano" AND population > 59492
``` | 22,188 | [
{
"from": "human",
"value": " 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 (altitude__mslm_ INTEGER, city VARCHAR, population VARCHAR)\n\n Question: Which Altitude (mslm) is the highest one t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_73 (engine VARCHAR, points VARCHAR, entrant VARCHAR)
Question: What is the Motor that has a Focuses bigger than 62, and a Participant of rebaque?
Here is the ... | Here is the corrected SQLite query to answer the question based on the provided schema:
```
SELECT engine FROM table_name_73 WHERE CAST(points AS INTEGER) > 62 AND entrant = 'rebaque';
```
This query converts the `points` from a string to an integer (assuming `points` is stored as a VARCHAR), checks for values great... | 22,189 | [
{
"from": "human",
"value": " 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 (engine VARCHAR, points VARCHAR, entrant VARCHAR)\n\n Question: What is the Motor that has a Focuses bigger than 62,... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_1 (points VARCHAR, year INTEGER)
Question: What is the Focus that has a Year bigger than 1977?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question regarding the Focus that has a Year bigger than 1977:
```
SELECT points FROM table_name_1 WHERE year > 1977
``` | 22,190 | [
{
"from": "human",
"value": " 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 (points VARCHAR, year INTEGER)\n\n Question: What is the Focus that has a Year bigger than 1977?\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_42 (year VARCHAR, driver VARCHAR)
Question: When did Hans Hartmann drive?
Here is the SQLite query to answer to the question: When did Hans Hartmann drive?:
`... | The provided query counts the number of years that Hans Hartmann drove, but it doesn't return the specific years. To get the years when Hans Hartmann drove, you should select the years instead. Here’s the corrected query:
```
SELECT year FROM table_name_42 WHERE driver = "hans hartmann";
``` | 22,191 | [
{
"from": "human",
"value": " 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 VARCHAR, driver VARCHAR)\n\n Question: When did Hans Hartmann drive?\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_97 (second VARCHAR, lead VARCHAR)
Question: What is the second that has jordan moulton as the lead?
Here is the SQLite query to answer to the question: What i... | Here's the SQLite query to answer the question regarding the second that has "jordan moulton" as the lead:
```
SELECT second FROM table_name_97 WHERE lead = "jordan moulton"
``` | 22,192 | [
{
"from": "human",
"value": " 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 (second VARCHAR, lead VARCHAR)\n\n Question: What is the second that has jordan moulton as the lead?\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_22 (skip VARCHAR, third VARCHAR)
Question: What skip has martina baumann as the third?
Here is the SQLite query to answer to the question: What skip has marti... | Here is the SQLite query to answer the question about what skip has martina baumann as the third:
```
SELECT skip FROM table_name_22 WHERE third = "martina baumann";
``` | 22,193 | [
{
"from": "human",
"value": " 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 (skip VARCHAR, third VARCHAR)\n\n Question: What skip has martina baumann as the third?\n\nHere is the SQLite query ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_15 (skip VARCHAR, country VARCHAR)
Question: What skip has switzerland as the country?
Here is the SQLite query to answer to the question: What skip has switz... | Your SQLite query to find the skips associated with Switzerland as the country is correct. Here it is wrapped in the requested format:
```
SELECT skip FROM table_name_15 WHERE country = "switzerland";
``` | 22,194 | [
{
"from": "human",
"value": " 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 (skip VARCHAR, country VARCHAR)\n\n Question: What skip has switzerland as the country?\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_13 (skip VARCHAR, lead VARCHAR)
Question: What skip has angela tuvaeva as the lead?
Here is the SQLite query to answer to the question: What skip has angela t... | Here is the SQLite query to answer the question: What skip has angela tuvaeva as the lead?:
```
SELECT skip FROM table_name_13 WHERE lead = "angela tuvaeva";
``` | 22,195 | [
{
"from": "human",
"value": " 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 (skip VARCHAR, lead VARCHAR)\n\n Question: What skip has angela tuvaeva as the lead?\n\nHere is the SQLite query to ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_66 (skip VARCHAR, country VARCHAR)
Question: What skip has norway as the country?
Here is the SQLite query to answer to the question: What skip has norway as ... | Here is the SQLite query to answer the question: What skip has norway as the country?:
```
SELECT skip FROM table_name_66 WHERE country = "norway"
``` | 22,196 | [
{
"from": "human",
"value": " 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 (skip VARCHAR, country VARCHAR)\n\n Question: What skip has norway as the country?\n\nHere is the SQLite query to an... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_58 (skip VARCHAR, country VARCHAR)
Question: What skip has denmark as the country?
Here is the SQLite query to answer to the question: What skip has denmark a... | Here is the SQLite query to answer the question: What skip has denmark as the country?:
```
SELECT skip FROM table_name_58 WHERE country = "denmark";
``` | 22,197 | [
{
"from": "human",
"value": " 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 (skip VARCHAR, country VARCHAR)\n\n Question: What skip has denmark as the country?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_20 (visitor VARCHAR, home VARCHAR)
Question: Which visitor has a Los Angeles home?
Here is the SQLite query to answer to the question: Which visitor has a Los... | Here is the SQLite query to answer the question "Which visitor has a Los Angeles home?":
```
SELECT visitor FROM table_name_20 WHERE home = "los angeles";
``` | 22,198 | [
{
"from": "human",
"value": " 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 (visitor VARCHAR, home VARCHAR)\n\n Question: Which visitor has a Los Angeles home?\n\nHere is the SQLite query to a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_name_95 (series VARCHAR, opponent VARCHAR, game VARCHAR)
Question: Opponent of edmonton oilers, and a Game of 3 is what series?
Here is the SQLite query to answer ... | It seems there was a small error in your query with respect to the condition for the `opponent`. The opponent should be specified correctly as per your requirement. Here’s the corrected query for the question regarding the opponent of the "edmonton oilers" and a Game of 3.
Here’s the SQLite query:
```sql
SELECT serie... | 22,199 | [
{
"from": "human",
"value": " 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 (series VARCHAR, opponent VARCHAR, game VARCHAR)\n\n Question: Opponent of edmonton oilers, and a Game of 3 is what ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.