output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "coach" FROM "south_australia" WHERE "location"='port pirie'; |
## Task
Generate a SQL query to answer the following question:
`Who is the coach of the team from Port Pirie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the coach of the team from Port Pirie?`:
```sql
|
SELECT "coach" FROM "south_australia" WHERE "home_ground"='club cove'; |
## Task
Generate a SQL query to answer the following question:
`Who is the coach of the team with home ground at Club Cove?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the coach of the team with home ground at Club Cove?`:
```sql
|
SELECT "team" FROM "south_australia" WHERE "founded"='1970'; |
## Task
Generate a SQL query to answer the following question:
`Which team was founded in 1970?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_ground" text,
"location" text,
"founded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was founded in 1970?`:
```sql
|
SELECT "became_acharya_on" FROM "acharyas" WHERE "name_of_acharya"='acharya shree koshalendraprasadji maharaj'; |
## Task
Generate a SQL query to answer the following question:
`When did acharya shree koshalendraprasadji maharaj become acharya?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "acharyas" (
"acharya_number" real,
"name_of_acharya" text,
"born_on" text,
"became_acharya_on" text,
"death" text,
"term" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did acharya shree koshalendraprasadji maharaj become acharya?`:
```sql
|
SELECT "term" FROM "acharyas" WHERE "name_of_acharya"='acharya shree vasudevprasadji maharaj'; |
## Task
Generate a SQL query to answer the following question:
`What is the term of acharya shree vasudevprasadji maharaj?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "acharyas" (
"acharya_number" real,
"name_of_acharya" text,
"born_on" text,
"became_acharya_on" text,
"death" text,
"term" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the term of acharya shree vasudevprasadji maharaj?`:
```sql
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='9-4-1'; |
## Task
Generate a SQL query to answer the following question:
`What was the event where justin robbins had a record of 9-4-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the event where justin robbins had a record of 9-4-1?`:
```sql
|
SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='billy kidd'; |
## Task
Generate a SQL query to answer the following question:
`Where was the location where justin robbins fought against billy kidd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the location where justin robbins fought against billy kidd?`:
```sql
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='cage warriors 39'; |
## Task
Generate a SQL query to answer the following question:
`What was the method of resolution for the fight at cage warriors 39?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the method of resolution for the fight at cage warriors 39?`:
```sql
|
SELECT SUM("regular_season") FROM "top_goalscorers" WHERE "playoffs"=35 AND "total">302; |
## Task
Generate a SQL query to answer the following question:
`A total larger than 302 and playoffs of 35 also list the total of regular seasons as what?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_goalscorers" (
"name" text,
"years" text,
"regular_season" real,
"playoffs" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `A total larger than 302 and playoffs of 35 also list the total of regular seasons as what?`:
```sql
|
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">4 AND "position"='lw' AND "player"='mark miller'; |
## Task
Generate a SQL query to answer the following question:
`What is the college/junior/club team (league) of lw position player mark miller, from a round greater than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the college/junior/club team (league) of lw position player mark miller, from a round greater than 4?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "position"='lw' AND "round">10; |
## Task
Generate a SQL query to answer the following question:
`Who is the lw position player from a round greater than 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the lw position player from a round greater than 10?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "round"=8; |
## Task
Generate a SQL query to answer the following question:
`Who is the player from round 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from round 8?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "round"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player from round 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player from round 7?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "round"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player from round 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player from round 5?`:
```sql
|
SELECT "state" FROM "list_of_current_northeast_governors" WHERE "elected_assumed_office"=2013; |
## Task
Generate a SQL query to answer the following question:
`What state had an elected/assumed office in 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_current_northeast_governors" (
"governor" text,
"state" text,
"past" text,
"party" text,
"elected_assumed_office" real,
"seat_up" real
);
### SQL
Given the database schema, here is the SQL query that answers `What state had an elected/assumed office in 2013?`:
```sql
|
SELECT "air_date" FROM "season_2_2009_2010_weekly_ratings" WHERE "18_49"='2.2/7'; |
## Task
Generate a SQL query to answer the following question:
`What was the air date of the episode that has an 18-49 of 2.2/7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the air date of the episode that has an 18-49 of 2.2/7?`:
```sql
|
SELECT "air_date" FROM "season_2_2009_2010_weekly_ratings" WHERE "episode"='gary tries to do it all'; |
## Task
Generate a SQL query to answer the following question:
`What was the air date of 'Gary tries to do it all'?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the air date of 'Gary tries to do it all'?`:
```sql
|
SELECT MAX("viewers") FROM "season_2_2009_2010_weekly_ratings" WHERE "18_49"='1.8/6'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of viewers for the episode that has an 18-49 of 1.8/6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of viewers for the episode that has an 18-49 of 1.8/6?`:
```sql
|
SELECT "timeslot" FROM "season_2_2009_2010_weekly_ratings" WHERE "viewers"<6.76 AND "18_49"='1.9/5'; |
## Task
Generate a SQL query to answer the following question:
`What was the timeslot for the episode with less than 6.76 viewers and an 18-49 of 1.9/5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the timeslot for the episode with less than 6.76 viewers and an 18-49 of 1.9/5?`:
```sql
|
SELECT "timeslot" FROM "season_2_2009_2010_weekly_ratings" WHERE "18_49"='2.2/7'; |
## Task
Generate a SQL query to answer the following question:
`What is the timeslot for the episode with an 18-49 of 2.2/7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the timeslot for the episode with an 18-49 of 2.2/7?`:
```sql
|
SELECT "timeslot" FROM "season_2_2009_2010_weekly_ratings" WHERE "18_49"='1.8/5' AND "episode"='gary has to choose'; |
## Task
Generate a SQL query to answer the following question:
`What is the timeslot for 'gary has to choose' with an 18-49 of 1.8/5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_2009_2010_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the timeslot for 'gary has to choose' with an 18-49 of 1.8/5?`:
```sql
|
SELECT "location" FROM "current_women_s_teams" WHERE "established"=2000; |
## Task
Generate a SQL query to answer the following question:
`What is the location of the university that was established in 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" real,
"established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the university that was established in 2000?`:
```sql
|
SELECT COUNT("established") FROM "current_women_s_teams" WHERE "nickname"='pride'; |
## Task
Generate a SQL query to answer the following question:
`What year was the team with the nickname pride established?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" real,
"established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the team with the nickname pride established?`:
```sql
|
SELECT "enrollment" FROM "current_women_s_teams" WHERE "established">2011; |
## Task
Generate a SQL query to answer the following question:
`What is the enrollment of the university established in or after 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" real,
"established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment of the university established in or after 2011?`:
```sql
|
SELECT "country" FROM "men_s_50_km" WHERE "winner"='ole ellefsæter'; |
## Task
Generate a SQL query to answer the following question:
`What country was ole ellefsæter from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_50_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was ole ellefsæter from?`:
```sql
|
SELECT "winner" FROM "men_s_50_km" WHERE "fis_nordic_world_ski_championships"='1972'; |
## Task
Generate a SQL query to answer the following question:
`Who won the FIS Nordic World Ski Championships in 1972?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_50_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the FIS Nordic World Ski Championships in 1972?`:
```sql
|
SELECT "money" FROM "final_round" WHERE "place"='t6' AND "country"='spain'; |
## Task
Generate a SQL query to answer the following question:
`For a country of Spain, place of t6, what is the Money ($)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a country of Spain, place of t6, what is the Money ($)?`:
```sql
|
SELECT "country" FROM "final_round" WHERE "to_par"='e'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a to par of e?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a to par of e?`:
```sql
|
SELECT "player" FROM "final_round" WHERE "place"='t9' AND "country"='australia'; |
## Task
Generate a SQL query to answer the following question:
`Which player is from Australia, and has a place of t9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is from Australia, and has a place of t9?`:
```sql
|
SELECT "place" FROM "final_round" WHERE "player"='john merrick'; |
## Task
Generate a SQL query to answer the following question:
`What was the place for player John Merrick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the place for player John Merrick?`:
```sql
|
SELECT "country" FROM "final_round" WHERE "place"='t1' AND "score"='72-68-70-73=283'; |
## Task
Generate a SQL query to answer the following question:
`Which country had a place of t1, as well as a score of 72-68-70-73=283?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country had a place of t1, as well as a score of 72-68-70-73=283?`:
```sql
|
SELECT "place" FROM "first_round" WHERE "player"='jack renner'; |
## Task
Generate a SQL query to answer the following question:
`What place has jack renner as the player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place has jack renner as the player?`:
```sql
|
SELECT "to_par" FROM "first_round" WHERE "country"='united states' AND "place"='t8' AND "player"='tommy valentine'; |
## Task
Generate a SQL query to answer the following question:
`What to par has The United States as the country, t8 as the place, and tommy valentine as the player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What to par has The United States as the country, t8 as the place, and tommy valentine as the player?`:
```sql
|
SELECT "to_par" FROM "first_round" WHERE "score"=66; |
## Task
Generate a SQL query to answer the following question:
`What to par has 66 as the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What to par has 66 as the score?`:
```sql
|
SELECT AVG("played") FROM "torneo_clausura" WHERE "conceded"<7; |
## Task
Generate a SQL query to answer the following question:
`Mean of played with smaller than 7 conceded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Mean of played with smaller than 7 conceded?`:
```sql
|
SELECT MAX("position") FROM "torneo_clausura" WHERE "points">16 AND "conceded"<7; |
## Task
Generate a SQL query to answer the following question:
`The highest position with more than 16 points and less than 7 concedes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `The highest position with more than 16 points and less than 7 concedes?`:
```sql
|
SELECT MAX("draws") FROM "torneo_clausura" WHERE "played"<9; |
## Task
Generate a SQL query to answer the following question:
`The highest draws with smaller than 9 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `The highest draws with smaller than 9 played?`:
```sql
|
SELECT "home_town" FROM "senate" WHERE "took_office"=1983 AND "district">15; |
## Task
Generate a SQL query to answer the following question:
`Which Home Town has a Took Office of 1983, and a District larger than 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home Town has a Took Office of 1983, and a District larger than 15?`:
```sql
|
SELECT "senator" FROM "senate" WHERE "party"='republican' AND "home_town"='houston' AND "district"=7; |
## Task
Generate a SQL query to answer the following question:
`Which Senator has a Party of republican, a Home Town of houston, and a District of 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Senator has a Party of republican, a Home Town of houston, and a District of 7?`:
```sql
|
SELECT "home_town" FROM "senate" WHERE "senator"='dan shelley'; |
## Task
Generate a SQL query to answer the following question:
`Which Home Town has a Senator of dan shelley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home Town has a Senator of dan shelley?`:
```sql
|
SELECT COUNT("took_office") FROM "senate" WHERE "party"='democratic' AND "home_town"='victoria' AND "district"<18; |
## Task
Generate a SQL query to answer the following question:
`Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18?`:
```sql
|
SELECT AVG("took_office") FROM "senate" WHERE "district"=29; |
## Task
Generate a SQL query to answer the following question:
`Which Took Office has a District of 29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Took Office has a District of 29?`:
```sql
|
SELECT AVG("laps") FROM "125cc_classification" WHERE "grid"=15; |
## Task
Generate a SQL query to answer the following question:
`What are the average Laps on Grid 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average Laps on Grid 15?`:
```sql
|
SELECT MIN("laps") FROM "125cc_classification" WHERE "time"='+24.440' AND "grid">18; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18?`:
```sql
|
SELECT MAX("laps") FROM "125cc_classification" WHERE "grid"<13 AND "time"='+18.366'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13?`:
```sql
|
SELECT MIN("wins") FROM "career_summary" WHERE "season"='2011' AND "podiums"=1 AND "poles"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Wins, when Season is 2011, when Podiums is 1, and when Poles is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Wins, when Season is 2011, when Podiums is 1, and when Poles is less than 0?`:
```sql
|
SELECT "position" FROM "career_summary" WHERE "points">7 AND "series"='toyota racing series'; |
## Task
Generate a SQL query to answer the following question:
`What is Position, when Points is greater than 7, and when Series is Toyota Racing Series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Points is greater than 7, and when Series is Toyota Racing Series?`:
```sql
|
SELECT SUM("races") FROM "career_summary" WHERE "series"='toyota racing series' AND "podiums">3; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Races, when Series is Toyota Racing Series, and when Podiums is greater than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Races, when Series is Toyota Racing Series, and when Podiums is greater than 3?`:
```sql
|
SELECT AVG("podiums") FROM "career_summary" WHERE "wins">1 AND "races"=2 AND "points">150; |
## Task
Generate a SQL query to answer the following question:
`What is the average Podiums, when Wins is greater than 1, when Races is 2, and when Points is greater than 150?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Podiums, when Wins is greater than 1, when Races is 2, and when Points is greater than 150?`:
```sql
|
SELECT COUNT("poles") FROM "career_summary" WHERE "position"='6th' AND "points"<164; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Poles, when Position is 6th, and when Points is less than 164?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Poles, when Position is 6th, and when Points is less than 164?`:
```sql
|
SELECT "boys_girls" FROM "current_member_schools" WHERE "denomination"='anglican' AND "day_boarding"='day'; |
## Task
Generate a SQL query to answer the following question:
`Which boys/girls school is a day school with an anglican denomination?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"boys_girls" text,
"day_boarding" text,
"year_entered_competition" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which boys/girls school is a day school with an anglican denomination?`:
```sql
|
SELECT MIN("founded") FROM "current_member_schools" WHERE "day_boarding"='day' AND "year_entered_competition">1958; |
## Task
Generate a SQL query to answer the following question:
`Which is the earliest founded day school to have entered the competition after 1958?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"boys_girls" text,
"day_boarding" text,
"year_entered_competition" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the earliest founded day school to have entered the competition after 1958?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "country"='england'; |
## Task
Generate a SQL query to answer the following question:
`How many to par in England?`
### 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 `How many to par in England?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "player"='david frost'; |
## Task
Generate a SQL query to answer the following question:
`Where is David Frost from?`
### 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 `Where is David Frost from?`:
```sql
|
SELECT "country" FROM "second_round" WHERE "place"='t3' AND "score"='70-68=138'; |
## Task
Generate a SQL query to answer the following question:
`Which country earned place T3 with a score of 70-68=138?`
### 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 earned place T3 with a score of 70-68=138?`:
```sql
|
SELECT "country" FROM "second_round" WHERE "score"='69-67=136'; |
## Task
Generate a SQL query to answer the following question:
`Which country had a score of 69-67=136?`
### 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 had a score of 69-67=136?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "player"='greg norman'; |
## Task
Generate a SQL query to answer the following question:
`How many to par for Greg Norman?`
### 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 `How many to par for Greg Norman?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "game">14 AND "team"='denver'; |
## Task
Generate a SQL query to answer the following question:
`What was the high rebounds after game 14 for Denver?`
### 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 high rebounds after game 14 for Denver?`:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "team"='sacramento'; |
## Task
Generate a SQL query to answer the following question:
`What was the latest game that Sacramento played?`
### 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 latest game that Sacramento played?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "team"='utah'; |
## Task
Generate a SQL query to answer the following question:
`What was the record of 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 `What was the record of Utah?`:
```sql
|
SELECT "parent_magazine" FROM "special_editions" WHERE "title"='dengeki g''s festival! deluxe'; |
## Task
Generate a SQL query to answer the following question:
`What is the parent magazine of Dengeki g's festival! deluxe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the parent magazine of Dengeki g's festival! deluxe?`:
```sql
|
SELECT "frequency" FROM "special_editions" WHERE "parent_magazine"='dengeki girl''s style'; |
## Task
Generate a SQL query to answer the following question:
`How often does Dengeki girl's style come out?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `How often does Dengeki girl's style come out?`:
```sql
|
SELECT "title" FROM "special_editions" WHERE "frequency"='monthly'; |
## Task
Generate a SQL query to answer the following question:
`What titles come out monthly?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What titles come out monthly?`:
```sql
|
SELECT "parent_magazine" FROM "special_editions" WHERE "title"='dengeki 5pb.'; |
## Task
Generate a SQL query to answer the following question:
`What is the parent magazine for Dengeki 5pb.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the parent magazine for Dengeki 5pb.?`:
```sql
|
SELECT "magazine_type" FROM "special_editions" WHERE "magazine_run"='march 3, 2009–february 5, 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is the magazine type that ran from March 3, 2009–February 5, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the magazine type that ran from March 3, 2009–February 5, 2010?`:
```sql
|
SELECT "frequency" FROM "special_editions" WHERE "magazine_run"='september 2, 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is the frequency for the magazine that runs September 2, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency for the magazine that runs September 2, 2010?`:
```sql
|
SELECT MAX("laps") FROM "race" WHERE "time_retired"='+1:23.297' AND "grid">4; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of laps with a +1:23.297 time/retired and a grid larger than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of laps with a +1:23.297 time/retired and a grid larger than 4?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "constructor"='toyota' AND "grid"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the time/retired with a toyota constructor and a 5 grid?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/retired with a toyota constructor and a 5 grid?`:
```sql
|
SELECT AVG("laps") FROM "race" WHERE "grid"=16; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of laps with 16 grids?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of laps with 16 grids?`:
```sql
|
SELECT "kiplinger_s_top_100_values" FROM "university_location_date_established" WHERE "established"=1851; |
## Task
Generate a SQL query to answer the following question:
`What is the Kiplinger's Top 100 value of the university that was established in 1851?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "university_location_date_established" (
"university" text,
"location" text,
"established" real,
"endowment_as_of_2008" text,
"campus_area_acres" real,
"kiplinger_s_top_100_values" text,
"enrollment_as_of_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Kiplinger's Top 100 value of the university that was established in 1851?`:
```sql
|
SELECT "endowment_as_of_2008" FROM "university_location_date_established" WHERE "established"=1961; |
## Task
Generate a SQL query to answer the following question:
`What was the endowment in 2008 of the college that was established in 1961?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "university_location_date_established" (
"university" text,
"location" text,
"established" real,
"endowment_as_of_2008" text,
"campus_area_acres" real,
"kiplinger_s_top_100_values" text,
"enrollment_as_of_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the endowment in 2008 of the college that was established in 1961?`:
```sql
|
SELECT "attendance" FROM "first_round_proper" WHERE "tie_no"='40'; |
## Task
Generate a SQL query to answer the following question:
`On what day was the attendance that had a Tie value of 40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"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 `On what day was the attendance that had a Tie value of 40?`:
```sql
|
SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='canvey island'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team for the away game that Canvey Island played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"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 `Who was the home team for the away game that Canvey Island played?`:
```sql
|
SELECT "attendance" FROM "first_round_proper" WHERE "home_team"='gillingham'; |
## Task
Generate a SQL query to answer the following question:
`On what day was there a Home game for Gillingham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"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 `On what day was there a Home game for Gillingham?`:
```sql
|
SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "overall">308 AND "position"='rb'; |
## Task
Generate a SQL query to answer the following question:
`Which Pick has an Overall larger than 308, and a Position of rb?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick has an Overall larger than 308, and a Position of rb?`:
```sql
|
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "position"='wr' AND "college"='alberta'; |
## Task
Generate a SQL query to answer the following question:
`How much Overall has a Position of wr, and a College of alberta?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Overall has a Position of wr, and a College of alberta?`:
```sql
|
SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "college"='indiana'; |
## Task
Generate a SQL query to answer the following question:
`What is indiana college's average pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is indiana college's average pick?`:
```sql
|
SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall"=308; |
## Task
Generate a SQL query to answer the following question:
`Which College has an Overall of 308?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which College has an Overall of 308?`:
```sql
|
SELECT "surface" FROM "singles_20_10_10" WHERE "opponent"='marcos baghdatis'; |
## Task
Generate a SQL query to answer the following question:
`What was the surface for the opponent Marcos Baghdatis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_20_10_10" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface for the opponent Marcos Baghdatis?`:
```sql
|
SELECT "eighth" FROM "2003_2009" WHERE "seventh"='audio bullys'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE 8TH THAT HAS A 7TH OF AUDIO BULLYS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE 8TH THAT HAS A 7TH OF AUDIO BULLYS?`:
```sql
|
SELECT "poll_year" FROM "2003_2009" WHERE "third"='the ting tings'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE POLL YEAR WITH A THIRD OF THE TING TINGS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE POLL YEAR WITH A THIRD OF THE TING TINGS?`:
```sql
|
SELECT "sixth" FROM "2003_2009" WHERE "second"='white lies'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SIXTH WITH A SECOND OF WHITE LIES?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SIXTH WITH A SECOND OF WHITE LIES?`:
```sql
|
SELECT "winner" FROM "2003_2009" WHERE "fifth"='joss stone'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE WINNER WITH A FIFTH OF JOSS STONE?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE WINNER WITH A FIFTH OF JOSS STONE?`:
```sql
|
SELECT "second" FROM "2003_2009" WHERE "tenth"='dan black'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SECOND WITH A TENTH OF DAN BLACK?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_2009" (
"poll_year" text,
"winner" text,
"second" text,
"third" text,
"fourth" text,
"fifth" text,
"sixth" text,
"seventh" text,
"eighth" text,
"ninth" text,
"tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SECOND WITH A TENTH OF DAN BLACK?`:
```sql
|
SELECT AVG("game") FROM "game_log" WHERE "date"='january 30'; |
## Task
Generate a SQL query to answer the following question:
`What average game has January 30 as the date?`
### 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,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What average game has January 30 as the date?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='january 19'; |
## Task
Generate a SQL query to answer the following question:
`What score has january 19 as the date?`
### 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,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has january 19 as the date?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "game">35 AND "date"='january 30'; |
## Task
Generate a SQL query to answer the following question:
`What is the loaction attendance that has a game greater than 35, with January 30 as the date?`
### 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,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the loaction attendance that has a game greater than 35, with January 30 as the date?`:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "date"='january 5'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest game that has January 5 as the date?`
### 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,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest game that has January 5 as the date?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='conseco fieldhouse 11,964'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest rebounds that has conseco fieldhouse 11,964 as the location attendance?`
### 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,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rebounds that has conseco fieldhouse 11,964 as the location attendance?`:
```sql
|
SELECT MAX("lane") FROM "semifinals" WHERE "mark"='2:02.27 nr' AND "heat"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the highest lane value for a mark of 2:02.27 NR, with heats under 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest lane value for a mark of 2:02.27 NR, with heats under 2?`:
```sql
|
SELECT "mark" FROM "semifinals" WHERE "country"='mozambique'; |
## Task
Generate a SQL query to answer the following question:
`What is the mark for the runner from Mozambique?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mark for the runner from Mozambique?`:
```sql
|
SELECT "name" FROM "semifinals" WHERE "lane"=6 AND "mark"='2:05.58 sb'; |
## Task
Generate a SQL query to answer the following question:
`Who was in lane 6 with a mark of 2:05.58 SB?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinals" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in lane 6 with a mark of 2:05.58 SB?`:
```sql
|
SELECT "vowel_final_stem_non_truncating" FROM "nouns" WHERE "example_k_ats_man"='k''ats-ma'; |
## Task
Generate a SQL query to answer the following question:
`What is the non-truncating vowel final stem for the example of k'ats-ma?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the non-truncating vowel final stem for the example of k'ats-ma?`:
```sql
|
SELECT "vowel_final_stem_truncating" FROM "nouns" WHERE "example_mama_father"='mama-s'; |
## Task
Generate a SQL query to answer the following question:
`What is the truncating vowel final stem that has an example of mama-s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the truncating vowel final stem that has an example of mama-s?`:
```sql
|
SELECT "example_k_ats_man" FROM "nouns" WHERE "vowel_final_stem_truncating"='-ø' AND "consonant_final_stem"='-o'; |
## Task
Generate a SQL query to answer the following question:
`What is the example for "man" that has a truncating vowel final stem of -ø and a consonant final stem of -o?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the example for "man" that has a truncating vowel final stem of -ø and a consonant final stem of -o?`:
```sql
|
SELECT "vowel_final_stem_non_truncating" FROM "nouns" WHERE "example_k_ats_man"='k''ats-s'; |
## Task
Generate a SQL query to answer the following question:
`What is the non-truncating vowel final stem that has an example of k'ats-s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the non-truncating vowel final stem that has an example of k'ats-s?`:
```sql
|
SELECT "example_k_ats_man" FROM "nouns" WHERE "example_mama_father"='mam-is'; |
## Task
Generate a SQL query to answer the following question:
`What is the example for "man" that has an example for "father" of mam-is?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the example for "man" that has an example for "father" of mam-is?`:
```sql
|
SELECT "example_mama_father" FROM "nouns" WHERE "consonant_final_stem"='-is'; |
## Task
Generate a SQL query to answer the following question:
`What is the example for "father" that has a consonant final stem of -is?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nouns" (
"consonant_final_stem" text,
"example_k_ats_man" text,
"vowel_final_stem_truncating" text,
"example_mama_father" text,
"vowel_final_stem_non_truncating" text,
"example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the example for "father" that has a consonant final stem of -is?`:
```sql
|
SELECT MAX("round") FROM "nfl_draft" WHERE "player"='ken irvin'; |
## Task
Generate a SQL query to answer the following question:
`What round was Ken Irvin drafted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was Ken Irvin drafted?`:
```sql
|
SELECT MAX("round") FROM "nfl_draft" WHERE "school_club_team"='michigan'; |
## Task
Generate a SQL query to answer the following question:
`In what round was a player from Michigan selected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round was a player from Michigan selected?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.