cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the 123 south broad street address name before 1973?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real,
  "address" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 123 south broad street address name before 1973?`:
```sql
                SELECT "name" FROM "tallest_buildings" WHERE "year"<1973 AND "address"='123 south broad street';
```
## Task
Generate a SQL query to answer the following question:
`Which competition has goals less than 2?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition has goals less than 2?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "goal"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's the result of a goal larger than 4?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the result of a goal larger than 4?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "goal">4;
```
## Task
Generate a SQL query to answer the following question:
`tell me the type that has the marostica to bibione course.`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell me the type that has the marostica to bibione course.`:
```sql
                SELECT "type" FROM "stage_results" WHERE "course"='marostica to bibione';
```
## Task
Generate a SQL query to answer the following question:
`who won on 29 may?`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won on 29 may?`:
```sql
                SELECT "winner" FROM "stage_results" WHERE "date"='29 may';
```
## Task
Generate a SQL query to answer the following question:
`What is the term for hometown Ester Creek?`

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

CREATE TABLE "territorial_house" (
  "name" text,
  "party" text,
  "hometown" text,
  "division" text,
  "term" text,
  "legislatures" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the term for hometown Ester Creek?`:
```sql
                SELECT "term" FROM "territorial_house" WHERE "hometown"='ester creek';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of Gold medals for the Nation with a Total of 5 and Rank larger than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Gold medals for the Nation with a Total of 5 and Rank larger than 1?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "total"=5 AND "rank">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Silver for the Nation with more than 1 Bronze and a Rank less than 5?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Silver for the Nation with more than 1 Bronze and a Rank less than 5?`:
```sql
                SELECT COUNT("silver") FROM "medal_table" WHERE "bronze">1 AND "rank"<5;
```
## Task
Generate a SQL query to answer the following question:
`In what round was the loss at ufc 118?`

### 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 `In what round was the loss at ufc 118?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='ufc 118';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest decile with an Area of otumoetai?`

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

