output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MAX("points") FROM "campeonato_brasileiro_s_rie_b" WHERE "team"='vitória' AND "played">38; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points team vitória, which had more than 38 played, had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_brasileiro_s_rie_b" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of points team vitória, which had more than 38 played, had?`:
```sql
|
SELECT "nation" FROM "groups_3_ribbons_2_hoops" WHERE "a_score">5.933 AND "total"=19.833; |
## Task
Generate a SQL query to answer the following question:
`When the A Score was larger than 5.933 with a total of 19.833, what nation was this?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groups_3_ribbons_2_hoops" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the A Score was larger than 5.933 with a total of 19.833, what nation was this?`:
```sql
|
SELECT MAX("total") FROM "groups_3_ribbons_2_hoops" WHERE "e_score">9.35 AND "t_score"<4; |
## Task
Generate a SQL query to answer the following question:
`How large was the total when the E Score was greater than 9.35 and T Score was less than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groups_3_ribbons_2_hoops" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How large was the total when the E Score was greater than 9.35 and T Score was less than 4?`:
```sql
|
SELECT SUM("a_score") FROM "groups_3_ribbons_2_hoops" WHERE "e_score">9.566 AND "nation"='greece' AND "t_score">4; |
## Task
Generate a SQL query to answer the following question:
`What was the quantity of the A Score when the E Score was larger than 9.566 in the Greece and the T score was more than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groups_3_ribbons_2_hoops" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the quantity of the A Score when the E Score was larger than 9.566 in the Greece and the T score was more than 4?`:
```sql
|
SELECT SUM("a_score") FROM "groups_3_ribbons_2_hoops" WHERE "e_score">9.383 AND "total"<19.716 AND "t_score">4; |
## Task
Generate a SQL query to answer the following question:
`What was the total of A Score when the E Score was greater than 9.383, total was less than 19.716 and the T Score was larger than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groups_3_ribbons_2_hoops" (
"nation" text,
"t_score" real,
"a_score" real,
"e_score" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total of A Score when the E Score was greater than 9.383, total was less than 19.716 and the T Score was larger than 4?`:
```sql
|
SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"='104.5 fm'; |
## Task
Generate a SQL query to answer the following question:
`Which city has a frequency of 104.5 fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has a frequency of 104.5 fm?`:
```sql
|
SELECT "frequency_m_hz" FROM "translators" WHERE "city_of_license"='walterboro, sc'; |
## Task
Generate a SQL query to answer the following question:
`What is the frequency of Walterboro, SC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of Walterboro, SC?`:
```sql
|
SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz"='104.5 fm'; |
## Task
Generate a SQL query to answer the following question:
`What is the FCC information of 104.5 fm frequency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the FCC information of 104.5 fm frequency?`:
```sql
|
SELECT "erp_w" FROM "translators" WHERE "city_of_license"='charleston, sc'; |
## Task
Generate a SQL query to answer the following question:
`What is Charleston, SC ERP W?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Charleston, SC ERP W?`:
```sql
|
SELECT SUM("erp_w") FROM "translators" WHERE "frequency_m_hz"='105.1 fm'; |
## Task
Generate a SQL query to answer the following question:
`What does the ERP W sum equal for 105.1 fm frequency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What does the ERP W sum equal for 105.1 fm frequency?`:
```sql
|
SELECT "frequency_m_hz" FROM "translators" WHERE "city_of_license"='surfside beach, sc'; |
## Task
Generate a SQL query to answer the following question:
`What is surfside beach, SC frequency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is surfside beach, SC frequency?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "country"='japan'; |
## Task
Generate a SQL query to answer the following question:
`What is the player from Japan's To Par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the player from Japan's To Par?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "country"='england'; |
## Task
Generate a SQL query to answer the following question:
`What is the player from England's To Par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the player from England's To Par?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "country"='england'; |
## Task
Generate a SQL query to answer the following question:
`What is the player from England's score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the player from England's score?`:
```sql
|
SELECT "country" FROM "second_round" WHERE "player"='adam scott'; |
## Task
Generate a SQL query to answer the following question:
`Which country does Adam Scott play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country does Adam Scott play for?`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "airport"='lilongwe international airport'; |
## Task
Generate a SQL query to answer the following question:
`Name the ICAO for lilongwe international airport`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ICAO for lilongwe international airport`:
```sql
|
SELECT "airport" FROM "destinations" WHERE "icao"='flls'; |
## Task
Generate a SQL query to answer the following question:
`Name the airport for ICAO of flls`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the airport for ICAO of flls`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "airport"='lilongwe international airport'; |
## Task
Generate a SQL query to answer the following question:
`Name the ICAO for lilongwe international airport`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ICAO for lilongwe international airport`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "airport"='julius nyerere international airport'; |
## Task
Generate a SQL query to answer the following question:
`Name the ICAO for julius nyerere international airport`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ICAO for julius nyerere international airport`:
```sql
|
SELECT "country" FROM "destinations" WHERE "city"='johannesburg'; |
## Task
Generate a SQL query to answer the following question:
`Name the country for johannesburg`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for johannesburg`:
```sql
|
SELECT "city" FROM "destinations" WHERE "iata"='llw'; |
## Task
Generate a SQL query to answer the following question:
`Name the city for IATA of llw`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the city for IATA of llw`:
```sql
|
SELECT "home_team" FROM "second_round" WHERE "tie_no"='10'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the home time with a 10 tie no?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the home time with a 10 tie no?`:
```sql
|
SELECT "attendance" FROM "second_round" WHERE "away_team"='york city'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that was played against the away team of York City?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game that was played against the away team of York City?`:
```sql
|
SELECT "group_position" FROM "group_stage" WHERE "opponents"='juventus' AND "attendance">'47,786'; |
## Task
Generate a SQL query to answer the following question:
`What group of juventus had an attendance larger than 47,786?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What group of juventus had an attendance larger than 47,786?`:
```sql
|
SELECT AVG("week") FROM "schedule" WHERE "result"='l 28–17'; |
## Task
Generate a SQL query to answer the following question:
`Name the average week for result of l 28–17`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average week for result of l 28–17`:
```sql
|
SELECT "score" FROM "toronto_maple_leafs_4_detroit_red_wings_" WHERE "date"='april 12'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on April 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "toronto_maple_leafs_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on April 12?`:
```sql
|
SELECT "record" FROM "toronto_maple_leafs_4_detroit_red_wings_" WHERE "date"='april 6'; |
## Task
Generate a SQL query to answer the following question:
`What was the record on April 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "toronto_maple_leafs_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on April 6?`:
```sql
|
SELECT "2009" FROM "performance_timeline" WHERE "2008"='a' AND "2010"='4r'; |
## Task
Generate a SQL query to answer the following question:
`Which 2009 has a 2008 of A, and a 2010 of 4r?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2009 has a 2008 of A, and a 2010 of 4r?`:
```sql
|
SELECT "2009" FROM "performance_timeline" WHERE "2008"='wta premier mandatory tournaments'; |
## Task
Generate a SQL query to answer the following question:
`Which 2009 has a 2008 of wta premier mandatory tournaments?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2009 has a 2008 of wta premier mandatory tournaments?`:
```sql
|
SELECT "2010" FROM "performance_timeline" WHERE "tournament"='australian open'; |
## Task
Generate a SQL query to answer the following question:
`Which 2010 has a Tournament of australian open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2010 has a Tournament of australian open?`:
```sql
|
SELECT "2007" FROM "performance_timeline" WHERE "2006"='a' AND "tournament"='canada'; |
## Task
Generate a SQL query to answer the following question:
`Which 2007 has a 2006 of A, and a Tournament of canada?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007 has a 2006 of A, and a Tournament of canada?`:
```sql
|
SELECT "2009" FROM "performance_timeline" WHERE "2006"='a' AND "2011"='sf'; |
## Task
Generate a SQL query to answer the following question:
`Which 2009 has a 2006 of A, and a 2011 of sf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2009 has a 2006 of A, and a 2011 of sf?`:
```sql
|
SELECT "2007" FROM "performance_timeline" WHERE "2010"='a'; |
## Task
Generate a SQL query to answer the following question:
`Which 2007 has a 2010 of A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007 has a 2010 of A?`:
```sql
|
SELECT MIN("plat_num") FROM "the_boys" WHERE "adam"<1 AND "discipline"='cycling' AND "jade">5; |
## Task
Generate a SQL query to answer the following question:
`Adam is less than 1 and Jade is greater than 5 in cycling, what's the plat'num?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Adam is less than 1 and Jade is greater than 5 in cycling, what's the plat'num?`:
```sql
|
SELECT MIN("peter") FROM "the_boys" WHERE "discipline"='kendo' AND "plat_num"<3; |
## Task
Generate a SQL query to answer the following question:
`What is Peter's score in kendo that has a plat'num less than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Peter's score in kendo that has a plat'num less than 3?`:
```sql
|
SELECT MIN("adam") FROM "the_boys" WHERE "peter"<3 AND "plat_num">6; |
## Task
Generate a SQL query to answer the following question:
`What is Adam's score when Peter's score is less than 3 and the plat'num is greater than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Adam's score when Peter's score is less than 3 and the plat'num is greater than 6?`:
```sql
|
SELECT MIN("plat_num") FROM "the_boys" WHERE "discipline"='speed skating' AND "peter">5; |
## Task
Generate a SQL query to answer the following question:
`Peter has a score greater than 5 in speed skating, what is the plat'num?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Peter has a score greater than 5 in speed skating, what is the plat'num?`:
```sql
|
SELECT AVG("adam") FROM "the_boys" WHERE "jade">5 AND "peter"<0; |
## Task
Generate a SQL query to answer the following question:
`What's Adam's score when Jade's score is greater than 5 and Peter's score is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_boys" (
"discipline" text,
"peter" real,
"adam" real,
"jade" real,
"plat_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Adam's score when Jade's score is greater than 5 and Peter's score is less than 0?`:
```sql
|
SELECT SUM("against") FROM "2012_ladder" WHERE "losses"<9 AND "ntfa_div_2"='old scotch'; |
## Task
Generate a SQL query to answer the following question:
`Old Scotch had less than 9 losses and how much against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_ladder" (
"ntfa_div_2" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Old Scotch had less than 9 losses and how much against?`:
```sql
|
SELECT COUNT("losses") FROM "2012_ladder" WHERE "byes"<0; |
## Task
Generate a SQL query to answer the following question:
`Of the teams that had more than 0 byes, what was the total number of losses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_ladder" (
"ntfa_div_2" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Of the teams that had more than 0 byes, what was the total number of losses?`:
```sql
|
SELECT "incumbent" FROM "election_results" WHERE "district"='20th'; |
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent in the 20th district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent in the 20th district?`:
```sql
|
SELECT "party" FROM "election_results" WHERE "district"='6th'; |
## Task
Generate a SQL query to answer the following question:
`Which party has the 6th district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party has the 6th district?`:
```sql
|
SELECT "party" FROM "election_results" WHERE "incumbent"='ken cuccinelli'; |
## Task
Generate a SQL query to answer the following question:
`Which party has Ken Cuccinelli as an incumbent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party has Ken Cuccinelli as an incumbent?`:
```sql
|
SELECT "party" FROM "election_results" WHERE "elected"=2003 AND "incumbent"='mark obenshain'; |
## Task
Generate a SQL query to answer the following question:
`Which party was elected in 2003 with incumbent Mark Obenshain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party was elected in 2003 with incumbent Mark Obenshain?`:
```sql
|
SELECT "incumbent" FROM "election_results" WHERE "district"='24th'; |
## Task
Generate a SQL query to answer the following question:
`Which incumbent was in the 24th district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which incumbent was in the 24th district?`:
```sql
|
SELECT SUM("laps") FROM "race" WHERE "team"='mi-jack conquest racing' AND "points"<11; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of laps for mi-jack conquest racing and points less than 11`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of laps for mi-jack conquest racing and points less than 11`:
```sql
|
SELECT "points" FROM "race" WHERE "grid">8 AND "time_retired"='+47.487 secs'; |
## Task
Generate a SQL query to answer the following question:
`Name the points with grid more than 8 and time/retired of +47.487 secs`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points with grid more than 8 and time/retired of +47.487 secs`:
```sql
|
SELECT "team" FROM "race" WHERE "laps"=97 AND "grid"=3; |
## Task
Generate a SQL query to answer the following question:
`Name the team with laps of 97 and grid of 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team with laps of 97 and grid of 3`:
```sql
|
SELECT SUM("grid") FROM "race" WHERE "laps">97; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of grid with laps more than 97`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of grid with laps more than 97`:
```sql
|
SELECT MAX("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='250cc' AND "year"=1971; |
## Task
Generate a SQL query to answer the following question:
`What are the most wins in 1971 in 250cc class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the most wins in 1971 in 250cc class?`:
```sql
|
SELECT MIN("year") FROM "grand_prix_motorcycle_racing_results" WHERE "points"<45 AND "team"='yamaha' AND "rank"='21st'; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest year with less than 45 points for Yamaha team in 21st rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year with less than 45 points for Yamaha team in 21st rank?`:
```sql
|
SELECT SUM("ends_won") FROM "round_robin_standings" WHERE "blank_ends"<14 AND "locale"='manitoba' AND "stolen_ends">13; |
## Task
Generate a SQL query to answer the following question:
`How many Ends Won have Blank Ends smaller than 14, and a Locale of manitoba, and Stolen Ends larger than 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Ends Won have Blank Ends smaller than 14, and a Locale of manitoba, and Stolen Ends larger than 13?`:
```sql
|
SELECT "skip" FROM "round_robin_standings" WHERE "ends_lost">44 AND "blank_ends"=10; |
## Task
Generate a SQL query to answer the following question:
`Which Skip has Ends Lost larger than 44, and Blank Ends of 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Skip has Ends Lost larger than 44, and Blank Ends of 10?`:
```sql
|
SELECT COUNT("stolen_ends") FROM "round_robin_standings" WHERE "ends_lost"<44 AND "blank_ends"<7; |
## Task
Generate a SQL query to answer the following question:
`How many Stolen Ends have Ends Lost smaller than 44, and Blank Ends smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin_standings" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Stolen Ends have Ends Lost smaller than 44, and Blank Ends smaller than 7?`:
```sql
|
SELECT "current_status" FROM "historical_fleet" WHERE "make"='gm advanced design' AND "number_of_seats">41; |
## Task
Generate a SQL query to answer the following question:
`What is the current status for GM Advanced Design with more than 41 seats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current status for GM Advanced Design with more than 41 seats?`:
```sql
|
SELECT "quantity" FROM "historical_fleet" WHERE "number_of_seats">45 AND "make"='mci'; |
## Task
Generate a SQL query to answer the following question:
`What is the quantity with more than 45 seats and MCI make?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quantity with more than 45 seats and MCI make?`:
```sql
|
SELECT MAX("number_of_seats") FROM "historical_fleet" WHERE "make"='mci' AND "quantity">32; |
## Task
Generate a SQL query to answer the following question:
`What is the largest number of seats with more than 32 of a MCI make?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of seats with more than 32 of a MCI make?`:
```sql
|
SELECT MIN("number_of_seats") FROM "historical_fleet" WHERE "current_status"='retired' AND "quantity"<8; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of seats in a vehicle currently retired and in quantities less than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of seats in a vehicle currently retired and in quantities less than 8?`:
```sql
|
SELECT MIN("number_of_seats") FROM "historical_fleet" WHERE "current_status"='retired' AND "year_placed_in_service"='1981'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of seats in a retired vehicle that was started in service in 1981?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "historical_fleet" (
"make" text,
"year_placed_in_service" text,
"quantity" real,
"number_of_seats" real,
"wheelchair_accessible" text,
"current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of seats in a retired vehicle that was started in service in 1981?`:
```sql
|
SELECT "height" FROM "middle_tennessee" WHERE "name"='trevard lindley'; |
## Task
Generate a SQL query to answer the following question:
`What is Trevard Lindley's height?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "middle_tennessee" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Trevard Lindley's height?`:
```sql
|
SELECT "class" FROM "middle_tennessee" WHERE "games"=2 AND "name"='ashton cobb'; |
## Task
Generate a SQL query to answer the following question:
`What is Ashton Cobb's class in Game 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "middle_tennessee" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ashton Cobb's class in Game 2?`:
```sql
|
SELECT MIN("games") FROM "middle_tennessee" WHERE "position"='re' AND "number"<95; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest game with a position of Re and a smaller number than 95?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "middle_tennessee" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" text,
"class" text,
"hometown" text,
"games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest game with a position of Re and a smaller number than 95?`:
```sql
|
SELECT "quarterback" FROM "quarterbacks_ranked_by_regular_season_wi" WHERE "career_wins">81 AND "teams"='seattle' AND "team_wins"<70; |
## Task
Generate a SQL query to answer the following question:
`Which Seattle quarterback has more than 81 career wins and less than 70 team wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "quarterbacks_ranked_by_regular_season_wi" (
"rank" real,
"quarterback" text,
"seasons" text,
"teams" text,
"team_wins" real,
"team_losses" real,
"career_wins" real,
"career_losses" real,
"ties" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Seattle quarterback has more than 81 career wins and less than 70 team wins?`:
```sql
|
SELECT MIN("overall") FROM "jacksonville_jaguars_draft_history" WHERE "name"='mike harris'; |
## Task
Generate a SQL query to answer the following question:
`What is Mike Harris' lowest overall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mike Harris' lowest overall?`:
```sql
|
SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=228 AND "round"<7; |
## Task
Generate a SQL query to answer the following question:
`What is the highest pick # that has a 228 overall and a round less than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pick # that has a 228 overall and a round less than 7?`:
```sql
|
SELECT "value" FROM "examples" WHERE "type"='negative infinity'; |
## Task
Generate a SQL query to answer the following question:
`What value has negative infinity?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "examples" (
"type" text,
"actual_exponent" text,
"exp_biased" text,
"exponent_field" text,
"significand_fraction_field" text,
"value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What value has negative infinity?`:
```sql
|
SELECT "exponent_field" FROM "examples" WHERE "exp_biased"='255' AND "value"='+∞'; |
## Task
Generate a SQL query to answer the following question:
`What's the exponent field that has 255 exp and value of +∞?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "examples" (
"type" text,
"actual_exponent" text,
"exp_biased" text,
"exponent_field" text,
"significand_fraction_field" text,
"value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the exponent field that has 255 exp and value of +∞?`:
```sql
|
SELECT "type" FROM "examples" WHERE "value"='0.0'; |
## Task
Generate a SQL query to answer the following question:
`What's the type of 0.0 value?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "examples" (
"type" text,
"actual_exponent" text,
"exp_biased" text,
"exponent_field" text,
"significand_fraction_field" text,
"value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the type of 0.0 value?`:
```sql
|
SELECT "significand_fraction_field" FROM "examples" WHERE "value"='1.0'; |
## Task
Generate a SQL query to answer the following question:
`What's the Significant of a value 1.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "examples" (
"type" text,
"actual_exponent" text,
"exp_biased" text,
"exponent_field" text,
"significand_fraction_field" text,
"value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Significant of a value 1.0?`:
```sql
|
SELECT "3rd_career_salary" FROM "careers" WHERE "4th_career_salary"='navigator ($90,000-degree)'; |
## Task
Generate a SQL query to answer the following question:
`4th career/salary of navigator ($90,000-degree) involves what 3rd career/salary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `4th career/salary of navigator ($90,000-degree) involves what 3rd career/salary?`:
```sql
|
SELECT "career_card" FROM "careers" WHERE "5th_career_salary"='automotive designer ($350,000-degree)'; |
## Task
Generate a SQL query to answer the following question:
`5th career/salary of automotive designer ($350,000-degree) had what career card?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `5th career/salary of automotive designer ($350,000-degree) had what career card?`:
```sql
|
SELECT "6th_career_salary" FROM "careers" WHERE "2nd_career_salary"='substitute teacher ($20,000)'; |
## Task
Generate a SQL query to answer the following question:
`2nd career/salary of substitute teacher ($20,000) involves what 6th career/salary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `2nd career/salary of substitute teacher ($20,000) involves what 6th career/salary?`:
```sql
|
SELECT "3rd_career_salary" FROM "careers" WHERE "6th_career_salary"='design consultant ($500,000-degree)'; |
## Task
Generate a SQL query to answer the following question:
`6th career/salary of design consultant ($500,000-degree) involves what 3rd career/salary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `6th career/salary of design consultant ($500,000-degree) involves what 3rd career/salary?`:
```sql
|
SELECT "2nd_career_salary" FROM "careers" WHERE "4th_career_salary"='clown ($80,000)'; |
## Task
Generate a SQL query to answer the following question:
`4th career/salary of clown ($80,000) had what 2nd career/salary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `4th career/salary of clown ($80,000) had what 2nd career/salary?`:
```sql
|
SELECT "2nd_career_salary" FROM "careers" WHERE "5th_career_salary"='restaurant manager ($250,000)'; |
## Task
Generate a SQL query to answer the following question:
`5th career/salary of restaurant manager ($250,000) had what 2nd career/salary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "careers" (
"career_card" text,
"starting_career_salary" text,
"2nd_career_salary" text,
"3rd_career_salary" text,
"4th_career_salary" text,
"5th_career_salary" text,
"6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `5th career/salary of restaurant manager ($250,000) had what 2nd career/salary?`:
```sql
|
SELECT MIN("round") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"=8 AND "college"='temple' AND "overall">72; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest round of the pick #8 player with an overall greater than 72 from the college of temple?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round of the pick #8 player with an overall greater than 72 from the college of temple?`:
```sql
|
SELECT MIN("overall") FROM "jacksonville_jaguars_draft_history" WHERE "position"='wide receiver' AND "round"<5 AND "pick_num">7; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall of the wide receiver player from a round higher than 5 and a pick lower than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall of the wide receiver player from a round higher than 5 and a pick lower than 7?`:
```sql
|
SELECT "overall" FROM "jacksonville_jaguars_draft_history" WHERE "position"='running back'; |
## Task
Generate a SQL query to answer the following question:
`What is the overall of the running back player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall of the running back player?`:
```sql
|
SELECT "general_classification" FROM "classification_leadership" WHERE "team_classification"='japan'; |
## Task
Generate a SQL query to answer the following question:
`What is the general classification when the team classification is japan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the general classification when the team classification is japan?`:
```sql
|
SELECT "malaysian_rider_classification" FROM "classification_leadership" WHERE "general_classification"='tonton susanto' AND "stage_winner"='yusuke hatanaka'; |
## Task
Generate a SQL query to answer the following question:
`When Yusuke Hatanaka was the stage winner in the tonton susanto general classification, what was the malaysian rider classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Yusuke Hatanaka was the stage winner in the tonton susanto general classification, what was the malaysian rider classification?`:
```sql
|
SELECT "mountains_classification" FROM "classification_leadership" WHERE "team_classification"='tabriz petrochemical team' AND "stage_winner"='yusuke hatanaka'; |
## Task
Generate a SQL query to answer the following question:
`When Yusuke Hatanaka was the stage winner in the tabriz petrochemical team classification, what was the mountains classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Yusuke Hatanaka was the stage winner in the tabriz petrochemical team classification, what was the mountains classification?`:
```sql
|
SELECT "stage" FROM "classification_leadership" WHERE "team_classification"='tabriz petrochemical team'; |
## Task
Generate a SQL query to answer the following question:
`Which stage had tabriz petrochemical team in the team classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage had tabriz petrochemical team in the team classification?`:
```sql
|
SELECT "stage" FROM "classification_leadership" WHERE "malaysian_rider_classification"='suhardi hassan'; |
## Task
Generate a SQL query to answer the following question:
`Which stage had suhardi hassan in the Malaysian rider classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" text,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"malaysian_rider_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage had suhardi hassan in the Malaysian rider classification?`:
```sql
|
SELECT COUNT("drawn") FROM "first_round" WHERE "points"=6 AND "lost"<4; |
## Task
Generate a SQL query to answer the following question:
`How many drawn have points of 6 and lost by fewer than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many drawn have points of 6 and lost by fewer than 4?`:
```sql
|
SELECT MIN("game") FROM "regular_season" WHERE "record"='23–6–4'; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest game with a record of 23–6–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest game with a record of 23–6–4?`:
```sql
|
SELECT MIN("game") FROM "regular_season" WHERE "record"='16–4–3'; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest game with a record of 16–4–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest game with a record of 16–4–3?`:
```sql
|
SELECT MAX("erp_w") FROM "translators" WHERE "call_sign"='w255bi'; |
## Task
Generate a SQL query to answer the following question:
`Which ERP W is the highest one that has a Call sign of w255bi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ERP W is the highest one that has a Call sign of w255bi?`:
```sql
|
SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz"=100.7; |
## Task
Generate a SQL query to answer the following question:
`Which FCC info has a Frequency MHz of 100.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FCC info has a Frequency MHz of 100.7?`:
```sql
|
SELECT COUNT("frequency_m_hz") FROM "translators" WHERE "call_sign"='w264bg'; |
## Task
Generate a SQL query to answer the following question:
`How much Frequency MHz has a Call sign of w264bg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Frequency MHz has a Call sign of w264bg?`:
```sql
|
SELECT MIN("erp_w") FROM "translators" WHERE "call_sign"='w233be'; |
## Task
Generate a SQL query to answer the following question:
`Which ERP W is the lowest one that has a Call sign of w233be?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ERP W is the lowest one that has a Call sign of w233be?`:
```sql
|
SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz">102.3; |
## Task
Generate a SQL query to answer the following question:
`Which FCC info has a Frequency MHz larger than 102.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FCC info has a Frequency MHz larger than 102.3?`:
```sql
|
SELECT "date_given" FROM "head_of_household_and_hand_grenade" WHERE "head_of_household"='rica'; |
## Task
Generate a SQL query to answer the following question:
`What date was Rica head of household?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was Rica head of household?`:
```sql
|
SELECT MAX("task_no") FROM "head_of_household_and_hand_grenade" WHERE "head_of_household"='cathy'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest task number for which Cathy is head of household?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest task number for which Cathy is head of household?`:
```sql
|
SELECT "head_of_household" FROM "head_of_household_and_hand_grenade" WHERE "task_no"=7; |
## Task
Generate a SQL query to answer the following question:
`Who is the head of household for task number 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the head of household for task number 7?`:
```sql
|
SELECT "task_no" FROM "head_of_household_and_hand_grenade" WHERE "hand_grenade_user"='cathy'; |
## Task
Generate a SQL query to answer the following question:
`Which task had Cathy as the hand grenade user?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which task had Cathy as the hand grenade user?`:
```sql
|
SELECT MAX("task_no") FROM "head_of_household_and_hand_grenade" WHERE "date_given"='january 22, 2010 (day 111)'; |
## Task
Generate a SQL query to answer the following question:
`What is the task number on January 22, 2010 (day 111)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_of_household_and_hand_grenade" (
"task_no" real,
"date_given" text,
"head_of_household" text,
"hand_grenade_user" text,
"hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the task number on January 22, 2010 (day 111)?`:
```sql
|
SELECT "record" FROM "season_schedule" WHERE "streak"='win 7'; |
## Task
Generate a SQL query to answer the following question:
`What was the record in the win 7 streak?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the win 7 streak?`:
```sql
|
SELECT "score" FROM "season_schedule" WHERE "opponent"='detroit pistons'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the opponent was Detroit Pistons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the opponent was Detroit Pistons?`:
```sql
|
SELECT "date" FROM "season_schedule" WHERE "streak"='won 8'; |
## Task
Generate a SQL query to answer the following question:
`What is the date when streak was won 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date when streak was won 8?`:
```sql
|
SELECT "total_trips_am_pm" FROM "intercounty_connector_bus_routes" WHERE "operated_by"='atlantic coast charters'; |
## Task
Generate a SQL query to answer the following question:
`What trips are operated by Atlantic coast charters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "intercounty_connector_bus_routes" (
"route" text,
"terminus" text,
"operated_by" text,
"corridors_served" text,
"total_trips_am_pm" text,
"operating_since" text
);
### SQL
Given the database schema, here is the SQL query that answers `What trips are operated by Atlantic coast charters?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.