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_1204998_2 (pinyin VARCHAR, english_name VARCHAR)
Question: What is the pinyin for the English name Wuping County?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question regarding the pinyin for the English name "Wuping County":
```
SELECT pinyin FROM table_1204998_2 WHERE english_name = "Wuping County"
``` | 28,300 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1204998_2 (pinyin VARCHAR, english_name VARCHAR)\n\n Question: What is the pinyin for the English name Wuping County?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1204998_2 (area VARCHAR, english_name VARCHAR)
Question: What is the area of the English name Shanghang County?
Here is the SQLite query to answer to the question:... | Here is the SQLite query to answer the question regarding the area of the English name "Shanghang County":
```
SELECT area FROM table_1204998_2 WHERE english_name = "Shanghang County"
``` | 28,301 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1204998_2 (area VARCHAR, english_name VARCHAR)\n\n Question: What is the area of the English name Shanghang County?\n\nHere ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1204998_2 (pinyin VARCHAR, population VARCHAR)
Question: Which pinyin have a population of 374047?
Here is the SQLite query to answer to the question: Which pinyin... | Here is the corrected SQLite query to answer the question about which pinyin have a population of 374047:
```
SELECT pinyin FROM table_1204998_2 WHERE population = '374047'
```
Note that the population is stored as a VARCHAR, so the value should be enclosed in quotes. | 28,302 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1204998_2 (pinyin VARCHAR, population VARCHAR)\n\n Question: Which pinyin have a population of 374047?\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_1205598_1 (nhl_team_s_ VARCHAR, metropolitan_area VARCHAR)
Question: How many NHL teams are there in the Phoenix, Arizona area?
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about how many NHL teams are there in the Phoenix, Arizona area:
```
SELECT COUNT(nhl_team_s_) FROM table_1205598_1 WHERE metropolitan_area = "Phoenix, Arizona";
``` | 28,303 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, metropolitan_area VARCHAR)\n\n Question: How many NHL teams are there in the Phoenix, Arizon... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1205598_1 (media_market_ranking VARCHAR, nhl_team_s_ VARCHAR)
Question: What is the media market ranking for the Blackhawks?
Here is the SQLite query to answer to ... | To correctly retrieve the media market ranking for the Blackhawks from the given schema, you should select the `media_market_ranking` directly rather than using `COUNT()`. The query should look like this:
```
SELECT media_market_ranking FROM table_1205598_1 WHERE nhl_team_s_ = "Blackhawks"
``` | 28,304 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1205598_1 (media_market_ranking VARCHAR, nhl_team_s_ VARCHAR)\n\n Question: What is the media market ranking for the Blackha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, nba_team_s_ VARCHAR)
Question: What is the the name of the NHL team that is in the same market as the NBA team, Nuggets?
Here is th... | Here is the SQLite query you can use to find the name of the NHL team that is in the same market as the NBA team, Nuggets:
```
SELECT nhl_team_s_ FROM table_1205598_1 WHERE nba_team_s_ = "Nuggets"
``` | 28,305 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, nba_team_s_ VARCHAR)\n\n Question: What is the the name of the NHL team that is in the same ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, media_market_ranking VARCHAR)
Question: What is the NHL team in the media market ranking number 7?
Here is the SQLite query to answ... | Here is the SQLite query to find the NHL team in the media market ranking number 7, formatted as requested:
```
SELECT nhl_team_s_ FROM table_1205598_1 WHERE media_market_ranking = '7'
``` | 28,306 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, media_market_ranking VARCHAR)\n\n Question: What is the NHL team in the media market ranking... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1206114_2 (netflow_version VARCHAR, vendor_and_type VARCHAR)
Question: How many netflow version are there when the vendor and type is enterasys switches?
Here is t... | Here is the SQLite query to answer the question of how many netflow versions there are when the vendor and type is "Enterasys Switches":
```sql
SELECT COUNT(DISTINCT netflow_version) FROM table_1206114_2 WHERE vendor_and_type = 'Enterasys Switches';
```
This query uses `COUNT(DISTINCT netflow_version)` to ensure tha... | 28,307 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1206114_2 (netflow_version VARCHAR, vendor_and_type VARCHAR)\n\n Question: How many netflow version are there when the vendo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1206114_2 (comments VARCHAR, vendor_and_type VARCHAR)
Question: What are the comments when the vendor and type is alcatel-lucent routers?
Here is the SQLite query... | Here is the SQLite query to retrieve the comments for the vendor and type "Alcatel-Lucent routers":
```
SELECT comments FROM table_1206114_2 WHERE vendor_and_type = "Alcatel-Lucent routers";
``` | 28,308 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1206114_2 (comments VARCHAR, vendor_and_type VARCHAR)\n\n Question: What are the comments when the vendor and type is alcat... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1206114_2 (comments VARCHAR, vendor_and_type VARCHAR)
Question: What are the comments when vendor and type is enterasys switches?
Here is the SQLite query to answe... | Here is the SQLite query to answer the question regarding comments for the vendor and type "Enterasys Switches":
```
SELECT comments FROM table_1206114_2 WHERE vendor_and_type = "Enterasys Switches"
``` | 28,309 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1206114_2 (comments VARCHAR, vendor_and_type VARCHAR)\n\n Question: What are the comments when vendor and type is enterasys ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1206114_2 (netflow_version VARCHAR, vendor_and_type VARCHAR)
Question: What is the netflow version when vendor and type is pc and servers?
Here is the SQLite query... | Here is the SQLite query to find the netflow version when the vendor and type is "PC and Servers":
```sql
SELECT netflow_version FROM table_1206114_2 WHERE vendor_and_type = "PC and Servers";
``` | 28,310 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1206114_2 (netflow_version VARCHAR, vendor_and_type VARCHAR)\n\n Question: What is the netflow version when vendor and type ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1206114_2 (comments VARCHAR, implementation VARCHAR)
Question: What are the comments when the implementation is software running on central processor module?
Here ... | Here's the SQLite query to retrieve the comments for the specified implementation:
```
SELECT comments FROM table_1206114_2 WHERE implementation = "Software running on Central Processor Module";
``` | 28,311 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1206114_2 (comments VARCHAR, implementation VARCHAR)\n\n Question: What are the comments when the implementation is software... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1206114_2 (implementation VARCHAR, netflow_version VARCHAR)
Question: What is the implementation when the netflow version is v5, v8, v9, ipfix?
Here is the SQLite ... | The provided SQLite query is incorrect because it attempts to check for a single string that concatenates all the netflow versions, rather than checking for any of those individual values. You should use the `IN` clause to check for multiple values. Here’s the corrected query:
```sql
SELECT implementation FROM table_1... | 28,312 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1206114_2 (implementation VARCHAR, netflow_version VARCHAR)\n\n Question: What is the implementation when the netflow versio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_120778_1 (for_prohibition INTEGER)
Question: Name the minimum for prohibition?
Here is the SQLite query to answer to the question: Name the minimum for prohibition... | Here is the SQLite query to answer the question "Name the minimum for prohibition?":
```
SELECT MIN(for_prohibition) FROM table_120778_1;
``` | 28,313 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_120778_1 (for_prohibition INTEGER)\n\n Question: Name the minimum for prohibition?\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_120778_1 (jurisdiction VARCHAR, percent_for VARCHAR)
Question: What is the number of jurisdiction for 57.3 percent?
Here is the SQLite query to answer to the quest... | Your provided SQLite query correctly counts the number of jurisdictions for the specified percentage. Here it is wrapped in code formatting as requested:
```
SELECT COUNT(jurisdiction) FROM table_120778_1 WHERE percent_for = "57.3";
``` | 28,314 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_120778_1 (jurisdiction VARCHAR, percent_for VARCHAR)\n\n Question: What is the number of jurisdiction for 57.3 percent?\n\nH... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_120778_1 (for_prohibition INTEGER)
Question: Name the max for prohibition.
Here is the SQLite query to answer to the question: Name the max for prohibition.:
```
S... | Here is the SQLite query to answer the question "Name the max for prohibition":
```
SELECT MAX(for_prohibition) FROM table_120778_1;
``` | 28,315 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_120778_1 (for_prohibition INTEGER)\n\n Question: Name the max for prohibition.\n\nHere is the SQLite query to answer to the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_120778_1 (percent_for VARCHAR, against_prohibition VARCHAR)
Question: What is the percent for when against prohibition is 2978?
Here is the SQLite query to answer ... | Your SQLite query is correctly formatted to retrieve the `percent_for` value for rows where `against_prohibition` is 2978. Here is the query wrapped in the specified code format:
```
SELECT percent_for FROM table_120778_1 WHERE against_prohibition = '2978';
```
Note: Since `against_prohibition` is defined as a `VARC... | 28,316 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_120778_1 (percent_for VARCHAR, against_prohibition VARCHAR)\n\n Question: What is the percent for when against prohibition i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_120778_1 (percent_for VARCHAR, jurisdiction VARCHAR)
Question: What is the percent for in manitoba?
Here is the SQLite query to answer to the question: What is the... | Here is the SQLite query to answer the question about the percent for in Manitoba:
```
SELECT percent_for FROM table_120778_1 WHERE jurisdiction = "Manitoba"
``` | 28,317 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_120778_1 (percent_for VARCHAR, jurisdiction VARCHAR)\n\n Question: What is the percent for in manitoba?\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_12095519_1 (train_name VARCHAR, origin VARCHAR)
Question: How many trains leave from puri?
Here is the SQLite query to answer to the question: How many trains leav... | Your SQL query is correct. Here it is wrapped in the requested code format:
```
SELECT COUNT(train_name) FROM table_12095519_1 WHERE origin = 'Puri';
```
Note: In SQL, it is common to use single quotes for string literals, but double quotes can also be acceptable in some SQL dialects for identifiers. Just be sure to... | 28,318 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12095519_1 (train_name VARCHAR, origin VARCHAR)\n\n Question: How many trains leave from puri?\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_12095519_1 (train_no VARCHAR, destination VARCHAR)
Question: What train number is heading to amritsar?
Here is the SQLite query to answer to the question: What tra... | Here is the SQLite query to answer the question about the train number heading to Amritsar:
```
SELECT train_no FROM table_12095519_1 WHERE destination = "Amritsar"
``` | 28,319 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12095519_1 (train_no VARCHAR, destination VARCHAR)\n\n Question: What train number is heading to amritsar?\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_12095519_1 (frequency VARCHAR, origin VARCHAR)
Question: How often does a train leave sealdah?
Here is the SQLite query to answer to the question: How often does a... | Here is the SQLite query to answer the question regarding how often a train leaves Sealdah:
```
SELECT frequency FROM table_12095519_1 WHERE origin = "Sealdah";
``` | 28,320 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12095519_1 (frequency VARCHAR, origin VARCHAR)\n\n Question: How often does a train leave sealdah?\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_12095519_1 (destination VARCHAR, train_name VARCHAR)
Question: Where does the bg express train end?
Here is the SQLite query to answer to the question: Where does ... | Here is the SQLite query to answer the question "Where does the bg express train end?":
```
SELECT destination FROM table_12095519_1 WHERE train_name = "BG Express";
``` | 28,321 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12095519_1 (destination VARCHAR, train_name VARCHAR)\n\n Question: Where does the bg express train end?\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_12095519_1 (train_name VARCHAR, train_no VARCHAR)
Question: What's the name of train number 15647/48?
Here is the SQLite query to answer to the question: What's th... | Here is the SQLite query to answer the question about the name of train number 15647/48:
```
SELECT train_name FROM table_12095519_1 WHERE train_no = "15647/48"
``` | 28,322 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12095519_1 (train_name VARCHAR, train_no VARCHAR)\n\n Question: What's the name of train number 15647/48?\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_12086015_7 (nationality VARCHAR, year_s_ VARCHAR)
Question: What is the number of nationality in 1992?
Here is the SQLite query to answer to the question: What is ... | Here is the SQLite query to answer the question about the number of nationalities in 1992:
```
SELECT COUNT(nationality) FROM table_12086015_7 WHERE year_s_ = '1992';
``` | 28,323 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12086015_7 (nationality VARCHAR, year_s_ VARCHAR)\n\n Question: What is the number of nationality in 1992?\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_12113818_1 (academic_ VARCHAR, _university_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
Question: Who is the academic & University affairs when t... | It seems like there are some issues with your SQL query syntax. Specifically, the use of `&` instead of `,` for selecting multiple columns and the `&` operator in the WHERE clause should be replaced with `AND`. Here is the corrected SQL query:
```sql
SELECT academic_, _university_affairs
FROM table_12113818_1
WHERE ... | 28,324 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12113818_1 (academic_ VARCHAR, _university_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)\n\n Question: Who... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12113818_1 (year VARCHAR, communications_and_corporate_affairs VARCHAR)
Question: What year was communications and corporate affairs held by Jeff Rotman?
Here is t... | Sure! Here is the SQLite query to find the year when communications and corporate affairs were held by Jeff Rotman:
```
SELECT year FROM table_12113818_1 WHERE communications_and_corporate_affairs = "Jeff Rotman";
``` | 28,325 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12113818_1 (year VARCHAR, communications_and_corporate_affairs VARCHAR)\n\n Question: What year was communications and corpo... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12113888_1 (built VARCHAR, name_as_rebuilt VARCHAR)
Question: What was the built data for Knocklayd rebuild?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question regarding the built date for the Knocklayd rebuild:
```
SELECT built FROM table_12113888_1 WHERE name_as_rebuilt = "Knocklayd"
``` | 28,326 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12113888_1 (built VARCHAR, name_as_rebuilt VARCHAR)\n\n Question: What was the built data for Knocklayd rebuild?\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_12113888_1 (number VARCHAR, rebuilt VARCHAR, scrapped_sold VARCHAR)
Question: How many times does the rebuilt data contain cannot handle non-empty timestamp argume... | Here is the SQLite query you can use to answer the question based on the provided database schema:
```
SELECT COUNT(number)
FROM table_12113888_1
WHERE rebuilt = "cannot handle non-empty timestamp argument! 1929"
AND scrapped_sold = "cannot handle non-empty timestamp argument! 1954";
``` | 28,327 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12113888_1 (number VARCHAR, rebuilt VARCHAR, scrapped_sold VARCHAR)\n\n Question: How many times does the rebuilt data cont... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12113888_1 (built VARCHAR, scrapped_sold VARCHAR)
Question: What is the built data on the scrapped information that is cannot handle non-empty timestamp argument! 1... | Here is the SQLite query formatted as you requested:
```
SELECT built FROM table_12113888_1 WHERE scrapped_sold = "Cannot handle non-empty timestamp argument! 1947";
``` | 28,328 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12113888_1 (built VARCHAR, scrapped_sold VARCHAR)\n\n Question: What is the built data on the scrapped information that is c... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12113888_1 (number VARCHAR, rebuilt VARCHAR)
Question: How many times was the rebuilt data cannot handle non-empty timestamp argument! 1934?
Here is the SQLite que... | Your SQLite query is correctly structured to count the occurrences of a specific rebuilt message. Here is the formatted query:
```
SELECT COUNT(number) FROM table_12113888_1 WHERE rebuilt = "Cannot handle non-empty timestamp argument! 1934";
```
This query will return the count of rows in the `table_12113888_1` wher... | 28,329 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12113888_1 (number VARCHAR, rebuilt VARCHAR)\n\n Question: How many times was the rebuilt data cannot handle non-empty times... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12113888_1 (built VARCHAR, number VARCHAR)
Question: What is the built data for number 34?
Here is the SQLite query to answer to the question: What is the built da... | Here is the SQLite query to answer the question regarding the built data for number 34:
```sql
SELECT built FROM table_12113888_1 WHERE number = '34'
``` | 28,330 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12113888_1 (built VARCHAR, number VARCHAR)\n\n Question: What is the built data for number 34?\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_12113888_1 (number INTEGER)
Question: What is the highest number listed?
Here is the SQLite query to answer to the question: What is the highest number listed?:
``... | Here is the SQLite query to answer the question of what is the highest number listed:
```
SELECT MAX(number) FROM table_12113888_1;
``` | 28,331 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12113888_1 (number INTEGER)\n\n Question: What is the highest number listed?\n\nHere is the SQLite query to answer to the qu... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12121208_1 (womens_singles VARCHAR, mens_singles VARCHAR)
Question: Who won the womens singles when Marc Zwiebler won the men's singles?
Here is the SQLite query t... | Here is the SQLite query to answer the question of who won the women's singles when Marc Zwiebler won the men's singles:
```
SELECT womens_singles FROM table_12121208_1 WHERE mens_singles = "Marc Zwiebler"
``` | 28,332 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12121208_1 (womens_singles VARCHAR, mens_singles VARCHAR)\n\n Question: Who won the womens singles when Marc Zwiebler won th... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR)
Question: The 1.6 Duratec model/engine has how many torque formulas?
Here is the SQLite query to answer t... | Your query looks good and should effectively count the number of entries for the "1.6 Duratec" engine model in the specified table. Here’s the formatted SQLite query:
```
SELECT COUNT(torque__nm__rpm) FROM table_1212189_1 WHERE model_engine = "1.6 Duratec";
```
This query will return the total number of torque formu... | 28,333 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR)\n\n Question: The 1.6 Duratec model/engine has how many torque for... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1212189_1 (power_rpm VARCHAR, torque__nm__rpm VARCHAR)
Question: For the model with torque of n·m (lb·ft)/*n·m (lb·ft) @1750, what is the power?
Here is the SQLite... | Here is the SQLite query to answer the question:
```
SELECT power_rpm FROM table_1212189_1 WHERE torque__nm__rpm = "n·m (lb·ft)/*n·m (lb·ft) @1750"
``` | 28,334 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1212189_1 (power_rpm VARCHAR, torque__nm__rpm VARCHAR)\n\n Question: For the model with torque of n·m (lb·ft)/*n·m (lb·ft) @... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR)
Question: For the model/engine of 1.8 Duratec HE, what is the torque?
Here is the SQLite query to answer ... | Here is the SQLite query that answers the question regarding the torque for the model/engine of 1.8 Duratec HE:
```
SELECT torque__nm__rpm FROM table_1212189_1 WHERE model_engine = "1.8 Duratec HE";
``` | 28,335 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR)\n\n Question: For the model/engine of 1.8 Duratec HE, what is the ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1212189_1 (capacity VARCHAR, model_engine VARCHAR)
Question: How many capacities are possible for the 1.6 Duratec model/engine?
Here is the SQLite query to answer ... | Your SQLite query to find the number of capacities possible for the 1.6 Duratec model engine is almost correct, but it is missing a distinct clause to ensure you count unique capacities. Here's an improved version of the query that counts distinct capacities:
```
SELECT COUNT(DISTINCT capacity) FROM table_1212189_1 WH... | 28,336 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1212189_1 (capacity VARCHAR, model_engine VARCHAR)\n\n Question: How many capacities are possible for the 1.6 Duratec model/... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, capacity VARCHAR)
Question: What is the torque formula for the model/engine which has 1,753 cc capacity?
Here is the SQLite que... | Here is the SQLite query to answer the question regarding the torque formula for the model/engine which has a capacity of 1,753 cc:
```
SELECT torque__nm__rpm FROM table_1212189_1 WHERE capacity = '1,753 cc';
``` | 28,337 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, capacity VARCHAR)\n\n Question: What is the torque formula for the model/engine which ha... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR)
Question: What is the torque formula for the 1.6 Duratec ti-vct model/engine?
Here is the SQLite query to... | Here is the SQLite query to answer your question:
```
SELECT torque__nm__rpm FROM table_1212189_1 WHERE model_engine = "1.6 Duratec Ti-VCT"
``` | 28,338 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR)\n\n Question: What is the torque formula for the 1.6 Duratec ti-vc... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR)
Question: what's the date of birth with end of term being 2april1969
Here is the SQLite query to answer to ... | Here is the SQLite query wrapped in the requested format:
```
SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = "2April1969";
``` | 28,339 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR)\n\n Question: what's the date of birth with end of term being 2april... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12134383_1 (president VARCHAR, date_of_inauguration VARCHAR)
Question: who is the the president with date of inauguration being 4june1979
Here is the SQLite query ... | Here is the SQLite query to answer the question about the president with a date of inauguration on 4 June 1979:
```
SELECT president FROM table_12134383_1 WHERE date_of_inauguration = "4June1979"
``` | 28,340 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12134383_1 (president VARCHAR, date_of_inauguration VARCHAR)\n\n Question: who is the the president with date of inauguratio... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12134383_1 (president VARCHAR, date_of_inauguration VARCHAR)
Question: how many president with date of inauguration being 4june1979
Here is the SQLite query to an... | Here is the SQLite query to answer the question about how many presidents have the date of inauguration as 4 June 1979:
```
SELECT COUNT(president) FROM table_12134383_1 WHERE date_of_inauguration = '4june1979'
``` | 28,341 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12134383_1 (president VARCHAR, date_of_inauguration VARCHAR)\n\n Question: how many president with date of inauguration bei... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR)
Question: what's the date of birth with end of term being 5july1978
Here is the SQLite query to answer to t... | Here is the SQLite query to answer the question regarding the date of birth with the end of term being 5 July 1978:
```
SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = "5July1978"
``` | 28,342 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR)\n\n Question: what's the date of birth with end of term being 5july1... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, _number VARCHAR)
Question: what's the date of birth with # being 2
Here is the SQLite query to answer to the question: what's th... | Here is the SQLite query to answer the question about the date of birth where the number is 2:
```
SELECT date_of_birth FROM table_12134383_1 WHERE _number = '2'
``` | 28,343 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, _number VARCHAR)\n\n Question: what's the date of birth with # being 2\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_12134383_1 (end_of_term VARCHAR, age_at_inauguration VARCHAR)
Question: how many end of term with age at inauguration being 64-066 64years, 66days
Here is the SQL... | Here is the SQLite query to answer the question of how many end of term records exist with age at inauguration being "64-066 64years, 66days":
```
SELECT COUNT(end_of_term) FROM table_12134383_1 WHERE age_at_inauguration = "64-066 64years, 66days"
``` | 28,344 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12134383_1 (end_of_term VARCHAR, age_at_inauguration VARCHAR)\n\n Question: how many end of term with age at inauguration b... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12125069_2 (winning_pitcher VARCHAR, date VARCHAR)
Question: Who was the winning pitcher on june 25?
Here is the SQLite query to answer to the question: Who was th... | Here's the SQLite query to find out who the winning pitcher was on June 25:
```sql
SELECT winning_pitcher FROM table_12125069_2 WHERE date = "June 25";
``` | 28,345 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12125069_2 (winning_pitcher VARCHAR, date VARCHAR)\n\n Question: Who was the winning pitcher on june 25?\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_12125069_2 (attendance VARCHAR, date VARCHAR)
Question: How many games were on May 20?
Here is the SQLite query to answer to the question: How many games were on M... | Here is the SQLite query to answer the question about how many games were on May 20:
```sql
SELECT COUNT(attendance) FROM table_12125069_2 WHERE date = 'May 20';
``` | 28,346 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12125069_2 (attendance VARCHAR, date VARCHAR)\n\n Question: How many games were on May 20?\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_12125069_2 (losing_pitcher VARCHAR, winning_pitcher VARCHAR)
Question: Who is the losing pitcher when the winning pitcher is roy oswalt?
Here is the SQLite query t... | Here is the SQLite query to answer the question about the losing pitcher when the winning pitcher is Roy Oswalt:
```
SELECT losing_pitcher FROM table_12125069_2 WHERE winning_pitcher = "Roy Oswalt"
``` | 28,347 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12125069_2 (losing_pitcher VARCHAR, winning_pitcher VARCHAR)\n\n Question: Who is the losing pitcher when the winning pitche... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12125069_2 (winning_pitcher VARCHAR, attendance VARCHAR)
Question: Who is the winning pitcher when attendance is 38109?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question of who is the winning pitcher when attendance is 38109:
```
SELECT winning_pitcher FROM table_12125069_2 WHERE attendance = '38109'
``` | 28,348 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12125069_2 (winning_pitcher VARCHAR, attendance VARCHAR)\n\n Question: Who is the winning pitcher when attendance is 38109?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_2 (nhl_team VARCHAR, player VARCHAR)
Question: How many NHL teams does Terry French play for?
Here is the SQLite query to answer to the question: How many ... | Here is the SQLite query to answer the question: How many NHL teams does Terry French play for?:
```
SELECT COUNT(nhl_team) FROM table_1213511_2 WHERE player = "Terry French"
``` | 28,349 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_2 (nhl_team VARCHAR, player VARCHAR)\n\n Question: How many NHL teams does Terry French play for?\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_1213511_2 (player VARCHAR, nhl_team VARCHAR)
Question: Who's the player for the New York Rangers?
Here is the SQLite query to answer to the question: Who's the pla... | Here is the SQLite query to answer the question: Who's the player for the New York Rangers?:
```sql
SELECT player FROM table_1213511_2 WHERE nhl_team = 'New York Rangers';
``` | 28,350 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_2 (player VARCHAR, nhl_team VARCHAR)\n\n Question: Who's the player for the New York Rangers?\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_1213511_2 (position VARCHAR, nhl_team VARCHAR)
Question: How many positions do the players of Chicago Black Hawks play in?
Here is the SQLite query to answer to th... | Your query is close, but to get the distinct positions played by the players of the Chicago Black Hawks, you should use `COUNT(DISTINCT position)` instead of just `COUNT(position)`. Here’s the corrected SQLite query:
```
SELECT COUNT(DISTINCT position) FROM table_1213511_2 WHERE nhl_team = "Chicago Black Hawks"
``` | 28,351 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_2 (position VARCHAR, nhl_team VARCHAR)\n\n Question: How many positions do the players of Chicago Black Hawks play i... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_2 (nationality VARCHAR, nhl_team VARCHAR)
Question: What is the nationality of the player from Buffalo Sabres?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about the nationality of the player from Buffalo Sabres:
```
SELECT nationality FROM table_1213511_2 WHERE nhl_team = "Buffalo Sabres";
``` | 28,352 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_2 (nationality VARCHAR, nhl_team VARCHAR)\n\n Question: What is the nationality of the player from Buffalo Sabres?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_2 (position VARCHAR, college_junior_club_team VARCHAR)
Question: What position does the player from Peterborough Petes (OHA) play on?
Here is the SQLite qu... | Here is the SQLite query wrapped in code format:
```
SELECT position FROM table_1213511_2 WHERE college_junior_club_team = "Peterborough Petes (OHA)"
``` | 28,353 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_2 (position VARCHAR, college_junior_club_team VARCHAR)\n\n Question: What position does the player from Peterborough... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_2 (pick__number VARCHAR, player VARCHAR)
Question: What's Dave Fortier's pick number?
Here is the SQLite query to answer to the question: What's Dave Forti... | The provided query counts the number of pick numbers associated with Dave Fortier, rather than retrieving the actual pick number. If you want to select Dave Fortier's pick number, you should retrieve the pick number directly. Here’s the corrected SQLite query:
```
SELECT pick__number FROM table_1213511_2 WHERE player ... | 28,354 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_2 (pick__number VARCHAR, player VARCHAR)\n\n Question: What's Dave Fortier's pick number?\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_1213511_4 (college_junior_club_team VARCHAR, player VARCHAR)
Question: What team does George Hulme play for?
Here is the SQLite query to answer to the question: Wh... | Here is the SQLite query to answer the question about what team George Hulme plays for:
```
SELECT college_junior_club_team FROM table_1213511_4 WHERE player = "George Hulme";
``` | 28,355 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_4 (college_junior_club_team VARCHAR, player VARCHAR)\n\n Question: What team does George Hulme play for?\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_1213511_4 (position VARCHAR, player VARCHAR)
Question: What position does Neil Komadoski play?
Here is the SQLite query to answer to the question: What position do... | Here is the SQLite query to answer the question: What position does Neil Komadoski play?:
```
SELECT position FROM table_1213511_4 WHERE player = "Neil Komadoski"
``` | 28,356 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_4 (position VARCHAR, player VARCHAR)\n\n Question: What position does Neil Komadoski play?\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_1213511_5 (college_junior_club_team VARCHAR, player VARCHAR)
Question: where is team player mike mcniven played for?
Here is the SQLite query to answer to the ques... | Here is the SQLite query to answer the question about where team player Mike McNiven played for:
```
SELECT college_junior_club_team FROM table_1213511_5 WHERE player = "Mike McNiven"
``` | 28,357 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, player VARCHAR)\n\n Question: where is team player mike mcniven played for?\n\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
Question: what college has nhl team chicago black hawks?
Here is the SQLite query to answer to the q... | Here is the SQLite query to answer the question about which college has the NHL team Chicago Black Hawks:
```
SELECT college_junior_club_team FROM table_1213511_5 WHERE nhl_team = "Chicago Black Hawks"
``` | 28,358 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, nhl_team VARCHAR)\n\n Question: what college has nhl team chicago black hawks?\... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_5 (player VARCHAR, nationality VARCHAR, pick__number VARCHAR)
Question: who is the player with the nationality of canada and pick # is 65?
Here is the SQLi... | Here is the SQLite query to answer the question regarding the player with the nationality of Canada and pick # 65:
```
SELECT player FROM table_1213511_5 WHERE nationality = "Canada" AND pick__number = "65"
``` | 28,359 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_5 (player VARCHAR, nationality VARCHAR, pick__number VARCHAR)\n\n Question: who is the player with the nationality o... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_3 (nhl_team VARCHAR, player VARCHAR)
Question: How many teams did Bob Peppler play for?
Here is the SQLite query to answer to the question: How many teams ... | Here is the SQLite query to answer the question about how many teams Bob Peppler played for:
```
SELECT COUNT(DISTINCT nhl_team) FROM table_1213511_3 WHERE player = "Bob Peppler"
``` | 28,360 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_3 (nhl_team VARCHAR, player VARCHAR)\n\n Question: How many teams did Bob Peppler play for?\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_1213511_3 (position VARCHAR, nhl_team VARCHAR)
Question: What is the position listed for the team the Philadelphia Flyers?
Here is the SQLite query to answer to th... | Here is the SQLite query to answer the question about the position listed for the Philadelphia Flyers:
```
SELECT position FROM table_1213511_3 WHERE nhl_team = "Philadelphia Flyers";
``` | 28,361 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_3 (position VARCHAR, nhl_team VARCHAR)\n\n Question: What is the position listed for the team the Philadelphia Flyer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_3 (nationality VARCHAR, player VARCHAR)
Question: How many nationalities are listed for the player Glen Irwin?
Here is the SQLite query to answer to the qu... | Here is the SQLite query to answer the question about how many nationalities are listed for the player Glen Irwin:
```
SELECT COUNT(nationality) FROM table_1213511_3 WHERE player = "Glen Irwin";
``` | 28,362 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_3 (nationality VARCHAR, player VARCHAR)\n\n Question: How many nationalities are listed for the player Glen Irwin?\n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_7 (player VARCHAR, position VARCHAR, nhl_team VARCHAR)
Question: Which players have the position of centre and play for the nhl team new york rangers
Here ... | Here is the SQLite query to answer the question regarding players who have the position of centre and play for the NHL team New York Rangers:
```
SELECT player FROM table_1213511_7 WHERE position = "Centre" AND nhl_team = "New York Rangers";
``` | 28,363 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_7 (player VARCHAR, position VARCHAR, nhl_team VARCHAR)\n\n Question: Which players have the position of centre and p... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_7 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
Question: Which nhl team has a college/junior/club team named university of notre dame (ncaa)
Here i... | Here is the SQLite query to answer the question about which NHL team has a college/junior/club team named "University of Notre Dame (NCAA)":
```
SELECT nhl_team FROM table_1213511_7 WHERE college_junior_club_team = "University of Notre Dame (NCAA)";
``` | 28,364 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_7 (nhl_team VARCHAR, college_junior_club_team VARCHAR)\n\n Question: Which nhl team has a college/junior/club team n... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_7 (position VARCHAR, player VARCHAR)
Question: what are all the position where player is al simmons
Here is the SQLite query to answer to the question: wha... | Here is the SQLite query to answer the question:
```
SELECT position FROM table_1213511_7 WHERE player = "Al Simmons"
``` | 28,365 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_7 (position VARCHAR, player VARCHAR)\n\n Question: what are all the position where player is al simmons\n\nHere is t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_7 (nationality VARCHAR, pick__number VARCHAR)
Question: What nationality is pick # 89
Here is the SQLite query to answer to the question: What nationality ... | Here is the SQLite query to answer the question about the nationality of pick # 89:
```
SELECT nationality FROM table_1213511_7 WHERE pick__number = '89'
```
(Note: The pick_number is likely stored as a string since it's defined as VARCHAR, hence '89' should be in quotes.) | 28,366 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_7 (nationality VARCHAR, pick__number VARCHAR)\n\n Question: What nationality is pick # 89\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_1213511_7 (college_junior_club_team VARCHAR, nationality VARCHAR, nhl_team VARCHAR)
Question: Which college/junior/club teams nationality is canada and nhl team is ... | Here is the SQLite query to answer the question about which college/junior/club teams have a nationality of Canada and an NHL team of Minnesota North Stars:
```
SELECT college_junior_club_team FROM table_1213511_7 WHERE nationality = "Canada" AND nhl_team = "Minnesota North Stars";
``` | 28,367 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_7 (college_junior_club_team VARCHAR, nationality VARCHAR, nhl_team VARCHAR)\n\n Question: Which college/junior/club ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_7 (pick__number VARCHAR, nhl_team VARCHAR)
Question: what is the total number of pick # where nhl team is philadelphia flyers
Here is the SQLite query to a... | Here is the SQLite query to answer the question regarding the total number of pick numbers where the NHL team is the Philadelphia Flyers:
```
SELECT COUNT(pick__number) FROM table_1213511_7 WHERE nhl_team = "Philadelphia Flyers";
``` | 28,368 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_7 (pick__number VARCHAR, nhl_team VARCHAR)\n\n Question: what is the total number of pick # where nhl team is philad... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_6 (nationality VARCHAR, nhl_team VARCHAR)
Question: What is the nationality of the player from the Detroit Red Wings?
Here is the SQLite query to answer to... | Here is the SQLite query to find the nationality of the player from the Detroit Red Wings:
```
SELECT nationality FROM table_1213511_6 WHERE nhl_team = "Detroit Red Wings"
``` | 28,369 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_6 (nationality VARCHAR, nhl_team VARCHAR)\n\n Question: What is the nationality of the player from the Detroit Red W... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1213511_6 (position VARCHAR, player VARCHAR)
Question: What position does Jim Johnston play?
Here is the SQLite query to answer to the question: What position does... | Here is the SQLite query to answer the question: What position does Jim Johnston play?:
```
SELECT position FROM table_1213511_6 WHERE player = "Jim Johnston"
``` | 28,370 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_6 (position VARCHAR, player VARCHAR)\n\n Question: What position does Jim Johnston play?\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_1213511_6 (nhl_team VARCHAR, player VARCHAR)
Question: Which team does Pierre Duguay play for?
Here is the SQLite query to answer to the question: Which team does ... | Here is the SQLite query to answer the question about which team Pierre Duguay plays for:
```
SELECT nhl_team FROM table_1213511_6 WHERE player = "Pierre Duguay"
``` | 28,371 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_6 (nhl_team VARCHAR, player VARCHAR)\n\n Question: Which team does Pierre Duguay play for?\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_1213511_6 (nationality VARCHAR, position VARCHAR)
Question: What country does the goaltender come from?
Here is the SQLite query to answer to the question: What co... | Here is the SQLite query to answer the question about the nationality of the goaltender:
```
SELECT nationality FROM table_1213511_6 WHERE position = "Goaltender"
``` | 28,372 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1213511_6 (nationality VARCHAR, position VARCHAR)\n\n Question: What country does the goaltender come from?\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_12148018_2 (writer VARCHAR, viewers VARCHAR)
Question: who is the writer where viewers is 5.16m
Here is the SQLite query to answer to the question: who is the wr... | Here is the SQLite query to answer the question: who is the writer where viewers is 5.16m:
```
SELECT writer FROM table_12148018_2 WHERE viewers = '5.16m';
``` | 28,373 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12148018_2 (writer VARCHAR, viewers VARCHAR)\n\n Question: who is the writer where viewers is 5.16m\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_1214035_1 (league VARCHAR, open_cup VARCHAR)
Question: For which league is the open cup the quarter finals
Here is the SQLite query to answer to the question: For ... | Here is the SQLite query to answer the question regarding which league has the open cup as the quarter finals:
```
SELECT league FROM table_1214035_1 WHERE open_cup = "Quarter Finals";
``` | 28,374 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1214035_1 (league VARCHAR, open_cup VARCHAR)\n\n Question: For which league is the open cup the quarter finals\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_1214035_1 (open_cup VARCHAR, year VARCHAR)
Question: What open cups where played in 2002
Here is the SQLite query to answer to the question: What open cups where p... | Here is the SQLite query to answer the question about what open cups were played in 2002:
```sql
SELECT open_cup FROM table_1214035_1 WHERE year = '2002';
``` | 28,375 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1214035_1 (open_cup VARCHAR, year VARCHAR)\n\n Question: What open cups where played in 2002\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_1214035_1 (league VARCHAR, division VARCHAR)
Question: What leagues includes division 3
Here is the SQLite query to answer to the question: What leagues includes d... | ```sql
SELECT league FROM table_1214035_1 WHERE division = '3';
``` | 28,376 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1214035_1 (league VARCHAR, division VARCHAR)\n\n Question: What leagues includes division 3\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_1214035_1 (playoffs VARCHAR, regular_season VARCHAR)
Question: What was the result of the playoffs when the regular season was 7th, southeast
Here is the SQLite qu... | Here is the SQLite query to answer the question about the result of the playoffs when the regular season was 7th, southeast:
```
SELECT playoffs FROM table_1214035_1 WHERE regular_season = "7th, Southeast"
``` | 28,377 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1214035_1 (playoffs VARCHAR, regular_season VARCHAR)\n\n Question: What was the result of the playoffs when the regular seas... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12159115_2 (original_air_date VARCHAR, production_code VARCHAR)
Question: What's the original air date of the episode with production code 2T6719?
Here is the SQLi... | Here is the SQLite query to answer the question about the original air date of the episode with production code 2T6719:
```
SELECT original_air_date FROM table_12159115_2 WHERE production_code = "2T6719"
``` | 28,378 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12159115_2 (original_air_date VARCHAR, production_code VARCHAR)\n\n Question: What's the original air date of the episode wi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12159115_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
Question: Who's the writer of the episode see by 12.13 million US viewers?
Here is the SQLite query ... | Here is the SQLite query to find the writer of the episode seen by 12.13 million US viewers:
```sql
SELECT written_by FROM table_12159115_2 WHERE us_viewers__millions_ = "12.13"
``` | 28,379 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12159115_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: Who's the writer of the episode see by 12.13 mi... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12159115_2 (title VARCHAR, production_code VARCHAR)
Question: What's the total number of episodes with production code 2T6705?
Here is the SQLite query to answer t... | Here is the SQLite query to answer the question regarding the total number of episodes with production code 2T6705:
```sql
SELECT COUNT(title) FROM table_12159115_2 WHERE production_code = "2T6705";
``` | 28,380 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12159115_2 (title VARCHAR, production_code VARCHAR)\n\n Question: What's the total number of episodes with production code 2... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12159115_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
Question: What's the total number of directors who've directed episodes seen by 11.34 million US vie... | Your SQLite query is correct for counting the number of directors who have directed episodes seen by 11.34 million US viewers. Here it is wrapped in code format:
```
SELECT COUNT(directed_by) FROM table_12159115_2 WHERE us_viewers__millions_ = "11.34";
```
This query counts the number of unique entries in the `direc... | 28,381 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12159115_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: What's the total number of directors who've di... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12159115_2 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
Question: What's the production code of the episode seen by 11.64 million US viewers?
Here is t... | ```sql
SELECT production_code FROM table_12159115_2 WHERE us_viewers__millions_ = "11.64"
``` | 28,382 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12159115_2 (production_code VARCHAR, us_viewers__millions_ VARCHAR)\n\n Question: What's the production code of the episode ... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_1216097_7 (winner VARCHAR, third VARCHAR, runner_up VARCHAR)
Question: What is the winner women and third is italy and runner-up is finland?
Here is the SQLite que... | Here is the SQLite query that answers the question about the winner being a woman, with Italy in third place and Finland as the runner-up:
```
SELECT winner AS Women FROM table_1216097_7 WHERE third = "Italy" AND runner_up = "Finland"
``` | 28,383 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_1216097_7 (winner VARCHAR, third VARCHAR, runner_up VARCHAR)\n\n Question: What is the winner women and third is italy and r... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12161822_5 (report VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
Question: what's the report with fastest lap being felipe massa and winning driver being je... | Sure! Here is the SQLite query formatted as you requested:
```
SELECT report FROM table_12161822_5 WHERE fastest_lap = "Felipe Massa" AND winning_driver = "Jenson Button"
``` | 28,384 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12161822_5 (report VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)\n\n Question: what's the report with fastest lap be... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12161822_5 (grand_prix VARCHAR, winning_driver VARCHAR)
Question: what's the grand prix with winning driver being jenson button
Here is the SQLite query to answer ... | Here is the SQLite query to answer the question about the grand prix with the winning driver being Jenson Button:
```
SELECT grand_prix FROM table_12161822_5 WHERE winning_driver = "Jenson Button"
``` | 28,385 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12161822_5 (grand_prix VARCHAR, winning_driver VARCHAR)\n\n Question: what's the grand prix with winning driver being jenson... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12161822_5 (pole_position VARCHAR, grand_prix VARCHAR)
Question: who is the the pole position with grand prix being italian grand prix
Here is the SQLite query to ... | Here is the SQLite query to answer the question about the pole position for the Italian Grand Prix:
```
SELECT pole_position FROM table_12161822_5 WHERE grand_prix = "Italian grand prix"
``` | 28,386 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12161822_5 (pole_position VARCHAR, grand_prix VARCHAR)\n\n Question: who is the the pole position with grand prix being ital... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12161822_5 (fastest_lap VARCHAR, grand_prix VARCHAR)
Question: who is the the fastest lap with grand prix being european grand prix
Here is the SQLite query to ans... | Here is the SQLite query to answer the question regarding the fastest lap for the European Grand Prix:
```
SELECT fastest_lap FROM table_12161822_5 WHERE grand_prix = "European grand prix"
``` | 28,387 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12161822_5 (fastest_lap VARCHAR, grand_prix VARCHAR)\n\n Question: who is the the fastest lap with grand prix being european... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
Question: How many viewers, in millions, were for the episode directed by Tawnia McKiernan?
Here is... | Here is the SQLite query to answer the question about how many viewers, in millions, were for the episode directed by Tawnia McKiernan:
```
SELECT us_viewers__millions_ FROM table_12159115_3 WHERE directed_by = "Tawnia McKiernan"
``` | 28,388 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)\n\n Question: How many viewers, in millions, were for the ep... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12159115_3 (series__number VARCHAR, written_by VARCHAR)
Question: How many episodes were written only by William N. Fordes?
Here is the SQLite query to answer to t... | To answer the question about how many episodes were written only by William N. Fordes, the query you provided is correct. However, to ensure we are capturing episodes that were written exclusively by William N. Fordes (i.e., there are no other writers for those episodes), we should also check that no other writers exis... | 28,389 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12159115_3 (series__number VARCHAR, written_by VARCHAR)\n\n Question: How many episodes were written only by William N. Ford... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, series__number VARCHAR)
Question: How many U.S Viewers, in millions, were for series # 26?
Here is the SQLite query to a... | To correctly format the SQLite query while ensuring it retrieves the number of U.S. viewers in millions for series # 26, you should include a function to aggregate the results (if there are multiple rows for series # 26). Assuming you want the total, you might use `SUM()`. Here’s the modified query:
```sql
SELECT SUM(... | 28,390 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, series__number VARCHAR)\n\n Question: How many U.S Viewers, in millions, were for... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12148147_2 (third_year VARCHAR, subjects VARCHAR)
Question: What is the third year course in science?
Here is the SQLite query to answer to the question: What is t... | Here is the SQLite query to answer the question about the third year course in science:
```
SELECT third_year FROM table_12148147_2 WHERE subjects = "Science"
``` | 28,391 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12148147_2 (third_year VARCHAR, subjects VARCHAR)\n\n Question: What is the third year course in science?\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_12148147_2 (second_year VARCHAR, first_year VARCHAR)
Question: What is the second year class following pag-unawa?
Here is the SQLite query to answer to the questio... | Here is the SQLite query to answer the question about the second year class following "pag-unawa":
```
SELECT second_year FROM table_12148147_2 WHERE first_year = "Pag-unawa"
``` | 28,392 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12148147_2 (second_year VARCHAR, first_year VARCHAR)\n\n Question: What is the second year class following pag-unawa?\n\nHer... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12148147_2 (third_year VARCHAR, first_year VARCHAR)
Question: How many classes are taken in the third year when pag-unawa was taken in the first year?
Here is the ... | Here is the SQLite query to answer your question regarding the number of classes taken in the third year when "Pag-unawa" was taken in the first year:
```
SELECT COUNT(third_year) FROM table_12148147_2 WHERE first_year = "Pag-unawa";
``` | 28,393 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12148147_2 (third_year VARCHAR, first_year VARCHAR)\n\n Question: How many classes are taken in the third year when pag-unaw... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12148147_2 (first_year VARCHAR, third_year VARCHAR)
Question: What is the first year course in the program where geometry is taken in the third year?
Here is the S... | Here is the SQLite query you need to answer the question about the first year course in the program where geometry is taken in the third year:
```
SELECT first_year FROM table_12148147_2 WHERE third_year = "Geometry"
``` | 28,394 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12148147_2 (first_year VARCHAR, third_year VARCHAR)\n\n Question: What is the first year course in the program where geometr... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12148147_2 (second_year VARCHAR, fourth_year VARCHAR)
Question: What is the second year course in the program where physics is taken in the fourth year?
Here is th... | ```sql
SELECT second_year FROM table_12148147_2 WHERE fourth_year = "Physics";
``` | 28,395 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12148147_2 (second_year VARCHAR, fourth_year VARCHAR)\n\n Question: What is the second year course in the program where phys... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12163387_1 (womens_singles VARCHAR, mens_singles VARCHAR)
Question: Who won the womens singles event the year that Jonas Lyduch won?
Here is the SQLite query to an... | Here is the SQLite query to answer the question:
```
SELECT womens_singles FROM table_12163387_1 WHERE mens_singles = "Jonas Lyduch"
``` | 28,396 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12163387_1 (womens_singles VARCHAR, mens_singles VARCHAR)\n\n Question: Who won the womens singles event the year that Jonas... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12163387_1 (mens_doubles VARCHAR, womens_singles VARCHAR)
Question: Who won the mens doubles the year Alison Humby won the womens singles?
Here is the SQLite query... | Here is the SQLite query to answer the question regarding who won the men's doubles the year Alison Humby won the women's singles:
```sql
SELECT mens_doubles
FROM table_12163387_1
WHERE womens_singles = "Alison Humby";
``` | 28,397 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12163387_1 (mens_doubles VARCHAR, womens_singles VARCHAR)\n\n Question: Who won the mens doubles the year Alison Humby won t... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12164707_1 (year VARCHAR, mens_singles VARCHAR)
Question: How many years did Peter Mikkelsen win the Mens Singles?
Here is the SQLite query to answer to the questi... | The SQLite query to answer the question of how many years Peter Mikkelsen won the Mens Singles is:
```
SELECT COUNT(year) FROM table_12164707_1 WHERE mens_singles = "Peter Mikkelsen";
``` | 28,398 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12164707_1 (year VARCHAR, mens_singles VARCHAR)\n\n Question: How many years did Peter Mikkelsen win the Mens Singles?\n\nHe... | |
Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:
Schema: CREATE TABLE table_12164707_1 (mens_doubles VARCHAR, womens_singles VARCHAR)
Question: Who won the Men's Doubles when Karina de Wit won the Women's Singles?
Here is the SQLite query ... | Here is the SQLite query to answer the question: Who won the Men's Doubles when Karina de Wit won the Women's Singles?:
```
SELECT mens_doubles FROM table_12164707_1 WHERE womens_singles = "Karina de Wit"
``` | 28,399 | [
{
"from": "human",
"value": " Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```:\n Schema: CREATE TABLE table_12164707_1 (mens_doubles VARCHAR, womens_singles VARCHAR)\n\n Question: Who won the Men's Doubles when Karina de Wit won the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.