cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the total failures of heliocentric orbit orbital regimes and launches less than 1?`

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

CREATE TABLE "by_orbit" (
  "orbital_regime" text,
  "launches" real,
  "successes" real,
  "failures" real,
  "accidentally_achieved" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total failures of heliocentric orbit orbital regimes and launches less than 1?`:
```sql
                SELECT SUM("failures") FROM "by_orbit" WHERE "orbital_regime"='heliocentric orbit' AND "launches"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of tris speaker when BB/SO was 7?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "player" text,
  "team" text,
  "year" real,
  "bb_so" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of tris speaker when BB/SO was 7?`:
```sql
                SELECT "rank" FROM "see_also" WHERE "player"='tris speaker' AND "bb_so"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank for team cle when the BB/SO is 10.89?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "player" text,
  "team" text,
  "year" real,
  "bb_so" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for team cle when the BB/SO is 10.89?`:
```sql
                SELECT AVG("rank") FROM "see_also" WHERE "team"='cle' AND "bb_so"=10.89;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of a partner that played on a hard surface on 18 April 2011?`

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

CREATE TABLE "futures_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of a partner that played on a hard surface on 18 April 2011?`:
```sql
                SELECT "partner" FROM "futures_titles" WHERE "surface"='hard' AND "date"='18 april 2011';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the final played on 2 July 2012?`

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

CREATE TABLE "futures_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the final played on 2 July 2012?`:
```sql
                SELECT "score" FROM "futures_titles" WHERE "date"='2 july 2012';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score on February 18, 2008?`

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

CREATE TABLE "doubles_15_10_5" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score on February 18, 2008?`:
```sql
                SELECT "score" FROM "doubles_15_10_5" WHERE "date"='february 18, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was the Opponent on the game played on a Hard Surface with a Score of 3–6, 6–3, [7–10]?`

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

CREATE TABLE "doubles_15_10_5" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Opponent on the game played on a Hard Surface with a Score of 3–6, 6–3, [7–10]?`:
```sql
                SELECT "opponent_in_the_final" FROM "doubles_15_10_5" WHERE "surface"='hard' AND "score"='3–6, 6–3, [7–10]';
```
## Task
Generate a SQL query to answer the following question:
`On what Surface was the game with Partner David Martin played Scoring 4–6, 6–7 (4-7)?`

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

CREATE TABLE "doubles_15_10_5" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Surface was the game with Partner David Martin played Scoring 4–6, 6–7 (4-7)?`:
```sql
                SELECT "surface" FROM "doubles_15_10_5" WHERE "partner"='david martin' AND "score"='4–6, 6–7 (4-7)';
```
## Task
Generate a SQL query to answer the following question:
`What was the Outcome of the game with a Score of 3–6, 4–6?`

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

CREATE TABLE "doubles_15_10_5" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Outcome of the game with a Score of 3–6, 4–6?`:
```sql
                SELECT "outcome" FROM "doubles_15_10_5" WHERE "score"='3–6, 4–6';
```
## Task
Generate a SQL query to answer the following question:
`What was the Partner on June 17, 2012?`

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

CREATE TABLE "doubles_15_10_5" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Partner on June 17, 2012?`:
```sql
                SELECT "partner" FROM "doubles_15_10_5" WHERE "date"='june 17, 2012';
```
## Task
Generate a SQL query to answer the following question:
`What record has Glenn Robinson (16) as the leading scorer?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record has Glenn Robinson (16) as the leading scorer?`:
```sql
                SELECT "record" FROM "april" WHERE "leading_scorer"='glenn robinson (16)';
```
## Task
Generate a SQL query to answer the following question:
`What date has 136-134 as the score?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 136-134 as the score?`:
```sql
                SELECT "date" FROM "april" WHERE "score"='136-134';
```
## Task
Generate a SQL query to answer the following question:
`What home has 136-134 as the score?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home has 136-134 as the score?`:
```sql
                SELECT "home" FROM "april" WHERE "score"='136-134';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year that China won a bronze?`

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