CREATE TABLE "tauranga_city" (
  "name" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest decile with an Area of otumoetai?`:
```sql
                SELECT MIN("decile") FROM "tauranga_city" WHERE "area"='otumoetai';
```
## Task
Generate a SQL query to answer the following question:
`Which decile has an Area of welcome bay, and an Authority of state?`

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

CREATE TABLE "tauranga_city" (
  "name" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which decile has an Area of welcome bay, and an Authority of state?`:
```sql
                SELECT "decile" FROM "tauranga_city" WHERE "area"='welcome bay' AND "authority"='state';
```
## Task
Generate a SQL query to answer the following question:
`How many deciles have a Gender of coed, an Authority of state, and a Name of mount maunganui school?`

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

CREATE TABLE "tauranga_city" (
  "name" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many deciles have a Gender of coed, an Authority of state, and a Name of mount maunganui school?`:
```sql
                SELECT SUM("decile") FROM "tauranga_city" WHERE "gender"='coed' AND "authority"='state' AND "name"='mount maunganui school';
```
## Task
Generate a SQL query to answer the following question:
`Which name has a Decile of 5, and an Area of tauranga?`

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

CREATE TABLE "tauranga_city" (
  "name" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has a Decile of 5, and an Area of tauranga?`:
```sql
                SELECT "name" FROM "tauranga_city" WHERE "decile"=5 AND "area"='tauranga';
```
## Task
Generate a SQL query to answer the following question:
`Which Authority has a Gender of coed, a Decile smaller than 6, and an Area of merivale?`

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

CREATE TABLE "tauranga_city" (
  "name" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Authority has a Gender of coed, a Decile smaller than 6, and an Area of merivale?`:
```sql
                SELECT "authority" FROM "tauranga_city" WHERE "gender"='coed' AND "decile"<6 AND "area"='merivale';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest decile with a Name of st mary's catholic school?`

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

CREATE TABLE "tauranga_city" (
  "name" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest decile with a Name of st mary's catholic school?`:
```sql
                SELECT MIN("decile") FROM "tauranga_city" WHERE "name"='st mary''s catholic school';
```
## Task
Generate a SQL query to answer the following question:
`What is the average birth rate that has a total fertility rate of na, and a natural growth smaller than 2.5?`

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

CREATE TABLE "population_movement_of_jews_from_former_" (
  "year" text,
  "births_000s" real,
  "deaths" real,
  "natural_growth" real,
  "total_fertility_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average birth rate that has a total fertility rate of na, and a natural growth smaller than 2.5?`:
```sql
                SELECT AVG("births_000s") FROM "population_movement_of_jews_from_former_" WHERE "total_fertility_rate"='na' AND "natural_growth"<2.5;
```
## Task
Generate a SQL query to answer the following question:
`What was the amount of deaths that had a natural growth smaller than 3.4, and a total fertility rate of 1.63?`

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

CREATE TABLE "population_movement_of_jews_from_former_" (
  "year" text,
  "births_000s" real,
  "deaths" real,
  "natural_growth" real,
  "total_fertility_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the amount of deaths that had a natural growth smaller than 3.4, and a total fertility rate of 1.63?`:
```sql
                SELECT "deaths" FROM "population_movement_of_jews_from_former_" WHERE "natural_growth"<3.4 AND "total_fertility_rate"='1.63';
```
## Task
Generate a SQL query to answer the following question:
`What is the average births that had a death rate of 0.4`

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

CREATE TABLE "population_movement_of_jews_from_former_" (
  "year" text,
  "births_000s" real,
  "deaths" real,
  "natural_growth" real,
  "total_fertility_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average births that had a death rate of 0.4`:
```sql
                SELECT AVG("births_000s") FROM "population_movement_of_jews_from_former_" WHERE "deaths"=0.4;
```
## Task
Generate a SQL query to answer the following question:
`What was the amount of Births (000s) that had a death rate larger than 7.6, and a Year of 1990-2009?`

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

CREATE TABLE "population_movement_of_jews_from_former_" (
  "year" text,
  "births_000s" real,
  "deaths" real,
  "natural_growth" real,
  "total_fertility_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the amount of Births (000s) that had a death rate larger than 7.6, and a Year of 1990-2009?`:
```sql
                SELECT SUM("births_000s") FROM "population_movement_of_jews_from_former_" WHERE "deaths">7.6 AND "year"='1990-2009';
```
## Task
Generate a SQL query to answer the following question:
`What was the total fertility rate that had a death rate larger than 7.8?`

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

CREATE TABLE "population_movement_of_jews_from_former_" (
  "year" text,
  "births_000s" real,
  "deaths" real,
  "natural_growth" real,
  "total_fertility_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total fertility rate that had a death rate larger than 7.8?`:
```sql
                SELECT "total_fertility_rate" FROM "population_movement_of_jews_from_former_" WHERE "deaths">7.8;
```
## Task
Generate a SQL query to answer the following question:
`How many votes did the security guard get?`

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

CREATE TABLE "28_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did the security guard get?`:
```sql
                SELECT "votes" FROM "28_seats" WHERE "occupation"='security guard';
```
## Task
Generate a SQL query to answer the following question:
`What is John Marvin Wierenga's occupation?`

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

CREATE TABLE "28_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is John Marvin Wierenga's occupation?`:
```sql
                SELECT "occupation" FROM "28_seats" WHERE "candidate_s_name"='john marvin wierenga';
```
## Task
Generate a SQL query to answer the following question:
`What is the average value for 2005, when the value for 2008 is greater than 0, when the value for 2007 is greater than 310, when the Average annual is 767, and when the Total is greater than 4,597?`

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

CREATE TABLE "investment" (
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "total" real,
  "average_annual" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value for 2005, when the value for 2008 is greater than 0, when the value for 2007 is greater than 310, when the Average annual is 767, and when the Total is greater than 4,597?`:
```sql
                SELECT AVG("2005") FROM "investment" WHERE "2008">0 AND "2007">310 AND "average_annual"=767 AND "total">'4,597';
```
## Task
Generate a SQL query to answer the following question:
`What is the average value for 2005, when the value for Average annual is 767?`

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

CREATE TABLE "investment" (
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "total" real,
  "average_annual" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value for 2005, when the value for Average annual is 767?`:
```sql
                SELECT AVG("2005") FROM "investment" WHERE "average_annual"=767;
```
## Task
Generate a SQL query to answer the following question:
`In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?`

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

CREATE TABLE "achievements" (
  "year" text,
  "finish" text,
  "team" text,
  "tournament" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?`:
```sql
                SELECT "year" FROM "achievements" WHERE "tournament"='1st division el salvador' AND "finish"='champion' AND "team"='fas';
```
## Task
Generate a SQL query to answer the following question:
`In what Year was the Finish Champions?`

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

CREATE TABLE "achievements" (
  "year" text,
  "finish" text,
  "team" text,
  "tournament" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Year was the Finish Champions?`:
```sql
                SELECT "year" FROM "achievements" WHERE "finish"='champions';
```
## Task
Generate a SQL query to answer the following question:
`During the Tournament of 1st Division El Salvador, what was the Finish for the Team of Platense Municipal Zacatecoluca?`

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

CREATE TABLE "achievements" (
  "year" text,
  "finish" text,
  "team" text,
  "tournament" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the Tournament of 1st Division El Salvador, what was the Finish for the Team of Platense Municipal Zacatecoluca?`:
```sql
                SELECT "finish" FROM "achievements" WHERE "team"='platense municipal zacatecoluca' AND "tournament"='1st division el salvador';
```
## Task
Generate a SQL query to answer the following question:
`What is the Role in the 1st Division Honduras Tournament?`

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

CREATE TABLE "achievements" (
  "year" text,
  "finish" text,
  "team" text,
  "tournament" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Role in the 1st Division Honduras Tournament?`:
```sql
                SELECT "role" FROM "achievements" WHERE "tournament"='1st division honduras';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tournament in the Year of 1986?`

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

CREATE TABLE "achievements" (
  "year" text,
  "finish" text,
  "team" text,
  "tournament" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tournament in the Year of 1986?`:
```sql
                SELECT "tournament" FROM "achievements" WHERE "year"='1986';
```
## Task
Generate a SQL query to answer the following question:
`During the Tournament of Torneo Fraternidad/UNCAF Club championship, what is the Role of the Platense Municipal Zacatecoluca Team?`

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

CREATE TABLE "achievements" (
  "year" text,
  "finish" text,
  "team" text,
  "tournament" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the Tournament of Torneo Fraternidad/UNCAF Club championship, what is the Role of the Platense Municipal Zacatecoluca Team?`:
```sql
                SELECT "role" FROM "achievements" WHERE "team"='platense municipal zacatecoluca' AND "tournament"='torneo fraternidad/uncaf club championship';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of teams that play the yankees, and lose at mulholland (5-6)`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of teams that play the yankees, and lose at mulholland (5-6)`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='yankees' AND "loss"='mulholland (5-6)';
```
## Task
Generate a SQL query to answer the following question:
`Which total is highest with 0 gold and more than 0 silver, in Ukraine?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which total is highest with 0 gold and more than 0 silver, in Ukraine?`:
```sql
                SELECT MAX("total") FROM "medal_table" WHERE "gold"=0 AND "silver">0 AND "nation"='ukraine';
```
## Task
Generate a SQL query to answer the following question:
`What is the total rank with more than 2 silver and total larger than 10?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total rank with more than 2 silver and total larger than 10?`:
```sql
                SELECT SUM("rank") FROM "medal_table" WHERE "silver"=2 AND "total">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the total rank with a total larger than 2, and less than 0 gold`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total rank with a total larger than 2, and less than 0 gold`:
```sql
                SELECT SUM("rank") FROM "medal_table" WHERE "total">2 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which is the highest bronze with gold less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the highest bronze with gold less than 0?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total with a rank less than 5, gold larger than 5 and bronze larger than 8?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total with a rank less than 5, gold larger than 5 and bronze larger than 8?`:
```sql
                SELECT SUM("total") FROM "medal_table" WHERE "rank"<5 AND "gold">5 AND "bronze">8;
```
## Task
Generate a SQL query to answer the following question:
`Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "result"='1st' AND "extra"='4 x 400 m relay';
```
## Task
Generate a SQL query to answer the following question:
`a Year smaller than 2007, and a Result of 1st is in what venue?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `a Year smaller than 2007, and a Result of 1st is in what venue?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year"<2007 AND "result"='1st';
```
## Task
Generate a SQL query to answer the following question:
`Venue of melbourne , australia, and a Extra of 200 m has what results?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `Venue of melbourne , australia, and a Extra of 200 m has what results?`:
```sql
                SELECT "result" FROM "achievements" WHERE "venue"='melbourne , australia' AND "extra"='200 m';
```
## Task
Generate a SQL query to answer the following question:
`Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in which year?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in which year?`:
```sql
                SELECT "year" FROM "achievements" WHERE "result"='1st' AND "venue"='melbourne , australia' AND "extra"='100 m';
```
## Task
Generate a SQL query to answer the following question:
`Name the rectifier for Det/Pre-amp of x and # tubes of 4`

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

CREATE TABLE "variations_on_the_theme" (
  "num_tubes" text,
  "converter" text,
  "det_pre_amp" text,
  "audio_amp" text,
  "rectifier" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rectifier for Det/Pre-amp of x and # tubes of 4`:
```sql
                SELECT "rectifier" FROM "variations_on_the_theme" WHERE "det_pre_amp"='x' AND "num_tubes"='4';
```
## Task
Generate a SQL query to answer the following question:
`Name the # tubes with Det/Pre-amp of x and audio amp of x x (push-pull)`

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

CREATE TABLE "variations_on_the_theme" (
  "num_tubes" text,
  "converter" text,
  "det_pre_amp" text,
  "audio_amp" text,
  "rectifier" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the # tubes with Det/Pre-amp of x and audio amp of x x (push-pull)`:
```sql
                SELECT "num_tubes" FROM "variations_on_the_theme" WHERE "det_pre_amp"='x' AND "audio_amp"='x x (push-pull)';
```
## Task
Generate a SQL query to answer the following question:
`Name the det/pre-amp with # of tubes of 8`

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

CREATE TABLE "variations_on_the_theme" (
  "num_tubes" text,
  "converter" text,
  "det_pre_amp" text,
  "audio_amp" text,
  "rectifier" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the det/pre-amp with # of tubes of 8`:
```sql
                SELECT "det_pre_amp" FROM "variations_on_the_theme" WHERE "num_tubes"='8';
```
## Task
Generate a SQL query to answer the following question:
`Name the det/pre-amp with # tubes of 4 and rectifier of x`

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

CREATE TABLE "variations_on_the_theme" (
  "num_tubes" text,
  "converter" text,
  "det_pre_amp" text,
  "audio_amp" text,
  "rectifier" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the det/pre-amp with # tubes of 4 and rectifier of x`:
```sql
                SELECT "det_pre_amp" FROM "variations_on_the_theme" WHERE "num_tubes"='4' AND "rectifier"='x';
```
## Task
Generate a SQL query to answer the following question:
`Name the # tubes with audio amp of x`

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

CREATE TABLE "variations_on_the_theme" (
  "num_tubes" text,
  "converter" text,
  "det_pre_amp" text,
  "audio_amp" text,
  "rectifier" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the # tubes with audio amp of x`:
```sql
                SELECT "num_tubes" FROM "variations_on_the_theme" WHERE "audio_amp"='x';
```
## Task
Generate a SQL query to answer the following question:
`What type of Competition has a Goal of 3?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of Competition has a Goal of 3?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "goal"=3;
```
## Task
Generate a SQL query to answer the following question:
`Which Competition has the Date July 1, 2000?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition has the Date July 1, 2000?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='july 1, 2000';
```
## Task
Generate a SQL query to answer the following question:
`Which years did James Robert Jones serve?`

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

CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years did James Robert Jones serve?`:
```sql
                SELECT "years" FROM "external_links" WHERE "representative"='james robert jones';
```
## Task
Generate a SQL query to answer the following question:
`James Hutchins Johnson, from New Hampshire, served during what years?`

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

CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `James Hutchins Johnson, from New Hampshire, served during what years?`:
```sql
                SELECT "years" FROM "external_links" WHERE "state"='new hampshire' AND "representative"='james hutchins johnson';
```
## Task
Generate a SQL query to answer the following question:
`Who is the team that has played more than 18 games and has 6 losses?`

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

CREATE TABLE "all_time_record" (
  "season" text,
  "team_name" text,
  "games" real,
  "losses" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the team that has played more than 18 games and has 6 losses?`:
```sql
                SELECT "team_name" FROM "all_time_record" WHERE "losses"=6 AND "games">18;
```
## Task
Generate a SQL query to answer the following question:
`Which season did the Burnaby Lakers have less than 16 points and less than 18 losses?`

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

CREATE TABLE "all_time_record" (
  "season" text,
  "team_name" text,
  "games" real,
  "losses" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which season did the Burnaby Lakers have less than 16 points and less than 18 losses?`:
```sql
                SELECT "season" FROM "all_time_record" WHERE "points"<16 AND "losses"=18;
```
## Task
Generate a SQL query to answer the following question:
`Which team had more than 15 losses in 1988?`

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

CREATE TABLE "all_time_record" (
  "season" text,
  "team_name" text,
  "games" real,
  "losses" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had more than 15 losses in 1988?`:
```sql
                SELECT "team_name" FROM "all_time_record" WHERE "losses">15 AND "season"='1988';
```
## Task
Generate a SQL query to answer the following question:
`How many losses did the Burnaby Lakers accumulate when they scored 8 points in 1998 playing less than 25 games?`

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

CREATE TABLE "all_time_record" (
  "season" text,
  "team_name" text,
  "games" real,
  "losses" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses did the Burnaby Lakers accumulate when they scored 8 points in 1998 playing less than 25 games?`:
```sql
                SELECT SUM("losses") FROM "all_time_record" WHERE "team_name"='burnaby lakers' AND "points"=8 AND "season"='1998' AND "games"<25;
```
## Task
Generate a SQL query to answer the following question:
`What was the school for the player who was a DL?`

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

CREATE TABLE "cfl_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 was the school for the player who was a DL?`:
```sql
                SELECT "school_club_team" FROM "cfl_draft" WHERE "position"='dl';
```
## Task
Generate a SQL query to answer the following question:
`Which pick was used on Ian Hazlett?`

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

CREATE TABLE "cfl_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 `Which pick was used on Ian Hazlett?`:
```sql
                SELECT MIN("pick") FROM "cfl_draft" WHERE "player"='ian hazlett';
```
## Task
Generate a SQL query to answer the following question:
`Which Thumb stick has a Basic shape of curved, a Backlit of yes, and a Supplier of genius?`

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

CREATE TABLE "available_keypads" (
  "supplier" text,
  "basic_shape" text,
  "keys_x_modes" text,
  "wrist_pad" text,
  "thumb_stick" text,
  "backlit" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Thumb stick has a Basic shape of curved, a Backlit of yes, and a Supplier of genius?`:
```sql
                SELECT "thumb_stick" FROM "available_keypads" WHERE "basic_shape"='curved' AND "backlit"='yes' AND "supplier"='genius';
```
## Task
Generate a SQL query to answer the following question:
`Which Thumb stick has a Wrist pad of no, and a Supplier of sharkoon?`

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

CREATE TABLE "available_keypads" (
  "supplier" text,
  "basic_shape" text,
  "keys_x_modes" text,
  "wrist_pad" text,
  "thumb_stick" text,
  "backlit" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Thumb stick has a Wrist pad of no, and a Supplier of sharkoon?`:
```sql
                SELECT "thumb_stick" FROM "available_keypads" WHERE "wrist_pad"='no' AND "supplier"='sharkoon';
```
## Task
Generate a SQL query to answer the following question:
`Which keys (x modes) have a Supplier of wolfking?`

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

CREATE TABLE "available_keypads" (
  "supplier" text,
  "basic_shape" text,
  "keys_x_modes" text,
  "wrist_pad" text,
  "thumb_stick" text,
  "backlit" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which keys (x modes) have a Supplier of wolfking?`:
```sql
                SELECT "keys_x_modes" FROM "available_keypads" WHERE "supplier"='wolfking';
```
## Task
Generate a SQL query to answer the following question:
`Which Supplier have a Basic shape of flat, a Wrist pad of no, and Keys (x modes) of 25+?`

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

CREATE TABLE "available_keypads" (
  "supplier" text,
  "basic_shape" text,
  "keys_x_modes" text,
  "wrist_pad" text,
  "thumb_stick" text,
  "backlit" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Supplier have a Basic shape of flat, a Wrist pad of no, and Keys (x modes) of 25+?`:
```sql
                SELECT "supplier" FROM "available_keypads" WHERE "basic_shape"='flat' AND "wrist_pad"='no' AND "keys_x_modes"='25+';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with the time 3:59?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent with the time 3:59?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "time"='3:59';
```
## Task
Generate a SQL query to answer the following question:
`Name the Israel Bowl for march 30, 2012`

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

CREATE TABLE "ifl_champions" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "israel_bowl" text,
  "venue" text,
  "date" text,
  "finals_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Israel Bowl for march 30, 2012`:
```sql
                SELECT "israel_bowl" FROM "ifl_champions" WHERE "date"='march 30, 2012';
```
## Task
Generate a SQL query to answer the following question:
`Name the venue for march 28, 2008`

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

CREATE TABLE "ifl_champions" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "israel_bowl" text,
  "venue" text,
  "date" text,
  "finals_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue for march 28, 2008`:
```sql
                SELECT "venue" FROM "ifl_champions" WHERE "date"='march 28, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Name the champion for israel bowl of iv`

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

CREATE TABLE "ifl_champions" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "israel_bowl" text,
  "venue" text,
  "date" text,
  "finals_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the champion for israel bowl of iv`:
```sql
                SELECT "champion" FROM "ifl_champions" WHERE "israel_bowl"='iv';
```
## Task
Generate a SQL query to answer the following question:
`Name the season for runner up of judean rebels`

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

CREATE TABLE "ifl_champions" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "israel_bowl" text,
  "venue" text,
  "date" text,
  "finals_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the season for runner up of judean rebels`:
```sql
                SELECT "season" FROM "ifl_champions" WHERE "runner_up"='judean rebels';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the event begin that had a steam traction type and used the system named HSM (1883–1910) GT (1915–1922)?`

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

CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
  "name_of_system" text,
  "location" text,
  "traction_type" text,
  "date_from" text,
  "date_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the event begin that had a steam traction type and used the system named HSM (1883–1910) GT (1915–1922)?`:
```sql
                SELECT "date_from" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "name_of_system"='hsm (1883–1910) gt (1915–1922)' AND "traction_type"='steam';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the event at Zaltbommel begin?`

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

CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
  "name_of_system" text,
  "location" text,
  "traction_type" text,
  "date_from" text,
  "date_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the event at Zaltbommel begin?`:
```sql
                SELECT "date_from" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "location"='zaltbommel';
```
## Task
Generate a SQL query to answer the following question:
`At what location did the event that used electric traction and system name ATM (1880–1911) GETA (1911–1944) occur?`

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

CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
  "name_of_system" text,
  "location" text,
  "traction_type" text,
  "date_from" text,
  "date_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what location did the event that used electric traction and system name ATM (1880–1911) GETA (1911–1944) occur?`:
```sql
                SELECT "location" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "name_of_system"='atm (1880–1911) geta (1911–1944)' AND "traction_type"='electric';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par of the player from England with a t1 place?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of the player from England with a t1 place?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "country"='england' AND "place"='t1';
```
## Task
Generate a SQL query to answer the following question:
`What is the country sergio garcía, who has a score of 69-70-67=206, is from?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country sergio garcía, who has a score of 69-70-67=206, is from?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='69-70-67=206' AND "player"='sergio garcía';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par of the player from the United States with a t5 place?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of the player from the United States with a t5 place?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "country"='united states' AND "place"='t5';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par of the player from the United States with a score of 69-68-65=202?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of the player from the United States with a score of 69-68-65=202?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "country"='united states' AND "score"='69-68-65=202';
```
## Task
Generate a SQL query to answer the following question:
`How many lanes had a rank smaller than 4 and a time of 2:01.51?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many lanes had a rank smaller than 4 and a time of 2:01.51?`:
```sql
                SELECT COUNT("lane") FROM "semifinal_2" WHERE "time"='2:01.51' AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`What was the time of the person in lane 7?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time of the person in lane 7?`:
```sql
                SELECT "time" FROM "semifinal_2" WHERE "lane"=7;
```
## Task
Generate a SQL query to answer the following question:
`How many employees at nokia, ranked under 3?`

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

CREATE TABLE "largest_employers" (
  "rank" real,
  "company" text,
  "headquarters" text,
  "industry" text,
  "employees" real,
  "reference_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many employees at nokia, ranked under 3?`:
```sql
                SELECT MAX("employees") FROM "largest_employers" WHERE "company"='nokia' AND "rank"<3;
```
## Task
Generate a SQL query to answer the following question:
`The person with a rank of 8 moving to Shakhtar Donetsk was moving from what Ukrainian Football Club as a transfer?`

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

CREATE TABLE "incoming_transfers" (
  "rank" real,
  "year" real,
  "name" text,
  "moving_from" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `The person with a rank of 8 moving to Shakhtar Donetsk was moving from what Ukrainian Football Club as a transfer?`:
```sql
                SELECT "moving_from" FROM "incoming_transfers" WHERE "moving_to"='shakhtar donetsk' AND "rank"=8;
```
## Task
Generate a SQL query to answer the following question:
`Ismaël Bangoura with a rank larger than 5 after the year 2005 was moving to what football club?`

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

CREATE TABLE "incoming_transfers" (
  "rank" real,
  "year" real,
  "name" text,
  "moving_from" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Ismaël Bangoura with a rank larger than 5 after the year 2005 was moving to what football club?`:
```sql
                SELECT "moving_to" FROM "incoming_transfers" WHERE "year">2005 AND "rank">5 AND "name"='ismaël bangoura';
```
## Task
Generate a SQL query to answer the following question:
`The player with a rank of 9, made a move from what football club?`

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

CREATE TABLE "incoming_transfers" (
  "rank" real,
  "year" real,
  "name" text,
  "moving_from" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `The player with a rank of 9, made a move from what football club?`:
```sql
                SELECT "moving_from" FROM "incoming_transfers" WHERE "rank"=9;
```
## Task
Generate a SQL query to answer the following question:
`Moving from Nancy after 2005, what is listed as the lowest rank?`

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

CREATE TABLE "incoming_transfers" (
  "rank" real,
  "year" real,
  "name" text,
  "moving_from" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Moving from Nancy after 2005, what is listed as the lowest rank?`:
```sql
                SELECT MIN("rank") FROM "incoming_transfers" WHERE "year">2005 AND "moving_from"='nancy';
```