output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "state_served" FROM "earliest_serving_senators_currently_livi" WHERE "time_since_entry"='49years, 29days'; |
## Task
Generate a SQL query to answer the following question:
`List the states that have entry times of 49years, 29days`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "earliest_serving_senators_currently_livi" (
"rank" real,
"senator" text,
"date_of_birth" text,
"entered_senate" text,
"left_senate" text,
"state_served" text,
"party" text,
"time_since_entry" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the states that have entry times of 49years, 29days`:
```sql
|
SELECT "party" FROM "earliest_serving_senators_currently_livi" WHERE "senator"='Dick Clark'; |
## Task
Generate a SQL query to answer the following question:
`Of which part does congressman dick clark belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "earliest_serving_senators_currently_livi" (
"rank" real,
"senator" text,
"date_of_birth" text,
"entered_senate" text,
"left_senate" text,
"state_served" text,
"party" text,
"time_since_entry" text
);
### SQL
Given the database schema, here is the SQL query that answers `Of which part does congressman dick clark belong to?`:
```sql
|
SELECT "entered_senate" FROM "earliest_serving_senators_currently_livi" WHERE "senator"='Joseph Tydings'; |
## Task
Generate a SQL query to answer the following question:
`On what date did congressman joseph tydings enter take his seat?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "earliest_serving_senators_currently_livi" (
"rank" real,
"senator" text,
"date_of_birth" text,
"entered_senate" text,
"left_senate" text,
"state_served" text,
"party" text,
"time_since_entry" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did congressman joseph tydings enter take his seat?`:
```sql
|
SELECT MIN("points") FROM "career_summary" WHERE "poles"=0 AND "races"=10; |
## Task
Generate a SQL query to answer the following question:
`What are the lowest points when poles were 0 and races were 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest points when poles were 0 and races were 10?`:
```sql
|
SELECT MAX("points") FROM "career_summary" WHERE "f_laps"=0; |
## Task
Generate a SQL query to answer the following question:
`What was the highest number of points when flaps were 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of points when flaps were 0?`:
```sql
|
SELECT "20_questions" FROM "2012" WHERE "cover_model"='Pamela Horton'; |
## Task
Generate a SQL query to answer the following question:
`Who played 20 questions during the issue in which Pamela Horton is on the cover?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played 20 questions during the issue in which Pamela Horton is on the cover?`:
```sql
|
SELECT "date" FROM "2012" WHERE "20_questions"='Dax Shepard'; |
## Task
Generate a SQL query to answer the following question:
`What date did Dax Shepard play 20 questions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did Dax Shepard play 20 questions?`:
```sql
|
SELECT "centerfold_model" FROM "2012" WHERE "20_questions"='Krysten Ritter'; |
## Task
Generate a SQL query to answer the following question:
`Who was the centerfold model when Krysten Ritter played 20 questions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the centerfold model when Krysten Ritter played 20 questions?`:
```sql
|
SELECT "centerfold_model" FROM "2012" WHERE "20_questions"='Meghan McCain'; |
## Task
Generate a SQL query to answer the following question:
`Who was the centerfold model when Meghan McCain played 20 questions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"interview_subject" text,
"20_questions" text,
"pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the centerfold model when Meghan McCain played 20 questions?`:
```sql
|
SELECT "frequency" FROM "table1_24418525_1" WHERE "power_k_w"='5kW'; |
## Task
Generate a SQL query to answer the following question:
`When the power kw is 5kw, what is the frequency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24418525_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the power kw is 5kw, what is the frequency?`:
```sql
|
SELECT "callsign" FROM "table1_24418525_1" WHERE "coverage"='Dumaguete Central Visayas Region'; |
## Task
Generate a SQL query to answer the following question:
`when coverage is dumaguete central visayas region, what is the callsign?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24418525_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `when coverage is dumaguete central visayas region, what is the callsign?`:
```sql
|
SELECT COUNT("power_k_w") FROM "table1_24418525_1" WHERE "coverage"='Dumaguete Central Visayas Region'; |
## Task
Generate a SQL query to answer the following question:
`How much power covers dumaguete central visayas region?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24418525_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much power covers dumaguete central visayas region?`:
```sql
|
SELECT "frequency" FROM "table1_24418525_1" WHERE "coverage"='Mega Manila'; |
## Task
Generate a SQL query to answer the following question:
`What frequency is mega manila set to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24418525_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What frequency is mega manila set to?`:
```sql
|
SELECT "original_air_date" FROM "table1_24425976_2" WHERE "production_code"='108'; |
## Task
Generate a SQL query to answer the following question:
`What original air date was for the episode with production code of 108?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24425976_2" (
"series" real,
"season" text,
"original_air_date" text,
"production_code" text,
"episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What original air date was for the episode with production code of 108?`:
```sql
|
SELECT COUNT("production_code") FROM "table1_24425976_2" WHERE "season"='10'; |
## Task
Generate a SQL query to answer the following question:
`How many production codes are there for episode 10 in the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24425976_2" (
"series" real,
"season" text,
"original_air_date" text,
"production_code" text,
"episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many production codes are there for episode 10 in the season?`:
```sql
|
SELECT "original_air_date" FROM "table1_24425976_2" WHERE "episode_title"='\"Paintball Deer Hunter\"'; |
## Task
Generate a SQL query to answer the following question:
`What date did "paintball deer hunter" originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24425976_2" (
"series" real,
"season" text,
"original_air_date" text,
"production_code" text,
"episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did "paintball deer hunter" originally air?`:
```sql
|
SELECT "original_air_date" FROM "table1_24425976_2" WHERE "production_code"='110'; |
## Task
Generate a SQL query to answer the following question:
`What date did the episode with code 110 originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24425976_2" (
"series" real,
"season" text,
"original_air_date" text,
"production_code" text,
"episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode with code 110 originally air?`:
```sql
|
SELECT "episode_title" FROM "table1_24425976_2" WHERE "production_code"='107'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode with a production code of 107?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24425976_2" (
"series" real,
"season" text,
"original_air_date" text,
"production_code" text,
"episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode with a production code of 107?`:
```sql
|
SELECT COUNT("series") FROM "table1_24425976_2" WHERE "production_code"='111'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes in the series has a production code of 111?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24425976_2" (
"series" real,
"season" text,
"original_air_date" text,
"production_code" text,
"episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes in the series has a production code of 111?`:
```sql
|
SELECT COUNT("payout_us") FROM "bowl_games" WHERE "date"='December 28, 2009'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of payout for december 28, 2009`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"location" text,
"tv" text,
"matchup_winner_bolded" text,
"payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of payout for december 28, 2009`:
```sql
|
SELECT "payout_us" FROM "bowl_games" WHERE "tv"='ESPN' AND "bowl_game"='Music City Bowl'; |
## Task
Generate a SQL query to answer the following question:
`Name the payout for espn for music city bowl`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"location" text,
"tv" text,
"matchup_winner_bolded" text,
"payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the payout for espn for music city bowl`:
```sql
|
SELECT "date" FROM "bowl_games" WHERE "stadium"='Raymond James Stadium'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for raymond james stadium`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"location" text,
"tv" text,
"matchup_winner_bolded" text,
"payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for raymond james stadium`:
```sql
|
SELECT "original_air_date" FROM "table1_24425976_7" WHERE "season"=4; |
## Task
Generate a SQL query to answer the following question:
`What date did episode 4 in the season originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24425976_7" (
"series" real,
"season" real,
"original_air_date" text,
"production_code" real,
"episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did episode 4 in the season originally air?`:
```sql
|
SELECT "original_air_date" FROM "table1_24425976_7" WHERE "series"=115; |
## Task
Generate a SQL query to answer the following question:
`What date did episode 115 in the series originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24425976_7" (
"series" real,
"season" real,
"original_air_date" text,
"production_code" real,
"episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did episode 115 in the series originally air?`:
```sql
|
SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num1"='River Plate'; |
## Task
Generate a SQL query to answer the following question:
`What was the 2nd leg for team #1 River Plate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2nd leg for team #1 River Plate?`:
```sql
|
SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num2"='Fluminense'; |
## Task
Generate a SQL query to answer the following question:
`What was team number 2's Fluminense's 2nd leg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was team number 2's Fluminense's 2nd leg?`:
```sql
|
SELECT MAX("seed") FROM "2010_french_open" WHERE "player"='David Ferrer'; |
## Task
Generate a SQL query to answer the following question:
`What was david ferrer seeded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_french_open" (
"seed" real,
"rank" real,
"player" text,
"points" real,
"points_defending" text,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was david ferrer seeded?`:
```sql
|
SELECT "player" FROM "2010_french_open" WHERE "points"=1420; |
## Task
Generate a SQL query to answer the following question:
`What player had 1420 points coming in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_french_open" (
"seed" real,
"rank" real,
"player" text,
"points" real,
"points_defending" text,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player had 1420 points coming in?`:
```sql
|
SELECT COUNT("points_won") FROM "2010_french_open" WHERE "player"='Victor Hănescu'; |
## Task
Generate a SQL query to answer the following question:
`How many players named victor hănescu played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_french_open" (
"seed" real,
"rank" real,
"player" text,
"points" real,
"points_defending" text,
"points_won" real,
"new_points" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players named victor hănescu played?`:
```sql
|
SELECT MIN("kurdistan_democratic_party") FROM "seats" WHERE "total_kurdistan_list"=10; |
## Task
Generate a SQL query to answer the following question:
`Name the kurdistan democratic party for kurdistan list being 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seats" (
"governorate" text,
"kurdistan_democratic_party" real,
"patriotic_union_of_kurdistan" real,
"total_kurdistan_list" real,
"total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the kurdistan democratic party for kurdistan list being 10`:
```sql
|
SELECT MAX("total_kurdistan_list") FROM "seats" WHERE "governorate"='Diyala'; |
## Task
Generate a SQL query to answer the following question:
`Name the most kirdistan list for diyala`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seats" (
"governorate" text,
"kurdistan_democratic_party" real,
"patriotic_union_of_kurdistan" real,
"total_kurdistan_list" real,
"total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most kirdistan list for diyala`:
```sql
|
SELECT MIN("total_governorate_seats") FROM "seats" WHERE "governorate"='Hewler'; |
## Task
Generate a SQL query to answer the following question:
`Name the governorate seats for hewler`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seats" (
"governorate" text,
"kurdistan_democratic_party" real,
"patriotic_union_of_kurdistan" real,
"total_kurdistan_list" real,
"total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the governorate seats for hewler`:
```sql
|
SELECT MIN("total_kurdistan_list") FROM "seats"; |
## Task
Generate a SQL query to answer the following question:
`Name the least total kurdistan list`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seats" (
"governorate" text,
"kurdistan_democratic_party" real,
"patriotic_union_of_kurdistan" real,
"total_kurdistan_list" real,
"total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least total kurdistan list`:
```sql
|
SELECT MAX("total_governorate_seats") FROM "seats" WHERE "governorate"='Hewler'; |
## Task
Generate a SQL query to answer the following question:
`Name the most total governorate seats for hewler`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "seats" (
"governorate" text,
"kurdistan_democratic_party" real,
"patriotic_union_of_kurdistan" real,
"total_kurdistan_list" real,
"total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most total governorate seats for hewler`:
```sql
|
SELECT "2nd_runner_up" FROM "mutya_ng_pilipinas_asia_pacific_titlehol" WHERE "mutya_ng_pilipinas_asia_pacific"='Rochelle Romero Ong'; |
## Task
Generate a SQL query to answer the following question:
`Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mutya_ng_pilipinas_asia_pacific_titlehol" (
"year" real,
"mutya_ng_pilipinas_asia_pacific" text,
"1st_runner_up" text,
"2nd_runner_up" text,
"3rd_runner_up" text,
"4th_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong?`:
```sql
|
SELECT MAX("year") FROM "mutya_ng_pilipinas_asia_pacific_titlehol" WHERE "2nd_runner_up"='Mimilannie P. Lisondra'; |
## Task
Generate a SQL query to answer the following question:
`List the year that mimilannie p. lisondra was the 3rd place winner.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mutya_ng_pilipinas_asia_pacific_titlehol" (
"year" real,
"mutya_ng_pilipinas_asia_pacific" text,
"1st_runner_up" text,
"2nd_runner_up" text,
"3rd_runner_up" text,
"4th_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the year that mimilannie p. lisondra was the 3rd place winner.`:
```sql
|
SELECT COUNT("year") FROM "mutya_ng_pilipinas_asia_pacific_titlehol" WHERE "mutya_ng_pilipinas_asia_pacific"='Ritchie Ocampo'; |
## Task
Generate a SQL query to answer the following question:
`List the number of years where ritchie ocampo was the mutya ng pilipinas winner.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mutya_ng_pilipinas_asia_pacific_titlehol" (
"year" real,
"mutya_ng_pilipinas_asia_pacific" text,
"1st_runner_up" text,
"2nd_runner_up" text,
"3rd_runner_up" text,
"4th_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of years where ritchie ocampo was the mutya ng pilipinas winner.`:
```sql
|
SELECT COUNT("awardee_s") FROM "table1_24446718_7" WHERE "language"='English and Hindi'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of awardees for english and hindi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24446718_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of awardees for english and hindi`:
```sql
|
SELECT "name_of_award" FROM "table1_24446718_7" WHERE "awardee_s"='Zubeen Garg'; |
## Task
Generate a SQL query to answer the following question:
`Name the name of award for zubeen garg`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24446718_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name of award for zubeen garg`:
```sql
|
SELECT "awardee_s" FROM "table1_24446718_7" WHERE "name_of_award"='Best Editing'; |
## Task
Generate a SQL query to answer the following question:
`Name the awardee for best editing`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24446718_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the awardee for best editing`:
```sql
|
SELECT COUNT("awardee_s") FROM "table1_24446718_7" WHERE "name_of_award"='Best Cinematography'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of awardees for best cinematography`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24446718_7" (
"name_of_award" text,
"name_of_film" text,
"language" text,
"awardee_s" text,
"cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of awardees for best cinematography`:
```sql
|
SELECT MIN("f_laps") FROM "career_summary"; |
## Task
Generate a SQL query to answer the following question:
`Name the least flaps`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least flaps`:
```sql
|
SELECT MAX("poles") FROM "career_summary" WHERE "series"='Macau Grand Prix'; |
## Task
Generate a SQL query to answer the following question:
`Name th most poles for macau grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name th most poles for macau grand prix`:
```sql
|
SELECT COUNT("races") FROM "career_summary" WHERE "position"='15th'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of races for 15th position`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of races for 15th position`:
```sql
|
SELECT MAX("races") FROM "career_summary" WHERE "f_laps">2.0; |
## Task
Generate a SQL query to answer the following question:
`Name the most races for flaps larger than 2.0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most races for flaps larger than 2.0`:
```sql
|
SELECT COUNT("poles") FROM "career_summary" WHERE "position"='15th'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of poles for 15th position`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of poles for 15th position`:
```sql
|
SELECT "team" FROM "career_summary" WHERE "season"=2010; |
## Task
Generate a SQL query to answer the following question:
`Name the team for season 2010`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for season 2010`:
```sql
|
SELECT "original_air_date" FROM "table1_24466855_1" WHERE "written_by"='Jay J. Demopoulos'; |
## Task
Generate a SQL query to answer the following question:
`Name the air date for jay j. demopoulos`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24466855_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the air date for jay j. demopoulos`:
```sql
|
SELECT "game_site" FROM "table1_24481478_1" WHERE "attendance"=29753; |
## Task
Generate a SQL query to answer the following question:
`At which location did 29753 fans show up to watch the game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24481478_1" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `At which location did 29753 fans show up to watch the game?`:
```sql
|
SELECT "team_record" FROM "table1_24481478_1" WHERE "week"=7; |
## Task
Generate a SQL query to answer the following question:
`What was the game record during week 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24481478_1" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game record during week 7?`:
```sql
|
SELECT "kickoff" FROM "table1_24481478_1" WHERE "date"='Saturday, April 20'; |
## Task
Generate a SQL query to answer the following question:
`What time did the game start on saturday, april 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24481478_1" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What time did the game start on saturday, april 20?`:
```sql
|
SELECT MIN("week") FROM "table1_24481478_1" WHERE "team_record"='7–2'; |
## Task
Generate a SQL query to answer the following question:
`In which week was the team record 7–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24481478_1" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In which week was the team record 7–2?`:
```sql
|
SELECT MAX("attendance") FROM "table1_24481478_1" WHERE "opponent"='Raleigh-Durham Skyhawks'; |
## Task
Generate a SQL query to answer the following question:
`How man fans showed up to watch the game versus the raleigh-durham skyhawks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24481478_1" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How man fans showed up to watch the game versus the raleigh-durham skyhawks?`:
```sql
|
SELECT "disposable_usd_growth" FROM "methodology" WHERE "rank"=26; |
## Task
Generate a SQL query to answer the following question:
`If the rank is 26, what is the disposable USD growth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "methodology" (
"rank" real,
"country" text,
"disposable_usd_2011" real,
"disposable_usd_growth" real,
"compulsory_deduction" text,
"gross_usd_2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the rank is 26, what is the disposable USD growth?`:
```sql
|
SELECT "country" FROM "methodology" WHERE "compulsory_deduction"='29.3%'; |
## Task
Generate a SQL query to answer the following question:
`What country has a compulsory deduction of 29.3%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "methodology" (
"rank" real,
"country" text,
"disposable_usd_2011" real,
"disposable_usd_growth" real,
"compulsory_deduction" text,
"gross_usd_2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a compulsory deduction of 29.3%?`:
```sql
|
SELECT MAX("disposable_usd_growth") FROM "methodology" WHERE "country"='Australia'; |
## Task
Generate a SQL query to answer the following question:
`What is Australia's Disposable USD growth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "methodology" (
"rank" real,
"country" text,
"disposable_usd_2011" real,
"disposable_usd_growth" real,
"compulsory_deduction" text,
"gross_usd_2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Australia's Disposable USD growth?`:
```sql
|
SELECT MIN("disposable_usd_2011") FROM "methodology"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest disposable USD 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "methodology" (
"rank" real,
"country" text,
"disposable_usd_2011" real,
"disposable_usd_growth" real,
"compulsory_deduction" text,
"gross_usd_2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest disposable USD 2011?`:
```sql
|
SELECT MAX("minutes") FROM "all_time_statistics" WHERE "starts"=12; |
## Task
Generate a SQL query to answer the following question:
`Name the most minutes and starts being 12`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_statistics" (
"name" text,
"nationality" text,
"position" text,
"los_angeles_sol_career" text,
"appearances" real,
"starts" real,
"minutes" real,
"goals" real,
"assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most minutes and starts being 12`:
```sql
|
SELECT "position" FROM "all_time_statistics" WHERE "minutes"=132; |
## Task
Generate a SQL query to answer the following question:
`Name the position for 132 minutes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_statistics" (
"name" text,
"nationality" text,
"position" text,
"los_angeles_sol_career" text,
"appearances" real,
"starts" real,
"minutes" real,
"goals" real,
"assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for 132 minutes`:
```sql
|
SELECT "rank" FROM "bischofshofen" WHERE "name"='Thomas Morgenstern'; |
## Task
Generate a SQL query to answer the following question:
`Name the rank for thomas morgenstern`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bischofshofen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank for thomas morgenstern`:
```sql
|
SELECT COUNT("rank") FROM "bischofshofen" WHERE "nationality"='Switzerland'; |
## Task
Generate a SQL query to answer the following question:
`Name the rank for switzerland`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bischofshofen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank for switzerland`:
```sql
|
SELECT "points" FROM "bischofshofen" WHERE "nationality"='Switzerland'; |
## Task
Generate a SQL query to answer the following question:
`Name the points for switzerland`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bischofshofen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points for switzerland`:
```sql
|
SELECT "points" FROM "bischofshofen" WHERE "name"='Thomas Morgenstern'; |
## Task
Generate a SQL query to answer the following question:
`Name the points for thomas morgenstern`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bischofshofen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points for thomas morgenstern`:
```sql
|
SELECT COUNT("overall_fht_points") FROM "bischofshofen" WHERE "name"='Simon Ammann'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of overall fht points for simon ammann`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bischofshofen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of overall fht points for simon ammann`:
```sql
|
SELECT "appointed" FROM "current_judges" WHERE "name"='Jack Watson'; |
## Task
Generate a SQL query to answer the following question:
`When was jack watson appointed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_judges" (
"position" text,
"name" text,
"stationed_in" text,
"appointed" real,
"nominated_by" text,
"position_prior_to_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was jack watson appointed?`:
```sql
|
SELECT "launched" FROM "ships" WHERE "ship"='Carysfort'; |
## Task
Generate a SQL query to answer the following question:
`When was the Carysfort launched?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships" (
"ship" text,
"laid_down" text,
"builder" text,
"engine_builder" text,
"launched" text,
"completed" text,
"disposition" text,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the Carysfort launched?`:
```sql
|
SELECT "launched" FROM "ships" WHERE "disposition"='Stokers'' training ship'; |
## Task
Generate a SQL query to answer the following question:
`When was the stokers' training ship launched?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships" (
"ship" text,
"laid_down" text,
"builder" text,
"engine_builder" text,
"launched" text,
"completed" text,
"disposition" text,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the stokers' training ship launched?`:
```sql
|
SELECT COUNT("completed") FROM "ships" WHERE "ship"='Carysfort'; |
## Task
Generate a SQL query to answer the following question:
`How many ships were named Carysfort?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships" (
"ship" text,
"laid_down" text,
"builder" text,
"engine_builder" text,
"launched" text,
"completed" text,
"disposition" text,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many ships were named Carysfort?`:
```sql
|
SELECT "background" FROM "candidates" WHERE "result"='Fired in week 5'; |
## Task
Generate a SQL query to answer the following question:
`What is the background of the person fired in week 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the background of the person fired in week 5?`:
```sql
|
SELECT "result" FROM "candidates" WHERE "hometown"='Maylands, Western Australia'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the player from Maylands, Western Australia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the player from Maylands, Western Australia?`:
```sql
|
SELECT COUNT("age") FROM "candidates" WHERE "candidate"='Amy Cato'; |
## Task
Generate a SQL query to answer the following question:
`How many ages for player Amy Cato?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many ages for player Amy Cato?`:
```sql
|
SELECT "candidate" FROM "candidates" WHERE "hometown"='Maylands, Western Australia'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player from Maylands, Western Australia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player from Maylands, Western Australia?`:
```sql
|
SELECT COUNT("age") FROM "candidates" WHERE "result"='Fired in week 6'; |
## Task
Generate a SQL query to answer the following question:
`How many age figures for the player fired in week 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many age figures for the player fired in week 6?`:
```sql
|
SELECT "latitude" FROM "list_of_aftershocks" WHERE "time_utc"='18:19:36'; |
## Task
Generate a SQL query to answer the following question:
`What was the latitude that had a UTC time of 18:19:36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_aftershocks" (
"date_yyyy_mm_dd" text,
"time_utc" text,
"latitude" text,
"longitude" text,
"depth" text,
"magnitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latitude that had a UTC time of 18:19:36?`:
```sql
|
SELECT "depth" FROM "list_of_aftershocks" WHERE "time_utc"='18:00:22'; |
## Task
Generate a SQL query to answer the following question:
`What is the depth of the aftershock at 18:00:22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_aftershocks" (
"date_yyyy_mm_dd" text,
"time_utc" text,
"latitude" text,
"longitude" text,
"depth" text,
"magnitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the depth of the aftershock at 18:00:22?`:
```sql
|
SELECT "team" FROM "table1_24535095_2" WHERE "listed_owner_s"='Susan Bates'; |
## Task
Generate a SQL query to answer the following question:
`Name the team for susan bates`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24535095_2" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for susan bates`:
```sql
|
SELECT "truck_s" FROM "table1_24535095_2" WHERE "crew_chief"='Eric Phillips'; |
## Task
Generate a SQL query to answer the following question:
`Name the truck for eric phillips`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24535095_2" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the truck for eric phillips`:
```sql
|
SELECT "listed_owner_s" FROM "table1_24535095_2" WHERE "crew_chief"='Mike Garvey'; |
## Task
Generate a SQL query to answer the following question:
`Name the listed owner for mike garvey`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24535095_2" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the listed owner for mike garvey`:
```sql
|
SELECT MIN("num") FROM "table1_24535095_2" WHERE "listed_owner_s"='Pete Raymer'; |
## Task
Generate a SQL query to answer the following question:
`Name the least listed owner for pete raymer`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24535095_2" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least listed owner for pete raymer`:
```sql
|
SELECT "crew_chief" FROM "table1_24535095_2" WHERE "listed_owner_s"='Rhonda Thorson'; |
## Task
Generate a SQL query to answer the following question:
`Name the crew chief for rhonda thorson`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24535095_2" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the crew chief for rhonda thorson`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_2453243_3" WHERE "title"='\"Mean Teacher\"'; |
## Task
Generate a SQL query to answer the following question:
`What episode number in the series is "mean teacher"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2453243_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the series is "mean teacher"?`:
```sql
|
SELECT MIN("no_in_series") FROM "table1_2453243_3" WHERE "title"='\"Guitar\"'; |
## Task
Generate a SQL query to answer the following question:
`What episode number in the series is "guitar"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2453243_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the series is "guitar"?`:
```sql
|
SELECT MAX("production_code") FROM "table1_2453243_3" WHERE "no_in_season"=3; |
## Task
Generate a SQL query to answer the following question:
`What is the production code for episode 3 in the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2453243_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for episode 3 in the season?`:
```sql
|
SELECT "year_2007" FROM "statistics" WHERE "2008_q1"='668'; |
## Task
Generate a SQL query to answer the following question:
`Name the year 2007 for 668 2008-q1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"items" text,
"2008_q1" text,
"2008_q2" text,
"2008_q3" text,
"extrapol_08" text,
"year_2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year 2007 for 668 2008-q1`:
```sql
|
SELECT "year_2007" FROM "statistics" WHERE "2008_q1"='668'; |
## Task
Generate a SQL query to answer the following question:
`Name the year 2007 for 668 being 2008-q1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"items" text,
"2008_q1" text,
"2008_q2" text,
"2008_q3" text,
"extrapol_08" text,
"year_2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year 2007 for 668 being 2008-q1`:
```sql
|
SELECT MIN("match2") FROM "slogans_and_points"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest score of all games for match 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "slogans_and_points" (
"team" text,
"slogan" text,
"match1" real,
"match2" real,
"match3" real,
"match4" real,
"match5" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest score of all games for match 2?`:
```sql
|
SELECT MAX("match2") FROM "slogans_and_points" WHERE "match4"=0 AND "total"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the highest score for match 2 where the score for match 4 is 0 and the total score is 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "slogans_and_points" (
"team" text,
"slogan" text,
"match1" real,
"match2" real,
"match3" real,
"match4" real,
"match5" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest score for match 2 where the score for match 4 is 0 and the total score is 5?`:
```sql
|
SELECT "match1" FROM "slogans_and_points" WHERE "team"='Eastern Tigers'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for match 1 for the team Eastern Tigers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "slogans_and_points" (
"team" text,
"slogan" text,
"match1" real,
"match2" real,
"match3" real,
"match4" real,
"match5" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for match 1 for the team Eastern Tigers?`:
```sql
|
SELECT COUNT("socket") FROM "core_i3" WHERE "brand_name_list"='Core i3-2xx7M'; |
## Task
Generate a SQL query to answer the following question:
`How many sockets are listed that have a brand name of "Core i3-2xx7m"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "core_i3" (
"codename_main_article" text,
"brand_name_list" text,
"cores" real,
"l3_cache" text,
"socket" text,
"tdp" text,
"i_o_bus" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sockets are listed that have a brand name of "Core i3-2xx7m"?`:
```sql
|
SELECT "i_o_bus" FROM "core_i3" WHERE "brand_name_list"='Core i3-21xx'; |
## Task
Generate a SQL query to answer the following question:
`What is the i/o bus for the brand name Core i3-21xx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "core_i3" (
"codename_main_article" text,
"brand_name_list" text,
"cores" real,
"l3_cache" text,
"socket" text,
"tdp" text,
"i_o_bus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the i/o bus for the brand name Core i3-21xx?`:
```sql
|
SELECT "i_o_bus" FROM "core_i3" WHERE "brand_name_list"='Core i3-21xxT'; |
## Task
Generate a SQL query to answer the following question:
`What i/o buses are associated with the brand name Core i3-21xxt?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "core_i3" (
"codename_main_article" text,
"brand_name_list" text,
"cores" real,
"l3_cache" text,
"socket" text,
"tdp" text,
"i_o_bus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What i/o buses are associated with the brand name Core i3-21xxt?`:
```sql
|
SELECT "codename_main_article" FROM "core_i3" WHERE "brand_name_list"='Core i3-32xxT'; |
## Task
Generate a SQL query to answer the following question:
`What is the codename for the Core i3-32xxt?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "core_i3" (
"codename_main_article" text,
"brand_name_list" text,
"cores" real,
"l3_cache" text,
"socket" text,
"tdp" text,
"i_o_bus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the codename for the Core i3-32xxt?`:
```sql
|
SELECT "i_o_bus" FROM "core_i3" WHERE "socket"='LGA 1155' AND "codename_main_article"='Sandy Bridge (Desktop)' AND "brand_name_list"='Core i3-21xx'; |
## Task
Generate a SQL query to answer the following question:
`What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "core_i3" (
"codename_main_article" text,
"brand_name_list" text,
"cores" real,
"l3_cache" text,
"socket" text,
"tdp" text,
"i_o_bus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?`:
```sql
|
SELECT "socket" FROM "core_i3" WHERE "brand_name_list"='Core i3-3xx0M'; |
## Task
Generate a SQL query to answer the following question:
`What is the sockets associated with a brand name of Core i3-3xx0m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "core_i3" (
"codename_main_article" text,
"brand_name_list" text,
"cores" real,
"l3_cache" text,
"socket" text,
"tdp" text,
"i_o_bus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sockets associated with a brand name of Core i3-3xx0m?`:
```sql
|
SELECT "player" FROM "round_six" WHERE "cfl_team"='Calgary Stampeders'; |
## Task
Generate a SQL query to answer the following question:
`Who was drafted by the calgary stampeders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was drafted by the calgary stampeders?`:
```sql
|
SELECT COUNT("pick_num") FROM "round_six" WHERE "school"='SE Missouri State'; |
## Task
Generate a SQL query to answer the following question:
`Where was the player from se missouri state drafted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the player from se missouri state drafted?`:
```sql
|
SELECT "position" FROM "round_six" WHERE "school"='Kent State'; |
## Task
Generate a SQL query to answer the following question:
`What position does the player from kent state play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player from kent state play?`:
```sql
|
SELECT "school" FROM "round_six" WHERE "position"='RB'; |
## Task
Generate a SQL query to answer the following question:
`What school did the rb drafted attend?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did the rb drafted attend?`:
```sql
|
SELECT "pick_num" FROM "round_six" WHERE "school"='Western Ontario' AND "position"='OL'; |
## Task
Generate a SQL query to answer the following question:
`What numbered pick attended western ontario and is an OL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What numbered pick attended western ontario and is an OL?`:
```sql
|
SELECT COUNT("position") FROM "round_six" WHERE "school"='SE Missouri State'; |
## Task
Generate a SQL query to answer the following question:
`How many players attended SE missouri state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players attended SE missouri state?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.