output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "crystal_structure" FROM "critical_temperature_t_c_crystal_structu" WHERE "no_of_cu_o_planes_in_unit_cell"=3 AND "t_c_k"=110; |
## Task
Generate a SQL query to answer the following question:
`Which crystal structures has a Tc(K) of 110 and the number of Cu-O planes in the unit cell is 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "critical_temperature_t_c_crystal_structu" (
"formula" text,
"notation" text,
"t_c_k" real,
"no_of_cu_o_planes_in_unit_cell" real,
"crystal_structure" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which crystal structures has a Tc(K) of 110 and the number of Cu-O planes in the unit cell is 3?`:
```sql
|
SELECT "gold" FROM "medal_table" WHERE "total">33; |
## Task
Generate a SQL query to answer the following question:
`Name the gold with total larger than 33`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gold with total larger than 33`:
```sql
|
SELECT MIN("gold") FROM "medal_table" WHERE "nation"='tanzania' AND "bronze"<0; |
## Task
Generate a SQL query to answer the following question:
`Name the fewest gold for tanzania with bronze less than 0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fewest gold for tanzania with bronze less than 0`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"=10; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent for week 10?`
### 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 week 10?`:
```sql
|
SELECT MAX("gold") FROM "medal_table" WHERE "total">32; |
## Task
Generate a SQL query to answer the following question:
`For countries that won more than 32 gold medals, what was the highest number of golds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `For countries that won more than 32 gold medals, what was the highest number of golds?`:
```sql
|
SELECT "fourth_place" FROM "australasian_championships" WHERE "year"=2010; |
## Task
Generate a SQL query to answer the following question:
`Tell me fourth place for year of 2010`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australasian_championships" (
"year" real,
"host" text,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me fourth place for year of 2010`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "competition"='2010 fifa world cup qualification'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for 2010 fifa world cup qualification`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for 2010 fifa world cup qualification`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "competition"='2010 fifa world cup qualification'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the date for 2010 fifa world cup qualification`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the date for 2010 fifa world cup qualification`:
```sql
|
SELECT "surface" FROM "singles_8_1" WHERE "date"='november 28, 2010'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the surface for november 28, 2010`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the surface for november 28, 2010`:
```sql
|
SELECT "tournament" FROM "singles_8_1" WHERE "surface"='hard' AND "score"='6β1, 6β2'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the tournament with a hard surface for 6β1, 6β2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the tournament with a hard surface for 6β1, 6β2`:
```sql
|
SELECT "date" FROM "singles_8_1" WHERE "score"='6β3, 6β2'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the date for 6β3, 6β2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the date for 6β3, 6β2`:
```sql
|
SELECT "date" FROM "singles_8_1" WHERE "opponent_in_the_final"='johanna konta'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the date for johanna konta`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the date for johanna konta`:
```sql
|
SELECT "time" FROM "1970_isle_of_man_production_500_cc_tt_fi" WHERE "rank">3 AND "rider"='brian finch'; |
## Task
Generate a SQL query to answer the following question:
`What is the time value for the rider Brian Finch and a rank greater than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970_isle_of_man_production_500_cc_tt_fi" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time value for the rider Brian Finch and a rank greater than 3?`:
```sql
|
SELECT "result" FROM "prizes_and_awards" WHERE "director"='sergio leone' AND "project"='once upon a time in the west'; |
## Task
Generate a SQL query to answer the following question:
`What result does the project Once Upon A Time In The West, directed by Sergio Leone have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "prizes_and_awards" (
"year" real,
"director" text,
"project" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result does the project Once Upon A Time In The West, directed by Sergio Leone have?`:
```sql
|
SELECT "year" FROM "prizes_and_awards" WHERE "project"='bulworth'; |
## Task
Generate a SQL query to answer the following question:
`What year was Bulworth nominated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "prizes_and_awards" (
"year" real,
"director" text,
"project" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Bulworth nominated?`:
```sql
|
SELECT AVG("year") FROM "prizes_and_awards" WHERE "project"='the untouchables'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Year for the project The Untouchables?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "prizes_and_awards" (
"year" real,
"director" text,
"project" text,
"category" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Year for the project The Untouchables?`:
```sql
|
SELECT "section" FROM "season_to_season" WHERE "position"='8th' AND "season"='2003'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the section for position of 8th and season of 2003`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_to_season" (
"season" text,
"level" text,
"division" text,
"section" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the section for position of 8th and season of 2003`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"=17; |
## Task
Generate a SQL query to answer the following question:
`What is the date of week 17?`
### 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 is the date of week 17?`:
```sql
|
SELECT MAX("week") FROM "schedule" WHERE "opponent"='tampa bay buccaneers'; |
## Task
Generate a SQL query to answer the following question:
`What was the latest week that the Tampa Bay Buccaneers were an opponent?`
### 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 was the latest week that the Tampa Bay Buccaneers were an opponent?`:
```sql
|
SELECT MIN("tries") FROM "points" WHERE "club"='leicester tigers' AND "points"<207; |
## Task
Generate a SQL query to answer the following question:
`Name the fewest tries for leicester tigers with points less than 207`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points" (
"points" real,
"name" text,
"club" text,
"tries" real,
"drop" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fewest tries for leicester tigers with points less than 207`:
```sql
|
SELECT "date" FROM "2006_07_york_city_f_c_season" WHERE "opponent"='st albans city' AND "result"='drew 0-0'; |
## Task
Generate a SQL query to answer the following question:
`Name the date of st albans city for result of drew 0-0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date of st albans city for result of drew 0-0`:
```sql
|
SELECT "venue" FROM "2006_07_york_city_f_c_season" WHERE "date"='15 august 2006'; |
## Task
Generate a SQL query to answer the following question:
`Name the venue for 15 august 2006`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue for 15 august 2006`:
```sql
|
SELECT MAX("attendance") FROM "2006_07_york_city_f_c_season" WHERE "opponent"='tamworth' AND "venue"='home'; |
## Task
Generate a SQL query to answer the following question:
`Name the most attendance for tamworth with home venue`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most attendance for tamworth with home venue`:
```sql
|
SELECT MIN("attendance") FROM "2006_07_york_city_f_c_season" WHERE "date"='10 october 2006'; |
## Task
Generate a SQL query to answer the following question:
`Name the least attendance for 10 october 2006`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least attendance for 10 october 2006`:
```sql
|
SELECT AVG("bronze") FROM "medal_table" WHERE "total"=19 AND "silver"=8 AND "rank"='31'; |
## Task
Generate a SQL query to answer the following question:
`I want the average bronze for total of 19 and silver of 8 with rank of 31`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the average bronze for total of 19 and silver of 8 with rank of 31`:
```sql
|
SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='43' AND "total"<11; |
## Task
Generate a SQL query to answer the following question:
`Tell me the average bronze for rank of 43 and total less than 11`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the average bronze for rank of 43 and total less than 11`:
```sql
|
SELECT "format" FROM "affiliates" WHERE "frequency"='1290 khz'; |
## Task
Generate a SQL query to answer the following question:
`Say the frequency of 1290 khz`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Say the frequency of 1290 khz`:
```sql
|
SELECT "timeslot" FROM "affiliates" WHERE "calls"='wrko'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the timeslot of calls of wrko`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the timeslot of calls of wrko`:
```sql
|
SELECT "format" FROM "affiliates" WHERE "calls"='wrko'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the format for calls of wrko`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the format for calls of wrko`:
```sql
|
SELECT "calls" FROM "affiliates" WHERE "frequency"='1290 khz'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the calls for frequency of 1290 khz`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the calls for frequency of 1290 khz`:
```sql
|
SELECT "branding" FROM "affiliates" WHERE "frequency"='680 khz'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the branding for frequency of 680 khz`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the branding for frequency of 680 khz`:
```sql
|
SELECT "timeslot" FROM "affiliates" WHERE "calls"='whyn'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the timeslot for calls of whyn`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the timeslot for calls of whyn`:
```sql
|
SELECT COUNT("time") FROM "heats" WHERE "country"='bolivia' AND "lane">6; |
## Task
Generate a SQL query to answer the following question:
`For how long did Bolivia have a lane greater than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `For how long did Bolivia have a lane greater than 6?`:
```sql
|
SELECT SUM("lane") FROM "heats" WHERE "heat_rank"=7; |
## Task
Generate a SQL query to answer the following question:
`In heat rank 7, what is the sum of lanes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `In heat rank 7, what is the sum of lanes?`:
```sql
|
SELECT "country" FROM "heats" WHERE "heat_rank"<8 AND "overall_rank"='56'; |
## Task
Generate a SQL query to answer the following question:
`Which country is ranked 56 overall and has a heat rank smaller than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is ranked 56 overall and has a heat rank smaller than 8?`:
```sql
|
SELECT MAX("lane") FROM "heats" WHERE "overall_rank"='79' AND "time">26.1; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest lane with an overall rank of 79 and a time larger than 26.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest lane with an overall rank of 79 and a time larger than 26.1?`:
```sql
|
SELECT MAX("week") FROM "schedule" WHERE "venue"='metropolitan stadium' AND "attendance">'47,644'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the highest week for metropolitan stadium for attendance more than 47,644`
### 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,
"venue" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the highest week for metropolitan stadium for attendance more than 47,644`:
```sql
|
SELECT SUM("played") FROM "coaches" WHERE "manager"='serik berdalin' AND "drawn">4; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of played for serik berdalin and drawn more than 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaches" (
"manager" text,
"period" text,
"played" real,
"drawn" real,
"lost" real,
"win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of played for serik berdalin and drawn more than 4`:
```sql
|
SELECT MAX("total_seats") FROM "results" WHERE "pr_seats"=48 AND "district_seats">73; |
## Task
Generate a SQL query to answer the following question:
`Who had the highest total PR seats of 48 with a District seat larger than than 73?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"party" text,
"pr_seats" real,
"district_seats" real,
"total_elected_2001" text,
"total_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest total PR seats of 48 with a District seat larger than than 73?`:
```sql
|
SELECT "party" FROM "since_1945" WHERE "year"='1955' AND "candidate"='thomas mitchell'; |
## Task
Generate a SQL query to answer the following question:
`In 1955 which party did Thomas Mitchell belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 1955 which party did Thomas Mitchell belong to?`:
```sql
|
SELECT "days" FROM "since_1945" WHERE "party"='ulster unionist' AND "constituency"='fermanagh and south tyrone'; |
## Task
Generate a SQL query to answer the following question:
`What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone?`:
```sql
|
SELECT "days" FROM "since_1945" WHERE "year"='1945' AND "constituency"='heywood and radcliffe'; |
## Task
Generate a SQL query to answer the following question:
`What are the number of days in 1945 where the constituent was heywood and radcliffe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the number of days in 1945 where the constituent was heywood and radcliffe?`:
```sql
|
SELECT "year" FROM "since_1945" WHERE "party"='liberal' AND "constituency"='hazel grove'; |
## Task
Generate a SQL query to answer the following question:
`What year was Hazel Grove the constituent for the liberal party?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Hazel Grove the constituent for the liberal party?`:
```sql
|
SELECT AVG("laps") FROM "superbike_race_2_classification" WHERE "grid">12 AND "bike"='ducati 999rs' AND "rider"='dean ellison'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison`:
```sql
|
SELECT MAX("laps") FROM "superbike_race_2_classification" WHERE "grid"<22 AND "rider"='ruben xaus'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the highest Laps for grid less than 22 and riderS of ruben xaus`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the highest Laps for grid less than 22 and riderS of ruben xaus`:
```sql
|
SELECT COUNT("grid") FROM "superbike_race_2_classification" WHERE "rider"='james toseland'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of grid for rider of james toseland`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the total number of grid for rider of james toseland`:
```sql
|
SELECT MIN("laps") FROM "superbike_race_2_classification" WHERE "time"='35:26.734' AND "grid">2; |
## Task
Generate a SQL query to answer the following question:
`Tell me the least Laps for grid larger than 2 with 35:26.734`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the least Laps for grid larger than 2 with 35:26.734`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"=13; |
## Task
Generate a SQL query to answer the following question:
`Tell me the date with week of 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the date with week of 13`:
```sql
|
SELECT AVG("week") FROM "schedule" WHERE "attendance"='48,113'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the average week for attendance of 48,113`
### 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 `Tell me the average week for attendance of 48,113`:
```sql
|
SELECT "album" FROM "albums" WHERE "year"<2005 AND "label"='ministry of sound'; |
## Task
Generate a SQL query to answer the following question:
`Which Album had a year less than 2005 with a Label by Ministry of Sound?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albums" (
"year" real,
"album" text,
"song" text,
"label" text,
"catalognum" text,
"format" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Album had a year less than 2005 with a Label by Ministry of Sound?`:
```sql
|
SELECT "album" FROM "albums" WHERE "year">2005 AND "country"='australia'; |
## Task
Generate a SQL query to answer the following question:
`Which Album had a bigger year than 2005 and whose country was Australia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albums" (
"year" real,
"album" text,
"song" text,
"label" text,
"catalognum" text,
"format" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Album had a bigger year than 2005 and whose country was Australia?`:
```sql
|
SELECT "song" FROM "albums" WHERE "label"='central station' AND "album"='various - wild nights 4'; |
## Task
Generate a SQL query to answer the following question:
`Which song had Central Station as a label and whose album was Various - Wild Nights 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albums" (
"year" real,
"album" text,
"song" text,
"label" text,
"catalognum" text,
"format" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which song had Central Station as a label and whose album was Various - Wild Nights 4?`:
```sql
|
SELECT "venue" FROM "in_a_match" WHERE "opponent"='zimbabwe'; |
## Task
Generate a SQL query to answer the following question:
`Where did Zimbabwe play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in_a_match" (
"sixes" text,
"player" text,
"opponent" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Zimbabwe play?`:
```sql
|
SELECT "date" FROM "in_a_match" WHERE "opponent"='canada'; |
## Task
Generate a SQL query to answer the following question:
`What is the date when Canada played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in_a_match" (
"sixes" text,
"player" text,
"opponent" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date when Canada played?`:
```sql
|
SELECT MIN("silver") FROM "medal_table" WHERE "rank"=9 AND "bronze"<2; |
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest silver for rank of 9 and bronze less than 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest silver for rank of 9 and bronze less than 2`:
```sql
|
SELECT "report" FROM "non_championship_grands_prix" WHERE "winning_driver"='raymond sommer'; |
## Task
Generate a SQL query to answer the following question:
`Name the report for raymond sommer`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the report for raymond sommer`:
```sql
|
SELECT "winning_driver" FROM "non_championship_grands_prix" WHERE "name"='monaco grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the winning driver for monaco grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning driver for monaco grand prix`:
```sql
|
SELECT "circuit" FROM "non_championship_grands_prix" WHERE "winning_driver"='marcel lehoux'; |
## Task
Generate a SQL query to answer the following question:
`Name the circuit for marcel lehoux`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the circuit for marcel lehoux`:
```sql
|
SELECT "report" FROM "non_championship_grands_prix" WHERE "winning_driver"='per-viktor widengren' AND "winning_constructor"='alfa romeo'; |
## Task
Generate a SQL query to answer the following question:
`Name the report for per-viktor widengren and alfa romeo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the report for per-viktor widengren and alfa romeo`:
```sql
|
SELECT "date" FROM "1925_1929" WHERE "location"='warsaw' AND "year"=1929; |
## Task
Generate a SQL query to answer the following question:
`Tell me the date for warsaw 1929`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1925_1929" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the date for warsaw 1929`:
```sql
|
SELECT "result" FROM "1925_1929" WHERE "location"='warsaw' AND "year"=1929; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for warsaw 1929`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1925_1929" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for warsaw 1929`:
```sql
|
SELECT "result" FROM "1925_1929" WHERE "location"='harrogate'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for harrogate`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1925_1929" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for harrogate`:
```sql
|
SELECT "stem_meaning" FROM "honorifics" WHERE "3rd_person_sg"='ical'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the Stem Meaning of ical`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "honorifics" (
"stem_meaning" text,
"2nd_person_sg" text,
"2nd_person_sg_honorific" text,
"3rd_person_sg" text,
"3rd_person_sg_honorific" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the Stem Meaning of ical`:
```sql
|
SELECT "3rd_person_sg" FROM "honorifics" WHERE "3rd_person_sg_honorific"='tiecal, tiecaltzi'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the 3rd person sg for tiecal, tiecaltzi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "honorifics" (
"stem_meaning" text,
"2nd_person_sg" text,
"2nd_person_sg_honorific" text,
"3rd_person_sg" text,
"3rd_person_sg_honorific" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the 3rd person sg for tiecal, tiecaltzi`:
```sql
|
SELECT "overall_rank" FROM "heats" WHERE "swimmer"='roland schoeman'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the overall rank for roland schoeman`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the overall rank for roland schoeman`:
```sql
|
SELECT SUM("silver") FROM "medal_table" WHERE "rank">1 AND "gold"=4; |
## Task
Generate a SQL query to answer the following question:
`How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have?`:
```sql
|
SELECT AVG("total") FROM "medal_table" WHERE "silver">6 AND "gold"<8; |
## Task
Generate a SQL query to answer the following question:
`Which nation has more than 6 Silver medals and fewer than 8 Gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation has more than 6 Silver medals and fewer than 8 Gold medals?`:
```sql
|
SELECT AVG("rank") FROM "medal_table" WHERE "total"<24 AND "gold">7; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?`:
```sql
|
SELECT MIN("rank") FROM "medal_table" WHERE "bronze">1 AND "gold"<4; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals?`:
```sql
|
SELECT SUM("silver") FROM "medal_table" WHERE "gold"=4 AND "nation"='belarus (blr)' AND "bronze">4; |
## Task
Generate a SQL query to answer the following question:
`How many silver medals does Belarus (blr) along with 4 gold and 4 bronze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silver medals does Belarus (blr) along with 4 gold and 4 bronze?`:
```sql
|
SELECT MAX("rank") FROM "medal_table" WHERE "nation"='belarus (blr)' AND "total"<15; |
## Task
Generate a SQL query to answer the following question:
`What rank is Belarus (BLR), which earned 15 medals total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is Belarus (BLR), which earned 15 medals total?`:
```sql
|
SELECT "name" FROM "grandes_preuves" WHERE "date"='24 september'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the race on 24 September?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the race on 24 September?`:
```sql
|
SELECT "name" FROM "grandes_preuves" WHERE "date"='9 july'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the race on 9 July?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the race on 9 July?`:
```sql
|
SELECT "circuit" FROM "grandes_preuves" WHERE "winning_constructor"='maserati' AND "winning_drivers"='giuseppe campari'; |
## Task
Generate a SQL query to answer the following question:
`What was the race that was won by a Maserati being driven by Giuseppe Campari?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the race that was won by a Maserati being driven by Giuseppe Campari?`:
```sql
|
SELECT "date" FROM "grandes_preuves" WHERE "winning_drivers"='louis chiron'; |
## Task
Generate a SQL query to answer the following question:
`What date was the race won by Louis Chiron?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the race won by Louis Chiron?`:
```sql
|
SELECT "winning_constructor" FROM "grandes_preuves" WHERE "winning_drivers"='tazio nuvolari'; |
## Task
Generate a SQL query to answer the following question:
`What brand of vehicle won a race driven by Tazio Nuvolari?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What brand of vehicle won a race driven by Tazio Nuvolari?`:
```sql
|
SELECT "name" FROM "grandes_preuves" WHERE "winning_drivers"='tazio nuvolari'; |
## Task
Generate a SQL query to answer the following question:
`What race was won by Tazio Nuvolari?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race was won by Tazio Nuvolari?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "week"<4 AND "date"='september 7, 1986'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for week less than 4 and september 7, 1986`
### 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 `Tell me the result for week less than 4 and september 7, 1986`:
```sql
|
SELECT "result" FROM "schedule" WHERE "week"=3; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for week of 3`
### 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 `Tell me the result for week of 3`:
```sql
|
SELECT MIN("week") FROM "schedule" WHERE "attendance"<'32,738'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest week for attedance less thaan 32,738`
### 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 `Tell me the lowest week for attedance less thaan 32,738`:
```sql
|
SELECT "ship" FROM "ships_served_in_by_richard_bolitho" WHERE "captain"='lieutenant montagu verling'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the ship for lieutenant montagu verling`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the ship for lieutenant montagu verling`:
```sql
|
SELECT "class" FROM "ships_served_in_by_richard_bolitho" WHERE "rank"='admiral' AND "ship"='hms frobisher'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the class for admiral and hms frobisher`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the class for admiral and hms frobisher`:
```sql
|
SELECT "guns" FROM "ships_served_in_by_richard_bolitho" WHERE "class"='third-rate ship of the line' AND "rank"='vice-admiral' AND "year"='1802'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802`:
```sql
|
SELECT "captain" FROM "ships_served_in_by_richard_bolitho" WHERE "year"='1774' AND "guns"='14'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the captain for 1774 and guns of 14`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the captain for 1774 and guns of 14`:
```sql
|
SELECT "captain" FROM "ships_served_in_by_richard_bolitho" WHERE "guns"='28'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the captain for guns of 28`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the captain for guns of 28`:
```sql
|
SELECT "status" FROM "star_struck_standing" WHERE "eliminated"='anton dela paz'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the status of eliminated of anton dela paz`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "star_struck_standing" (
"week_num" real,
"finalists" text,
"status" text,
"eliminated" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the status of eliminated of anton dela paz`:
```sql
|
SELECT "finalists" FROM "star_struck_standing" WHERE "week_num"<2; |
## Task
Generate a SQL query to answer the following question:
`Tell me the finalists for week # less than 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "star_struck_standing" (
"week_num" real,
"finalists" text,
"status" text,
"eliminated" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the finalists for week # less than 2`:
```sql
|
SELECT "eliminated" FROM "star_struck_standing" WHERE "week_num">4; |
## Task
Generate a SQL query to answer the following question:
`Tell me the eliminated for week # larger than 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "star_struck_standing" (
"week_num" real,
"finalists" text,
"status" text,
"eliminated" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the eliminated for week # larger than 4`:
```sql
|
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "event"='ufc 78'; |
## Task
Generate a SQL query to answer the following question:
`At the UFC 78, what is the average round when the time is 5:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `At the UFC 78, what is the average round when the time is 5:00?`:
```sql
|
SELECT "time" FROM "mixed_martial_arts_record" WHERE "res"='draw'; |
## Task
Generate a SQL query to answer the following question:
`When there was a draw, what was the time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `When there was a draw, what was the time?`:
```sql
|
SELECT SUM("points") FROM "gp2_series" WHERE "year"=2010 AND "races">14 AND "f_l"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gp2_series" (
"year" real,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"points" real,
"d_c" text,
"t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "attendance">'46,551' AND "week"<4; |
## Task
Generate a SQL query to answer the following question:
`What day was the game that had an attendance of more than 46,551 people and had a week number of less than 4?`
### 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 `What day was the game that had an attendance of more than 46,551 people and had a week number of less than 4?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "week"<2; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the game that had a week number of less than 2?`
### 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 `What was the outcome of the game that had a week number of less than 2?`:
```sql
|
SELECT "heat_lane" FROM "heats" WHERE "name"='thi hue pham'; |
## Task
Generate a SQL query to answer the following question:
`What heat and what lane is thi hue pham in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"rank" real,
"heat_lane" text,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What heat and what lane is thi hue pham in?`:
```sql
|
SELECT "heat_lane" FROM "heats" WHERE "time"='1:01.12'; |
## Task
Generate a SQL query to answer the following question:
`What Heat & Lane is the person who has a time of 1:01.12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"rank" real,
"heat_lane" text,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Heat & Lane is the person who has a time of 1:01.12?`:
```sql
|
SELECT "laps" FROM "race" WHERE "driver"='fernando alonso'; |
## Task
Generate a SQL query to answer the following question:
`How many laps did Fernando Alonso do?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did Fernando Alonso do?`:
```sql
|
SELECT "constructor" FROM "race" WHERE "driver"='jenson button'; |
## Task
Generate a SQL query to answer the following question:
`What was Jenson Button's constructor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Jenson Button's constructor?`:
```sql
|
SELECT "package" FROM "supported_microcontrollers_according_to_" WHERE "eeprom"<128; |
## Task
Generate a SQL query to answer the following question:
`Tell me the package for EEPROM less than 128`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "supported_microcontrollers_according_to_" (
"chip" text,
"flash_size" text,
"eeprom" real,
"sram" real,
"frequency_m_hz" real,
"package" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the package for EEPROM less than 128`:
```sql
|
SELECT "chip" FROM "supported_microcontrollers_according_to_" WHERE "frequency_m_hz">10; |
## Task
Generate a SQL query to answer the following question:
`Tell me the chip with frequency larger than 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "supported_microcontrollers_according_to_" (
"chip" text,
"flash_size" text,
"eeprom" real,
"sram" real,
"frequency_m_hz" real,
"package" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the chip with frequency larger than 10`:
```sql
|
SELECT MAX("grid") FROM "race" WHERE "constructor"='toyota' AND "driver"='jarno trulli'; |
## Task
Generate a SQL query to answer the following question:
`I want the highest Grid for Toyota and jarno trulli`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the highest Grid for Toyota and jarno trulli`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.