CREATE TABLE "team" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year that China won a bronze?`:
```sql
                SELECT MAX("year") FROM "team" WHERE "bronze"='china';
```
## Task
Generate a SQL query to answer the following question:
`What is the oldest year that the location was at Guangzhou?`

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

CREATE TABLE "team" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the oldest year that the location was at Guangzhou?`:
```sql
                SELECT MIN("year") FROM "team" WHERE "location"='guangzhou';
```
## Task
Generate a SQL query to answer the following question:
`For how many years was the location at Beijing?`

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

CREATE TABLE "team" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `For how many years was the location at Beijing?`:
```sql
                SELECT SUM("year") FROM "team" WHERE "location"='beijing';
```
## Task
Generate a SQL query to answer the following question:
`What location is previous to 1994?`

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

CREATE TABLE "team" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location is previous to 1994?`:
```sql
                SELECT "location" FROM "team" WHERE "year"<1994;
```
## Task
Generate a SQL query to answer the following question:
`Who won the men's doubles before 1979 when carol silman prina ben shushan won the women's doubles?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the men's doubles before 1979 when carol silman prina ben shushan won the women's doubles?`:
```sql
                SELECT "men_s_doubles" FROM "past_winners" WHERE "year"<1979 AND "women_s_doubles"='carol silman prina ben shushan';
```
## Task
Generate a SQL query to answer the following question:
`What college(s) did the player(s) picked in round 4 with a pick number less than 98 play for?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "round" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college(s) did the player(s) picked in round 4 with a pick number less than 98 play for?`:
```sql
                SELECT "college" FROM "nfl_draft" WHERE "pick_num"<98 AND "round"='round 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number for the player(s) drafted in round 8?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "round" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number for the player(s) drafted in round 8?`:
```sql
                SELECT "pick_num" FROM "nfl_draft" WHERE "round"='round 8';
```
## Task
Generate a SQL query to answer the following question:
`What position(s) did the player(s) with a pick number of 125 play?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "round" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position(s) did the player(s) with a pick number of 125 play?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "pick_num"=125;
```
## Task
Generate a SQL query to answer the following question:
`What mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1?`

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

CREATE TABLE "michigan_48_case_6" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1?`:
```sql
                SELECT AVG("extra_points") FROM "michigan_48_case_6" WHERE "player"='james lawrence' AND "touchdowns"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest amount of touchdowns when there is a total player and a number of field goals of more than 0?`

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

CREATE TABLE "michigan_48_case_6" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest amount of touchdowns when there is a total player and a number of field goals of more than 0?`:
```sql
                SELECT MIN("touchdowns") FROM "michigan_48_case_6" WHERE "player"='total' AND "field_goals">0;
```
## Task
Generate a SQL query to answer the following question:
`On what Date were the Results¹ 4:0?`

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

CREATE TABLE "1969" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date were the Results¹ 4:0?`:
```sql
                SELECT "date" FROM "1969" WHERE "results"='4:0';
```
## Task
Generate a SQL query to answer the following question:
`On what Date were the Results¹ 5:1?`

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

CREATE TABLE "1969" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date were the Results¹ 5:1?`:
```sql
                SELECT "date" FROM "1969" WHERE "results"='5:1';
```
## Task
Generate a SQL query to answer the following question:
`What is the pseudoknot prediction of the software named tfold?`

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

