output
stringlengths 27
479
| instruction
stringlengths 407
1.39k
|
|---|---|
SELECT MAX("founded") FROM "table1_13456202_1" WHERE "school"='North College Hill High School';
|
## Task
Generate a SQL query to answer the following question:
`WHat year was north college hill high school founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13456202_1" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"mascot" text,
"division" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHat year was north college hill high school founded?`:
```sql
|
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='William B. Oliver (D) Unopposed';
|
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent when ran william b. oliver (d) unopposed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent when ran william b. oliver (d) unopposed?`:
```sql
|
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Henry E. Barbour (R) 52.1% Henry Hawson (D) 47.9%';
|
## Task
Generate a SQL query to answer the following question:
`Which party was the incumbent from when the cadidates were henry e. barbour (r) 52.1% henry hawson (d) 47.9%? Answer: Democratic`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party was the incumbent from when the cadidates were henry e. barbour (r) 52.1% henry hawson (d) 47.9%? Answer: Democratic`:
```sql
|
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='John I. Nolan (R) 87% Thomas F. Feeley (S) 13%';
|
## Task
Generate a SQL query to answer the following question:
`Which district was the race between john i. nolan (r) 87% thomas f. feeley (s) 13%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which district was the race between john i. nolan (r) 87% thomas f. feeley (s) 13%?`:
```sql
|
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='John A. Elston (R) 88.4% Luella Twining (S) 11.6%';
|
## Task
Generate a SQL query to answer the following question:
`What was the net seat gain in the race john a. elston (r) 88.4% luella twining (s) 11.6%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the net seat gain in the race john a. elston (r) 88.4% luella twining (s) 11.6%?`:
```sql
|
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Julius Kahn';
|
## Task
Generate a SQL query to answer the following question:
`Which District was the incumbent Julius Kahn from? Answer: California 4th district`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which District was the incumbent Julius Kahn from? Answer: California 4th district`:
```sql
|
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clarence F. Lea';
|
## Task
Generate a SQL query to answer the following question:
`What was the result of the election when Clarence F. Lea was the incumbent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the election when Clarence F. Lea was the incumbent?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "game"=20;
|
## Task
Generate a SQL query to answer the following question:
`Which team played in game 20?`
### 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 `Which team played in game 20?`:
```sql
|
SELECT "height_ft" FROM "tallest_under_construction_buildings" WHERE "name"='Leadenhall Building';
|
## Task
Generate a SQL query to answer the following question:
`what's the height (ft) with name being leadenhall building`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_under_construction_buildings" (
"rank" real,
"name" text,
"city" text,
"region" text,
"height_m" real,
"height_ft" real,
"floors" real,
"estimated_completion" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the height (ft) with name being leadenhall building`:
```sql
|
SELECT "height_ft" FROM "tallest_under_construction_buildings" WHERE "name"='52-54 Lime Street';
|
## Task
Generate a SQL query to answer the following question:
`what's the height (ft) with name being 52-54 lime street`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_under_construction_buildings" (
"rank" real,
"name" text,
"city" text,
"region" text,
"height_m" real,
"height_ft" real,
"floors" real,
"estimated_completion" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the height (ft) with name being 52-54 lime street`:
```sql
|
SELECT COUNT("city") FROM "tallest_under_construction_buildings" WHERE "name"='Providence Tower';
|
## Task
Generate a SQL query to answer the following question:
` how many city with name being providence tower`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_under_construction_buildings" (
"rank" real,
"name" text,
"city" text,
"region" text,
"height_m" real,
"height_ft" real,
"floors" real,
"estimated_completion" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many city with name being providence tower`:
```sql
|
SELECT "format" FROM "table1_134729_3" WHERE "call_sign"='K213CL';
|
## Task
Generate a SQL query to answer the following question:
`What station has the call number K213cl`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_134729_3" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What station has the call number K213cl`:
```sql
|
SELECT "target_city_market" FROM "table1_134729_3" WHERE "city_of_license"='Wessington Springs';
|
## Task
Generate a SQL query to answer the following question:
`What market is Wessington Springs in`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_134729_3" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What market is Wessington Springs in`:
```sql
|
SELECT "format" FROM "table1_134729_3" WHERE "owner"='Moody Bible Institute';
|
## Task
Generate a SQL query to answer the following question:
`What station owns Moody Bible Institute`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_134729_3" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What station owns Moody Bible Institute`:
```sql
|
SELECT COUNT("date") FROM "game_log" WHERE "score"='W 113–87';
|
## Task
Generate a SQL query to answer the following question:
` how many date with score being w 113–87`
### 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 date with score being w 113–87`:
```sql
|
SELECT "game" FROM "game_log" WHERE "record"='29–3';
|
## Task
Generate a SQL query to answer the following question:
`what's the game with record being 29–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 `what's the game with record being 29–3`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='Scottie Pippen (9)';
|
## Task
Generate a SQL query to answer the following question:
`who is the the high rebounds with high assbeingts being scottie pippen (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 is the the high rebounds with high assbeingts being scottie pippen (9)`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "score"='W 117–93';
|
## Task
Generate a SQL query to answer the following question:
`who is the the high points with score being w 117–93`
### 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 is the the high points with score being w 117–93`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='January 13';
|
## Task
Generate a SQL query to answer the following question:
`what's the record with date being january 13`
### 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's the record with date being january 13`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='January 21';
|
## Task
Generate a SQL query to answer the following question:
`what are all the record where date is january 21`
### 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 are all the record where date is january 21`:
```sql
|
SELECT "name" FROM "table1_134987_3" WHERE "city_of_license"='Rapid City' AND "format"='Adult Contemporary';
|
## Task
Generate a SQL query to answer the following question:
`What is the name of Rapid City's Adult Contemporary station?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_134987_3" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of Rapid City's Adult Contemporary station?`:
```sql
|
SELECT "target_city_market" FROM "table1_134987_3" WHERE "city_of_license"='Rapid City' AND "format"='Alternative';
|
## Task
Generate a SQL query to answer the following question:
`What are the market city/market(s) for Rapid City Alternative format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_134987_3" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the market city/market(s) for Rapid City Alternative format?`:
```sql
|
SELECT "frequency" FROM "table1_134987_3" WHERE "format"='Christian KAWZ-FM translator';
|
## Task
Generate a SQL query to answer the following question:
`What is the frequency for the Christian Kawz-fm Translator station?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_134987_3" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency for the Christian Kawz-fm Translator station?`:
```sql
|
SELECT "target_city_market" FROM "table1_134987_3" WHERE "frequency"='97.9 FM';
|
## Task
Generate a SQL query to answer the following question:
`What is the target market for the station on 97.9 fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_134987_3" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the target market for the station on 97.9 fm?`:
```sql
|
SELECT "frequency" FROM "table1_134987_3" WHERE "format"='Classic Country KRKI-FM booster';
|
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the Classic Country Krki-fm booster station?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_134987_3" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the Classic Country Krki-fm booster station?`:
```sql
|
SELECT "target_city_market" FROM "table1_134987_3" WHERE "call_sign"='KFXS';
|
## Task
Generate a SQL query to answer the following question:
`What is the target market of the station with call sign KFXS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_134987_3" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the target market of the station with call sign KFXS?`:
```sql
|
SELECT "season_finale" FROM "american_television_ratings" WHERE "viewers_in_millions"='10.29';
|
## Task
Generate a SQL query to answer the following question:
`What year did the season finale have a total of 10.29 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_television_ratings" (
"season" text,
"timeslot" text,
"season_premiere" text,
"season_finale" text,
"episodes" real,
"tv_season" text,
"ranking" text,
"viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the season finale have a total of 10.29 million viewers?`:
```sql
|
SELECT "tv_season" FROM "american_television_ratings" WHERE "season"='3rd';
|
## Task
Generate a SQL query to answer the following question:
`In what TV season did the 3rd season air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_television_ratings" (
"season" text,
"timeslot" text,
"season_premiere" text,
"season_finale" text,
"episodes" real,
"tv_season" text,
"ranking" text,
"viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what TV season did the 3rd season air?`:
```sql
|
SELECT COUNT("ranking") FROM "american_television_ratings" WHERE "season"='5th';
|
## Task
Generate a SQL query to answer the following question:
`How many rankings did the 5th season have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_television_ratings" (
"season" text,
"timeslot" text,
"season_premiere" text,
"season_finale" text,
"episodes" real,
"tv_season" text,
"ranking" text,
"viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rankings did the 5th season have?`:
```sql
|
SELECT COUNT("season_finale") FROM "american_television_ratings" WHERE "season"='2nd';
|
## Task
Generate a SQL query to answer the following question:
`How many times did the 2nd season have a finale?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_television_ratings" (
"season" text,
"timeslot" text,
"season_premiere" text,
"season_finale" text,
"episodes" real,
"tv_season" text,
"ranking" text,
"viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did the 2nd season have a finale?`:
```sql
|
SELECT COUNT("county") FROM "nevada_places_ranked_by_per_capita_incom" WHERE "per_capita_income"='$20,101';
|
## Task
Generate a SQL query to answer the following question:
` how many county with per capita income being $20,101`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nevada_places_ranked_by_per_capita_incom" (
"rank" real,
"place" text,
"county" text,
"per_capita_income" text,
"median_house_hold_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many county with per capita income being $20,101`:
```sql
|
SELECT "place" FROM "nevada_places_ranked_by_per_capita_incom" WHERE "per_capita_income"='$14,793';
|
## Task
Generate a SQL query to answer the following question:
`who is the the place with per capita income being $14,793`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nevada_places_ranked_by_per_capita_incom" (
"rank" real,
"place" text,
"county" text,
"per_capita_income" text,
"median_house_hold_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the place with per capita income being $14,793`:
```sql
|
SELECT "number_of_households" FROM "nevada_places_ranked_by_per_capita_incom" WHERE "per_capita_income"='$16,820';
|
## Task
Generate a SQL query to answer the following question:
`what's the number of households with per capita income being $16,820`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nevada_places_ranked_by_per_capita_incom" (
"rank" real,
"place" text,
"county" text,
"per_capita_income" text,
"median_house_hold_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the number of households with per capita income being $16,820`:
```sql
|
SELECT MAX("rank") FROM "nevada_places_ranked_by_per_capita_incom" WHERE "per_capita_income"='$17,013';
|
## Task
Generate a SQL query to answer the following question:
`what is the maximum rank with per capita income being $17,013`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nevada_places_ranked_by_per_capita_incom" (
"rank" real,
"place" text,
"county" text,
"per_capita_income" text,
"median_house_hold_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum rank with per capita income being $17,013`:
```sql
|
SELECT "barrier" FROM "race_starters" WHERE "jockey"='Darryll Holland';
|
## Task
Generate a SQL query to answer the following question:
`How old is Darryll Holland's horse`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_starters" (
"saddle_cloth" real,
"horse" text,
"trainer" text,
"jockey" text,
"weight_kg" text,
"barrier" real,
"placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How old is Darryll Holland's horse`:
```sql
|
SELECT COUNT("trainer") FROM "race_starters" WHERE "jockey"='N Rawiller';
|
## Task
Generate a SQL query to answer the following question:
`how many people work with N Rawiller`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_starters" (
"saddle_cloth" real,
"horse" text,
"trainer" text,
"jockey" text,
"weight_kg" text,
"barrier" real,
"placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many people work with N Rawiller`:
```sql
|
SELECT MAX("barrier") FROM "race_starters" WHERE "trainer"='Daniel Morton';
|
## Task
Generate a SQL query to answer the following question:
`How old is Daniel Morton`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_starters" (
"saddle_cloth" real,
"horse" text,
"trainer" text,
"jockey" text,
"weight_kg" text,
"barrier" real,
"placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How old is Daniel Morton`:
```sql
|
SELECT COUNT("serial_branch") FROM "d_r" WHERE "radio_electrical"='REA-IV';
|
## Task
Generate a SQL query to answer the following question:
`How many serial branches have radio electrial = rea-iv?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d_r" (
"serial_branch" real,
"seaman" text,
"mechanical" text,
"secretariat" text,
"supply" text,
"electrical" text,
"radio_electrical" text,
"regulating" text,
"medical" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many serial branches have radio electrial = rea-iv?`:
```sql
|
SELECT "radio_electrical" FROM "d_r" WHERE "secretariat"='WTR I';
|
## Task
Generate a SQL query to answer the following question:
`What are radio electricals when secretariat is wtr i?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d_r" (
"serial_branch" real,
"seaman" text,
"mechanical" text,
"secretariat" text,
"supply" text,
"electrical" text,
"radio_electrical" text,
"regulating" text,
"medical" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are radio electricals when secretariat is wtr i?`:
```sql
|
SELECT "electrical" FROM "d_r" WHERE "secretariat"='PO(W)';
|
## Task
Generate a SQL query to answer the following question:
`What are electricals where secretariat is po(w)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d_r" (
"serial_branch" real,
"seaman" text,
"mechanical" text,
"secretariat" text,
"supply" text,
"electrical" text,
"radio_electrical" text,
"regulating" text,
"medical" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are electricals where secretariat is po(w)?`:
```sql
|
SELECT "mechanical" FROM "d_r" WHERE "regulating"='LPM';
|
## Task
Generate a SQL query to answer the following question:
`What mechanical has lpm regulation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d_r" (
"serial_branch" real,
"seaman" text,
"mechanical" text,
"secretariat" text,
"supply" text,
"electrical" text,
"radio_electrical" text,
"regulating" text,
"medical" text
);
### SQL
Given the database schema, here is the SQL query that answers `What mechanical has lpm regulation?`:
```sql
|
SELECT COUNT("serial_branch") FROM "d_r" WHERE "radio_electrical"='Hon S Lt(R)';
|
## Task
Generate a SQL query to answer the following question:
`How many branches have radio electrical=hon s lt(r)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d_r" (
"serial_branch" real,
"seaman" text,
"mechanical" text,
"secretariat" text,
"supply" text,
"electrical" text,
"radio_electrical" text,
"regulating" text,
"medical" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many branches have radio electrical=hon s lt(r)?`:
```sql
|
SELECT "regulating" FROM "d_r" WHERE "radio_electrical"='LREN';
|
## Task
Generate a SQL query to answer the following question:
`Who regulates radio electrical = lren?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "d_r" (
"serial_branch" real,
"seaman" text,
"mechanical" text,
"secretariat" text,
"supply" text,
"electrical" text,
"radio_electrical" text,
"regulating" text,
"medical" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who regulates radio electrical = lren?`:
```sql
|
SELECT MAX("series_number") FROM "season_two_1999_2000" WHERE "episode_title"='Things That Fly';
|
## Task
Generate a SQL query to answer the following question:
`What number episode in the series is the episode "things that fly"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_two_1999_2000" (
"series_number" real,
"season_number" real,
"episode_title" text,
"premiere_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number episode in the series is the episode "things that fly"?`:
```sql
|
SELECT MIN("production_code") FROM "season_two_1999_2000" WHERE "season_number"=8;
|
## Task
Generate a SQL query to answer the following question:
`What is the production code for season episode 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_two_1999_2000" (
"series_number" real,
"season_number" real,
"episode_title" text,
"premiere_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for season episode 8?`:
```sql
|
SELECT COUNT("episode_title") FROM "season_two_1999_2000" WHERE "series_number"=35;
|
## Task
Generate a SQL query to answer the following question:
`How many episodes have a series number of 35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_two_1999_2000" (
"series_number" real,
"season_number" real,
"episode_title" text,
"premiere_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have a series number of 35?`:
```sql
|
SELECT MIN("series_number") FROM "season_two_1999_2000" WHERE "season_number"=24;
|
## Task
Generate a SQL query to answer the following question:
`What is the series number for season episode 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_two_1999_2000" (
"series_number" real,
"season_number" real,
"episode_title" text,
"premiere_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number for season episode 24?`:
```sql
|
SELECT COUNT("fastest_lap") FROM "race_results" WHERE "rnd"=6;
|
## Task
Generate a SQL query to answer the following question:
`how many have times of 6`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many have times of 6`:
```sql
|
SELECT "winning_team" FROM "race_results" WHERE "winning_driver"='Ryan Briscoe' AND "fastest_lap"='Tomas Scheckter';
|
## Task
Generate a SQL query to answer the following question:
`which brand have drivers who won with the names of ryan briscoe and tomas scheckter`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `which brand have drivers who won with the names of ryan briscoe and tomas scheckter`:
```sql
|
SELECT "fastest_lap" FROM "race_results" WHERE "most_laps_led"='Scott Dixon' AND "pole_position"='Graham Rahal';
|
## Task
Generate a SQL query to answer the following question:
`who else along with scott dixon and graham rahal drove with the most speed`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `who else along with scott dixon and graham rahal drove with the most speed`:
```sql
|
SELECT COUNT("rnd") FROM "race_results" WHERE "race"='Kansas';
|
## Task
Generate a SQL query to answer the following question:
`tell the number of times where kansas was the location`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell the number of times where kansas was the location`:
```sql
|
SELECT "channel_tv_dt" FROM "table1_1353096_2" WHERE "city_of_license_market"='Boston';
|
## Task
Generate a SQL query to answer the following question:
`What TV channel had a license from Boston?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1353096_2" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"years_owned" text,
"current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What TV channel had a license from Boston?`:
```sql
|
SELECT "station" FROM "table1_1353096_2" WHERE "city_of_license_market"='Fort Collins, Colorado';
|
## Task
Generate a SQL query to answer the following question:
`Which station has a license in Fort Collins, Colorado?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1353096_2" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"years_owned" text,
"current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which station has a license in Fort Collins, Colorado?`:
```sql
|
SELECT "current_status" FROM "table1_1353096_2" WHERE "station"='KDAF **';
|
## Task
Generate a SQL query to answer the following question:
`What is the current status of the KDAF ** Station?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1353096_2" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"years_owned" text,
"current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current status of the KDAF ** Station?`:
```sql
|
SELECT COUNT("current_status") FROM "table1_1353096_2" WHERE "station"='WJW-TV ++';
|
## Task
Generate a SQL query to answer the following question:
`How many entries are listed under "current status" for the WJW-TV ++ Station?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1353096_2" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"years_owned" text,
"current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are listed under "current status" for the WJW-TV ++ Station?`:
```sql
|
SELECT COUNT("station") FROM "stations" WHERE "primary_affiliation"='Fox' AND "owned_since"='1986';
|
## Task
Generate a SQL query to answer the following question:
`How many stations have fox as the primary affiliation and have been owned since 1986?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"owned_since" text,
"primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stations have fox as the primary affiliation and have been owned since 1986?`:
```sql
|
SELECT "channel_tv_dt" FROM "stations" WHERE "station"='KDFW ++';
|
## Task
Generate a SQL query to answer the following question:
`What channel has station kdfw ++?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"owned_since" text,
"primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What channel has station kdfw ++?`:
```sql
|
SELECT "city_of_license_market" FROM "stations" WHERE "channel_tv_dt"='25 (31)';
|
## Task
Generate a SQL query to answer the following question:
`What city has channel tv (dt) 25 (31)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"owned_since" text,
"primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city has channel tv (dt) 25 (31)?`:
```sql
|
SELECT COUNT("channel_tv_dt") FROM "stations" WHERE "city_of_license_market"='Austin, Texas';
|
## Task
Generate a SQL query to answer the following question:
`How many channel tv (dt)s are in austin, texas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"owned_since" text,
"primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many channel tv (dt)s are in austin, texas?`:
```sql
|
SELECT "owned_since" FROM "stations" WHERE "channel_tv_dt"='10 (10)';
|
## Task
Generate a SQL query to answer the following question:
`When was 10 (10) bought?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"owned_since" text,
"primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was 10 (10) bought?`:
```sql
|
SELECT "umpires" FROM "west_australian_football_league_2001" WHERE "simpson_medal"='Paul Medhurst (C)';
|
## Task
Generate a SQL query to answer the following question:
`Who were the umpires when Paul Medhurst (C) won the Simpson Medal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_australian_football_league_2001" (
"season" real,
"premiers" text,
"runners_up" text,
"score" text,
"captain" text,
"coach" text,
"simpson_medal" text,
"venue" text,
"attendance" real,
"umpires" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the umpires when Paul Medhurst (C) won the Simpson Medal?`:
```sql
|
SELECT "umpires" FROM "west_australian_football_league_2001" WHERE "simpson_medal"='Paul Vines (S)';
|
## Task
Generate a SQL query to answer the following question:
`Who were the umpires when Paul Vines (S) won the Simpson Medal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_australian_football_league_2001" (
"season" real,
"premiers" text,
"runners_up" text,
"score" text,
"captain" text,
"coach" text,
"simpson_medal" text,
"venue" text,
"attendance" real,
"umpires" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the umpires when Paul Vines (S) won the Simpson Medal?`:
```sql
|
SELECT "venue" FROM "west_australian_football_league_2001" WHERE "captain"='Luke Blackwell';
|
## Task
Generate a SQL query to answer the following question:
`Which venue did Luke Blackwell serve as captain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_australian_football_league_2001" (
"season" real,
"premiers" text,
"runners_up" text,
"score" text,
"captain" text,
"coach" text,
"simpson_medal" text,
"venue" text,
"attendance" real,
"umpires" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue did Luke Blackwell serve as captain?`:
```sql
|
SELECT MIN("180s") FROM "women_s_statistics";
|
## Task
Generate a SQL query to answer the following question:
`what's the minimum 180s value`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the minimum 180s value`:
```sql
|
SELECT "sets_won" FROM "women_s_statistics" WHERE "140"=16;
|
## Task
Generate a SQL query to answer the following question:
`what's the sets won with 140+ being 16`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the sets won with 140+ being 16`:
```sql
|
SELECT "new_channel_s" FROM "returning_this_year_after_a_break_of_one" WHERE "programme"='Gladiators';
|
## Task
Generate a SQL query to answer the following question:
`What channel number is Gladiators on`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "returning_this_year_after_a_break_of_one" (
"programme" text,
"date_s_of_original_removal" text,
"original_channel" text,
"date_s_of_return" text,
"new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What channel number is Gladiators on`:
```sql
|
SELECT "programme" FROM "returning_this_year_after_a_break_of_one" WHERE "date_s_of_return"='July 2008';
|
## Task
Generate a SQL query to answer the following question:
`What show is coming back on in July 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "returning_this_year_after_a_break_of_one" (
"programme" text,
"date_s_of_original_removal" text,
"original_channel" text,
"date_s_of_return" text,
"new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What show is coming back on in July 2008`:
```sql
|
SELECT "mens_doubles" FROM "previous_winners" WHERE "womens_singles"='Wang Shixian';
|
## Task
Generate a SQL query to answer the following question:
`Who are the mens doubles and womens singles is wang shixian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the mens doubles and womens singles is wang shixian?`:
```sql
|
SELECT "mens_singles" FROM "previous_winners" WHERE "womens_singles"='Wang Shixian';
|
## Task
Generate a SQL query to answer the following question:
`Who is the mens singles and womens singlses is wang shixian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the mens singles and womens singlses is wang shixian?`:
```sql
|
SELECT "mens_doubles" FROM "previous_winners" WHERE "mens_singles"='Lee Hyun-il';
|
## Task
Generate a SQL query to answer the following question:
`Who are the mens doubles and and mens singles is lee hyun-il?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the mens doubles and and mens singles is lee hyun-il?`:
```sql
|
SELECT "mens_singles" FROM "previous_winners" WHERE "womens_singles"='Sun Yu';
|
## Task
Generate a SQL query to answer the following question:
`Who are the mens singles and womens singles with sun yu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the mens singles and womens singles with sun yu?`:
```sql
|
SELECT MAX("competition_finish") FROM "average_chart" WHERE "average"='31.1';
|
## Task
Generate a SQL query to answer the following question:
`what is the highest number where people got done at 31.1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_chart" (
"rank_by_average" real,
"competition_finish" real,
"couple" text,
"total" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest number where people got done at 31.1`:
```sql
|
SELECT "couple" FROM "average_chart" WHERE "number_of_dances"=11 AND "competition_finish">2.0;
|
## Task
Generate a SQL query to answer the following question:
`who danced 11 and finished at more than a 2.0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_chart" (
"rank_by_average" real,
"competition_finish" real,
"couple" text,
"total" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `who danced 11 and finished at more than a 2.0`:
```sql
|
SELECT "average" FROM "average_chart" WHERE "number_of_dances"=1;
|
## Task
Generate a SQL query to answer the following question:
`tell the competitions where the mean is 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_chart" (
"rank_by_average" real,
"competition_finish" real,
"couple" text,
"total" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell the competitions where the mean is 1`:
```sql
|
SELECT "rank_by_average" FROM "average_chart" WHERE "number_of_dances"=7;
|
## Task
Generate a SQL query to answer the following question:
`tell the mean of the times competition for the 7 jigs`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_chart" (
"rank_by_average" real,
"competition_finish" real,
"couple" text,
"total" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell the mean of the times competition for the 7 jigs`:
```sql
|
SELECT COUNT("number_of_dances") FROM "average_chart" WHERE "average"='34.0';
|
## Task
Generate a SQL query to answer the following question:
`how many turns were completed to make a mean of 34.0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_chart" (
"rank_by_average" real,
"competition_finish" real,
"couple" text,
"total" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many turns were completed to make a mean of 34.0`:
```sql
|
SELECT "gender" FROM "table_a_fik_specifications_for_competiti" WHERE "junior_high_school_12_15_yrs"='24mm';
|
## Task
Generate a SQL query to answer the following question:
`What is the gender of the junior high school is 24mm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_a_fik_specifications_for_competiti" (
"specification" text,
"gender" text,
"junior_high_school_12_15_yrs" text,
"senior_high_school_15_18_yrs" text,
"university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender of the junior high school is 24mm?`:
```sql
|
SELECT "university_students_and_adults_18yrs" FROM "table_a_fik_specifications_for_competiti" WHERE "senior_high_school_15_18_yrs"='26mm';
|
## Task
Generate a SQL query to answer the following question:
`What amount of the university students and adults ehre the the senior high school is 26mm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_a_fik_specifications_for_competiti" (
"specification" text,
"gender" text,
"junior_high_school_12_15_yrs" text,
"senior_high_school_15_18_yrs" text,
"university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount of the university students and adults ehre the the senior high school is 26mm?`:
```sql
|
SELECT "senior_high_school_15_18_yrs" FROM "table_a_fik_specifications_for_competiti" WHERE "junior_high_school_12_15_yrs"='114cm';
|
## Task
Generate a SQL query to answer the following question:
`What amount of senior high school where junior high school is 114cm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_a_fik_specifications_for_competiti" (
"specification" text,
"gender" text,
"junior_high_school_12_15_yrs" text,
"senior_high_school_15_18_yrs" text,
"university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount of senior high school where junior high school is 114cm?`:
```sql
|
SELECT "specification" FROM "table_a_fik_specifications_for_competiti" WHERE "senior_high_school_15_18_yrs"='25mm';
|
## Task
Generate a SQL query to answer the following question:
`What is the specification where senior high school is 25mm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_a_fik_specifications_for_competiti" (
"specification" text,
"gender" text,
"junior_high_school_12_15_yrs" text,
"senior_high_school_15_18_yrs" text,
"university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the specification where senior high school is 25mm?`:
```sql
|
SELECT "junior_high_school_12_15_yrs" FROM "table_a_fik_specifications_for_competiti" WHERE "gender"='Male' AND "specification"='Minimum diameter of sakigawa';
|
## Task
Generate a SQL query to answer the following question:
`What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_a_fik_specifications_for_competiti" (
"specification" text,
"gender" text,
"junior_high_school_12_15_yrs" text,
"senior_high_school_15_18_yrs" text,
"university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa?`:
```sql
|
SELECT "gender" FROM "table_a_fik_specifications_for_competiti" WHERE "senior_high_school_15_18_yrs"='26mm';
|
## Task
Generate a SQL query to answer the following question:
`What is the gender of senior high school 26mm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_a_fik_specifications_for_competiti" (
"specification" text,
"gender" text,
"junior_high_school_12_15_yrs" text,
"senior_high_school_15_18_yrs" text,
"university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender of senior high school 26mm?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='1-2';
|
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the team was 1-2?`
### 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 of the game when the team was 1-2?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "team"='Charlotte';
|
## Task
Generate a SQL query to answer the following question:
`Who had the high assists against charlotte?`
### 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 had the high assists against charlotte?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "team"='Utah';
|
## Task
Generate a SQL query to answer the following question:
`How many leading scorers were there in the game against Utah?`
### 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 leading scorers were there in the game against Utah?`:
```sql
|
SELECT COUNT("location_attendance") FROM "game_log" WHERE "team"='Charlotte';
|
## Task
Generate a SQL query to answer the following question:
` how many location attendance with team being charlotte`
### 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 location attendance with team being charlotte`:
```sql
|
SELECT "game" FROM "game_log" WHERE "date"='March 7';
|
## Task
Generate a SQL query to answer the following question:
`what's the game with date being march 7`
### 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's the game with date being march 7`:
```sql
|
SELECT "date" FROM "game_log" WHERE "game"=72;
|
## Task
Generate a SQL query to answer the following question:
`what's the date with game being 72`
### 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's the date with game being 72`:
```sql
|
SELECT COUNT("high_assists") FROM "game_log" WHERE "score"='L 90–98 (OT)';
|
## Task
Generate a SQL query to answer the following question:
` how many high assbeingts with score being l 90–98 (ot)`
### 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 high assbeingts with score being l 90–98 (ot)`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "team"='Vancouver';
|
## Task
Generate a SQL query to answer the following question:
`who is the the high rebounds with team being vancouver`
### 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 is the the high rebounds with team being vancouver`:
```sql
|
SELECT COUNT("record") FROM "game_log" WHERE "date"='April 12';
|
## Task
Generate a SQL query to answer the following question:
`How many pairs of numbers are under record on April 12?`
### 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 pairs of numbers are under record on April 12?`:
```sql
|
SELECT COUNT("won") FROM "2009_2010_table" WHERE "tries_for"='92';
|
## Task
Generate a SQL query to answer the following question:
`Name total number of won for tries for 92`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name total number of won for tries for 92`:
```sql
|
SELECT "club" FROM "2009_2010_table" WHERE "tries_for"='83';
|
## Task
Generate a SQL query to answer the following question:
`Name the club when tries for is 83`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the club when tries for is 83`:
```sql
|
SELECT "try_bonus" FROM "2009_2010_table" WHERE "club"='Kenfig Hill RFC';
|
## Task
Generate a SQL query to answer the following question:
`Name the try bonus for kenfig hill rfc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the try bonus for kenfig hill rfc`:
```sql
|
SELECT "tries_against" FROM "2009_2010_table" WHERE "played"='22' AND "points_against"='183';
|
## Task
Generate a SQL query to answer the following question:
`Name the tries against for played 22 and points against of 183`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tries against for played 22 and points against of 183`:
```sql
|
SELECT COUNT("points_for") FROM "2009_2010_table" WHERE "try_bonus"='10';
|
## Task
Generate a SQL query to answer the following question:
`Name the total number of points for when try bonus is 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of points for when try bonus is 10`:
```sql
|
SELECT COUNT("won") FROM "2009_2010_table" WHERE "club"='Maesteg Harlequins RFC';
|
## Task
Generate a SQL query to answer the following question:
`Name the number of won for maesteg harlequins rfc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of won for maesteg harlequins rfc`:
```sql
|
SELECT "played" FROM "2009_2010_table" WHERE "lost"='8';
|
## Task
Generate a SQL query to answer the following question:
`What amount had all played that lost were 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount had all played that lost were 8?`:
```sql
|
SELECT "club" FROM "2009_2010_table" WHERE "drawn"='1' AND "lost"='10';
|
## Task
Generate a SQL query to answer the following question:
`what is the name of the club where drawn is 1 and lost is 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the club where drawn is 1 and lost is 10?`:
```sql
|
SELECT "tries_against" FROM "2009_2010_table" WHERE "lost"='4';
|
## Task
Generate a SQL query to answer the following question:
`what are the tries where the game was lost by 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the tries where the game was lost by 4?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.