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_20396710_1 (points_difference VARCHAR, points_for VARCHAR)
Question: when the points for is 139 is points difference?
Here is the SQLite query to answer to the que... | The SQL query you've written is trying to count how many times the points difference occurs when the points for is 139. However, if you want to actually retrieve the points difference where the points for is 139, you would typically use a SELECT statement that fetches the points difference directly.
Here’s the correct... | 34,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_20396710_1 (points_difference VARCHAR, points_for VARCHAR)\n\n Question: when the points for is 139 is points difference?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20396710_1 (drawn VARCHAR)
Question: when points against is points again, which are the drawn?
Here is the SQLite query to answer to the question: when points agai... | It seems there is a bit of confusion in your question. The current schema provided only includes a table with a column named `drawn` and does not include any columns named `points_against` or `points_again`.
However, if you're trying to find rows where some condition regarding "points against" relates to the "drawn" c... | 34,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_20396710_1 (drawn VARCHAR)\n\n Question: when points against is points again, which are the drawn?\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_20396710_1 (drawn VARCHAR, points_for VARCHAR)
Question: when points for is 39 what is the total number of drawn
Here is the SQLite query to answer to the question... | To get the total number of drawn entries where points_for is 39, you should use the `COUNT()` function in your SQL query. Here is the correct query:
```
SELECT COUNT(drawn) AS total_drawn FROM table_20396710_1 WHERE points_for = "39"
``` | 34,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_20396710_1 (drawn VARCHAR, points_for VARCHAR)\n\n Question: when points for is 39 what is the total number of drawn\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20424014_1 (mccain__percentage VARCHAR, obama__percentage VARCHAR)
Question: what is the mccain % where obama got 19.3%
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question regarding the McCain percentage when Obama received 19.3%:
```
SELECT mccain__percentage FROM table_20424014_1 WHERE obama__percentage = "19.3%"
``` | 34,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_20424014_1 (mccain__percentage VARCHAR, obama__percentage VARCHAR)\n\n Question: what is the mccain % where obama got 19.3%\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20424014_1 (mccain__number INTEGER, obama__percentage VARCHAR)
Question: what is the highest mccain # where obama got 33.7%
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question of the highest `mccain__number` where `obama__percentage` is 33.7%:
```
SELECT MAX(mccain__number) FROM table_20424014_1 WHERE obama__percentage = "33.7%"
``` | 34,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_20424014_1 (mccain__number INTEGER, obama__percentage VARCHAR)\n\n Question: what is the highest mccain # where obama got 33... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20424014_1 (county VARCHAR, obama__percentage VARCHAR)
Question: where did obama get 39.8%
Here is the SQLite query to answer to the question: where did obama get ... | Your SQLite query is almost correct. However, if the `obama__percentage` column is stored as a string with a percentage sign, you need to make sure to match the exact format. Assuming that the values in the `obama__percentage` column include the percentage sign, your query should work fine. Here's the correct format:
... | 34,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_20424014_1 (county VARCHAR, obama__percentage VARCHAR)\n\n Question: where did obama get 39.8%\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_20424014_1 (obama__number VARCHAR, county VARCHAR)
Question: what is the obama # in carson city
Here is the SQLite query to answer to the question: what is the oba... | Here is the SQLite query to answer the question about the Obama number in Carson City:
```
SELECT obama__number FROM table_20424014_1 WHERE county = "Carson City";
``` | 34,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_20424014_1 (obama__number VARCHAR, county VARCHAR)\n\n Question: what is the obama # in carson city\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_20424014_1 (county VARCHAR, obama__percentage VARCHAR)
Question: where did obama get 41.3%
Here is the SQLite query to answer to the question: where did obama get ... | Here is the SQLite query to answer the question: where did Obama get 41.3%:
```
SELECT county FROM table_20424014_1 WHERE obama__percentage = '41.3%';
``` | 34,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_20424014_1 (county VARCHAR, obama__percentage VARCHAR)\n\n Question: where did obama get 41.3%\n\nHere is the SQLite query t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20398823_1 (season VARCHAR, team VARCHAR)
Question: Name the number of season for team bruichladdich
Here is the SQLite query to answer to the question: Name the n... | Your query has a minor inconsistency with the team name. If you want to count the number of seasons for the team "bruichladdich," you should match the exact name in the WHERE clause. Assuming the correct name is "bruichladdich," here's how the correct query would look:
```sql
SELECT COUNT(season) FROM table_20398823_1... | 34,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_20398823_1 (season VARCHAR, team VARCHAR)\n\n Question: Name the number of season for team bruichladdich\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_20398823_1 (podiums INTEGER, points VARCHAR)
Question: Name the least podiums for 49 points
Here is the SQLite query to answer to the question: Name the least podi... | Here is the SQLite query to answer the question regarding the least podiums for 49 points:
```sql
SELECT MIN(podiums) FROM table_20398823_1 WHERE points = '49';
``` | 34,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_20398823_1 (podiums INTEGER, points VARCHAR)\n\n Question: Name the least podiums for 49 points\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_20398823_1 (f_laps INTEGER)
Question: Name the least f/laps
Here is the SQLite query to answer to the question: Name the least f/laps:
```
SELECT MIN(f_laps) FROM ... | Your provided SQLite query to find the least value of `f_laps` from the table is correct. Here it is wrapped in the appropriate code block as you've requested:
```
SELECT MIN(f_laps) FROM table_20398823_1;
``` | 34,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_20398823_1 (f_laps INTEGER)\n\n Question: Name the least f/laps\n\nHere is the SQLite query to answer to the question: Name ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20398823_1 (season VARCHAR, wins VARCHAR, races VARCHAR)
Question: Namet he season for wins being 0 and 20 races
Here is the SQLite query to answer to the question... | Here is the SQLite query to find the season for wins being 0 and 20 races:
```sql
SELECT season FROM table_20398823_1 WHERE wins = '0' AND races = '20';
``` | 34,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_20398823_1 (season VARCHAR, wins VARCHAR, races VARCHAR)\n\n Question: Namet he season for wins being 0 and 20 races\n\nHere... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20398823_1 (podiums INTEGER, points VARCHAR, wins VARCHAR, season VARCHAR)
Question: Name the least podiums for 0 wins and 2005 season for 321 points
Here is the S... | Your query has a small mistake in the `WHERE` clause regarding the type of the column `wins`. Since the column is defined as `VARCHAR`, you need to compare it with a string. Here's the corrected query:
```sql
SELECT MIN(podiums) FROM table_20398823_1 WHERE wins = '0' AND season = '2005' AND points = '321'
```
This q... | 34,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_20398823_1 (podiums INTEGER, points VARCHAR, wins VARCHAR, season VARCHAR)\n\n Question: Name the least podiums for 0 wins a... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20404716_1 (spanish_title VARCHAR, film_title_used_in_nomination VARCHAR)
Question: What is the Spanish title of the film whose title used in nomination was Ogu and... | Here is the SQLite query to answer the question regarding the Spanish title of the film whose title used in nomination was "Ogu and Mampato in Rapa Nui":
```
SELECT spanish_title FROM table_20404716_1 WHERE film_title_used_in_nomination = "Ogu and Mampato in Rapa Nui"
``` | 34,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_20404716_1 (spanish_title VARCHAR, film_title_used_in_nomination VARCHAR)\n\n Question: What is the Spanish title of the fil... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20404716_1 (director VARCHAR, result VARCHAR, spanish_title VARCHAR)
Question: Who was the director of the film that was not nominated and had the Spanish title of ... | Here is the SQLite query to answer the question about the director of the film that was not nominated and had the Spanish title of "Play":
```
SELECT director FROM table_20404716_1 WHERE result = "Not Nominated" AND spanish_title = "Play"
``` | 34,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_20404716_1 (director VARCHAR, result VARCHAR, spanish_title VARCHAR)\n\n Question: Who was the director of the film that was... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR)
Question: How many couples have an average of 25.3?
Here is the SQLite query to answer to the question: How many coupl... | Your provided SQLite query to count the number of couples with an average of 25.3 looks good. Here it is wrapped in the specified format:
```
SELECT COUNT(couple) FROM table_20424140_3 WHERE average = "25.3";
``` | 34,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_20424140_3 (couple VARCHAR, average VARCHAR)\n\n Question: How many couples have an average of 25.3?\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_20424140_3 (number_of_dances VARCHAR, place VARCHAR)
Question: How many different numbers of total dances are there for the couple ranked at number 6?
Here is the ... | Your SQLite query needs a slight adjustment. It should focus on counting the distinct values of `number_of_dances` for the couple ranked as place 6. Here’s the corrected query:
```
SELECT COUNT(DISTINCT number_of_dances) FROM table_20424140_3 WHERE place = '6';
``` | 34,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_20424140_3 (number_of_dances VARCHAR, place VARCHAR)\n\n Question: How many different numbers of total dances are there for ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR)
Question: What couple has an average of 17.2?
Here is the SQLite query to answer to the question: What couple has an a... | Here is the SQLite query to answer the question about which couple has an average of 17.2:
```sql
SELECT couple FROM table_20424140_3 WHERE average = "17.2"
``` | 34,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_20424140_3 (couple VARCHAR, average VARCHAR)\n\n Question: What couple has an average of 17.2?\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_20424140_3 (number_of_dances INTEGER)
Question: What's the minimal number of dances a couple has danced?
Here is the SQLite query to answer to the question: What's... | Here is the SQLite query to answer the question regarding the minimal number of dances a couple has danced:
```
SELECT MIN(number_of_dances) FROM table_20424140_3;
``` | 34,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_20424140_3 (number_of_dances INTEGER)\n\n Question: What's the minimal number of dances a couple has danced?\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_20424140_3 (place INTEGER)
Question: What's the highest number a couple has ranked at?
Here is the SQLite query to answer to the question: What's the highest numbe... | Your query is indeed correct for retrieving the highest number ranked from the table `table_20424140_3`. Here's the query formatted as you requested:
```
SELECT MAX(place) FROM table_20424140_3;
``` | 34,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_20424140_3 (place INTEGER)\n\n Question: What's the highest number a couple has ranked at?\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_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR)
Question: How many crops were damaged when the public property dama... | Your SQLite query is correctly structured to find the number of crops damaged when the public property damage was a specific amount. However, to ensure that you count the number of crops damaged instead of just retrieving their values, you should use the `COUNT` function in your query. Here's the revised query that cou... | 34,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_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR)\n\n Question: How many crop... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20403667_2 (panchayat INTEGER, public_property_damaged__in_lakh_inr__ VARCHAR)
Question: What is the panchayat when the public property damage was 1,03,049.60
Here... | The SQLite query you provided appears to be searching for the maximum `panchayat` associated with a specific value for `public_property_damaged__in_lakh_inr__`. However, if you are simply looking for the panchayat where the public property damage equals "1,03,049.60", you may just want to select that directly, without ... | 34,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_20403667_2 (panchayat INTEGER, public_property_damaged__in_lakh_inr__ VARCHAR)\n\n Question: What is the panchayat when the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20403667_2 (village INTEGER, house_affected VARCHAR)
Question: What is the largest village that had 103279 houses affected?
Here is the SQLite query to answer to ... | Your query is almost correct, but since the `house_affected` column is defined as a `VARCHAR`, we need to ensure we're comparing with the correct type. We should enclose the number in quotes to treat it as a string. Here's the corrected version of the query:
```
SELECT MAX(village) FROM table_20403667_2 WHERE house_af... | 34,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_20403667_2 (village INTEGER, house_affected VARCHAR)\n\n Question: What is the largest village that had 103279 houses affect... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20403667_2 (district INTEGER, animal__in_lakh__ VARCHAR)
Question: What is the smallest district that had 33.25 in animals
Here is the SQLite query to answer to th... | Here is the SQLite query to answer your question:
```
SELECT MIN(district) FROM table_20403667_2 WHERE animal__in_lakh__ = "33.25"
``` | 34,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_20403667_2 (district INTEGER, animal__in_lakh__ VARCHAR)\n\n Question: What is the smallest district that had 33.25 in anima... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20403667_2 (district VARCHAR, crop_damaged__in_lakh_inr__ VARCHAR)
Question: How many districts had crib damage of 1,164.50?
Here is the SQLite query to answer to ... | The provided query is almost correct, but the value for `crop_damaged__in_lakh_inr__` should be formatted without commas for accurate string matching in SQLite. Here’s the modified query:
```sql
SELECT COUNT(district) FROM table_20403667_2 WHERE crop_damaged__in_lakh_inr__ = "1164.50"
```
This query counts the numbe... | 34,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_20403667_2 (district VARCHAR, crop_damaged__in_lakh_inr__ VARCHAR)\n\n Question: How many districts had crib damage of 1,164... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20453681_1 (county VARCHAR, obama_percentage VARCHAR)
Question: Where did Obama get 37.1%?
Here is the SQLite query to answer to the question: Where did Obama get ... | Here is the SQLite query to answer the question "Where did Obama get 37.1%?":
```
SELECT county FROM table_20453681_1 WHERE obama_percentage = "37.1%";
``` | 34,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_20453681_1 (county VARCHAR, obama_percentage VARCHAR)\n\n Question: Where did Obama get 37.1%?\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_20453681_1 (county VARCHAR, mccain_percentage VARCHAR, obama_percentage VARCHAR)
Question: What's the county where McCain got 60.6% and Obama got 37.3%?
Here is th... | Here's the SQLite query wrapped in code formatting:
```
SELECT county FROM table_20453681_1 WHERE mccain_percentage = "60.6%" AND obama_percentage = "37.3%"
``` | 34,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_20453681_1 (county VARCHAR, mccain_percentage VARCHAR, obama_percentage VARCHAR)\n\n Question: What's the county where McCai... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20453681_1 (mccain_number INTEGER, obama_percentage VARCHAR, others_percentage VARCHAR)
Question: What's the number of McCain votes in the county where Obama got 35... | Your SQLite query looks good except for one important aspect: you should use `SUM` instead of `MIN` to get the total number of McCain votes in the specified county. Here is the corrected query:
```sql
SELECT SUM(mccain_number) FROM table_20453681_1 WHERE obama_percentage = "35.7%" AND others_percentage = "1.9%"
```
... | 34,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_20453681_1 (mccain_number INTEGER, obama_percentage VARCHAR, others_percentage VARCHAR)\n\n Question: What's the number of M... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20453681_1 (obama_number VARCHAR, county VARCHAR)
Question: How many votes did Obama get in Geauga?
Here is the SQLite query to answer to the question: How many vo... | To count the number of votes Obama received in Geauga, you should use the `COUNT` function in your SQL query. Here’s the corrected query wrapped in the appropriate code format:
```
SELECT COUNT(obama_number) AS total_votes FROM table_20453681_1 WHERE county = 'Geauga';
``` | 34,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_20453681_1 (obama_number VARCHAR, county VARCHAR)\n\n Question: How many votes did Obama get in Geauga?\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_20453681_1 (others VARCHAR, mccain_percentage VARCHAR)
Question: How many people voted for others in the county where McCain got 65.5% of the votes?
Here is the SQ... | The provided SQL query needs some adjustments to correctly count the number of people who voted for "others" in the specified condition. Instead of selecting the `others` field, you should be using the `COUNT()` function to count the number of votes for "others". Here is the corrected query:
```
SELECT COUNT(others) A... | 34,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_20453681_1 (others VARCHAR, mccain_percentage VARCHAR)\n\n Question: How many people voted for others in the county where Mc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20463779_22 (player VARCHAR)
Question: What is Phil Taylor's 3-dart average?
Here is the SQLite query to answer to the question: What is Phil Taylor's 3-dart avera... | The provided SQLite query does not actually calculate Phil Taylor's 3-dart average; it merely returns the constant value 3 whenever a row with the player "Phil Taylor" exists. If you want to calculate Phil Taylor's 3-dart average, you would typically need additional information, such as scores or performance statistics... | 34,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_20463779_22 (player VARCHAR)\n\n Question: What is Phil Taylor's 3-dart average?\n\nHere is the SQLite query to answer to th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20466963_4 (guest_3 VARCHAR, guest_4 VARCHAR)
Question: Who is the guest 3 in the show where guest 4 is Jill Douglas?
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question about who is the guest 3 in the show where guest 4 is Jill Douglas:
```
SELECT guest_3 FROM table_20466963_4 WHERE guest_4 = "Jill Douglas";
``` | 34,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_20466963_4 (guest_3 VARCHAR, guest_4 VARCHAR)\n\n Question: Who is the guest 3 in the show where guest 4 is Jill Douglas?\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20466963_4 (guest_2 VARCHAR, guest_4 VARCHAR, guest_3 VARCHAR)
Question: Who is the guest 2 in the episode where guest 4 is Iyare Igiehon and guest 3 is John Oliver... | ```sql
SELECT guest_2 FROM table_20466963_4 WHERE guest_4 = "Iyare Igiehon" AND guest_3 = "John Oliver"
``` | 34,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_20466963_4 (guest_2 VARCHAR, guest_4 VARCHAR, guest_3 VARCHAR)\n\n Question: Who is the guest 2 in the episode where guest 4... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20466963_4 (guest_1 VARCHAR, guest_4 VARCHAR)
Question: Who is the guest 1 in the episode where guest 4 is Jill Douglas?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question regarding who is the guest 1 in the episode where guest 4 is Jill Douglas:
```
SELECT guest_1 FROM table_20466963_4 WHERE guest_4 = "Jill Douglas"
``` | 34,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_20466963_4 (guest_1 VARCHAR, guest_4 VARCHAR)\n\n Question: Who is the guest 1 in the episode where guest 4 is Jill Douglas?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20466963_4 (date VARCHAR, guest_4 VARCHAR)
Question: How many dates are associated with a guest 4 being Jim Jeffries (debut)?
Here is the SQLite query to answer to... | The SQLite query you provided is correct for counting the number of dates associated with the guest "Jim Jeffries (debut)". Here it is formatted as requested:
```
SELECT COUNT(date) FROM table_20466963_4 WHERE guest_4 = "Jim Jeffries (debut)"
``` | 34,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_20466963_4 (date VARCHAR, guest_4 VARCHAR)\n\n Question: How many dates are associated with a guest 4 being Jim Jeffries (de... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20466963_4 (date VARCHAR, presenter VARCHAR)
Question: What is the date of the episode in which the presenter is Johnny Vaughan?
Here is the SQLite query to answer... | Here is the SQLite query to answer the question about the date of the episode in which the presenter is Johnny Vaughan:
```
SELECT date FROM table_20466963_4 WHERE presenter = "Johnny Vaughan"
``` | 34,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_20466963_4 (date VARCHAR, presenter VARCHAR)\n\n Question: What is the date of the episode in which the presenter is Johnny ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20466963_13 (guest_4 VARCHAR, date VARCHAR)
Question: Name the guest 4 for 8 december
Here is the SQLite query to answer to the question: Name the guest 4 for 8 de... | Here is the SQLite query to answer the question: Name the guest 4 for 8 December:
```
SELECT guest_4 FROM table_20466963_13 WHERE date = "8 December";
``` | 34,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_20466963_13 (guest_4 VARCHAR, date VARCHAR)\n\n Question: Name the guest 4 for 8 december\n\nHere is the SQLite query to ans... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20466963_13 (guest_4 VARCHAR, guest_2 VARCHAR)
Question: Name the guest 4 for steve lamacq
Here is the SQLite query to answer to the question: Name the guest 4 for... | Here is the SQLite query to answer the question: Name the guest 4 for steve lamacq:
```
SELECT guest_4 FROM table_20466963_13 WHERE guest_2 = "Steve Lamacq"
``` | 34,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_20466963_13 (guest_4 VARCHAR, guest_2 VARCHAR)\n\n Question: Name the guest 4 for steve lamacq\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_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR)
Question: Name the guest 2 for colin murray 6 april
Here is the SQLite query to answer to the questi... | It seems you want to retrieve the name of `guest_2` associated with the `presenter` "Colin Murray" on the date "6 April". The SQL query should select the `guest_2` field rather than counting it. Here’s the correct query:
```
SELECT guest_2 FROM table_20466963_13 WHERE presenter = "Colin Murray" AND date = "6 April"
``... | 34,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_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR)\n\n Question: Name the guest 2 for colin murray 6 april\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20466963_13 (presenter VARCHAR, date VARCHAR)
Question: Name the presenter 11 may
Here is the SQLite query to answer to the question: Name the presenter 11 may:
``... | Here is the SQLite query to answer the question "Name the presenter 11 May":
```
SELECT presenter FROM table_20466963_13 WHERE date = "11 May";
``` | 34,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_20466963_13 (presenter VARCHAR, date VARCHAR)\n\n Question: Name the presenter 11 may\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_20466963_13 (guest_3 VARCHAR, guest_2 VARCHAR)
Question: Name the guest 3 for iyare igiehon
Here is the SQLite query to answer to the question: Name the guest 3 fo... | Here is the SQLite query to answer the question about naming the guest 3 for iyare igiehon:
```sql
SELECT guest_3 FROM table_20466963_13 WHERE guest_2 = "Iyare Igiehon";
``` | 34,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_20466963_13 (guest_3 VARCHAR, guest_2 VARCHAR)\n\n Question: Name the guest 3 for iyare igiehon\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_20505342_1 (penalties VARCHAR, conversions VARCHAR)
Question: How many seasons featured 29 conversions?
Here is the SQLite query to answer to the question: How man... | Here is the SQLite query to answer the question about how many seasons featured 29 conversions:
```
SELECT COUNT(*) FROM table_20505342_1 WHERE conversions = '29'
```
Please note that if "conversions" is intended to be an integer rather than a string, you might want to consider this format:
```
SELECT COUNT(*) FROM... | 34,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_20505342_1 (penalties VARCHAR, conversions VARCHAR)\n\n Question: How many seasons featured 29 conversions?\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_20505342_1 (drop_goals INTEGER)
Question: Lowest number of drop goals?
Here is the SQLite query to answer to the question: Lowest number of drop goals?:
```
SELECT... | Here is the SQLite query to find the lowest number of drop goals:
```
SELECT MIN(drop_goals) FROM table_20505342_1;
``` | 34,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_20505342_1 (drop_goals INTEGER)\n\n Question: Lowest number of drop goals?\n\nHere is the SQLite query to answer to the ques... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20505342_1 (total_points INTEGER, drop_goals VARCHAR)
Question: What is the point total for the season with 2 drop goals?
Here is the SQLite query to answer to the... | The provided SQLite query has a small mistake. The `drop_goals` column is of type `VARCHAR`, so comparisons should account for that by matching strings. Additionally, if you're looking for the point total specifically for seasons with exactly 2 drop goals, you should be checking for equality.
Here’s the corrected SQL... | 34,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_20505342_1 (total_points INTEGER, drop_goals VARCHAR)\n\n Question: What is the point total for the season with 2 drop goals... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_percentage VARCHAR)
Question: Name the most obama number for mccain being 38.86%
Here is the SQLite query to answer to the... | Here is the SQLite query to answer the question of naming the most obama number for mccain being 38.86%:
```
SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_percentage = "38.86%";
``` | 34,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_20468206_1 (obama_number INTEGER, mccain_percentage VARCHAR)\n\n Question: Name the most obama number for mccain being 38.86... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_number VARCHAR)
Question: Name the most abama number for mccain being 29266
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question regarding the most 'obama_number' for 'mccain_number' being 29266:
```sql
SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_number = '29266';
``` | 34,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_20468206_1 (obama_number INTEGER, mccain_number VARCHAR)\n\n Question: Name the most abama number for mccain being 29266\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20468206_1 (county VARCHAR, mccain_percentage VARCHAR)
Question: Name the county for mccain being 38.78%
Here is the SQLite query to answer to the question: Name t... | Your SQLite query is correctly formulated to retrieve the county where McCain's percentage is 38.78%. Here it is wrapped in the required code block:
```
SELECT county FROM table_20468206_1 WHERE mccain_percentage = "38.78%"
``` | 34,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_20468206_1 (county VARCHAR, mccain_percentage VARCHAR)\n\n Question: Name the county for mccain being 38.78%\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_20524090_1 (county VARCHAR, mccain_percentage VARCHAR)
Question: In how many counties di McCain win 41.62% of the vote?
Here is the SQLite query to answer to the q... | Your SQL query is almost correct, but it should not include the percentage sign ("%") when comparing values in the `mccain_percentage` column if the column type is VARCHAR. Instead, you should compare it directly as a string. Here’s the corrected SQL query:
```
SELECT COUNT(county) FROM table_20524090_1 WHERE mccain_p... | 34,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_20524090_1 (county VARCHAR, mccain_percentage VARCHAR)\n\n Question: In how many counties di McCain win 41.62% of the vote?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20524090_1 (mccain_percentage VARCHAR, county VARCHAR)
Question: What percentage of the vote did McCain win in Waynesboro (city)?
Here is the SQLite query to answe... | Here's the SQLite query to find out what percentage of the vote McCain won in Waynesboro (city):
```
SELECT mccain_percentage FROM table_20524090_1 WHERE county = "Waynesboro (city)";
``` | 34,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_20524090_1 (mccain_percentage VARCHAR, county VARCHAR)\n\n Question: What percentage of the vote did McCain win in Waynesbor... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR)
Question: What was Obama's percentage in those places where McCain's percentage was 55.46%?
Here i... | Your SQLite query is correct for the question stated. Here it is wrapped as you requested:
```
SELECT obama_percentage FROM table_20524090_1 WHERE mccain_percentage = "55.46%"
``` | 34,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_20524090_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR)\n\n Question: What was Obama's percentage in those places w... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, county VARCHAR)
Question: What was Obama's percentage in the county of Alleghany?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about Obama's percentage in the county of Alleghany:
```
SELECT obama_percentage FROM table_20524090_1 WHERE county = "Alleghany";
``` | 34,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_20524090_1 (obama_percentage VARCHAR, county VARCHAR)\n\n Question: What was Obama's percentage in the county of Alleghany?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, county VARCHAR)
Question: What was Obama's percentage in the county of Surry?
Here is the SQLite query to answer to the quest... | Here is the SQLite query to answer the question about Obama's percentage in the county of Surry:
```
SELECT obama_percentage FROM table_20524090_1 WHERE county = "Surry"
``` | 34,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_20524090_1 (obama_percentage VARCHAR, county VARCHAR)\n\n Question: What was Obama's percentage in the county of Surry?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20539826_1 (mccain_percentage VARCHAR, county VARCHAR)
Question: How many percent of the votes in Debaca did McCain get?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about how many percent of the votes McCain got in DeBaca:
```
SELECT mccain_percentage FROM table_20539826_1 WHERE county = "DeBaca"
``` | 34,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_20539826_1 (mccain_percentage VARCHAR, county VARCHAR)\n\n Question: How many percent of the votes in Debaca did McCain get?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, total VARCHAR)
Question: What percentage of the votes did Obama get in the county where 3909 people voted in total?
Here is t... | Here is the SQLite query you requested, wrapped in code formatting:
```
SELECT obama_percentage FROM table_20539826_1 WHERE total = '3909'
```
Note: It's important to ensure that the total value is correctly formatted as a string ('3909') since the `total` column is defined as `VARCHAR`. | 34,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_20539826_1 (obama_percentage VARCHAR, total VARCHAR)\n\n Question: What percentage of the votes did Obama get in the county ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, mccain_number VARCHAR)
Question: What percentage of the votes did Obama get in the county where McCain got 3648 votes?
Here i... | Here is the SQLite query to answer the question about the percentage of votes Obama received in the county where McCain received 3648 votes:
```
SELECT obama_percentage FROM table_20539826_1 WHERE mccain_number = '3648'
``` | 34,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_20539826_1 (obama_percentage VARCHAR, mccain_number VARCHAR)\n\n Question: What percentage of the votes did Obama get in the... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20540006_6 (winner VARCHAR, sec_team VARCHAR)
Question: Who was the winner when the SEC team LSU played?
Here is the SQLite query to answer to the question: Who wa... | Here is the SQLite query to answer the question: Who was the winner when the SEC team LSU played?:
```
SELECT winner FROM table_20540006_6 WHERE sec_team = "LSU"
``` | 34,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_20540006_6 (winner VARCHAR, sec_team VARCHAR)\n\n Question: Who was the winner when the SEC team LSU played?\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_20540006_6 (attendance INTEGER, challenge_leader VARCHAR)
Question: What was the attendance for the game when the challenge leader was at Big East (4-2)?
Here is t... | Here is the SQLite query to answer the question about the attendance for the game when the challenge leader was at "Big East (4-2)":
```
SELECT attendance FROM table_20540006_6 WHERE challenge_leader = "Big East (4-2)";
```
This query will return the attendance for the specific game associated with that challenge le... | 34,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_20540006_6 (attendance INTEGER, challenge_leader VARCHAR)\n\n Question: What was the attendance for the game when the challe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20589703_2 (summer_team VARCHAR, college VARCHAR, player VARCHAR)
Question: What suumer team was James Lomangino from St. John's on?
Here is the SQLite query to an... | Here is the SQLite query to answer the question about which summer team James Lomangino from St. John's was on:
```
SELECT summer_team FROM table_20589703_2 WHERE college = "St. John's" AND player = "James Lomangino"
``` | 34,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_20589703_2 (summer_team VARCHAR, college VARCHAR, player VARCHAR)\n\n Question: What suumer team was James Lomangino from St... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20589703_2 (draft_round VARCHAR, college VARCHAR, draft_year VARCHAR)
Question: In what draft round in 2012 did a player from Rio Hondo get drafted?
Here is the SQ... | Here is the SQLite query to answer the question about the draft round in 2012 for a player from Rio Hondo:
```
SELECT draft_round FROM table_20589703_2 WHERE college = "Rio Hondo" AND draft_year = "2012"
``` | 34,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_20589703_2 (draft_round VARCHAR, college VARCHAR, draft_year VARCHAR)\n\n Question: In what draft round in 2012 did a player... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20589703_2 (college VARCHAR, player VARCHAR)
Question: What college did Aaron Slegers attend?
Here is the SQLite query to answer to the question: What college did ... | Here is the SQLite query to answer the question: What college did Aaron Slegers attend?:
```
SELECT college FROM table_20589703_2 WHERE player = "Aaron Slegers";
``` | 34,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_20589703_2 (college VARCHAR, player VARCHAR)\n\n Question: What college did Aaron Slegers attend?\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_20592988_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR)
Question: What are the statuses of the platelet counts for the co... | Here is the SQLite query to answer the question regarding the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboplastin time are unaffected:
```
SELECT platelet_count FROM table_20592988_1 WHERE prothrombin_time = 'Unaffected' AND partial_thromboplastin_time = 'Unaffected... | 34,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_20592988_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR)\n\n Question: What are th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20592988_1 (partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)
Question: What is the status of partial thromboplastin times for conditions where the plate... | Here is the SQLite query to answer the question about the status of partial thromboplastin times for conditions where the platelet count is decreased:
```sql
SELECT partial_thromboplastin_time
FROM table_20592988_1
WHERE platelet_count = "Decreased";
``` | 34,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_20592988_1 (partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)\n\n Question: What is the status of partial thrombo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20592988_1 (condition VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)
Question: In what conditions are both the platelet count and prothrombin time unaff... | Here is the SQLite query to answer the question about the conditions where both the platelet count and prothrombin time are unaffected:
```
SELECT condition FROM table_20592988_1 WHERE platelet_count = "Unaffected" AND prothrombin_time = "Unaffected";
``` | 34,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_20592988_1 (condition VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)\n\n Question: In what conditions are both t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20592988_1 (bleeding_time VARCHAR, condition VARCHAR)
Question: What is the status of bleeding time for thrombocytopenia?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question regarding the status of bleeding time for thrombocytopenia:
```
SELECT bleeding_time FROM table_20592988_1 WHERE condition = 'Thrombocytopenia';
``` | 34,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_20592988_1 (bleeding_time VARCHAR, condition VARCHAR)\n\n Question: What is the status of bleeding time for thrombocytopenia... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20592988_1 (platelet_count VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR)
Question: What is the status of platelet counts for conditions where... | Here is the SQLite query to answer the question regarding the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected:
```
SELECT platelet_count
FROM table_20592988_1
WHERE bleeding_time = "Prolonged"
AND partial_thromboplastin_time = "Unaffected";
``` | 34,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_20592988_1 (platelet_count VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR)\n\n Question: What is the st... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20590020_2 (player VARCHAR, cuts_made VARCHAR)
Question: Which players made exactly 8 cuts?
Here is the SQLite query to answer to the question: Which players made ... | It appears that the `cuts_made` column is of type `VARCHAR`, which means that numeric comparisons may not work as intended if the values are stored as strings. Therefore, you should convert the `cuts_made` value to an integer for comparison. Here is the corrected query:
```
SELECT player FROM table_20590020_2 WHERE CA... | 34,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_20590020_2 (player VARCHAR, cuts_made VARCHAR)\n\n Question: Which players made exactly 8 cuts?\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_20590020_2 (starts VARCHAR, player VARCHAR)
Question: What is the total number of entries for Leif Olson?
Here is the SQLite query to answer to the question: What ... | Here is the SQLite query to answer the question regarding the total number of entries for Leif Olson:
```
SELECT COUNT(starts) FROM table_20590020_2 WHERE player = "Leif Olson";
``` | 34,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_20590020_2 (starts VARCHAR, player VARCHAR)\n\n Question: What is the total number of entries for Leif Olson?\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_20590020_2 (best_finish VARCHAR, money_list_rank VARCHAR)
Question: What is the total number of players who had a money list rank of 96?
Here is the SQLite query t... | Here is the correct SQLite query to find the total number of players who had a money list rank of 96:
```
SELECT COUNT(*) FROM table_20590020_2 WHERE money_list_rank = '96'
```
Note: In this query, `money_list_rank` is treated as a VARCHAR, so the value '96' is wrapped in quotes. | 34,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_20590020_2 (best_finish VARCHAR, money_list_rank VARCHAR)\n\n Question: What is the total number of players who had a money ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20595642_2 (name VARCHAR, br_no VARCHAR)
Question: what is the name for br no. 60501
Here is the SQLite query to answer to the question: what is the name for br no... | Here is the SQLite query to answer the question about the name for br no. 60501:
```sql
SELECT name FROM table_20595642_2 WHERE br_no = '60501';
``` | 34,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_20595642_2 (name VARCHAR, br_no VARCHAR)\n\n Question: what is the name for br no. 60501\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_20597634_3 (dates_administered VARCHAR, scott_mcadams__d_ VARCHAR)
Question: When 23% scott mcadams (d) what are the dates administered?
Here is the SQLite query t... | It looks like there is a small error in the SQLite query you provided. In SQLite, to filter for a value that starts with "23%" (or contains "23%"), you should use the `LIKE` operator instead of the equality operator `=`. Here's the corrected query:
```sql
SELECT dates_administered FROM table_20597634_3 WHERE scott_mca... | 34,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_20597634_3 (dates_administered VARCHAR, scott_mcadams__d_ VARCHAR)\n\n Question: When 23% scott mcadams (d) what are the dat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20597634_3 (poll_source VARCHAR, scott_mcadams__d_ VARCHAR)
Question: When 30% is scott mcadams (d) percentage how many poll sources are there?
Here is the SQLite ... | Your query is almost correct, but you need to ensure that you are correctly comparing the percentage value as a numeric equivalent or find those rows that fit the criteria. Assuming you're looking for rows where the percentage is equal to 30%, here’s the corrected version:
```sql
SELECT COUNT(poll_source)
FROM table_... | 34,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_20597634_3 (poll_source VARCHAR, scott_mcadams__d_ VARCHAR)\n\n Question: When 30% is scott mcadams (d) percentage how many ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20614109_1 (revenue__ INTEGER, earnings_per_share__€_ VARCHAR)
Question: Name the revenue for eps being 1.19
Here is the SQLite query to answer to the question: Na... | Here is the SQLite query to answer the question regarding revenue for EPS being 1.19:
```sql
SELECT revenue__ AS €million_
FROM table_20614109_1
WHERE earnings_per_share__€_ = "1.19";
``` | 34,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_20614109_1 (revenue__ INTEGER, earnings_per_share__€_ VARCHAR)\n\n Question: Name the revenue for eps being 1.19\n\nHere is ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20614109_1 (net_profit__€m_ VARCHAR, earnings_per_share__€_ VARCHAR)
Question: Name the net profit for eps beign 1.19
Here is the SQLite query to answer to the que... | Here is the SQLite query to answer the question:
```
SELECT net_profit__€m_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.19"
``` | 34,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_20614109_1 (net_profit__€m_ VARCHAR, earnings_per_share__€_ VARCHAR)\n\n Question: Name the net profit for eps beign 1.19\n\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20614109_1 (earnings_before_interest_and_taxes__€m_ VARCHAR, earnings_per_share__€_ VARCHAR)
Question: Name the ebit for eps being 1.78
Here is the SQLite query to... | Here is the SQLite query to answer the question about the EBIT for EPS being 1.78:
```
SELECT earnings_before_interest_and_taxes__€m_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.78"
``` | 34,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_20614109_1 (earnings_before_interest_and_taxes__€m_ VARCHAR, earnings_per_share__€_ VARCHAR)\n\n Question: Name the ebit for... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20613292_1 (production_code VARCHAR, directed_by VARCHAR)
Question: How many different production codes does the episode directed by Dominic Polcino have?
Here is ... | To answer the question about how many different production codes the episode directed by Dominic Polcino has, you should use the `COUNT(DISTINCT production_code)` function. Here's the correct SQLite query:
```
SELECT COUNT(DISTINCT production_code) FROM table_20613292_1 WHERE directed_by = "Dominic Polcino";
``` | 34,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_20613292_1 (production_code VARCHAR, directed_by VARCHAR)\n\n Question: How many different production codes does the episode... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20613292_1 (production_code VARCHAR, written_by VARCHAR, directed_by VARCHAR)
Question: What's the production code of the episode written by Kirker Butler and direc... | Here is the SQLite query to answer the question regarding the production code of the episode written by Kirker Butler and directed by Dan Povenmire:
```
SELECT production_code FROM table_20613292_1 WHERE written_by = "Kirker Butler" AND directed_by = "Dan Povenmire"
``` | 34,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_20613292_1 (production_code VARCHAR, written_by VARCHAR, directed_by VARCHAR)\n\n Question: What's the production code of th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2062148_2 (weight__kg_ VARCHAR, jockey VARCHAR)
Question: What was the weight in kg when the jockey was B. York?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question regarding the weight in kg for the jockey B. York:
```
SELECT weight__kg_ FROM table_2062148_2 WHERE jockey = "B. York";
``` | 34,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_2062148_2 (weight__kg_ VARCHAR, jockey VARCHAR)\n\n Question: What was the weight in kg when the jockey was B. York? \n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2062148_2 (result VARCHAR, jockey VARCHAR)
Question: What was the result of the race where the jockey was J. Marshall?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about the result of the race where the jockey was J. Marshall:
```
SELECT result FROM table_2062148_2 WHERE jockey = "J. Marshall";
``` | 34,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_2062148_2 (result VARCHAR, jockey VARCHAR)\n\n Question: What was the result of the race where the jockey was J. Marshall? \... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2062148_4 (weight__kg_ INTEGER)
Question: Name the most weight
Here is the SQLite query to answer to the question: Name the most weight:
```
SELECT MAX(weight__kg_... | Here is the SQLite query to answer the question "Name the most weight":
```sql
SELECT MAX(weight__kg_) AS most_weight FROM table_2062148_4;
``` | 34,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_2062148_4 (weight__kg_ INTEGER)\n\n Question: Name the most weight\n\nHere is the SQLite query to answer to the question: Na... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_2062148_4 (date VARCHAR, venue VARCHAR)
Question: Name the date for moonee valley
Here is the SQLite query to answer to the question: Name the date for moonee vall... | Here is the SQLite query to answer the question about the date for Moonee Valley:
```
SELECT date FROM table_2062148_4 WHERE venue = "Moonee Valley";
``` | 34,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_2062148_4 (date VARCHAR, venue VARCHAR)\n\n Question: Name the date for moonee valley\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_2062148_3 (group VARCHAR, race VARCHAR)
Question: What group was the Hollindale Stakes in?
Here is the SQLite query to answer to the question: What group was the H... | Here is the SQLite query wrapped as you requested:
```
SELECT group FROM table_2062148_3 WHERE race = "Hollindale Stakes"
``` | 34,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_2062148_3 (group VARCHAR, race VARCHAR)\n\n Question: What group was the Hollindale Stakes in?\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_2062148_3 (race VARCHAR, distance VARCHAR)
Question: What race has a distance of 1200 m?
Here is the SQLite query to answer to the question: What race has a distan... | Here is the SQLite query to answer the question: What race has a distance of 1200 m?:
```
SELECT race FROM table_2062148_3 WHERE distance = '1200 m';
``` | 34,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_2062148_3 (race VARCHAR, distance VARCHAR)\n\n Question: What race has a distance of 1200 m?\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_20626467_1 (result VARCHAR, time VARCHAR)
Question: What was the result for the time of 1-26.21?
Here is the SQLite query to answer to the question: What was the r... | Here is the SQLite query to answer the question about the result for the time of 1-26.21:
```
SELECT result FROM table_20626467_1 WHERE time = '1-26.21';
``` | 34,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_20626467_1 (result VARCHAR, time VARCHAR)\n\n Question: What was the result for the time of 1-26.21?\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_20626467_1 (jockey VARCHAR, distance VARCHAR, class VARCHAR, venue VARCHAR)
Question: Who was the jockey in group 1 at the 1400m distance at randwick?
Here is the ... | Here is the SQLite query to answer the question about the jockey in group 1 at the 1400m distance at Randwick:
```
SELECT jockey FROM table_20626467_1 WHERE class = "Group 1" AND venue = "Randwick" AND distance = "1400m";
``` | 34,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_20626467_1 (jockey VARCHAR, distance VARCHAR, class VARCHAR, venue VARCHAR)\n\n Question: Who was the jockey in group 1 at t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20626467_1 (class VARCHAR, winner_2nd VARCHAR)
Question: What class was the 2nd - portillo?
Here is the SQLite query to answer to the question: What class was the ... | Here is the SQLite query to answer the question about what class was the 2nd - Portillo:
```
SELECT class FROM table_20626467_1 WHERE winner_2nd = "2nd - Portillo"
``` | 34,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_20626467_1 (class VARCHAR, winner_2nd VARCHAR)\n\n Question: What class was the 2nd - portillo?\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_20626467_1 (time VARCHAR, weight__kg_ VARCHAR)
Question: What time for the entrant weighing 54.4kg?
Here is the SQLite query to answer to the question: What time f... | Your query is almost correct, but it's important to ensure that the comparison value matches the format in the database. If the weight values are stored with "kg" as a suffix, your query should exactly match that format. Here is the SQLite query wrapped in the format you requested:
```
SELECT time FROM table_20626467_... | 34,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_20626467_1 (time VARCHAR, weight__kg_ VARCHAR)\n\n Question: What time for the entrant weighing 54.4kg?\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_206217_2 (epoch__utc_ VARCHAR, periselene__km_ VARCHAR)
Question: What is every entry for epoch if periselene is 5,454.925?
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding every entry for epoch if periselene is 5,454.925:
```
SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "5,454.925"
``` | 34,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_206217_2 (epoch__utc_ VARCHAR, periselene__km_ VARCHAR)\n\n Question: What is every entry for epoch if periselene is 5,454.9... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_206217_2 (epoch__utc_ VARCHAR, periselene__km_ VARCHAR)
Question: What is every entry for epoch if periselene is 2,291.250?
Here is the SQLite query to answer to t... | Certainly! Here’s the SQLite query formatted as requested:
```
SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "2,291.250"
``` | 34,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_206217_2 (epoch__utc_ VARCHAR, periselene__km_ VARCHAR)\n\n Question: What is every entry for epoch if periselene is 2,291.2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_206217_2 (period__h_ VARCHAR, eccentricity VARCHAR)
Question: What is every value of period when eccentricity is 0.583085?
Here is the SQLite query to answer to th... | The SQLite query to answer the question is as follows:
```
SELECT period__h_ FROM table_206217_2 WHERE eccentricity = "0.583085"
``` | 34,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_206217_2 (period__h_ VARCHAR, eccentricity VARCHAR)\n\n Question: What is every value of period when eccentricity is 0.58308... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_206217_2 (epoch__utc_ VARCHAR, inclination__deg___to_moon_equator_ VARCHAR)
Question: What is every value of epoch if inclination is 90.063603?
Here is the SQLite ... | Here is the SQLite query to answer the question about every value of epoch if the inclination is 90.063603:
```
SELECT epoch__utc_ FROM table_206217_2 WHERE inclination__deg___to_moon_equator_ = "90.063603"
``` | 34,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_206217_2 (epoch__utc_ VARCHAR, inclination__deg___to_moon_equator_ VARCHAR)\n\n Question: What is every value of epoch if in... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_206217_2 (periselene__km_ VARCHAR, period__h_ VARCHAR)
Question: What is every value for periselene if period is 4.947432?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about every value for `periselene` if the `period` is `4.947432`:
```
SELECT periselene__km_ FROM table_206217_2 WHERE period__h_ = '4.947432';
``` | 34,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_206217_2 (periselene__km_ VARCHAR, period__h_ VARCHAR)\n\n Question: What is every value for periselene if period is 4.94743... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_206217_2 (periselene__km_ VARCHAR, epoch__utc_ VARCHAR)
Question: How many values of periselene when epoch is November 15, 2004, 17:47:12.1?
Here is the SQLite que... | The SQLite query to count the values of `periselene__km_` for the specified epoch date and time is as follows:
```
SELECT COUNT(periselene__km_) FROM table_206217_2 WHERE epoch__utc_ = "November 15, 2004, 17:47:12.1";
``` | 34,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_206217_2 (periselene__km_ VARCHAR, epoch__utc_ VARCHAR)\n\n Question: How many values of periselene when epoch is November 1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20630665_1 (result VARCHAR, opponent VARCHAR)
Question: How many times did the Bruins play Tennessee?
Here is the SQLite query to answer to the question: How many ... | Here is the SQLite query to answer the question "How many times did the Bruins play Tennessee?":
```
SELECT COUNT(result) FROM table_20630665_1 WHERE opponent = "Tennessee" AND result LIKE "%Bruins%"
```
This query counts the number of times the Bruins played against Tennessee by checking for rows where the opponent... | 34,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_20630665_1 (result VARCHAR, opponent VARCHAR)\n\n Question: How many times did the Bruins play Tennessee?\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_20630462_1 (also_currently_known_as VARCHAR, tournament VARCHAR)
Question: What is the current tournament name for the event in Tampa?
Here is the SQLite query to ... | Here is the SQLite query to answer the question about the current tournament name for the event in Tampa:
```sql
SELECT also_currently_known_as FROM table_20630462_1 WHERE tournament = "Tampa";
``` | 34,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_20630462_1 (also_currently_known_as VARCHAR, tournament VARCHAR)\n\n Question: What is the current tournament name for the e... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20630462_1 (tier_iv_in VARCHAR, tournament VARCHAR)
Question: What is the tier IV year for the tournament held in Tampa?
Here is the SQLite query to answer to the ... | Here is the SQLite query to answer the question about the tier IV year for the tournament held in Tampa:
```sql
SELECT tier_iv_in FROM table_20630462_1 WHERE tournament = "Tampa";
``` | 34,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_20630462_1 (tier_iv_in VARCHAR, tournament VARCHAR)\n\n Question: What is the tier IV year for the tournament held in Tampa?... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20630462_1 (years INTEGER, tournament VARCHAR)
Question: What is the most years that tournaments held in Rome have lasted?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the most years that tournaments held in Rome have lasted:
```
SELECT MAX(years) FROM table_20630462_1 WHERE tournament = "Rome";
``` | 34,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_20630462_1 (years INTEGER, tournament VARCHAR)\n\n Question: What is the most years that tournaments held in Rome have laste... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_20630462_1 (city_s_ VARCHAR, also_currently_known_as VARCHAR)
Question: What is the city location of the tournament currently known as the Medibank International Sy... | Here is the SQLite query to find the city location of the tournament currently known as the Medibank International Sydney:
```
SELECT city_s_ FROM table_20630462_1 WHERE also_currently_known_as = "Medibank International Sydney"
``` | 34,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_20630462_1 (city_s_ VARCHAR, also_currently_known_as VARCHAR)\n\n Question: What is the city location of the tournament curr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_206359_1 (shareholder_name VARCHAR, _percentage_of_capital VARCHAR)
Question: How many different shareholders have 2.39 % of capital?
Here is the SQLite query to a... | Your query has a small issue regarding the datatype and formatting of the percentage. Since the `_percentage_of_capital` is a `VARCHAR`, you might want to adjust the query to correctly account for the string representation of the percentage.
Here’s the corrected SQLite query that counts the distinct shareholders who ... | 34,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_206359_1 (shareholder_name VARCHAR, _percentage_of_capital VARCHAR)\n\n Question: How many different shareholders have 2.39 ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_206359_1 (shareholder_name VARCHAR, a_shares VARCHAR)
Question: What shareholders have 0 A shares?
Here is the SQLite query to answer to the question: What shareho... | Your query is almost correct, but it assumes that `a_shares` is stored as a string because of the VARCHAR type. To check for 0, you should either convert it to an integer or explicitly check for the string '0' if the values are stored as strings. Here's an updated version of your query that accounts for that:
```sql
S... | 34,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_206359_1 (shareholder_name VARCHAR, a_shares VARCHAR)\n\n Question: What shareholders have 0 A shares?\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_206359_1 (_percentage_of_votes VARCHAR, _percentage_of_capital VARCHAR)
Question: What percentage of votes does the shareholder with 78.19% of capital have?
Here i... | Here is the SQLite query to answer the question regarding the percentage of votes for the shareholder with 78.19% of capital:
```
SELECT _percentage_of_votes FROM table_206359_1 WHERE _percentage_of_capital = "78.19"
``` | 34,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_206359_1 (_percentage_of_votes VARCHAR, _percentage_of_capital VARCHAR)\n\n Question: What percentage of votes does the shar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.