CREATE TABLE "comparative_methods" (
  "name" text,
  "number_of_sequences_number_of_sequences" text,
  "alignment_alignment_predicts_an_alignment" text,
  "structure_structure_predicts_structure" text,
  "knots_knots_pseudoknot_prediction" text,
  "link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pseudoknot prediction of the software named tfold?`:
```sql
                SELECT "knots_knots_pseudoknot_prediction" FROM "comparative_methods" WHERE "name"='tfold';
```
## Task
Generate a SQL query to answer the following question:
`What Chilean word is used for the Castilian word ordenador?`

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

CREATE TABLE "selected_vocabulary_differences" (
  "rioplatense" text,
  "castilian" text,
  "andalusian" text,
  "mexican" text,
  "chilean" text,
  "english_us_uk" text,
  "italian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Chilean word is used for the Castilian word ordenador?`:
```sql
                SELECT "chilean" FROM "selected_vocabulary_differences" WHERE "castilian"='ordenador';
```
## Task
Generate a SQL query to answer the following question:
`What is the Italian word for the Mexican word frijol?`

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

CREATE TABLE "selected_vocabulary_differences" (
  "rioplatense" text,
  "castilian" text,
  "andalusian" text,
  "mexican" text,
  "chilean" text,
  "english_us_uk" text,
  "italian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Italian word for the Mexican word frijol?`:
```sql
                SELECT "italian" FROM "selected_vocabulary_differences" WHERE "mexican"='frijol';
```
## Task
Generate a SQL query to answer the following question:
`What word would a Castilian speaker use for the Italian word auto(mobile)?`

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

CREATE TABLE "selected_vocabulary_differences" (
  "rioplatense" text,
  "castilian" text,
  "andalusian" text,
  "mexican" text,
  "chilean" text,
  "english_us_uk" text,
  "italian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What word would a Castilian speaker use for the Italian word auto(mobile)?`:
```sql
                SELECT "castilian" FROM "selected_vocabulary_differences" WHERE "italian"='auto(mobile)';
```
## Task
Generate a SQL query to answer the following question:
`How would an Italian say the Andalusian word coche?`

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

CREATE TABLE "selected_vocabulary_differences" (
  "rioplatense" text,
  "castilian" text,
  "andalusian" text,
  "mexican" text,
  "chilean" text,
  "english_us_uk" text,
  "italian" text
);
### SQL
Given the database schema, here is the SQL query that answers `How would an Italian say the Andalusian word coche?`:
```sql
                SELECT "italian" FROM "selected_vocabulary_differences" WHERE "andalusian"='coche';
```
## Task
Generate a SQL query to answer the following question:
`Which Home has a Visitor of ny rangers, and a Series of flyers win 4–3?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home has a Visitor of ny rangers, and a Series of flyers win 4–3?`:
```sql
                SELECT "home" FROM "playoffs" WHERE "visitor"='ny rangers' AND "series"='flyers win 4–3';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Series of flyers lead 3–2?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Series of flyers lead 3–2?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "series"='flyers lead 3–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Date of april 25?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decision has a Date of april 25?`:
```sql
                SELECT "decision" FROM "playoffs" WHERE "date"='april 25';
```
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Date of april 30?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decision has a Date of april 30?`:
```sql
                SELECT "decision" FROM "playoffs" WHERE "date"='april 30';
```
## Task
Generate a SQL query to answer the following question:
`Which Home has a Series of series tied 3–3?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home has a Series of series tied 3–3?`:
```sql
                SELECT "home" FROM "playoffs" WHERE "series"='series tied 3–3';
```
## Task
Generate a SQL query to answer the following question:
`Events of 22, and a Rank smaller than 4 involved which of the lowest earnings ($)?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Events of 22, and a Rank smaller than 4 involved which of the lowest earnings ($)?`:
```sql
                SELECT MIN("earnings") FROM "leaders" WHERE "events"=22 AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`Player of corey pavin, and a Rank larger than 4 involved which highest earnings ($)?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Player of corey pavin, and a Rank larger than 4 involved which highest earnings ($)?`:
```sql
                SELECT MAX("earnings") FROM "leaders" WHERE "player"='corey pavin' AND "rank">4;
```
## Task
Generate a SQL query to answer the following question:
`Events larger than 22, and a Earnings ( $ ) of 1,543,192, and a Rank smaller than 2 has the lowest wins?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Events larger than 22, and a Earnings ( $ ) of 1,543,192, and a Rank smaller than 2 has the lowest wins?`:
```sql
                SELECT MIN("wins") FROM "leaders" WHERE "events">22 AND "earnings"='1,543,192' AND "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`Country of united states, and a Events of 22, and a Earnings ( $ ) larger than 1,340,079 has the highest rank?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Country of united states, and a Events of 22, and a Earnings ( $ ) larger than 1,340,079 has the highest rank?`:
```sql
                SELECT MAX("rank") FROM "leaders" WHERE "country"='united states' AND "events"=22 AND "earnings">'1,340,079';
```
## Task
Generate a SQL query to answer the following question:
`What is the mascot with an enrollment (2010) less than 980, and heritage as the school?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment_2010" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mascot with an enrollment (2010) less than 980, and heritage as the school?`:
```sql
                SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "enrollment_2010"<980 AND "school"='heritage';
```
## Task
Generate a SQL query to answer the following question:
`What is the class of the player with a weight of 242 pounds?`

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

CREATE TABLE "arkansas" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of the player with a weight of 242 pounds?`:
```sql
                SELECT "class" FROM "arkansas" WHERE "weight"=242;
```
## Task
Generate a SQL query to answer the following question:
`How many games were played by the player at FB?`

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

CREATE TABLE "arkansas" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played by the player at FB?`:
```sql
                SELECT COUNT("games") FROM "arkansas" WHERE "position"='fb';
```
## Task
Generate a SQL query to answer the following question:
`Which Name has a Round smaller than 5, and a Pick # larger than 13?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Round smaller than 5, and a Pick # larger than 13?`:
```sql
                SELECT "name" FROM "jacksonville_jaguars_draft_history" WHERE "round"<5 AND "pick_num">13;
```
## Task
Generate a SQL query to answer the following question:
`Which Pick # has a Round smaller than 6, and an Overall larger than 13, and a College of penn state?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick # has a Round smaller than 6, and an Overall larger than 13, and a College of penn state?`:
```sql
                SELECT "pick_num" FROM "jacksonville_jaguars_draft_history" WHERE "round"<6 AND "overall">13 AND "college"='penn state';
```
## Task
Generate a SQL query to answer the following question:
`Which Name has an Overall of 235?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has an Overall of 235?`:
```sql
                SELECT "name" FROM "jacksonville_jaguars_draft_history" WHERE "overall"=235;
```
## Task
Generate a SQL query to answer the following question:
`How many cosponsors have a Date introduced of may 22, 2008?`

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

CREATE TABLE "legislative_activity" (
  "congress" text,
  "bill_number_s" text,
  "date_introduced" text,
  "sponsor_s" text,
  "num_of_cosponsors" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many cosponsors have a Date introduced of may 22, 2008?`:
```sql
                SELECT COUNT("num_of_cosponsors") FROM "legislative_activity" WHERE "date_introduced"='may 22, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which Congress has a # of cosponsors of 19?`

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

CREATE TABLE "legislative_activity" (
  "congress" text,
  "bill_number_s" text,
  "date_introduced" text,
  "sponsor_s" text,
  "num_of_cosponsors" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Congress has a # of cosponsors of 19?`:
```sql
                SELECT "congress" FROM "legislative_activity" WHERE "num_of_cosponsors"=19;
```
## Task
Generate a SQL query to answer the following question:
`On what date was a friendly match held at Auckland?`

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

CREATE TABLE "full_international_caps_and_goals" (
  "date" text,
  "venue" text,
  "result" text,
  "goals" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was a friendly match held at Auckland?`:
```sql
                SELECT "date" FROM "full_international_caps_and_goals" WHERE "competition"='friendly match' AND "venue"='auckland';
```
## Task
Generate a SQL query to answer the following question:
`What were the goals at Sydney?`

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

CREATE TABLE "full_international_caps_and_goals" (
  "date" text,
  "venue" text,
  "result" text,
  "goals" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the goals at Sydney?`:
```sql
                SELECT "goals" FROM "full_international_caps_and_goals" WHERE "venue"='sydney';
```
## Task
Generate a SQL query to answer the following question:
`How many sets lost have a sets won less than 0?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "sets_won" real,
  "sets_lost" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many sets lost have a sets won less than 0?`:
```sql
                SELECT COUNT("sets_lost") FROM "statistics" WHERE "sets_won"<0;
```
## Task
Generate a SQL query to answer the following question:
`What shows for IATA for the City of sapporo?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for IATA for the City of sapporo?`:
```sql
                SELECT "iata" FROM "destinations" WHERE "city"='sapporo';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO when the IATA shows cts?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO when the IATA shows cts?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "iata"='cts';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country when the IATA shows cju?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country when the IATA shows cju?`:
```sql
                SELECT "country" FROM "destinations" WHERE "iata"='cju';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO when the IATA shows mfm?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO when the IATA shows mfm?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "iata"='mfm';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO for Hong Kong?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO for Hong Kong?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "country"='hong kong';
```
## Task
Generate a SQL query to answer the following question:
`What is the Airport when the ICAO shows rpvm?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Airport when the ICAO shows rpvm?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "icao"='rpvm';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest goals for value with fewer than 5 draws and under 70 points?`

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

CREATE TABLE "club_records" (
  "season" real,
  "belonging_league" text,
  "matches" real,
  "points" real,
  "draw" real,
  "lose" real,
  "goal_difference" real,
  "goals_for" real,
  "goals_against" real,
  "position" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest goals for value with fewer than 5 draws and under 70 points?`:
```sql
                SELECT MIN("goals_for") FROM "club_records" WHERE "draw"<5 AND "points"<70;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest goals against value for a team with 83 points and a difference over 50?`

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

CREATE TABLE "club_records" (
  "season" real,
  "belonging_league" text,
  "matches" real,
  "points" real,
  "draw" real,
  "lose" real,
  "goal_difference" real,
  "goals_for" real,
  "goals_against" real,
  "position" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest goals against value for a team with 83 points and a difference over 50?`:
```sql
                SELECT MIN("goals_against") FROM "club_records" WHERE "points"=83 AND "goal_difference">50;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest season that has a position over 12?`

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

CREATE TABLE "club_records" (
  "season" real,
  "belonging_league" text,
  "matches" real,
  "points" real,
  "draw" real,
  "lose" real,
  "goal_difference" real,
  "goals_for" real,
  "goals_against" real,
  "position" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest season that has a position over 12?`:
```sql
                SELECT MIN("season") FROM "club_records" WHERE "position">12;
```
## Task
Generate a SQL query to answer the following question:
`What is the average goals for with a position under 12, draws over 1, and goals against under 28?`

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

CREATE TABLE "club_records" (
  "season" real,
  "belonging_league" text,
  "matches" real,
  "points" real,
  "draw" real,
  "lose" real,
  "goal_difference" real,
  "goals_for" real,
  "goals_against" real,
  "position" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average goals for with a position under 12, draws over 1, and goals against under 28?`:
```sql
                SELECT AVG("goals_for") FROM "club_records" WHERE "position"<12 AND "draw">1 AND "goals_against"<28;
```
## Task
Generate a SQL query to answer the following question:
`Who was the Opponent with a Result of l 17–24?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Opponent with a Result of l 17–24?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "result"='l 17–24';
```
## Task
Generate a SQL query to answer the following question:
`What Date has a Result of l 21–34?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Date has a Result of l 21–34?`:
```sql
                SELECT "date" FROM "schedule" WHERE "result"='l 21–34';
```
## Task
Generate a SQL query to answer the following question:
`What Game Site has a Week smaller than 11, and a Date of october 21, 1973?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Game Site has a Week smaller than 11, and a Date of october 21, 1973?`:
```sql
                SELECT "game_site" FROM "schedule" WHERE "week"<11 AND "date"='october 21, 1973';
```
## Task
Generate a SQL query to answer the following question:
`What is the value of the lowest Week with a Record of 2–9?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value of the lowest Week with a Record of 2–9?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "record"='2–9';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent for the game that occurred after week 13?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent for the game that occurred after week 13?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week">13;
```
## Task
Generate a SQL query to answer the following question:
`What day did the play on week 6?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did the play on week 6?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=6;
```
## Task
Generate a SQL query to answer the following question:
`Which tournament had a 2009 result of 1R?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a 2009 result of 1R?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2009"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament had a 2010 result of QF and a 2012 result of SF?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a 2010 result of QF and a 2012 result of SF?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2012"='sf' AND "2010"='qf';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament had a result in 2010 and 2012 of a?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a result in 2010 and 2012 of a?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2012"='a' AND "2010"='a';
```
## Task
Generate a SQL query to answer the following question:
`Who was third during round 6 in Rybinsk?`

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

CREATE TABLE "individual_events" (
  "round" text,
  "venue" text,
  "discipline" text,
  "date" text,
  "winner" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was third during round 6 in Rybinsk?`:
```sql
                SELECT "third" FROM "individual_events" WHERE "venue"='rybinsk' AND "round"='6';
```
## Task
Generate a SQL query to answer the following question:
`Who was third in round 14?`

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

CREATE TABLE "individual_events" (
  "round" text,
  "venue" text,
  "discipline" text,
  "date" text,
  "winner" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was third in round 14?`:
```sql
                SELECT "third" FROM "individual_events" WHERE "round"='14';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue with a 3.3km c prologue discipline?`

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

CREATE TABLE "individual_events" (
  "round" text,
  "venue" text,
  "discipline" text,
  "date" text,
  "winner" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue with a 3.3km c prologue discipline?`:
```sql
                SELECT "venue" FROM "individual_events" WHERE "discipline"='3.3km c prologue';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner on 28 December 2007?`

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

CREATE TABLE "individual_events" (
  "round" text,
  "venue" text,
  "discipline" text,
  "date" text,
  "winner" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner on 28 December 2007?`:
```sql
                SELECT "winner" FROM "individual_events" WHERE "date"='28 december 2007';
```
## Task
Generate a SQL query to answer the following question:
`Who was third at the 0.8km f sprint discipline?`

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

CREATE TABLE "individual_events" (
  "round" text,
  "venue" text,
  "discipline" text,
  "date" text,
  "winner" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was third at the 0.8km f sprint discipline?`:
```sql
                SELECT "third" FROM "individual_events" WHERE "discipline"='0.8km f sprint';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total cargo of an airport ranked larger than 19 with a code of BKK/VTBS?`

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

CREATE TABLE "2007_final_statistics" (
  "rank" real,
  "airport" text,
  "code_iata_icao" text,
  "total_cargo_metric_tonnes" real,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total cargo of an airport ranked larger than 19 with a code of BKK/VTBS?`:
```sql
                SELECT MAX("total_cargo_metric_tonnes") FROM "2007_final_statistics" WHERE "code_iata_icao"='bkk/vtbs' AND "rank">19;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the airport with the BKK/VTBS code?`

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

CREATE TABLE "2007_final_statistics" (
  "rank" real,
  "airport" text,
  "code_iata_icao" text,
  "total_cargo_metric_tonnes" real,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the airport with the BKK/VTBS code?`:
```sql
                SELECT "rank" FROM "2007_final_statistics" WHERE "code_iata_icao"='bkk/vtbs';
```
## Task
Generate a SQL query to answer the following question:
`Which Matches has champion Rank of 5?`

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

CREATE TABLE "rankings_table" (
  "rank" real,
  "matches_as_champion" real,
  "reigns_as_champion" real,
  "title_matches_won" real,
  "title_last_held" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Matches has champion Rank of 5?`:
```sql
                SELECT MAX("matches_as_champion") FROM "rankings_table" WHERE "rank"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which Matches is on 24 march 1963 with a Rank larger than 44?`

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

CREATE TABLE "rankings_table" (
  "rank" real,
  "matches_as_champion" real,
  "reigns_as_champion" real,
  "title_matches_won" real,
  "title_last_held" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Matches is on 24 march 1963 with a Rank larger than 44?`:
```sql
                SELECT MAX("matches_as_champion") FROM "rankings_table" WHERE "title_last_held"='24 march 1963' AND "rank">44;
```
## Task
Generate a SQL query to answer the following question:
`what game was on may 24`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what game was on may 24`:
```sql
                SELECT "game" FROM "nba_finals" WHERE "date"='may 24';
```
## Task
Generate a SQL query to answer the following question:
`what game was on may 29`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what game was on may 29`:
```sql
                SELECT "result" FROM "nba_finals" WHERE "date"='may 29';
```