output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "location" FROM "former_members" WHERE "institution"='Southern Vermont College'; |
## Task
Generate a SQL query to answer the following question:
`Where is Southern Vermont College located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real,
"current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Southern Vermont College located?`:
```sql
|
SELECT "left" FROM "former_members" WHERE "enrollment"=650; |
## Task
Generate a SQL query to answer the following question:
`In what year did the school with enrollment of 650 leave?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real,
"current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did the school with enrollment of 650 leave?`:
```sql
|
SELECT MIN("races") FROM "career_summary" WHERE "position"='14th'; |
## Task
Generate a SQL query to answer the following question:
`What was the number of races in the season in which the team placed on the 14th position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of races in the season in which the team placed on the 14th position?`:
```sql
|
SELECT MIN("wins") FROM "career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of wins of a team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of wins of a team?`:
```sql
|
SELECT MIN("wins") FROM "career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What's the minimal number of wins of a team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the minimal number of wins of a team?`:
```sql
|
SELECT "institution" FROM "current_members" WHERE "nickname"='Statesmen'; |
## Task
Generate a SQL query to answer the following question:
`Name the institution for statesmen`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the institution for statesmen`:
```sql
|
SELECT "institution" FROM "current_members" WHERE "nickname"='Yellowjackets'; |
## Task
Generate a SQL query to answer the following question:
`Name the institution for yellowjackets`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the institution for yellowjackets`:
```sql
|
SELECT "type" FROM "current_members" WHERE "institution"='Hobart College'; |
## Task
Generate a SQL query to answer the following question:
`Name the type for hobart college`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the type for hobart college`:
```sql
|
SELECT "location" FROM "current_members" WHERE "founded"=1829; |
## Task
Generate a SQL query to answer the following question:
`Name the location for 1829`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location for 1829`:
```sql
|
SELECT "location" FROM "current_members" WHERE "nickname"='Statesmen'; |
## Task
Generate a SQL query to answer the following question:
`Name the location of statesmen`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location of statesmen`:
```sql
|
SELECT "location" FROM "table1_197446_1" WHERE "term_ended"='January 3, 2011'; |
## Task
Generate a SQL query to answer the following question:
`What location was the congressional service of which the term ended in January 3, 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_197446_1" (
"office" text,
"branch" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location was the congressional service of which the term ended in January 3, 2011?`:
```sql
|
SELECT "branch" FROM "table1_197446_1" WHERE "term_began"='January 3, 1985'; |
## Task
Generate a SQL query to answer the following question:
`What branch was involved when the term began in January 3, 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_197446_1" (
"office" text,
"branch" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
### SQL
Given the database schema, here is the SQL query that answers `What branch was involved when the term began in January 3, 1985?`:
```sql
|
SELECT "elected" FROM "table1_197446_1" WHERE "term_began"='January 3, 1989'; |
## Task
Generate a SQL query to answer the following question:
`What year was the congressional service elected for a term beginning on January 3, 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_197446_1" (
"office" text,
"branch" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the congressional service elected for a term beginning on January 3, 1989?`:
```sql
|
SELECT "office" FROM "table1_197446_1" WHERE "term_ended"='January 3, 1993'; |
## Task
Generate a SQL query to answer the following question:
`What group was in office when the term ended in January 3, 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_197446_1" (
"office" text,
"branch" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
### SQL
Given the database schema, here is the SQL query that answers `What group was in office when the term ended in January 3, 1993?`:
```sql
|
SELECT COUNT("term_began") FROM "table1_197446_1" WHERE "term_ended"='January 3, 1989'; |
## Task
Generate a SQL query to answer the following question:
`How many terms began when the term ended in January 3, 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_197446_1" (
"office" text,
"branch" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many terms began when the term ended in January 3, 1989?`:
```sql
|
SELECT COUNT("total") FROM "table1_19744915_22" WHERE "rank"=5; |
## Task
Generate a SQL query to answer the following question:
`How many different total points does the couple ranked at number 5 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_22" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different total points does the couple ranked at number 5 have?`:
```sql
|
SELECT "couple" FROM "table1_19744915_22" WHERE "vote_percentage"='21.843%'; |
## Task
Generate a SQL query to answer the following question:
`What couple had vote percentage of 21.843%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_22" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What couple had vote percentage of 21.843%?`:
```sql
|
SELECT MAX("judges") FROM "table1_19744915_22" WHERE "rank"=5; |
## Task
Generate a SQL query to answer the following question:
`How many judges points did the couple ranked at number 5 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_22" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many judges points did the couple ranked at number 5 have?`:
```sql
|
SELECT "couple" FROM "table1_19744915_22" WHERE "public"<2.0; |
## Task
Generate a SQL query to answer the following question:
`What couple had less than 2.0 points from the public?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_22" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What couple had less than 2.0 points from the public?`:
```sql
|
SELECT COUNT("result") FROM "table1_19744915_17" WHERE "couple"='Ellery and Frankie'; |
## Task
Generate a SQL query to answer the following question:
`What was the total result for couple Ellery and Frankie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_17" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total result for couple Ellery and Frankie?`:
```sql
|
SELECT MIN("rank") FROM "table1_19744915_17" WHERE "vote_percentage"='2.111%'; |
## Task
Generate a SQL query to answer the following question:
`If the vote percentage is 2.111%, what was the minimum rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_17" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the vote percentage is 2.111%, what was the minimum rank?`:
```sql
|
SELECT MAX("rank") FROM "table1_19744915_17" WHERE "total"=17; |
## Task
Generate a SQL query to answer the following question:
`If the total is 17, what was the maximum rank amount?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_17" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the total is 17, what was the maximum rank amount?`:
```sql
|
SELECT "vote_percentage" FROM "table1_19744915_17" WHERE "couple"='Todd and Susie'; |
## Task
Generate a SQL query to answer the following question:
`For couple Todd and Susie, what was the vote percentage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_17" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For couple Todd and Susie, what was the vote percentage?`:
```sql
|
SELECT "couple" FROM "table1_19744915_18" WHERE "rank"=9; |
## Task
Generate a SQL query to answer the following question:
`When 9 is the rank who are the couple?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_18" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 9 is the rank who are the couple?`:
```sql
|
SELECT MAX("rank") FROM "table1_19744915_18" WHERE "couple"='Roxanne and Daniel'; |
## Task
Generate a SQL query to answer the following question:
`When roxanne and daniel are the couple what is the highest rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_18" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When roxanne and daniel are the couple what is the highest rank?`:
```sql
|
SELECT MAX("total") FROM "table1_19744915_18" WHERE "couple"='Ellery and Frankie'; |
## Task
Generate a SQL query to answer the following question:
`When ellery and frankie are the couple what is the highest total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_18" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When ellery and frankie are the couple what is the highest total?`:
```sql
|
SELECT "result" FROM "table1_19744915_18" WHERE "public"=8; |
## Task
Generate a SQL query to answer the following question:
`When 8 is the public what are the results?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_18" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 8 is the public what are the results?`:
```sql
|
SELECT MAX("rank") FROM "table1_19744915_18" WHERE "result"='Safe' AND "public"=8; |
## Task
Generate a SQL query to answer the following question:
`When 8 is the public and the result is safe what is the highest rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_18" (
"rank" real,
"couple" text,
"judges" real,
"public" real,
"total" real,
"vote_percentage" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 8 is the public and the result is safe what is the highest rank?`:
```sql
|
SELECT "karen" FROM "table1_19744915_4" WHERE "nicky"='2.5'; |
## Task
Generate a SQL query to answer the following question:
`Name the karen when nicky is 2.5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19744915_4" (
"order" real,
"couple" text,
"karen" text,
"nicky" text,
"jason" text,
"ruthie" text,
"robin" text,
"total" text,
"skating_song" text,
"scoreboard" text,
"public_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the karen when nicky is 2.5`:
```sql
|
SELECT "capacity" FROM "conference_facilities" WHERE "baseball_stadium"='Owl Athletic Complex'; |
## Task
Generate a SQL query to answer the following question:
`What is the capacity for the school that has the Owl Athletic Complex baseball stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_facilities" (
"school" text,
"baseball_stadium" text,
"softball_stadium" text,
"basketball_arena" text,
"capacity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity for the school that has the Owl Athletic Complex baseball stadium?`:
```sql
|
SELECT "softball_stadium" FROM "conference_facilities" WHERE "baseball_stadium"='Eastern Baseball Stadium'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the softball stadium for the school that has Eastern Baseball Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_facilities" (
"school" text,
"baseball_stadium" text,
"softball_stadium" text,
"basketball_arena" text,
"capacity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the softball stadium for the school that has Eastern Baseball Stadium?`:
```sql
|
SELECT "softball_stadium" FROM "conference_facilities" WHERE "school"='UMass Boston'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of UMass Boston's softball stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_facilities" (
"school" text,
"baseball_stadium" text,
"softball_stadium" text,
"basketball_arena" text,
"capacity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of UMass Boston's softball stadium?`:
```sql
|
SELECT "softball_stadium" FROM "conference_facilities" WHERE "school"='Rhode Island College'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of Rhode Island College's softball stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_facilities" (
"school" text,
"baseball_stadium" text,
"softball_stadium" text,
"basketball_arena" text,
"capacity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of Rhode Island College's softball stadium?`:
```sql
|
SELECT COUNT("basketball_arena") FROM "conference_facilities" WHERE "capacity"='3,000'; |
## Task
Generate a SQL query to answer the following question:
`How many basketball arenas are there that belong to a school with a capacity of 3,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_facilities" (
"school" text,
"baseball_stadium" text,
"softball_stadium" text,
"basketball_arena" text,
"capacity" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many basketball arenas are there that belong to a school with a capacity of 3,000?`:
```sql
|
SELECT "baseball_stadium" FROM "conference_facilities" WHERE "basketball_arena"='The Murray Center'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the baseball stadium for the school with the Murray Center basketball arena?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_facilities" (
"school" text,
"baseball_stadium" text,
"softball_stadium" text,
"basketball_arena" text,
"capacity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the baseball stadium for the school with the Murray Center basketball arena?`:
```sql
|
SELECT "location" FROM "associate_members" WHERE "institution"='Westfield State University'; |
## Task
Generate a SQL query to answer the following question:
`Where is the Westfield State University located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "associate_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"primary_conference" text,
"lec_sport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Westfield State University located?`:
```sql
|
SELECT "founded" FROM "associate_members" WHERE "location"='Salem, Massachusetts'; |
## Task
Generate a SQL query to answer the following question:
`When was the school in Salem, Massachusetts located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "associate_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"primary_conference" text,
"lec_sport" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the school in Salem, Massachusetts located?`:
```sql
|
SELECT "nickname" FROM "associate_members" WHERE "institution"='Westfield State University'; |
## Task
Generate a SQL query to answer the following question:
`What's the nickname of Westfield State University's students?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "associate_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"primary_conference" text,
"lec_sport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the nickname of Westfield State University's students?`:
```sql
|
SELECT "lec_sport" FROM "associate_members" WHERE "institution"='Fitchburg State University'; |
## Task
Generate a SQL query to answer the following question:
`What's Fitchburg State University's LEC sport?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "associate_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"primary_conference" text,
"lec_sport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Fitchburg State University's LEC sport?`:
```sql
|
SELECT "location" FROM "associate_members" WHERE "nickname"='Falcons'; |
## Task
Generate a SQL query to answer the following question:
`Where is the school whose students are nicknamed falcons located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "associate_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"primary_conference" text,
"lec_sport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the school whose students are nicknamed falcons located?`:
```sql
|
SELECT "primary_conference" FROM "associate_members" WHERE "institution"='Salem State University'; |
## Task
Generate a SQL query to answer the following question:
`What's Salem State University's primary conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "associate_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"primary_conference" text,
"lec_sport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Salem State University's primary conference?`:
```sql
|
SELECT "incumbent" FROM "north_carolina" WHERE "district"='North Carolina 9'; |
## Task
Generate a SQL query to answer the following question:
`Name the incumbent for north carolina 9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incumbent for north carolina 9`:
```sql
|
SELECT COUNT("party") FROM "north_carolina" WHERE "district"='North Carolina 7'; |
## Task
Generate a SQL query to answer the following question:
`Name the total party for north carolina 7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total party for north carolina 7`:
```sql
|
SELECT "incumbent" FROM "north_carolina" WHERE "candidates"='Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%'; |
## Task
Generate a SQL query to answer the following question:
`Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0%`:
```sql
|
SELECT "result" FROM "north_carolina" WHERE "district"='North Carolina 7'; |
## Task
Generate a SQL query to answer the following question:
`Name the result for north carolina 7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for north carolina 7`:
```sql
|
SELECT "incumbent" FROM "north_carolina" WHERE "district"='North Carolina 9'; |
## Task
Generate a SQL query to answer the following question:
`Name the incumbent for north carolina 9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the incumbent for north carolina 9`:
```sql
|
SELECT MAX("enrollment") FROM "current_members" WHERE "institution"='Babson College'; |
## Task
Generate a SQL query to answer the following question:
`What's Babson College's enrollment?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Babson College's enrollment?`:
```sql
|
SELECT MAX("joined") FROM "current_members" WHERE "institution"='Clark University'; |
## Task
Generate a SQL query to answer the following question:
`When has Clark University joined the Conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `When has Clark University joined the Conference?`:
```sql
|
SELECT "type" FROM "current_members" WHERE "location"='New London, Connecticut'; |
## Task
Generate a SQL query to answer the following question:
`What's the type of the school in New London, Connecticut? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the type of the school in New London, Connecticut? `:
```sql
|
SELECT MAX("founded") FROM "current_members" WHERE "location"='Springfield, Massachusetts'; |
## Task
Generate a SQL query to answer the following question:
`When was the school in Springfield, Massachusetts founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the school in Springfield, Massachusetts founded?`:
```sql
|
SELECT "institution" FROM "current_members" WHERE "location"='Worcester, Massachusetts'; |
## Task
Generate a SQL query to answer the following question:
`What school is located in Worcester, Massachusetts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What school is located in Worcester, Massachusetts?`:
```sql
|
SELECT "candidates" FROM "table1_19753079_12" WHERE "district"='Florida 13'; |
## Task
Generate a SQL query to answer the following question:
`Who are the candidates in Florida 13 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19753079_12" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the candidates in Florida 13 district?`:
```sql
|
SELECT COUNT("candidates") FROM "table1_19753079_12" WHERE "first_elected"=1988; |
## Task
Generate a SQL query to answer the following question:
`How many different pairs of candidates were there for the district first elected in 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19753079_12" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different pairs of candidates were there for the district first elected in 1988?`:
```sql
|
SELECT "candidates" FROM "table1_19753079_12" WHERE "district"='Florida 10'; |
## Task
Generate a SQL query to answer the following question:
`Who were candidates in Florida 10 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19753079_12" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were candidates in Florida 10 district?`:
```sql
|
SELECT "party" FROM "table1_19753079_12" WHERE "district"='Florida 9'; |
## Task
Generate a SQL query to answer the following question:
`What party got elected in Florida 9 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19753079_12" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party got elected in Florida 9 district?`:
```sql
|
SELECT MIN("rnd") FROM "table1_19751479_4" WHERE "fastest_lap"='#67 The Racer''s Group'; |
## Task
Generate a SQL query to answer the following question:
`What is the first round that had #67 the racer's group with the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19751479_4" (
"rnd" real,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"winner" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first round that had #67 the racer's group with the fastest lap?`:
```sql
|
SELECT COUNT("fastest_lap") FROM "table1_19751479_4" WHERE "rnd"=10 AND "pole_position"='#99 GAINSCO/Bob Stallings Racing'; |
## Task
Generate a SQL query to answer the following question:
`How many races had #99 gainsco/bob stallings racing in round 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_19751479_4" (
"rnd" real,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"winner" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races had #99 gainsco/bob stallings racing in round 10?`:
```sql
|
SELECT "incumbent" FROM "california" WHERE "first_elected"=2009; |
## Task
Generate a SQL query to answer the following question:
`What incumbent was first elected in 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What incumbent was first elected in 2009?`:
```sql
|
SELECT "first_elected" FROM "california" WHERE "district"='California 7'; |
## Task
Generate a SQL query to answer the following question:
`How many were first elected in California 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were first elected in California 7?`:
```sql
|
SELECT "district" FROM "california" WHERE "incumbent"='George Miller'; |
## Task
Generate a SQL query to answer the following question:
`What district did George Miller belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district did George Miller belong to?`:
```sql
|
SELECT "party" FROM "pennsylvania" WHERE "candidates"='Mark Critz (D) 50.8% Tim Burns (R) 49.2%'; |
## Task
Generate a SQL query to answer the following question:
`When mark critz (d) 50.8% tim burns (r) 49.2% are the candidates what is the party?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mark critz (d) 50.8% tim burns (r) 49.2% are the candidates what is the party?`:
```sql
|
SELECT "result" FROM "pennsylvania" WHERE "incumbent"='Chris Carney'; |
## Task
Generate a SQL query to answer the following question:
`When chris carney is the incumbent what are the results?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When chris carney is the incumbent what are the results?`:
```sql
|
SELECT "district" FROM "pennsylvania" WHERE "first_elected"=1994; |
## Task
Generate a SQL query to answer the following question:
`When 1994 is the first elected what is the district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1994 is the first elected what is the district?`:
```sql
|
SELECT "incumbent" FROM "pennsylvania" WHERE "district"='Pennsylvania 3'; |
## Task
Generate a SQL query to answer the following question:
`When pennsylvania 3 is the district who is the incumbent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When pennsylvania 3 is the district who is the incumbent?`:
```sql
|
SELECT "candidates" FROM "pennsylvania" WHERE "first_elected"=1984; |
## Task
Generate a SQL query to answer the following question:
`When 1984 is the first elected who are the candidates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1984 is the first elected who are the candidates?`:
```sql
|
SELECT "result" FROM "semi_final_2_21_february_2009" WHERE "artist"='Salva Ortega'; |
## Task
Generate a SQL query to answer the following question:
`What is Salva Ortega's result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_2_21_february_2009" (
"draw" real,
"artist" text,
"song" text,
"jury_votes" real,
"televotes" real,
"total_votes" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Salva Ortega's result?`:
```sql
|
SELECT "televotes" FROM "semi_final_2_21_february_2009" WHERE "song"='\"Lujuria\"'; |
## Task
Generate a SQL query to answer the following question:
`How many televotes are there for "Lujuria"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_2_21_february_2009" (
"draw" real,
"artist" text,
"song" text,
"jury_votes" real,
"televotes" real,
"total_votes" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many televotes are there for "Lujuria"?`:
```sql
|
SELECT "televotes" FROM "semi_final_2_21_february_2009" WHERE "jury_votes"=4; |
## Task
Generate a SQL query to answer the following question:
`How many televotes are there where there is 4 jury votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_2_21_february_2009" (
"draw" real,
"artist" text,
"song" text,
"jury_votes" real,
"televotes" real,
"total_votes" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many televotes are there where there is 4 jury votes?`:
```sql
|
SELECT "jury_votes" FROM "semi_final_2_21_february_2009" WHERE "televotes"=7; |
## Task
Generate a SQL query to answer the following question:
`How many jury votes for the televote of 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_2_21_february_2009" (
"draw" real,
"artist" text,
"song" text,
"jury_votes" real,
"televotes" real,
"total_votes" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many jury votes for the televote of 7?`:
```sql
|
SELECT "result" FROM "semi_final_1_14_february_2009" WHERE "artist"='Normativa Vigente'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for Normativa Vigente?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_1_14_february_2009" (
"draw" real,
"artist" text,
"song" text,
"jury_votes" text,
"televotes" real,
"total_votes" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for Normativa Vigente?`:
```sql
|
SELECT "song" FROM "semi_final_1_14_february_2009" WHERE "total_votes"=24; |
## Task
Generate a SQL query to answer the following question:
`What song has 24 votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_1_14_february_2009" (
"draw" real,
"artist" text,
"song" text,
"jury_votes" text,
"televotes" real,
"total_votes" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What song has 24 votes?`:
```sql
|
SELECT MIN("total_votes") FROM "semi_final_1_14_february_2009"; |
## Task
Generate a SQL query to answer the following question:
`What is the least total votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_1_14_february_2009" (
"draw" real,
"artist" text,
"song" text,
"jury_votes" text,
"televotes" real,
"total_votes" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least total votes?`:
```sql
|
SELECT "total_votes" FROM "semi_final_1_14_february_2009" WHERE "artist"='Carlos Ferrer EAI'; |
## Task
Generate a SQL query to answer the following question:
`How many votes does Carlos Ferrer Eai have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_1_14_february_2009" (
"draw" real,
"artist" text,
"song" text,
"jury_votes" text,
"televotes" real,
"total_votes" real,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes does Carlos Ferrer Eai have?`:
```sql
|
SELECT MAX("num") FROM "men_s_singles"; |
## Task
Generate a SQL query to answer the following question:
`How many players are on this list?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_singles" (
"num" real,
"player" text,
"age" real,
"australian_open" real,
"french_open" real,
"wimbledon" real,
"us_open" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many players are on this list?`:
```sql
|
SELECT "player" FROM "men_s_singles" WHERE "french_open"=1999; |
## Task
Generate a SQL query to answer the following question:
`Who won the French Open in 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_singles" (
"num" real,
"player" text,
"age" real,
"australian_open" real,
"french_open" real,
"wimbledon" real,
"us_open" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the French Open in 1999?`:
```sql
|
SELECT "player" FROM "men_s_singles" WHERE "us_open"=1937; |
## Task
Generate a SQL query to answer the following question:
`Who won the US Open in 1937?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_singles" (
"num" real,
"player" text,
"age" real,
"australian_open" real,
"french_open" real,
"wimbledon" real,
"us_open" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the US Open in 1937?`:
```sql
|
SELECT COUNT("australian_open") FROM "men_s_singles" WHERE "player"='Roy Emerson'; |
## Task
Generate a SQL query to answer the following question:
`How many times did Roy Emerson win the Australian Open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_singles" (
"num" real,
"player" text,
"age" real,
"australian_open" real,
"french_open" real,
"wimbledon" real,
"us_open" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Roy Emerson win the Australian Open?`:
```sql
|
SELECT MAX("age") FROM "men_s_singles" WHERE "player"='Roy Emerson'; |
## Task
Generate a SQL query to answer the following question:
`At what age did Roy Emerson complete the Grand Slam?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_singles" (
"num" real,
"player" text,
"age" real,
"australian_open" real,
"french_open" real,
"wimbledon" real,
"us_open" real
);
### SQL
Given the database schema, here is the SQL query that answers `At what age did Roy Emerson complete the Grand Slam?`:
```sql
|
SELECT MIN("rank") FROM "goalscorers" WHERE "total"=2; |
## Task
Generate a SQL query to answer the following question:
`Name the least rank for 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"no" real,
"pos" text,
"player" text,
"premier_league" real,
"fa_cup" real,
"league_cup" real,
"champions_league" real,
"club_world_cup" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least rank for 2`:
```sql
|
SELECT "total" FROM "goalscorers" WHERE "player"='Jamie Carragher'; |
## Task
Generate a SQL query to answer the following question:
`Name the total for jamie carragher`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"no" real,
"pos" text,
"player" text,
"premier_league" real,
"fa_cup" real,
"league_cup" real,
"champions_league" real,
"club_world_cup" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total for jamie carragher`:
```sql
|
SELECT COUNT("club_world_cup") FROM "goalscorers" WHERE "player"='Djibril Cisse'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of club worl cup for djibril cisse`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"no" real,
"pos" text,
"player" text,
"premier_league" real,
"fa_cup" real,
"league_cup" real,
"champions_league" real,
"club_world_cup" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of club worl cup for djibril cisse`:
```sql
|
SELECT MIN("post_code") FROM "administration" WHERE "chinese_name_simplified_traditional"='潜山县 / 潛山縣'; |
## Task
Generate a SQL query to answer the following question:
`What's the post code of the county with the Chinese name 潜山县 / 潛山縣?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"chinese_name_simplified_traditional" text,
"pinyin" text,
"population" real,
"post_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the post code of the county with the Chinese name 潜山县 / 潛山縣?`:
```sql
|
SELECT "english_name" FROM "administration" WHERE "chinese_name_simplified_traditional"='太湖县 / 太湖縣'; |
## Task
Generate a SQL query to answer the following question:
`What's the English name of the county called 太湖县 / 太湖縣 in Chinese?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"chinese_name_simplified_traditional" text,
"pinyin" text,
"population" real,
"post_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the English name of the county called 太湖县 / 太湖縣 in Chinese?`:
```sql
|
SELECT "english_name" FROM "administration" WHERE "post_code"=246400; |
## Task
Generate a SQL query to answer the following question:
`What's the English name of the county with a postcode 246400?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"chinese_name_simplified_traditional" text,
"pinyin" text,
"population" real,
"post_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the English name of the county with a postcode 246400?`:
```sql
|
SELECT "chinese_name_simplified_traditional" FROM "administration" WHERE "english_name"='Susong County'; |
## Task
Generate a SQL query to answer the following question:
`What's the Chinese (simplified/traditional) name of Susong County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"chinese_name_simplified_traditional" text,
"pinyin" text,
"population" real,
"post_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Chinese (simplified/traditional) name of Susong County?`:
```sql
|
SELECT "pinyin" FROM "administration" WHERE "post_code"=246500; |
## Task
Generate a SQL query to answer the following question:
`What's the Pinyin name of the county with a postcode 246500?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"chinese_name_simplified_traditional" text,
"pinyin" text,
"population" real,
"post_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Pinyin name of the county with a postcode 246500?`:
```sql
|
SELECT COUNT("date") FROM "regular_season" WHERE "opponent"='Houston'; |
## Task
Generate a SQL query to answer the following question:
`On how many different dates was a game against Houston played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many different dates was a game against Houston played?`:
```sql
|
SELECT COUNT("high_assists") FROM "regular_season" WHERE "high_rebounds"='Sales (10)'; |
## Task
Generate a SQL query to answer the following question:
`How many different players did the high assists in games where the high rebounds were done by Sales (10)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different players did the high assists in games where the high rebounds were done by Sales (10)?`:
```sql
|
SELECT MAX("game") FROM "regular_season" WHERE "date"='June 22'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the game played on June 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the game played on June 22?`:
```sql
|
SELECT "opponent" FROM "regular_season" WHERE "game"=8; |
## Task
Generate a SQL query to answer the following question:
`Who was game number 8 played against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was game number 8 played against?`:
```sql
|
SELECT "high_rebounds" FROM "regular_season" WHERE "high_assists"='Five Players (3)'; |
## Task
Generate a SQL query to answer the following question:
`Who did the high rebounds in the game in which five players (3) did the high assists?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the high rebounds in the game in which five players (3) did the high assists?`:
```sql
|
SELECT "nosotros_nosotras" FROM "present_subjunctive" WHERE "l_ella_usted"='piense'; |
## Task
Generate a SQL query to answer the following question:
`What are all the conjugated forms of the verb where the el/ ella/usted verb is piense?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "present_subjunctive" (
"verbs" text,
"yo" text,
"t" text,
"vos" text,
"l_ella_usted" text,
"nosotros_nosotras" text,
"vosotros_vosotras" text,
"ellos_ellas_ustedes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the conjugated forms of the verb where the el/ ella/usted verb is piense?`:
```sql
|
SELECT "yo" FROM "present_subjunctive" WHERE "vosotros_vosotras"='moláis'; |
## Task
Generate a SQL query to answer the following question:
`What are all the conjugated forms of the verb moler where the vosotros / vosotras is moláis for the yo tense?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "present_subjunctive" (
"verbs" text,
"yo" text,
"t" text,
"vos" text,
"l_ella_usted" text,
"nosotros_nosotras" text,
"vosotros_vosotras" text,
"ellos_ellas_ustedes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the conjugated forms of the verb moler where the vosotros / vosotras is moláis for the yo tense?`:
```sql
|
SELECT COUNT("verbs") FROM "present_subjunctive" WHERE "yo"='sienta'; |
## Task
Generate a SQL query to answer the following question:
`how many verbs have the yo form as sienta?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "present_subjunctive" (
"verbs" text,
"yo" text,
"t" text,
"vos" text,
"l_ella_usted" text,
"nosotros_nosotras" text,
"vosotros_vosotras" text,
"ellos_ellas_ustedes" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many verbs have the yo form as sienta?`:
```sql
|
SELECT "l_ella_usted" FROM "present_subjunctive" WHERE "vos"='muelas / molás'; |
## Task
Generate a SQL query to answer the following question:
`What us the conjucated form(s) of el/ella/ usted when the Vos (*) is muelas / molás?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "present_subjunctive" (
"verbs" text,
"yo" text,
"t" text,
"vos" text,
"l_ella_usted" text,
"nosotros_nosotras" text,
"vosotros_vosotras" text,
"ellos_ellas_ustedes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What us the conjucated form(s) of el/ella/ usted when the Vos (*) is muelas / molás?`:
```sql
|
SELECT "vos" FROM "present_subjunctive" WHERE "l_ella_usted"='muela'; |
## Task
Generate a SQL query to answer the following question:
`What are the forms of the conjucated vos(*) where él / ella / usted is muela`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "present_subjunctive" (
"verbs" text,
"yo" text,
"t" text,
"vos" text,
"l_ella_usted" text,
"nosotros_nosotras" text,
"vosotros_vosotras" text,
"ellos_ellas_ustedes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the forms of the conjucated vos(*) where él / ella / usted is muela`:
```sql
|
SELECT COUNT("till_mathura") FROM "toll_rates" WHERE "till_agra"=500; |
## Task
Generate a SQL query to answer the following question:
`How many have the Till Agra of 500?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "toll_rates" (
"vehicle_category" text,
"till_aligarh" real,
"till_mathura" real,
"till_agra" real,
"for_round_trip" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many have the Till Agra of 500?`:
```sql
|
SELECT "vehicle_category" FROM "toll_rates" WHERE "till_agra"=1050; |
## Task
Generate a SQL query to answer the following question:
`What kind of vehicle is the agra 1050?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "toll_rates" (
"vehicle_category" text,
"till_aligarh" real,
"till_mathura" real,
"till_agra" real,
"for_round_trip" real
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of vehicle is the agra 1050?`:
```sql
|
SELECT MAX("till_mathura") FROM "toll_rates" WHERE "till_aligarh"=150; |
## Task
Generate a SQL query to answer the following question:
`If the till aligarh is 150, what the mac till mathura?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "toll_rates" (
"vehicle_category" text,
"till_aligarh" real,
"till_mathura" real,
"till_agra" real,
"for_round_trip" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the till aligarh is 150, what the mac till mathura?`:
```sql
|
SELECT MAX("for_round_trip") FROM "toll_rates" WHERE "till_agra"=1050; |
## Task
Generate a SQL query to answer the following question:
`If the till agra is 1050, what is the max round trip?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "toll_rates" (
"vehicle_category" text,
"till_aligarh" real,
"till_mathura" real,
"till_agra" real,
"for_round_trip" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the till agra is 1050, what is the max round trip?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.