cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Prize Money, when Matches is less than 73, and when Round is Third Round Proper?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "calendar" (
  "round" text,
  "date" text,
  "matches" real,
  "clubs" text,
  "prize_money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Prize Money, when Matches is less than 73, and when Round is Third Round Proper?`:
```sql
                SELECT "prize_money" FROM "calendar" WHERE "matches"<73 AND "round"='third round proper';
```
## Task
Generate a SQL query to answer the following question:
`For the tournament played on a hard surface and ending with a score of Walkover, who was the Finals opponent?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_wins_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the tournament played on a hard surface and ending with a score of Walkover, who was the Finals opponent?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_wins_5" WHERE "surface"='hard' AND "score"='walkover';
```
## Task
Generate a SQL query to answer the following question:
`For the tournament played on September 25, 1995, who was the Finals opponent?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_wins_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the tournament played on September 25, 1995, who was the Finals opponent?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_wins_5" WHERE "date"='september 25, 1995';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament was played on September 25, 1995?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_wins_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was played on September 25, 1995?`:
```sql
                SELECT "tournament" FROM "singles_wins_5" WHERE "date"='september 25, 1995';
```
## Task
Generate a SQL query to answer the following question:
`What was the time for the bout against Amanda Lavoy, which went under 3 rounds?`

### 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" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for the bout against Amanda Lavoy, which went under 3 rounds?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "opponent"='amanda lavoy';
```
## Task
Generate a SQL query to answer the following question:
`What is Notes, when App(L/C/E) is 13 (7/2/4)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "players_out_on_loan" (
  "nat" text,
  "name" text,
  "since" real,
  "app_l_c_e" text,
  "goals_l_c_e" text,
  "ends" real,
  "transfer_fee" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Notes, when App(L/C/E) is 13 (7/2/4)?`:
```sql
                SELECT "notes" FROM "players_out_on_loan" WHERE "app_l_c_e"='13 (7/2/4)';
```
## Task
Generate a SQL query to answer the following question:
`What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "players_out_on_loan" (
  "nat" text,
  "name" text,
  "since" real,
  "app_l_c_e" text,
  "goals_l_c_e" text,
  "ends" real,
  "transfer_fee" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos?`:
```sql
                SELECT "nat" FROM "players_out_on_loan" WHERE "ends">2010 AND "since"=2006 AND "name"='paligeorgos';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Since, when Notes is To Anagennisi Karditsa, and when App(L/C/E) is 0 (0/0/0)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "players_out_on_loan" (
  "nat" text,
  "name" text,
  "since" real,
  "app_l_c_e" text,
  "goals_l_c_e" text,
  "ends" real,
  "transfer_fee" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Since, when Notes is To Anagennisi Karditsa, and when App(L/C/E) is 0 (0/0/0)?`:
```sql
                SELECT MIN("since") FROM "players_out_on_loan" WHERE "notes"='to anagennisi karditsa' AND "app_l_c_e"='0 (0/0/0)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time/Retired of the Newman-Haas Racing team in under 51 laps?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time/Retired of the Newman-Haas Racing team in under 51 laps?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "laps"<51 AND "team"='newman-haas racing';
```
## Task
Generate a SQL query to answer the following question:
`What are the lowest laps Alex Tagliani did for the Forsythe Racing team?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest laps Alex Tagliani did for the Forsythe Racing team?`:
```sql
                SELECT MIN("laps") FROM "race" WHERE "team"='forsythe racing' AND "driver"='alex tagliani';
```
## Task
Generate a SQL query to answer the following question:
`What is the Event when DNP shows for 2007–08?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Event when DNP shows for 2007–08?`:
```sql
                SELECT "event" FROM "grand_slam_record" WHERE "2007_08"='dnp';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008–09 when the 2009–10 shows q?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008–09 when the 2009–10 shows q?`:
```sql
                SELECT "2008_09" FROM "grand_slam_record" WHERE "2009_10"='q';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2009–10 when the 2007–08 shows n/a, and an Event of colonial square ladies classic?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2009–10 when the 2007–08 shows n/a, and an Event of colonial square ladies classic?`:
```sql
                SELECT "2009_10" FROM "grand_slam_record" WHERE "2007_08"='n/a' AND "event"='colonial square ladies classic';
```
## Task
Generate a SQL query to answer the following question:
`What is the Event when the 2008–09 is sf?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Event when the 2008–09 is sf?`:
```sql
                SELECT "event" FROM "grand_slam_record" WHERE "2008_09"='sf';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010–11 when the Event is colonial square ladies classic?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010–11 when the Event is colonial square ladies classic?`:
```sql
                SELECT "2010_11" FROM "grand_slam_record" WHERE "event"='colonial square ladies classic';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007–08 when the event was autumn gold?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007–08 when the event was autumn gold?`:
```sql
                SELECT "2007_08" FROM "grand_slam_record" WHERE "event"='autumn gold';
```
## Task
Generate a SQL query to answer the following question:
`Which Cultural and Educational Panel has a Labour Panel larger than 5, and an Industrial and Commercial Panel larger than 9?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_15th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Cultural and Educational Panel has a Labour Panel larger than 5, and an Industrial and Commercial Panel larger than 9?`:
```sql
                SELECT COUNT("cultural_and_educational_panel") FROM "composition_of_the_15th_seanad" WHERE "labour_panel">5 AND "industrial_and_commercial_panel">9;
```
## Task
Generate a SQL query to answer the following question:
`Which Administrative Panel has a Nominated by the Taoiseach smaller than 0?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_15th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Administrative Panel has a Nominated by the Taoiseach smaller than 0?`:
```sql
                SELECT MIN("administrative_panel") FROM "composition_of_the_15th_seanad" WHERE "nominated_by_the_taoiseach"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Labour Panel has an Industrial and Commercial Panel of 9, and a University of Dublin smaller than 3?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_15th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Labour Panel has an Industrial and Commercial Panel of 9, and a University of Dublin smaller than 3?`:
```sql
                SELECT AVG("labour_panel") FROM "composition_of_the_15th_seanad" WHERE "industrial_and_commercial_panel"=9 AND "university_of_dublin"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a National University of Ireland smaller than 2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_15th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a National University of Ireland smaller than 2?`:
```sql
                SELECT COUNT("total") FROM "composition_of_the_15th_seanad" WHERE "labour_panel"<5 AND "administrative_panel"<1 AND "national_university_of_ireland"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which Agricultural Panel has a Nominated by the Taoiseach larger than 6, and a Total larger than 60?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_15th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Agricultural Panel has a Nominated by the Taoiseach larger than 6, and a Total larger than 60?`:
```sql
                SELECT SUM("agricultural_panel") FROM "composition_of_the_15th_seanad" WHERE "nominated_by_the_taoiseach">6 AND "total">60;
```
## Task
Generate a SQL query to answer the following question:
`What is Team 1 when Team 2 is Jac Port-Gentil?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 1 when Team 2 is Jac Port-Gentil?`:
```sql
                SELECT "team_1" FROM "second_round" WHERE "team_2"='jac port-gentil';
```
## Task
Generate a SQL query to answer the following question:
`What was Team 2 with a 2nd leg of 0-0?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Team 2 with a 2nd leg of 0-0?`:
```sql
                SELECT "team_2" FROM "second_round" WHERE "2nd_leg"='0-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg of the Round that has a 2nd leg of 1-3 and Team 1 Es Tunis?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st leg of the Round that has a 2nd leg of 1-3 and Team 1 Es Tunis?`:
```sql
                SELECT "1st_leg" FROM "second_round" WHERE "2nd_leg"='1-3' AND "team_1"='es tunis';
```
## Task
Generate a SQL query to answer the following question:
`What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "sunshine_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010?`:
```sql
                SELECT "winning_score" FROM "sunshine_tour_wins_6" WHERE "tournament"='joburg open 1' AND "date"='17 jan 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Tournament is Alfred Dunhill Championship 1?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "sunshine_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Tournament is Alfred Dunhill Championship 1?`:
```sql
                SELECT "date" FROM "sunshine_tour_wins_6" WHERE "tournament"='alfred dunhill championship 1';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Margin is Victory of 6 Strokes?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "sunshine_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when Margin is Victory of 6 Strokes?`:
```sql
                SELECT "tournament" FROM "sunshine_tour_wins_6" WHERE "margin_of_victory"='6 strokes';
```
## Task
Generate a SQL query to answer the following question:
`What is Winning Score, when Date is 17 Jan 2010?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "sunshine_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winning Score, when Date is 17 Jan 2010?`:
```sql
                SELECT "winning_score" FROM "sunshine_tour_wins_6" WHERE "date"='17 jan 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Runner(s)-Up is Garth Mulroy?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "sunshine_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when Runner(s)-Up is Garth Mulroy?`:
```sql
                SELECT "tournament" FROM "sunshine_tour_wins_6" WHERE "runner_s_up"='garth mulroy';
```
## Task
Generate a SQL query to answer the following question:
`What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "sunshine_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?`:
```sql
                SELECT "runner_s_up" FROM "sunshine_tour_wins_6" WHERE "margin_of_victory"='1 stroke' AND "tournament"='joburg open 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the points sum of the series with less than 0 poles?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points sum of the series with less than 0 poles?`:
```sql
                SELECT SUM("points") FROM "career_summary" WHERE "poles"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the races in the 2007 season, which has more than 4 podiums?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the races in the 2007 season, which has more than 4 podiums?`:
```sql
                SELECT SUM("races") FROM "career_summary" WHERE "podiums">4 AND "season"='2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the poles of Team la filière, which has less than 162 points?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the poles of Team la filière, which has less than 162 points?`:
```sql
                SELECT SUM("poles") FROM "career_summary" WHERE "team"='la filière' AND "points"<162;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of points in the 2012 season, which has less than 1 wins and less than 0 podiums?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of points in the 2012 season, which has less than 1 wins and less than 0 podiums?`:
```sql
                SELECT AVG("points") FROM "career_summary" WHERE "wins"<1 AND "season"='2012' AND "podiums"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many poles had a moto2 class?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "by_class" (
  "class" text,
  "season" text,
  "race" real,
  "podiums" real,
  "pole" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many poles had a moto2 class?`:
```sql
                SELECT "pole" FROM "by_class" WHERE "class"='moto2';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Cultural and Educational Panels that have an Administrative Panel greater than 1, an Agricultural Panel of 11 and a University of Dublin smaller than 3?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_7th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the Cultural and Educational Panels that have an Administrative Panel greater than 1, an Agricultural Panel of 11 and a University of Dublin smaller than 3?`:
```sql
                SELECT SUM("cultural_and_educational_panel") FROM "composition_of_the_7th_seanad" WHERE "administrative_panel">1 AND "agricultural_panel"=11 AND "university_of_dublin"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_7th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?`:
```sql
                SELECT SUM("agricultural_panel") FROM "composition_of_the_7th_seanad" WHERE "industrial_and_commercial_panel"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of National University of Ireland that has a Cultural and Educational Panel of 0, and a Labour Panel smaller than 1?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_7th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of National University of Ireland that has a Cultural and Educational Panel of 0, and a Labour Panel smaller than 1?`:
```sql
                SELECT MIN("national_university_of_ireland") FROM "composition_of_the_7th_seanad" WHERE "cultural_and_educational_panel"=0 AND "labour_panel"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_7th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0`:
```sql
                SELECT COUNT("industrial_and_commercial_panel") FROM "composition_of_the_7th_seanad" WHERE "labour_panel">1 AND "nominated_by_the_taoiseach"<11 AND "cultural_and_educational_panel"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of goals when 2428 minutes were played?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "players" (
  "player" text,
  "position" text,
  "gp_gs" text,
  "minutes" real,
  "goals" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of goals when 2428 minutes were played?`:
```sql
                SELECT MAX("goals") FROM "players" WHERE "minutes"=2428;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of minutes when there are more than 4 goals and 3 assists?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "players" (
  "player" text,
  "position" text,
  "gp_gs" text,
  "minutes" real,
  "goals" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of minutes when there are more than 4 goals and 3 assists?`:
```sql
                SELECT "minutes" FROM "players" WHERE "goals">4 AND "assists"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scored, and the minutes were less than 473?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "players" (
  "player" text,
  "position" text,
  "gp_gs" text,
  "minutes" real,
  "goals" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scored, and the minutes were less than 473?`:
```sql
                SELECT COUNT("assists") FROM "players" WHERE "position"='striker' AND "goals"<4 AND "player"='edmundo rodriguez' AND "minutes"<473;
```
## Task
Generate a SQL query to answer the following question:
`What is the least ERP W when the freguency MHz is 89.3 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,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least ERP W when the freguency MHz is 89.3 fm?`:
```sql
                SELECT MIN("erp_w") FROM "translators" WHERE "frequency_m_hz"='89.3 fm';
```
## Task
Generate a SQL query to answer the following question:
`Call sign k216fo has what average 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,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Call sign k216fo has what average ERP W?`:
```sql
                SELECT AVG("erp_w") FROM "translators" WHERE "call_sign"='k216fo';
```
## Task
Generate a SQL query to answer the following question:
`What city does call sign K248am have its license in?`

### 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,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city does call sign K248am have its license in?`:
```sql
                SELECT "city_of_license" FROM "translators" WHERE "call_sign"='k248am';
```
## Task
Generate a SQL query to answer the following question:
`What call sign has ERP W greater than 197?`

### 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,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What call sign has ERP W greater than 197?`:
```sql
                SELECT "call_sign" FROM "translators" WHERE "erp_w">197;
```
## Task
Generate a SQL query to answer the following question:
`How many points did Costa score in the Macau Grand Prix since 2011?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Costa score in the Macau Grand Prix since 2011?`:
```sql
                SELECT "points" FROM "career_summary" WHERE "season">2011 AND "series"='macau grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Which teams had the 1st position and entered 1 race?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which teams had the 1st position and entered 1 race?`:
```sql
                SELECT "team" FROM "career_summary" WHERE "races"='1' AND "position"='1st';
```
## Task
Generate a SQL query to answer the following question:
`How many points did Carlin have when they had 3 wins?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Carlin have when they had 3 wins?`:
```sql
                SELECT "points" FROM "career_summary" WHERE "wins"='3' AND "team"='carlin';
```
## Task
Generate a SQL query to answer the following question:
`How many Points have an Against smaller than 43, and a Position smaller than 1?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "laf_s_campeonato_paulista" (
  "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 `How many Points have an Against smaller than 43, and a Position smaller than 1?`:
```sql
                SELECT SUM("points") FROM "laf_s_campeonato_paulista" WHERE "against"<43 AND "position"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many Drawn have a Position of 7, and Points larger than 18?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "laf_s_campeonato_paulista" (
  "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 `How many Drawn have a Position of 7, and Points larger than 18?`:
```sql
                SELECT COUNT("drawn") FROM "laf_s_campeonato_paulista" WHERE "position"=7 AND "points">18;
```
## Task
Generate a SQL query to answer the following question:
`How many Against have a Team of hespanha, and Points smaller than 30?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "laf_s_campeonato_paulista" (
  "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 `How many Against have a Team of hespanha, and Points smaller than 30?`:
```sql
                SELECT COUNT("against") FROM "laf_s_campeonato_paulista" WHERE "team"='hespanha' AND "points"<30;
```
## Task
Generate a SQL query to answer the following question:
`Which Points is the average one that has Drawn of 3, and a Played smaller than 22?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "laf_s_campeonato_paulista" (
  "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 `Which Points is the average one that has Drawn of 3, and a Played smaller than 22?`:
```sql
                SELECT AVG("points") FROM "laf_s_campeonato_paulista" WHERE "drawn"=3 AND "played"<22;
```
## Task
Generate a SQL query to answer the following question:
`How much Played has an Against larger than 37, and a Lost of 15, and Points smaller than 11?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "laf_s_campeonato_paulista" (
  "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 `How much Played has an Against larger than 37, and a Lost of 15, and Points smaller than 11?`:
```sql
                SELECT SUM("played") FROM "laf_s_campeonato_paulista" WHERE "against">37 AND "lost"=15 AND "points"<11;
```
## Task
Generate a SQL query to answer the following question:
`Which artist has the Spoofed title Miscue 911?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "1990s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist has the Spoofed title Miscue 911?`:
```sql
                SELECT "artist" FROM "1990s" WHERE "spoofed_title"='miscue 911';
```
## Task
Generate a SQL query to answer the following question:
`Which Spoofed title is from February 1998?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "1990s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Spoofed title is from February 1998?`:
```sql
                SELECT "spoofed_title" FROM "1990s" WHERE "date"='february 1998';
```
## Task
Generate a SQL query to answer the following question:
`Which artist has a Spoofed title in June 1992?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "1990s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist has a Spoofed title in June 1992?`:
```sql
                SELECT "artist" FROM "1990s" WHERE "date"='june 1992';
```
## Task
Generate a SQL query to answer the following question:
`What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?`

### 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_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?`:
```sql
                SELECT AVG("laps") FROM "125cc_classification" WHERE "manufacturer"='ktm' AND "time_retired"='+56.440' AND "grid"<11;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660?`

### 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_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660?`:
```sql
                SELECT MAX("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "time_retired"='+1.660';
```
## Task
Generate a SQL query to answer the following question:
`What Round against Aleksander Emelianenko had a time of 5:00?`

### 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" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Round against Aleksander Emelianenko had a time of 5:00?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "opponent"='aleksander emelianenko';
```
## Task
Generate a SQL query to answer the following question:
`In 1958, what has the IRFU All-Stars Home Venue?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "list_of_games" (
  "season" real,
  "date" text,
  "venue" text,
  "city" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In 1958, what has the IRFU All-Stars Home Venue?`:
```sql
                SELECT "venue" FROM "list_of_games" WHERE "home"='irfu all-stars' AND "season"=1958;
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the Venue at Exhibition Stadium?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "list_of_games" (
  "season" real,
  "date" text,
  "venue" text,
  "city" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the Venue at Exhibition Stadium?`:
```sql
                SELECT "date" FROM "list_of_games" WHERE "venue"='exhibition stadium';
```
## Task
Generate a SQL query to answer the following question:
`Before 1957, what was the largest in Attendance at Varsity Stadium?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "list_of_games" (
  "season" real,
  "date" text,
  "venue" text,
  "city" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Before 1957, what was the largest in Attendance at Varsity Stadium?`:
```sql
                SELECT MAX("attendance") FROM "list_of_games" WHERE "season"<1957 AND "venue"='varsity stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time with a Score that is 65-19?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_three" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time with a Score that is 65-19?`:
```sql
                SELECT "time" FROM "round_three" WHERE "score"='65-19';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time with an Away that is broadview hawks?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_three" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time with an Away that is broadview hawks?`:
```sql
                SELECT "time" FROM "round_three" WHERE "away"='broadview hawks';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "campeonato_paulista" (
  "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 `Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4?`:
```sql
                SELECT SUM("position") FROM "campeonato_paulista" WHERE "against"=32 AND "difference"='18' AND "drawn">4;
```
## Task
Generate a SQL query to answer the following question:
`Which Position has an Against smaller than 49, and a Drawn of 4?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "campeonato_paulista" (
  "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 `Which Position has an Against smaller than 49, and a Drawn of 4?`:
```sql
                SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"<49 AND "drawn"=4;
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a Drawn of 5, and a Team of palmeiras, and a Position smaller than 6?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "campeonato_paulista" (
  "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 `Which Played has a Drawn of 5, and a Team of palmeiras, and a Position smaller than 6?`:
```sql
                SELECT MAX("played") FROM "campeonato_paulista" WHERE "drawn"=5 AND "team"='palmeiras' AND "position"<6;
```
## Task
Generate a SQL query to answer the following question:
`What team played on November 17?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team played on November 17?`:
```sql
                SELECT "team" FROM "game_log" WHERE "date"='november 17';
```
## Task
Generate a SQL query to answer the following question:
`What is the comp when the ryds is 2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "post_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the comp when the ryds is 2?`:
```sql
                SELECT "comp" FROM "post_season" WHERE "r_yds"='2';
```
## Task
Generate a SQL query to answer the following question:
`What is the RAtt when the comp is 48?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "post_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the RAtt when the comp is 48?`:
```sql
                SELECT "r_att" FROM "post_season" WHERE "comp"='48';
```
## Task
Generate a SQL query to answer the following question:
`What is the RAtt when the long is 73?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "post_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the RAtt when the long is 73?`:
```sql
                SELECT "r_att" FROM "post_season" WHERE "long"='73';
```