output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num1"='2007 uefa intertoto cup'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of the 1st team in the 2007 uefa intertoto cup?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg of the 1st team in the 2007 uefa intertoto cup?`:
```sql
|
SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num2"='dinamo minsk'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of dinamo minsk team #2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg of dinamo minsk team #2?`:
```sql
|
SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num2"='2007 uefa intertoto cup'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of the second team in the 2007 uefa intertoto cup?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg of the second team in the 2007 uefa intertoto cup?`:
```sql
|
SELECT "status" FROM "matches" WHERE "against"=10; |
## Task
Generate a SQL query to answer the following question:
`What is the status of the 10 against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the 10 against?`:
```sql
|
SELECT "opposing_team" FROM "matches" WHERE "status"='test match'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opposing team in the test match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opposing team in the test match?`:
```sql
|
SELECT "venue" FROM "matches" WHERE "date"='05/09/1973'; |
## Task
Generate a SQL query to answer the following question:
`Where was the 05/09/1973 venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the 05/09/1973 venue?`:
```sql
|
SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "position"='te' AND "round">5; |
## Task
Generate a SQL query to answer the following question:
`Which Overall has a Position of te, and a Round larger than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Overall has a Position of te, and a Round larger than 5?`:
```sql
|
SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">14 AND "overall"<419; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a Round larger than 14, and an Overall smaller than 419?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Round larger than 14, and an Overall smaller than 419?`:
```sql
|
SELECT "overall" FROM "washington_redskins_draft_history" WHERE "round"<2; |
## Task
Generate a SQL query to answer the following question:
`Which Overall has a Round smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Overall has a Round smaller than 2?`:
```sql
|
SELECT "name" FROM "washington_redskins_draft_history" WHERE "round">4 AND "overall"<338 AND "pick"<11 AND "college"='virginia tech'; |
## Task
Generate a SQL query to answer the following question:
`Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller than 11, and a College of virginia tech?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller than 11, and a College of virginia tech?`:
```sql
|
SELECT "name" FROM "men_s_records" WHERE "event"='36 arrow finals'; |
## Task
Generate a SQL query to answer the following question:
`Who has the event of 36 arrow finals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_records" (
"event" text,
"score" real,
"name" text,
"nation" text,
"games" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the event of 36 arrow finals?`:
```sql
|
SELECT COUNT("score") FROM "men_s_records" WHERE "event"='36 arrow finals'; |
## Task
Generate a SQL query to answer the following question:
`What is the total score for the 36 arrow finals event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_records" (
"event" text,
"score" real,
"name" text,
"nation" text,
"games" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total score for the 36 arrow finals event?`:
```sql
|
SELECT "moving_to" FROM "out" WHERE "nat"='tri'; |
## Task
Generate a SQL query to answer the following question:
`Who is moving with the nationality of Tri?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is moving with the nationality of Tri?`:
```sql
|
SELECT "s_spec_number" FROM "180_nm" WHERE "frequency"='1ghz'; |
## Task
Generate a SQL query to answer the following question:
`What is the sSpec Number of the model with a 1ghz frequency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "180_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sSpec Number of the model with a 1ghz frequency?`:
```sql
|
SELECT "part_number_s" FROM "180_nm" WHERE "frequency"='933mhz'; |
## Task
Generate a SQL query to answer the following question:
`What is the part number of the model that has a frequency of 933mhz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "180_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the part number of the model that has a frequency of 933mhz?`:
```sql
|
SELECT "release_date" FROM "180_nm" WHERE "part_number_s"='rk80533pz933256'; |
## Task
Generate a SQL query to answer the following question:
`What date was part number rk80533pz933256 released?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "180_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was part number rk80533pz933256 released?`:
```sql
|
SELECT "frequency" FROM "180_nm" WHERE "s_spec_number"='sl5qj'; |
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the model with sSpec number sl5qj?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "180_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"mult" text,
"voltage" text,
"socket" text,
"release_date" text,
"part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the model with sSpec number sl5qj?`:
```sql
|
SELECT "years" FROM "head_coaches" WHERE "coach"='jim berryman'; |
## Task
Generate a SQL query to answer the following question:
`How many years does coach Jim Berryman have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaches" (
"tenure" text,
"coach" text,
"years" text,
"record" text,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years does coach Jim Berryman have?`:
```sql
|
SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='submission (rear naked choke)' AND "round"=1 AND "event"='ufc 127'; |
## Task
Generate a SQL query to answer the following question:
`Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127?`
### 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 `Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127?`:
```sql
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='n/a'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Time of n/a?`
### 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 `Which Record has a Time of n/a?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "location"='gold coast , australia' AND "method"='submission (punches)'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Location of gold coast , australia, and a Method of submission (punches)?`
### 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 `Which Opponent has a Location of gold coast , australia, and a Method of submission (punches)?`:
```sql
|
SELECT "location" FROM "calendar" WHERE "circuit"='lowood circuit' AND "race"='lowood trophy'; |
## Task
Generate a SQL query to answer the following question:
`what is the location when the circuit is lowood circuit and the race is lowood trophy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"date" text,
"race" text,
"circuit" text,
"location" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location when the circuit is lowood circuit and the race is lowood trophy?`:
```sql
|
SELECT "race" FROM "calendar" WHERE "date"='23 october'; |
## Task
Generate a SQL query to answer the following question:
`what is the race on 23 october?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"date" text,
"race" text,
"circuit" text,
"location" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the race on 23 october?`:
```sql
|
SELECT "circuit" FROM "calendar" WHERE "winner"='stan jones' AND "race"='phillip island trophy race'; |
## Task
Generate a SQL query to answer the following question:
`what is the circuit when the winner is stan jones and the race is phillip island trophy race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"date" text,
"race" text,
"circuit" text,
"location" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the circuit when the winner is stan jones and the race is phillip island trophy race?`:
```sql
|
SELECT "displacement_configuration" FROM "engines" WHERE "max_speed"='km/h (mph)' AND "car_model"='panamera 4s'; |
## Task
Generate a SQL query to answer the following question:
`What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"car_model" text,
"displacement_configuration" text,
"max_motive_power_rpm" text,
"max_torque_rpm" text,
"max_speed" text,
"emissions_co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s?`:
```sql
|
SELECT "displacement_configuration" FROM "engines" WHERE "emissions_co2"='204 g/km'; |
## Task
Generate a SQL query to answer the following question:
`What is the displacement & configuration with CO2 of 204 g/km emissions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"car_model" text,
"displacement_configuration" text,
"max_motive_power_rpm" text,
"max_torque_rpm" text,
"max_speed" text,
"emissions_co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the displacement & configuration with CO2 of 204 g/km emissions?`:
```sql
|
SELECT "displacement_configuration" FROM "engines" WHERE "car_model"='panamera 4s'; |
## Task
Generate a SQL query to answer the following question:
`What displacement & configuration does the car model Panamera 4s have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"car_model" text,
"displacement_configuration" text,
"max_motive_power_rpm" text,
"max_torque_rpm" text,
"max_speed" text,
"emissions_co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What displacement & configuration does the car model Panamera 4s have?`:
```sql
|
SELECT "emissions_co2" FROM "engines" WHERE "max_speed"='km/h (mph)' AND "car_model"='panamera 4s'; |
## Task
Generate a SQL query to answer the following question:
`What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"car_model" text,
"displacement_configuration" text,
"max_motive_power_rpm" text,
"max_torque_rpm" text,
"max_speed" text,
"emissions_co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?`:
```sql
|
SELECT "tickets_available_since" FROM "tour_dates" WHERE "venue"='halle tony garnier' AND "date"='june 15, 2009'; |
## Task
Generate a SQL query to answer the following question:
`How many tickets were available at Halle Tony Garnier on June 15, 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tour_dates" (
"date" text,
"city" text,
"country" text,
"venue" text,
"tickets_available_since" text,
"attendance" real,
"comment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tickets were available at Halle Tony Garnier on June 15, 2009?`:
```sql
|
SELECT "city" FROM "tour_dates" WHERE "tickets_available_since"='march 28, 2008' AND "date"='september 4, 2009'; |
## Task
Generate a SQL query to answer the following question:
`What city had tickets available since March 28, 2008 and went on sale on September 4, 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tour_dates" (
"date" text,
"city" text,
"country" text,
"venue" text,
"tickets_available_since" text,
"attendance" real,
"comment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city had tickets available since March 28, 2008 and went on sale on September 4, 2009?`:
```sql
|
SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "round">1 AND "name"='joe day' AND "overall"<150; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150?`:
```sql
|
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "overall">250 AND "college"='florida'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SUM OF PICK WITH AN OVERALL LARGER THAN 250, AND FOR FLORIDA COLLEGE?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SUM OF PICK WITH AN OVERALL LARGER THAN 250, AND FOR FLORIDA COLLEGE?`:
```sql
|
SELECT "loan_club" FROM "loans_out" WHERE "start_source"='bbc sport' AND "ended"='3 february'; |
## Task
Generate a SQL query to answer the following question:
`What is the loan club with bbc sport as the start source and ended in 3 February?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the loan club with bbc sport as the start source and ended in 3 February?`:
```sql
|
SELECT "started" FROM "loans_out" WHERE "start_source"='enews'; |
## Task
Generate a SQL query to answer the following question:
`When did the enews start source start?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the enews start source start?`:
```sql
|
SELECT "start_source" FROM "loans_out" WHERE "country"='irl' AND "ended"='13 april'; |
## Task
Generate a SQL query to answer the following question:
`What is the start source of the irl country, which ended on 13 April?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the start source of the irl country, which ended on 13 April?`:
```sql
|
SELECT "country" FROM "loans_out" WHERE "start_source"='bbc sport' AND "name"='feeney'; |
## Task
Generate a SQL query to answer the following question:
`What is the country named feeney with a bbc sport start source?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country named feeney with a bbc sport start source?`:
```sql
|
SELECT "loan_club" FROM "loans_out" WHERE "name"='dennehy'; |
## Task
Generate a SQL query to answer the following question:
`What is the loan club named dennehy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans_out" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the loan club named dennehy?`:
```sql
|
SELECT MAX("races") FROM "career_summary" WHERE "position"='1st' AND "podiums"<10; |
## Task
Generate a SQL query to answer the following question:
`What's the most races with less than 10 podiums and 1st position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the most races with less than 10 podiums and 1st position?`:
```sql
|
SELECT SUM("runs") FROM "test_record_partnerships_by_wicket" WHERE "batting_partners"='mahela jayawardene and thilan samaraweera'; |
## Task
Generate a SQL query to answer the following question:
`How many runs did mahela jayawardene and thilan samaraweera have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs did mahela jayawardene and thilan samaraweera have?`:
```sql
|
SELECT "venue" FROM "test_record_partnerships_by_wicket" WHERE "batting_partners"='mahela jayawardene and thilan samaraweera'; |
## Task
Generate a SQL query to answer the following question:
`What venue did mahela jayawardene and thilan samaraweera play at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue did mahela jayawardene and thilan samaraweera play at?`:
```sql
|
SELECT "batting_partners" FROM "test_record_partnerships_by_wicket" WHERE "fielding_team"='india' AND "season"='1997'; |
## Task
Generate a SQL query to answer the following question:
`Who were the batting partners that played for India in 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_record_partnerships_by_wicket" (
"wicket" text,
"runs" real,
"batting_partners" text,
"batting_team" text,
"fielding_team" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the batting partners that played for India in 1997?`:
```sql
|
SELECT "defending_forces" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='al-murassas'; |
## Task
Generate a SQL query to answer the following question:
`What is the defending forces when Al-Murassas shows for name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the defending forces when Al-Murassas shows for name?`:
```sql
|
SELECT "brigade" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='tall al-shawk'; |
## Task
Generate a SQL query to answer the following question:
`What is the brigade Tall Al-Shawk shows for the name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brigade Tall Al-Shawk shows for the name?`:
```sql
|
SELECT "brigade" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='al-bira'; |
## Task
Generate a SQL query to answer the following question:
`What is the brigade when Al-Bira is the name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brigade when Al-Bira is the name?`:
```sql
|
SELECT "brigade" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='al-hamra (''arab al-hamra)'; |
## Task
Generate a SQL query to answer the following question:
`What is the brigade when Al-Hamra ('arab al-hamra) shows for name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brigade when Al-Hamra ('arab al-hamra) shows for name?`:
```sql
|
SELECT "defending_forces" FROM "other_arab_communities_in_baysan_distric" WHERE "population"='120'; |
## Task
Generate a SQL query to answer the following question:
`What is the Defending forces when the population was 120?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_arab_communities_in_baysan_distric" (
"name" text,
"date" text,
"defending_forces" text,
"brigade" text,
"population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Defending forces when the population was 120?`:
```sql
|
SELECT "rank" FROM "worldwide" WHERE "2010"='5,040,000'; |
## Task
Generate a SQL query to answer the following question:
`What was the rank of the park that had a value of 5,040,000 in 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "worldwide" (
"rank" real,
"location" text,
"2008" text,
"2009" text,
"2010" text,
"2011" real,
"2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the park that had a value of 5,040,000 in 2010?`:
```sql
|
SELECT COUNT("overall_pick") FROM "draft_picks" WHERE "round"<3; |
## Task
Generate a SQL query to answer the following question:
`What was the overall pick number of the player selected before round 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"overall_pick" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the overall pick number of the player selected before round 3?`:
```sql
|
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">3 AND "player"='julien cayer'; |
## Task
Generate a SQL query to answer the following question:
`Which College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"overall_pick" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "rank"='3' AND "silver"<2; |
## Task
Generate a SQL query to answer the following question:
`what is the least bronze when the rank is 3 and silver is less than 2?`
### 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 `what is the least bronze when the rank is 3 and silver is less than 2?`:
```sql
|
SELECT MAX("total") FROM "medal_table" WHERE "bronze"=0 AND "nation"='hungary'; |
## Task
Generate a SQL query to answer the following question:
`what is the total when bronze is 0 and the nation is hungary?`
### 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 `what is the total when bronze is 0 and the nation is hungary?`:
```sql
|
SELECT AVG("total") FROM "medal_table" WHERE "rank"='7' AND "gold">0; |
## Task
Generate a SQL query to answer the following question:
`what is the total when the rank is 7 and gold is more 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 `what is the total when the rank is 7 and gold is more than 0?`:
```sql
|
SELECT MAX("gold") FROM "medal_table" WHERE "nation"='total' AND "total"<24; |
## Task
Generate a SQL query to answer the following question:
`what is the highest gold when the nation is total and the total is less than 24?`
### 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 `what is the highest gold when the nation is total and the total is less than 24?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "game">51 AND "score"='99-129'; |
## Task
Generate a SQL query to answer the following question:
`Looking only at matches occurring after Game 51, who was the opponent for the game that ended with a score of 99-129?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Looking only at matches occurring after Game 51, who was the opponent for the game that ended with a score of 99-129?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "opponent"='washington bullets'; |
## Task
Generate a SQL query to answer the following question:
`For the game against the Washington Bullets, what was the final score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game against the Washington Bullets, what was the final score?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "opponent"='@ indiana pacers'; |
## Task
Generate a SQL query to answer the following question:
`For the game where the opponent is listed as @ Indiana Pacers, what was the end record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game where the opponent is listed as @ Indiana Pacers, what was the end record?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "location"='chicago stadium'; |
## Task
Generate a SQL query to answer the following question:
`Which game number was played at Chicago Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game number was played at Chicago Stadium?`:
```sql
|
SELECT AVG("attendance") FROM "round_8" WHERE "home"='motagua'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the match with motagua as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_8" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the match with motagua as the home team?`:
```sql
|
SELECT "score" FROM "round_8" WHERE "home"='real espana'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game where real espana was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_8" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game where real espana was the home team?`:
```sql
|
SELECT "away" FROM "round_8" WHERE "attendance"=916; |
## Task
Generate a SQL query to answer the following question:
`What team was the away team for the game with 916 in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_8" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the away team for the game with 916 in attendance?`:
```sql
|
SELECT "score" FROM "round_8" WHERE "home"='deportes savio'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game wehre the deportes savio were the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_8" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game wehre the deportes savio were the home team?`:
```sql
|
SELECT "championship" FROM "wins_7" WHERE "winning_score"='−9 (66-69-73-71=279)'; |
## Task
Generate a SQL query to answer the following question:
`In which championship did the winner have a score of −9 (66-69-73-71=279)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_7" (
"year" real,
"championship" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which championship did the winner have a score of −9 (66-69-73-71=279)?`:
```sql
|
SELECT "runner_s_up" FROM "wins_7" WHERE "winning_score"='−9 (66-69-73-71=279)'; |
## Task
Generate a SQL query to answer the following question:
`During the championship where the winning score was −9 (66-69-73-71=279)?, who was the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_7" (
"year" real,
"championship" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the championship where the winning score was −9 (66-69-73-71=279)?, who was the runner-up?`:
```sql
|
SELECT "winning_score" FROM "wins_7" WHERE "year"=2002; |
## Task
Generate a SQL query to answer the following question:
`What was the winning score in the year 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_7" (
"year" real,
"championship" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score in the year 2002?`:
```sql
|
SELECT MIN("goals_against") FROM "group_ii" WHERE "club"='cd alcoyano' AND "points">25; |
## Task
Generate a SQL query to answer the following question:
`What is the fewest goals of CD Alcoyano with more than 25 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest goals of CD Alcoyano with more than 25 points?`:
```sql
|
SELECT MIN("wins") FROM "group_ii" WHERE "draws"<7 AND "played">30; |
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of wins that had fewer than 7 draws and more than 30 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of wins that had fewer than 7 draws and more than 30 played?`:
```sql
|
SELECT MIN("points") FROM "group_ii" WHERE "goal_difference">29; |
## Task
Generate a SQL query to answer the following question:
`What is the fewest points that has more than 29 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest points that has more than 29 goals?`:
```sql
|
SELECT MAX("date") FROM "locomotives" WHERE "type"='0-4-4 forney locomotive' AND "number">20 AND "works_number">23754; |
## Task
Generate a SQL query to answer the following question:
`What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" real,
"works_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754?`:
```sql
|
SELECT COUNT("date") FROM "locomotives" WHERE "type"='0-4-4 forney locomotive' AND "number"<20 AND "works_number"=1251; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"number" real,
"builder" text,
"type" text,
"date" real,
"works_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251?`:
```sql
|
SELECT MIN("attendance") FROM "tampa_bay_rays_vs_boston_red_sox" WHERE "time"='3:31' AND "game"<7; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest attendance for the game that had a time of 3:31 and was before game 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tampa_bay_rays_vs_boston_red_sox" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest attendance for the game that had a time of 3:31 and was before game 7?`:
```sql
|
SELECT SUM("attendance") FROM "tampa_bay_rays_vs_boston_red_sox" WHERE "time"='3:23'; |
## Task
Generate a SQL query to answer the following question:
`What was the sum of attendance for games with a time of 3:23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tampa_bay_rays_vs_boston_red_sox" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sum of attendance for games with a time of 3:23?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "silver"=9 AND "total"<27; |
## Task
Generate a SQL query to answer the following question:
`WHat is the lowest amount of bronze medals for teams with 9 silvers and less than 27 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHat is the lowest amount of bronze medals for teams with 9 silvers and less than 27 points?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "country"='new zealand'; |
## Task
Generate a SQL query to answer the following question:
`What is the To par of the New Zealand Player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par of the New Zealand Player?`:
```sql
|
SELECT "player" FROM "second_round" WHERE "score"='70-71=141'; |
## Task
Generate a SQL query to answer the following question:
`What Player had a Score of 70-71=141?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player had a Score of 70-71=141?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "player"='ernie els'; |
## Task
Generate a SQL query to answer the following question:
`What is Ernie Els' Score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ernie Els' Score?`:
```sql
|
SELECT "attendance" FROM "second_round_proper" WHERE "away_team"='bournemouth'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance when Bournemouth was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when Bournemouth was the away team?`:
```sql
|
SELECT "away_team" FROM "second_round_proper" WHERE "home_team"='lincoln city'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team when Lincoln City was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when Lincoln City was the home team?`:
```sql
|
SELECT "score" FROM "second_round_proper" WHERE "away_team"='walsall'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when Walsall was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Walsall was the away team?`:
```sql
|
SELECT "wheels" FROM "locomotives" WHERE "built"=1920; |
## Task
Generate a SQL query to answer the following question:
`Which wheels were built 1920?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"builder" text,
"works_no" real,
"built" real,
"wheels" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which wheels were built 1920?`:
```sql
|
SELECT "builder" FROM "locomotives" WHERE "built"<1880; |
## Task
Generate a SQL query to answer the following question:
`Which builder has a Built smaller than 1880?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"builder" text,
"works_no" real,
"built" real,
"wheels" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which builder has a Built smaller than 1880?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "player"='mike souchak'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Player is "Mike Souchak"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Player is "Mike Souchak"?`:
```sql
|
SELECT "country" FROM "second_round" WHERE "place"='t9' AND "player"='jay hebert'; |
## Task
Generate a SQL query to answer the following question:
`What is Country, when Place is "T9", and when Player is "Jay Hebert"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Place is "T9", and when Player is "Jay Hebert"?`:
```sql
|
SELECT "player" FROM "second_round" WHERE "place"='t9' AND "score"='73-70=143'; |
## Task
Generate a SQL query to answer the following question:
`What is Player, when Place is "T9", and when Score is "73-70=143"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Place is "T9", and when Score is "73-70=143"?`:
```sql
|
SELECT "country" FROM "second_round" WHERE "player"='dow finsterwald'; |
## Task
Generate a SQL query to answer the following question:
`What is Country, when Player is "Dow Finsterwald"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Player is "Dow Finsterwald"?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "country"='united states' AND "place"='t9' AND "player"='jay hebert'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Country is "United States", when Place is "T9", and when Player is "Jay Hebert"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Country is "United States", when Place is "T9", and when Player is "Jay Hebert"?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "to_par"='+1' AND "player"='mike souchak'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when To Par is "+1", and when Player is "Mike Souchak"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when To Par is "+1", and when Player is "Mike Souchak"?`:
```sql
|
SELECT "score" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "home"='chicago black hawks' AND "record"='3-3'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score when the Home team is Chicago Black Hawks and the Record is 3-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score when the Home team is Chicago Black Hawks and the Record is 3-3?`:
```sql
|
SELECT "visitor" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "score"='0-4'; |
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Score of 0-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visitor has a Score of 0-4?`:
```sql
|
SELECT "record" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "date"='april 22'; |
## Task
Generate a SQL query to answer the following question:
`What is the Record for April 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record for April 22?`:
```sql
|
SELECT "date" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "record"='3-4'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Record of 3-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Record of 3-4?`:
```sql
|
SELECT "date" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "record"='3-4'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Record of 3-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Record of 3-4?`:
```sql
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='anna barone'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for opponent Anna Barone?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for opponent Anna Barone?`:
```sql
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='ko (head kick)'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for the Ko (head kick) method?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the Ko (head kick) method?`:
```sql
|
SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"<2 AND "method"='ko (knee to the body)'; |
## Task
Generate a SQL query to answer the following question:
`What is the time before round 2, and the ko (knee to the body) method?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time before round 2, and the ko (knee to the body) method?`:
```sql
|
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "method"='tko (punches and elbows)'; |
## Task
Generate a SQL query to answer the following question:
`What is the average round for the TKO (punches and elbows) method?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round for the TKO (punches and elbows) method?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='ufc 19'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in UFC 19?`
### 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 `Who was the opponent in UFC 19?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round">1 AND "event"='ufc 66'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in UFC 66 who lasted for more than 1 round?`
### 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 `Who was the opponent in UFC 66 who lasted for more than 1 round?`:
```sql
|
SELECT "1989" FROM "grand_prix_singles_tournament_timeline" WHERE "1984"='a' AND "1985"='a' AND "1990"='a'; |
## Task
Generate a SQL query to answer the following question:
`What was the 1989 result for the tournament with 1984 of a, 1985 of a, and 1990 of a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_singles_tournament_timeline" (
"tournament" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"career_sr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1989 result for the tournament with 1984 of a, 1985 of a, and 1990 of a?`:
```sql
|
SELECT "1987" FROM "grand_prix_singles_tournament_timeline" WHERE "1989"='a' AND "1986"='3r'; |
## Task
Generate a SQL query to answer the following question:
`What was the 1987 result for the tournament with 1986 result of 3R and 1989 of A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_singles_tournament_timeline" (
"tournament" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"career_sr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1987 result for the tournament with 1986 result of 3R and 1989 of A?`:
```sql
|
SELECT "1989" FROM "grand_prix_singles_tournament_timeline" WHERE "1987"='1r'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1989 result of the tournament that had a 1987 result of 1R?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_singles_tournament_timeline" (
"tournament" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"career_sr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1989 result of the tournament that had a 1987 result of 1R?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.