output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "summary" FROM "performance_summary_in_indian_premier_le" WHERE "success_rate"='68.75%'; |
## Task
Generate a SQL query to answer the following question:
`Name the summary for the success rate for 68.75%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_summary_in_indian_premier_le" (
"year" real,
"matches" real,
"wins" real,
"losses" real,
"no_result" real,
"tied" real,
"success_rate" text,
"position" text,
"summary" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the summary for the success rate for 68.75%`:
```sql
|
SELECT MIN("tied") FROM "performance_summary_in_indian_premier_le"; |
## Task
Generate a SQL query to answer the following question:
`Name the least tied`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_summary_in_indian_premier_le" (
"year" real,
"matches" real,
"wins" real,
"losses" real,
"no_result" real,
"tied" real,
"success_rate" text,
"position" text,
"summary" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least tied`:
```sql
|
SELECT MIN("wins") FROM "performance_summary_in_indian_premier_le" WHERE "success_rate"='56.25%'; |
## Task
Generate a SQL query to answer the following question:
`Name the least wins of 56.25%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_summary_in_indian_premier_le" (
"year" real,
"matches" real,
"wins" real,
"losses" real,
"no_result" real,
"tied" real,
"success_rate" text,
"position" text,
"summary" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least wins of 56.25%`:
```sql
|
SELECT COUNT("no") FROM "locomotives" WHERE "name"='City of Birmingham'; |
## Task
Generate a SQL query to answer the following question:
`How many locomotives have a name of City of Birmingham`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"no" real,
"name" text,
"livery" text,
"locomotive_type" text,
"wheel_arrangement" text,
"builder" text,
"year_built" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many locomotives have a name of City of Birmingham`:
```sql
|
SELECT COUNT("name") FROM "locomotives" WHERE "livery"='Highland Railway green'; |
## Task
Generate a SQL query to answer the following question:
`How many locomotives have a livery that is highland railway green`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"no" real,
"name" text,
"livery" text,
"locomotive_type" text,
"wheel_arrangement" text,
"builder" text,
"year_built" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many locomotives have a livery that is highland railway green`:
```sql
|
SELECT "locomotive_type" FROM "locomotives" WHERE "status"='Static display'; |
## Task
Generate a SQL query to answer the following question:
`Which locomotive type has a status in static display`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"no" real,
"name" text,
"livery" text,
"locomotive_type" text,
"wheel_arrangement" text,
"builder" text,
"year_built" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which locomotive type has a status in static display`:
```sql
|
SELECT MAX("points_against") FROM "schedule" WHERE "attendance"=47678; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of points against when the attendance was 47678?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"result" text,
"record" text,
"opponent" text,
"points_for" real,
"points_against" real,
"first_downs" real,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of points against when the attendance was 47678?`:
```sql
|
SELECT COUNT("first_downs") FROM "schedule" WHERE "date"='October 23'; |
## Task
Generate a SQL query to answer the following question:
`What was the total number of first down on October 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"result" text,
"record" text,
"opponent" text,
"points_for" real,
"points_against" real,
"first_downs" real,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of first down on October 23?`:
```sql
|
SELECT MAX("series_num") FROM "table1_15838081_3" WHERE "writer_s"='Giula Sandler'; |
## Task
Generate a SQL query to answer the following question:
`Name the most series number for giula sandler`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15838081_3" (
"season_num" real,
"series_num" real,
"title" text,
"director_s" text,
"writer_s" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most series number for giula sandler`:
```sql
|
SELECT COUNT("season_num") FROM "table1_15838081_3" WHERE "writer_s"='Jeff Truman'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of season number for jeff truman`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15838081_3" (
"season_num" real,
"series_num" real,
"title" text,
"director_s" text,
"writer_s" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of season number for jeff truman`:
```sql
|
SELECT MIN("enrollment") FROM "institutions" WHERE "school"='Montana Tech of the University of Montana'; |
## Task
Generate a SQL query to answer the following question:
`Name the minimum enrollment for montana tech of the university of montana`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"school" text,
"location" text,
"control" text,
"type" text,
"enrollment" real,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the minimum enrollment for montana tech of the university of montana`:
```sql
|
SELECT "location" FROM "institutions" WHERE "control"='Private' AND "founded"=1870; |
## Task
Generate a SQL query to answer the following question:
`Name the location when control is private and founded is 1870`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"school" text,
"location" text,
"control" text,
"type" text,
"enrollment" real,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location when control is private and founded is 1870`:
```sql
|
SELECT "directed_by" FROM "table1_15861776_1" WHERE "tv_broadcast"='S03E19'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the TV broadcast s03e19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15861776_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"tv_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the TV broadcast s03e19?`:
```sql
|
SELECT "no_in_series" FROM "table1_15861776_1" WHERE "tv_broadcast"='S03E20'; |
## Task
Generate a SQL query to answer the following question:
`What episode in the series is TV broadcast s03e20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15861776_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"tv_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode in the series is TV broadcast s03e20?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "game"=31; |
## Task
Generate a SQL query to answer the following question:
`WHAT WAS THE SCORE FOR GAME 31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT WAS THE SCORE FOR GAME 31?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "date"='January 9'; |
## Task
Generate a SQL query to answer the following question:
`WHO DID THE RAPTORS PLAY ON JANUARY 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHO DID THE RAPTORS PLAY ON JANUARY 9?`:
```sql
|
SELECT "name" FROM "former_special_cities_now_core_or_design" WHERE "date_of_designation"='2002-04-01'; |
## Task
Generate a SQL query to answer the following question:
`Name thenames for 2002-04-01`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designation" text,
"date_of_reclassification" text,
"region" text,
"prefecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name thenames for 2002-04-01`:
```sql
|
SELECT "date_of_designation" FROM "former_special_cities_now_core_or_design" WHERE "name"='Kurume'; |
## Task
Generate a SQL query to answer the following question:
`Name all the date of designations for kurume`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designation" text,
"date_of_reclassification" text,
"region" text,
"prefecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name all the date of designations for kurume`:
```sql
|
SELECT COUNT("japanese") FROM "former_special_cities_now_core_or_design" WHERE "name"='Amagasaki'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of japanese for amagasaki`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designation" text,
"date_of_reclassification" text,
"region" text,
"prefecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of japanese for amagasaki`:
```sql
|
SELECT "region" FROM "former_special_cities_now_core_or_design" WHERE "prefecture"='Iwate'; |
## Task
Generate a SQL query to answer the following question:
`Name the region for iwate`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_special_cities_now_core_or_design" (
"name" text,
"japanese" text,
"date_of_designation" text,
"date_of_reclassification" text,
"region" text,
"prefecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the region for iwate`:
```sql
|
SELECT "written_by" FROM "table1_15861819_1" WHERE "title"='\"Head of State\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the "Head of State" episode?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15861819_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"tv_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the "Head of State" episode?`:
```sql
|
SELECT "written_by" FROM "table1_15861819_1" WHERE "title"='\"Head of State\"'; |
## Task
Generate a SQL query to answer the following question:
`The "Head of State" episode was authored by which person?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15861819_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"tv_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `The "Head of State" episode was authored by which person?`:
```sql
|
SELECT "directed_by" FROM "table1_15861819_1" WHERE "title"='\"Graduation Day: Class of 2105\"'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director of the episode "graduation day: class of 2105"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15861819_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"tv_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the episode "graduation day: class of 2105"?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "team"='Chicago'; |
## Task
Generate a SQL query to answer the following question:
`Who scored the most rebounds in the game against Chicago?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who scored the most rebounds in the game against Chicago?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "high_points"='Jalen Rose (32)'; |
## Task
Generate a SQL query to answer the following question:
`What were the dates of the games where Jalen Rose (32) had the highest points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the dates of the games where Jalen Rose (32) had the highest points?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='New Orleans'; |
## Task
Generate a SQL query to answer the following question:
`What is the location and total attendance for games played against New Orleans?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location and total attendance for games played against New Orleans?`:
```sql
|
SELECT COUNT("team") FROM "game_log" WHERE "date"='February 18'; |
## Task
Generate a SQL query to answer the following question:
`How many teams are listed for February 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams are listed for February 18?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "date"='February 24'; |
## Task
Generate a SQL query to answer the following question:
`What were the high rebounds on February 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the high rebounds on February 24?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "game"=51; |
## Task
Generate a SQL query to answer the following question:
`What was the score in game 51?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in game 51?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "team"='San Antonio'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when they played against San Antonio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when they played against San Antonio?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "game"=68; |
## Task
Generate a SQL query to answer the following question:
`Who was the high point scorer in game number 68?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the high point scorer in game number 68?`:
```sql
|
SELECT COUNT("high_assists") FROM "game_log" WHERE "team"='New Jersey'; |
## Task
Generate a SQL query to answer the following question:
`How many players had the most assists against New Jersey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players had the most assists against New Jersey?`:
```sql
|
SELECT MAX("game") FROM "game_log"; |
## Task
Generate a SQL query to answer the following question:
`How many games were played in the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played in the season?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "high_assists"='Rafer Alston (5)'; |
## Task
Generate a SQL query to answer the following question:
`What team had high assists Rafer Alston (5)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team had high assists Rafer Alston (5)?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "date"='January 3'; |
## Task
Generate a SQL query to answer the following question:
`Who has the most assists on January 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the most assists on January 3?`:
```sql
|
SELECT "rector" FROM "references" WHERE "mascot"='Phoxes'; |
## Task
Generate a SQL query to answer the following question:
`Who is the rector of the residence hall who's mascot is the phoxes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"residence_hall" text,
"sex" text,
"established" real,
"rector" text,
"campus" text,
"capacity" real,
"colors" text,
"mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rector of the residence hall who's mascot is the phoxes?`:
```sql
|
SELECT "mascot" FROM "references" WHERE "colors"='Green and Navy'; |
## Task
Generate a SQL query to answer the following question:
`What is the mascot with the colors green and navy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"residence_hall" text,
"sex" text,
"established" real,
"rector" text,
"campus" text,
"capacity" real,
"colors" text,
"mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mascot with the colors green and navy?`:
```sql
|
SELECT "residence_hall" FROM "references" WHERE "mascot"='Vermin'; |
## Task
Generate a SQL query to answer the following question:
`What residence hall has the vermin mascot?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"residence_hall" text,
"sex" text,
"established" real,
"rector" text,
"campus" text,
"capacity" real,
"colors" text,
"mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What residence hall has the vermin mascot?`:
```sql
|
SELECT "colors" FROM "references" WHERE "residence_hall"='Howard Hall'; |
## Task
Generate a SQL query to answer the following question:
`What are the colors of Howard Hall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"residence_hall" text,
"sex" text,
"established" real,
"rector" text,
"campus" text,
"capacity" real,
"colors" text,
"mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the colors of Howard Hall?`:
```sql
|
SELECT "content" FROM "national_terrestrial_and_sky_tg24" WHERE "television_service"='LA7'; |
## Task
Generate a SQL query to answer the following question:
`What is the content of la7 television service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_terrestrial_and_sky_tg24" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the content of la7 television service?`:
```sql
|
SELECT "content" FROM "national_terrestrial_and_sky_tg24" WHERE "television_service"='Rai 1'; |
## Task
Generate a SQL query to answer the following question:
`What is the content of the rai 1 television service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_terrestrial_and_sky_tg24" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the content of the rai 1 television service?`:
```sql
|
SELECT "package_option" FROM "national_terrestrial_and_sky_tg24" WHERE "television_service"='Rai 3'; |
## Task
Generate a SQL query to answer the following question:
`What are the package/options when the TV service is rai 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_terrestrial_and_sky_tg24" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the package/options when the TV service is rai 3?`:
```sql
|
SELECT "hdtv" FROM "national_terrestrial_and_sky_tg24" WHERE "television_service"='Italia 1'; |
## Task
Generate a SQL query to answer the following question:
`What high definition television options are available for Italia 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_terrestrial_and_sky_tg24" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What high definition television options are available for Italia 1?`:
```sql
|
SELECT COUNT("hdtv") FROM "shopping" WHERE "television_service"='Elite Shopping TV'; |
## Task
Generate a SQL query to answer the following question:
`How many values of HDTV apply when television service is elite shopping tv?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "shopping" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of HDTV apply when television service is elite shopping tv?`:
```sql
|
SELECT COUNT("country") FROM "shopping" WHERE "content"='arte'; |
## Task
Generate a SQL query to answer the following question:
`How many countries have content of arte?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "shopping" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries have content of arte?`:
```sql
|
SELECT COUNT("hdtv") FROM "shopping" WHERE "television_service"='La Sorgente Sat 1'; |
## Task
Generate a SQL query to answer the following question:
`How many values of HDTV correspond to television service of la sorgente sat 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "shopping" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of HDTV correspond to television service of la sorgente sat 1?`:
```sql
|
SELECT "hdtv" FROM "shopping" WHERE "n"=862; |
## Task
Generate a SQL query to answer the following question:
`What values of HDTV correspond to n° of 862?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "shopping" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What values of HDTV correspond to n° of 862?`:
```sql
|
SELECT "content" FROM "music" WHERE "package_option"='Sky Famiglia' AND "language"='Italian' AND "dar"='16:9' AND "television_service"='MTV Hits'; |
## Task
Generate a SQL query to answer the following question:
`Name the content for sky famiglia for italian and dar 16:9 for mtv hits`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "music" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the content for sky famiglia for italian and dar 16:9 for mtv hits`:
```sql
|
SELECT MIN("n") FROM "music" WHERE "television_service"='myDeejay'; |
## Task
Generate a SQL query to answer the following question:
`Name the least number for mydeejay`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "music" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least number for mydeejay`:
```sql
|
SELECT COUNT("package_option") FROM "music" WHERE "television_service"='Music Box Italia'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of package options for music box italia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "music" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of package options for music box italia`:
```sql
|
SELECT "hdtv" FROM "music" WHERE "package_option"='Sky Famiglia' AND "dar"='16:9' AND "television_service"='myDeejay'; |
## Task
Generate a SQL query to answer the following question:
`Name the hdtv for sky famiglia and dar 16:9 for mydeejay`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "music" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the hdtv for sky famiglia and dar 16:9 for mydeejay`:
```sql
|
SELECT "dar" FROM "music" WHERE "television_service"='MTV Rocks'; |
## Task
Generate a SQL query to answer the following question:
`Name the dar for mtv rocks`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "music" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the dar for mtv rocks`:
```sql
|
SELECT "ppv" FROM "music" WHERE "package_option"='Sky Famiglia' AND "dar"='16:9' AND "television_service"='MTV Dance'; |
## Task
Generate a SQL query to answer the following question:
`Name the ppv for sky famiglia and dar 16:9 for mtv dance`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "music" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ppv for sky famiglia and dar 16:9 for mtv dance`:
```sql
|
SELECT "dar" FROM "others" WHERE "television_service"='Telenord'; |
## Task
Generate a SQL query to answer the following question:
`Name the dar for telenord`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "others" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the dar for telenord`:
```sql
|
SELECT COUNT("hdtv") FROM "others" WHERE "television_service"='Eurotic TV'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of hdtv for eurotic tv`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "others" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of hdtv for eurotic tv`:
```sql
|
SELECT "dar" FROM "others" WHERE "n"=912; |
## Task
Generate a SQL query to answer the following question:
`Name the dar for 912`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "others" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the dar for 912`:
```sql
|
SELECT COUNT("content") FROM "conto_tv_teleitalia" WHERE "television_service"='R-LIGHT'; |
## Task
Generate a SQL query to answer the following question:
`How many times was something listed under content when the television was R-light?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conto_tv_teleitalia" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was something listed under content when the television was R-light?`:
```sql
|
SELECT "ppv" FROM "conto_tv_teleitalia" WHERE "television_service"='SCT'; |
## Task
Generate a SQL query to answer the following question:
`Was there PPV when the service was SCT?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conto_tv_teleitalia" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was there PPV when the service was SCT?`:
```sql
|
SELECT "hdtv" FROM "conto_tv_teleitalia" WHERE "television_service"='PRIVÈ'; |
## Task
Generate a SQL query to answer the following question:
`Was there HDTV when the service was Privè?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conto_tv_teleitalia" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was there HDTV when the service was Privè?`:
```sql
|
SELECT "language" FROM "conto_tv_teleitalia" WHERE "television_service"='ContoTV 5'; |
## Task
Generate a SQL query to answer the following question:
`In what laguage was Contotv 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conto_tv_teleitalia" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what laguage was Contotv 5?`:
```sql
|
SELECT "content" FROM "sport" WHERE "package_option"='Tutti i pacchetti + Sky HD'; |
## Task
Generate a SQL query to answer the following question:
`What's the content of the Tutti i Pacchetti + Sky HD package?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sport" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the content of the Tutti i Pacchetti + Sky HD package?`:
```sql
|
SELECT "package_option" FROM "sport" WHERE "television_service"='FOX Sports HD'; |
## Task
Generate a SQL query to answer the following question:
`What package offers Fox Sports HD?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sport" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What package offers Fox Sports HD?`:
```sql
|
SELECT "package_option" FROM "sport" WHERE "television_service"='Cartello promozionale Sky HD'; |
## Task
Generate a SQL query to answer the following question:
`What packages offer the Cartello Promozionale Sky HD service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sport" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What packages offer the Cartello Promozionale Sky HD service?`:
```sql
|
SELECT COUNT("content") FROM "sport" WHERE "package_option"='qualsiasi tranne Sky HD'; |
## Task
Generate a SQL query to answer the following question:
`How many different contents are offered by the Qualsiasi Tranne Sky HD package?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sport" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different contents are offered by the Qualsiasi Tranne Sky HD package?`:
```sql
|
SELECT "content" FROM "sport" WHERE "n"=204; |
## Task
Generate a SQL query to answer the following question:
`What's the content offered by the package number 204?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sport" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the content offered by the package number 204?`:
```sql
|
SELECT COUNT("ppv") FROM "cinema" WHERE "television_service"='Sky Cinema 1'; |
## Task
Generate a SQL query to answer the following question:
`How many PPV values are listed for when television service Sky Cinema 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cinema" (
"n" text,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many PPV values are listed for when television service Sky Cinema 1?`:
```sql
|
SELECT "dar" FROM "cinema" WHERE "n"='336' AND "language"='Italian'; |
## Task
Generate a SQL query to answer the following question:
`What DAR is available for n. 336 in Italian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cinema" (
"n" text,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What DAR is available for n. 336 in Italian?`:
```sql
|
SELECT "n" FROM "cinema" WHERE "package_option"='Sky Cinema' AND "content"='cinema' AND "television_service"='Sky Cinema +24'; |
## Task
Generate a SQL query to answer the following question:
`What are the values of n for cinema content provided by Sky Cinema +24 on its Sky Cinema package?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cinema" (
"n" text,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the values of n for cinema content provided by Sky Cinema +24 on its Sky Cinema package?`:
```sql
|
SELECT "language" FROM "cinema" WHERE "television_service"='Sky Cinema Passion' AND "n"='308'; |
## Task
Generate a SQL query to answer the following question:
`What language is Sky Cinema Passion television service n. 308?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cinema" (
"n" text,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language is Sky Cinema Passion television service n. 308?`:
```sql
|
SELECT "package_option" FROM "cinema" WHERE "content"='cinema' AND "n"='333'; |
## Task
Generate a SQL query to answer the following question:
`What package offers cinema content and is n. 333?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cinema" (
"n" text,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What package offers cinema content and is n. 333?`:
```sql
|
SELECT COUNT("dar") FROM "children" WHERE "television_service"='Disney Channel' AND "n"=613; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of dar for disney channel and number is 613`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "children" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of dar for disney channel and number is 613`:
```sql
|
SELECT "country" FROM "children" WHERE "dar"='16:9' AND "language"='Italian English' AND "television_service"='Disney XD +2'; |
## Task
Generate a SQL query to answer the following question:
`Name the country when dar is 16:9 for italian english for disney xd +2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "children" (
"n" real,
"television_service" text,
"country" text,
"language" text,
"content" text,
"dar" text,
"hdtv" text,
"ppv" text,
"package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country when dar is 16:9 for italian english for disney xd +2`:
```sql
|
SELECT "player" FROM "first_class_bowling_statistics" WHERE "best_bowling"='2/43'; |
## Task
Generate a SQL query to answer the following question:
`Who was the player with a bowling best of 2/43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_class_bowling_statistics" (
"player" text,
"matches" real,
"overs" text,
"maidens" real,
"runs" real,
"wickets" real,
"average" text,
"economy" text,
"5w" real,
"10w" real,
"best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player with a bowling best of 2/43?`:
```sql
|
SELECT MAX("maidens") FROM "first_class_bowling_statistics" WHERE "best_bowling"='1/13'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of maidens when the bowling best was 1/13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_class_bowling_statistics" (
"player" text,
"matches" real,
"overs" text,
"maidens" real,
"runs" real,
"wickets" real,
"average" text,
"economy" text,
"5w" real,
"10w" real,
"best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of maidens when the bowling best was 1/13?`:
```sql
|
SELECT "overs" FROM "first_class_bowling_statistics" WHERE "player"='Oliver Hannon-Dalby'; |
## Task
Generate a SQL query to answer the following question:
`How many overs did Oliver Hannon-Dalby have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_class_bowling_statistics" (
"player" text,
"matches" real,
"overs" text,
"maidens" real,
"runs" real,
"wickets" real,
"average" text,
"economy" text,
"5w" real,
"10w" real,
"best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many overs did Oliver Hannon-Dalby have?`:
```sql
|
SELECT MAX("5w") FROM "first_class_bowling_statistics" WHERE "average"='21.33'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of 5w when there was a 21.33 average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_class_bowling_statistics" (
"player" text,
"matches" real,
"overs" text,
"maidens" real,
"runs" real,
"wickets" real,
"average" text,
"economy" text,
"5w" real,
"10w" real,
"best_bowling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of 5w when there was a 21.33 average?`:
```sql
|
SELECT "country" FROM "freshwater_withdrawal_by_country_and_sec" WHERE "agricultural_use_m_3_p_yr_in_pct"='2040(93%)'; |
## Task
Generate a SQL query to answer the following question:
`What are the countries in which the agricultural use (m 3 /p/yr)(in %) is 2040(93%)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "freshwater_withdrawal_by_country_and_sec" (
"country" text,
"total_freshwater_withdrawal_km_3_yr" text,
"per_capita_withdrawal_m_3_p_yr" real,
"domestic_use_m_3_p_yr_in_pct" text,
"industrial_use_m_3_p_yr_in_pct" text,
"agricultural_use_m_3_p_yr_in_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the countries in which the agricultural use (m 3 /p/yr)(in %) is 2040(93%)?`:
```sql
|
SELECT COUNT("country") FROM "freshwater_withdrawal_by_country_and_sec" WHERE "per_capita_withdrawal_m_3_p_yr"=372; |
## Task
Generate a SQL query to answer the following question:
`How many countries had a per capita withdrawal (m 3 /p/yr) of 372?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "freshwater_withdrawal_by_country_and_sec" (
"country" text,
"total_freshwater_withdrawal_km_3_yr" text,
"per_capita_withdrawal_m_3_p_yr" real,
"domestic_use_m_3_p_yr_in_pct" text,
"industrial_use_m_3_p_yr_in_pct" text,
"agricultural_use_m_3_p_yr_in_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries had a per capita withdrawal (m 3 /p/yr) of 372?`:
```sql
|
SELECT COUNT("total_freshwater_withdrawal_km_3_yr") FROM "freshwater_withdrawal_by_country_and_sec" WHERE "agricultural_use_m_3_p_yr_in_pct"='428(62%)'; |
## Task
Generate a SQL query to answer the following question:
`How many countries had a total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 428(62%)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "freshwater_withdrawal_by_country_and_sec" (
"country" text,
"total_freshwater_withdrawal_km_3_yr" text,
"per_capita_withdrawal_m_3_p_yr" real,
"domestic_use_m_3_p_yr_in_pct" text,
"industrial_use_m_3_p_yr_in_pct" text,
"agricultural_use_m_3_p_yr_in_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries had a total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 428(62%)?`:
```sql
|
SELECT "total_freshwater_withdrawal_km_3_yr" FROM "freshwater_withdrawal_by_country_and_sec" WHERE "agricultural_use_m_3_p_yr_in_pct"='1029(96%)'; |
## Task
Generate a SQL query to answer the following question:
`In Pakistan, what was the total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 1029(96%)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "freshwater_withdrawal_by_country_and_sec" (
"country" text,
"total_freshwater_withdrawal_km_3_yr" text,
"per_capita_withdrawal_m_3_p_yr" real,
"domestic_use_m_3_p_yr_in_pct" text,
"industrial_use_m_3_p_yr_in_pct" text,
"agricultural_use_m_3_p_yr_in_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Pakistan, what was the total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 1029(96%)?`:
```sql
|
SELECT "country" FROM "freshwater_withdrawal_by_country_and_sec" WHERE "agricultural_use_m_3_p_yr_in_pct"='794(86%)'; |
## Task
Generate a SQL query to answer the following question:
`What was the country in which the agricultural use (m 3 /p/yr)(in %) was 794(86%)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "freshwater_withdrawal_by_country_and_sec" (
"country" text,
"total_freshwater_withdrawal_km_3_yr" text,
"per_capita_withdrawal_m_3_p_yr" real,
"domestic_use_m_3_p_yr_in_pct" text,
"industrial_use_m_3_p_yr_in_pct" text,
"agricultural_use_m_3_p_yr_in_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the country in which the agricultural use (m 3 /p/yr)(in %) was 794(86%)?`:
```sql
|
SELECT COUNT("country") FROM "freshwater_withdrawal_by_country_and_sec" WHERE "total_freshwater_withdrawal_km_3_yr"='169.39'; |
## Task
Generate a SQL query to answer the following question:
`In how many countries was the total freshwater withdrawal (km 3 /yr) 169.39?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "freshwater_withdrawal_by_country_and_sec" (
"country" text,
"total_freshwater_withdrawal_km_3_yr" text,
"per_capita_withdrawal_m_3_p_yr" real,
"domestic_use_m_3_p_yr_in_pct" text,
"industrial_use_m_3_p_yr_in_pct" text,
"agricultural_use_m_3_p_yr_in_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many countries was the total freshwater withdrawal (km 3 /yr) 169.39?`:
```sql
|
SELECT "date" FROM "european_tour_wins_7" WHERE "winning_score"='67-67-63=197'; |
## Task
Generate a SQL query to answer the following question:
`Name the date of winning score being 67-67-63=197`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date of winning score being 67-67-63=197`:
```sql
|
SELECT "runner_s_up" FROM "european_tour_wins_7" WHERE "tournament"='WGC-Accenture Match Play Championship'; |
## Task
Generate a SQL query to answer the following question:
`Name the runners up for when tournament is wgc-accenture match play championship`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the runners up for when tournament is wgc-accenture match play championship`:
```sql
|
SELECT COUNT("no") FROM "european_tour_wins_7" WHERE "date"='30 May 2010'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number when date is 30 may 2010`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number when date is 30 may 2010`:
```sql
|
SELECT "margin_of_victory" FROM "european_tour_wins_7" WHERE "date"='10 Jul 2011'; |
## Task
Generate a SQL query to answer the following question:
`Name th margin of victory when date is 10 jul 2011`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name th margin of victory when date is 10 jul 2011`:
```sql
|
SELECT MAX("no") FROM "european_tour_wins_7" WHERE "tournament"='Madrid Masters'; |
## Task
Generate a SQL query to answer the following question:
`Name the most number when tournament is madrid masters`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most number when tournament is madrid masters`:
```sql
|
SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_2" WHERE "episode_number"=5; |
## Task
Generate a SQL query to answer the following question:
`Name who knows the most about the guest host panels for episode 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name who knows the most about the guest host panels for episode 5`:
```sql
|
SELECT COUNT("who_knows_the_most_about_the_guest_host_panelists") FROM "series_2" WHERE "air_date"='20 January 2006'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of panelists for 20 january 2006 air date`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of panelists for 20 january 2006 air date`:
```sql
|
SELECT COUNT("musical_guest_song_performed") FROM "series_2" WHERE "who_knows_the_most_about_the_guest_host_panelists"='Jade Goody and Kenzie'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of music guests for jade goody and kenzie`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of music guests for jade goody and kenzie`:
```sql
|
SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_2" WHERE "guest_host"='Jamie Oliver'; |
## Task
Generate a SQL query to answer the following question:
`Name the panelists for guest host jamie oliver`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the panelists for guest host jamie oliver`:
```sql
|
SELECT MAX("episode_number") FROM "series_2" WHERE "air_date"='6 January 2006'; |
## Task
Generate a SQL query to answer the following question:
`Name the most episode numbers of 6 january 2006`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most episode numbers of 6 january 2006`:
```sql
|
SELECT "musical_guest_song_performed" FROM "series_3" WHERE "who_knows_the_most_about_the_guest_host_panelists"='Dominic Wood and Nikki Grahame'; |
## Task
Generate a SQL query to answer the following question:
`Who was the musical guest and what song was performed when Dominic Wood and Nikki Grahame were the panelists?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the musical guest and what song was performed when Dominic Wood and Nikki Grahame were the panelists?`:
```sql
|
SELECT "air_date" FROM "series_3" WHERE "who_knows_the_most_about_the_guest_host_panelists"='Gary Lucy and Susie Verrico'; |
## Task
Generate a SQL query to answer the following question:
`On what date were Gary Lucy and Susie Verrico the panelists.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date were Gary Lucy and Susie Verrico the panelists.`:
```sql
|
SELECT "air_date" FROM "series_3" WHERE "who_knows_the_most_about_the_guest_host_panelists"='Jeremy Edwards and Grace Adams-Short'; |
## Task
Generate a SQL query to answer the following question:
`List the date when Jeremy Edwards and Grace Adams-Short were the panelists.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the date when Jeremy Edwards and Grace Adams-Short were the panelists.`:
```sql
|
SELECT "musical_guest_song_performed" FROM "series_3" WHERE "who_knows_the_most_about_the_guest_host_panelists"='Matt Willis and Chantelle Houghton'; |
## Task
Generate a SQL query to answer the following question:
`Who was the musical guest and what song was performed when Matt Willis and Chantelle Houghton were the panelists?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the musical guest and what song was performed when Matt Willis and Chantelle Houghton were the panelists?`:
```sql
|
SELECT COUNT("validation") FROM "table1_15905399_1" WHERE "iin_ranges"='36'; |
## Task
Generate a SQL query to answer the following question:
`How many validations are listed for the iin range 36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15905399_1" (
"issuing_network" text,
"iin_ranges" text,
"active" text,
"length" text,
"validation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many validations are listed for the iin range 36?`:
```sql
|
SELECT "validation" FROM "table1_15905399_1" WHERE "iin_ranges"='5610, 560221-560225'; |
## Task
Generate a SQL query to answer the following question:
`What is the validation for iin ranges 5610, 560221-560225?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15905399_1" (
"issuing_network" text,
"iin_ranges" text,
"active" text,
"length" text,
"validation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the validation for iin ranges 5610, 560221-560225?`:
```sql
|
SELECT "length" FROM "table1_15905399_1" WHERE "iin_ranges"='51-55'; |
## Task
Generate a SQL query to answer the following question:
`What is the length for iin range 51-55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15905399_1" (
"issuing_network" text,
"iin_ranges" text,
"active" text,
"length" text,
"validation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length for iin range 51-55?`:
```sql
|
SELECT "active" FROM "table1_15905399_1" WHERE "iin_ranges"='4'; |
## Task
Generate a SQL query to answer the following question:
`Is the iin range 4 active?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15905399_1" (
"issuing_network" text,
"iin_ranges" text,
"active" text,
"length" text,
"validation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Is the iin range 4 active?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.