question
stringlengths 19
162
| table_info
stringlengths 39
951
| sql_query
stringlengths 24
181
|
---|---|---|
What championship had a final score of 6 4, 6 2, 6 2? | CREATE TABLE table_22839669_1 (
championship VARCHAR,
score_in_the_final VARCHAR
) | SELECT championship FROM table_22839669_1 WHERE score_in_the_final LIKE "%6–4, 6–2, 6–2%" |
What was the original air date when ed horowitz wrote it? | CREATE TABLE table_10539 (
"Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
) | SELECT "Original airdate" FROM table_10539 WHERE "Written by" LIKE '%ed horowitz%' |
Who was the Producer/Director of Fear Beneath? | CREATE TABLE table_name_40 (
producer_director VARCHAR,
film VARCHAR
) | SELECT producer_director FROM table_name_40 WHERE film LIKE "%fear beneath%" |
When 24:31 is the run time how many measurements of viewers (in millions) are there? | CREATE TABLE table_2102945_1 (
viewers__in_millions_ VARCHAR,
run_time VARCHAR
) | SELECT COUNT(viewers__in_millions_) FROM table_2102945_1 WHERE run_time LIKE "%24:31%" |
What is the Record of the game on September 6? | CREATE TABLE table_name_49 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_49 WHERE date LIKE "%september 6%" |
What is the profession of the housemate from Leskovac city? | CREATE TABLE table_name_90 (
profession VARCHAR,
city VARCHAR
) | SELECT profession FROM table_name_90 WHERE city LIKE "%leskovac%" |
How many positions have round 3? | CREATE TABLE table_2359 (
"Round" real,
"Choice" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"College" text
) | SELECT COUNT("Position") FROM table_2359 WHERE "Round" = 3 |
Which country had a contestant that was 1.76 meters tall? | CREATE TABLE table_23495048_2 (
represent VARCHAR,
height__mtr_ VARCHAR
) | SELECT represent FROM table_23495048_2 WHERE height__mtr_ LIKE "%1.76%" |
Which number has 11 males? | CREATE TABLE table_name_41 (
number VARCHAR,
males VARCHAR
) | SELECT number FROM table_name_41 WHERE males LIKE "%11%" |
What date was the game with a record of 47 39? | CREATE TABLE table_71034 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_71034 WHERE "Record" LIKE '%47–39%' |
Name the Event of the Games of 1950 auckland and a Medal of bronze? | CREATE TABLE table_name_60 (
event VARCHAR,
games VARCHAR,
medal VARCHAR
) | SELECT event FROM table_name_60 WHERE games LIKE "%1950 auckland%" AND medal LIKE "%bronze%" |
What is the outgoing manager for the team kas mpa a? | CREATE TABLE table_26998135_2 (
outgoing_manager VARCHAR,
team VARCHAR
) | SELECT outgoing_manager FROM table_26998135_2 WHERE team LIKE "%kasımpaşa%" |
what is the work when the result is won and the year is before 2003? | CREATE TABLE table_50126 (
"Award" text,
"Year" real,
"Category" text,
"Work" text,
"Result" text
) | SELECT "Work" FROM table_50126 WHERE "Result" LIKE '%won%' AND "Year" < 2003 |
What is the highest rank of the 2009 xbox? | CREATE TABLE table_name_95 (
rank INTEGER
) | SELECT MAX(rank) FROM table_name_95 WHERE "2009" LIKE '%xbox%' |
Who was the player for England when the to par is 7? | CREATE TABLE table_13138 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
) | SELECT "Player" FROM table_13138 WHERE "To par" = 7 AND "Country" LIKE '%england%' |
What amount of earnings does Tiger Woods have? | CREATE TABLE table_name_40 (
earnings___$__ VARCHAR,
player VARCHAR
) | SELECT earnings___$__ FROM table_name_40 WHERE player LIKE "%tiger woods%" |
What is the score of the match on July 29, 1990? | CREATE TABLE table_name_79 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_79 WHERE date LIKE "%july 29, 1990%" |
Which republican was first elected in 1886 in the district of ohio 17? | CREATE TABLE table_5313 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
) | SELECT "Result" FROM table_5313 WHERE "Party" LIKE '%republican%' AND "First elected" LIKE '%1886%' AND "District" LIKE '%ohio 17%' |
What Award has a date of 2002? | CREATE TABLE table_name_5 (
award VARCHAR,
year VARCHAR
) | SELECT award FROM table_name_5 WHERE year LIKE '%2002%' |
What was the weight in kg when the horse was Alcopop? | CREATE TABLE table_24915874_1 (
weight__kg_ VARCHAR,
horse VARCHAR
) | SELECT weight__kg_ FROM table_24915874_1 WHERE horse LIKE "%alcopop%" |
What was the finish by the player from West Germany? | CREATE TABLE table_name_36 (
finish VARCHAR,
country VARCHAR
) | SELECT finish FROM table_name_36 WHERE country LIKE "%west germany%" |
what's the overall rank with viewers (m) of 7.44 | CREATE TABLE table_11354111_3 (
overall_rank VARCHAR,
viewers__m_ VARCHAR
) | SELECT overall_rank FROM table_11354111_3 WHERE viewers__m_ LIKE "%7.44%" |
What is the average distance and average price for flights from Los Angeles. | CREATE TABLE Flight (
distance INTEGER,
price INTEGER,
origin VARCHAR
) | SELECT AVG(distance), AVG(price) FROM Flight WHERE origin LIKE "%los angeles%" |
What date did South Melbourne play as the Away team? | CREATE TABLE table_name_79 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_79 WHERE away_team LIKE "%south melbourne%" |
Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller than 1997? | CREATE TABLE table_name_4 (
diameter__km_ INTEGER,
name VARCHAR,
year_named VARCHAR
) | SELECT MAX(diameter__km_) FROM table_name_4 WHERE name LIKE '%alma-merghen planitia%' AND year_named < '1997' |
On what date was the type 2-8-0 with a O4 LNER Class? | CREATE TABLE table_10411 (
"Class" text,
"Type" text,
"Quantity" real,
"Date" text,
"LNER Class" text,
"1946 LNER nos." text
) | SELECT "Date" FROM table_10411 WHERE "Type" LIKE '%2-8-0%' AND "LNER Class" LIKE '%o4%' |
What was the date of game 21? | CREATE TABLE table_17288869_6 (
date VARCHAR,
game VARCHAR
) | SELECT date FROM table_17288869_6 WHERE game LIKE '%21%' |
What is the pali word for phrag dog in tibetan? | CREATE TABLE table_name_64 (
pali VARCHAR,
tibetan VARCHAR
) | SELECT pali FROM table_name_64 WHERE tibetan LIKE "%phrag dog%" |
How many viewers are the when the draw is 3? | CREATE TABLE table_27994983_8 (
viewers INTEGER,
draw VARCHAR
) | SELECT MAX(viewers) FROM table_27994983_8 WHERE draw LIKE '%3%' |
In what tournament did Cipolla face Sergio Roitman? | CREATE TABLE table_name_5 (
tournament VARCHAR,
opponent VARCHAR
) | SELECT tournament FROM table_name_5 WHERE opponent LIKE "%sergio roitman%" |
How many teams have been in Topperserien for 8 seasons? | CREATE TABLE table_2522473_1 (
team VARCHAR,
seasons VARCHAR
) | SELECT COUNT(team) FROM table_2522473_1 WHERE seasons LIKE '%8%' |
What is the release Date of the 7' single in Catalog 87184? | CREATE TABLE table_34439 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
) | SELECT "Date" FROM table_34439 WHERE "Format" LIKE '%7" single%' AND "Catalog" LIKE '%87184%' |
What is the location of the track that opened in 1950? | CREATE TABLE table_17687 (
"Track Name" text,
"Location" text,
"Length" text,
"Seating" real,
"Year Opened" real,
"Year Acquired [A ]" real
) | SELECT "Location" FROM table_17687 WHERE "Year Opened" = 1950 |
What team is from the Russian Major League? | CREATE TABLE table_name_21 (
position VARCHAR,
league_from VARCHAR
) | SELECT position FROM table_name_21 WHERE league_from LIKE "%russian major league%" |
What is the lowest finish that has a start greater than 27, with a year after 1985? | CREATE TABLE table_42849 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" real,
"Finish" real,
"Entrant" text
) | SELECT MIN("Finish") FROM table_42849 WHERE "Start" > 27 AND "Year" > 1985 |
Which player had a round of 27? | CREATE TABLE table_35936 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT "Player" FROM table_35936 WHERE "Round" = 27 |
Which average against has a lost less than 1? | CREATE TABLE table_name_78 (
against INTEGER,
lost INTEGER
) | SELECT AVG(against) FROM table_name_78 WHERE lost < 1 |
what was the number of freshmen on the team ? | CREATE TABLE table_204_526 (
id number,
"name" text,
"#" number,
"position" text,
"height" text,
"weight" number,
"year" text,
"home town" text,
"high school" text
) | SELECT COUNT(*) FROM table_204_526 WHERE "year" LIKE '%freshman%' |
Which home team played against Los Angeles in game 1? | CREATE TABLE table_name_26 (
home_team VARCHAR,
road_team VARCHAR,
game VARCHAR
) | SELECT home_team FROM table_name_26 WHERE road_team LIKE "%los angeles%" AND game LIKE "%game 1%" |
What is Region, when Date is 2004? | CREATE TABLE table_name_61 (
region VARCHAR,
date VARCHAR
) | SELECT region FROM table_name_61 WHERE date LIKE '%2004%' |
what is the total number of nations that made it to round 1 but not past that round from 1957 to 2013 ? | CREATE TABLE table_204_58 (
id number,
"year" number,
"position" text
) | SELECT COUNT(*) FROM table_204_58 WHERE "position" LIKE '%round 1%' |
Which chassis scored 52 points? | CREATE TABLE table_name_55 (
chassis VARCHAR,
points VARCHAR
) | SELECT chassis FROM table_name_55 WHERE points LIKE '%52%' |
Name the tournament for 2012 grand slam tournaments | CREATE TABLE table_name_32 (
tournament VARCHAR
) | SELECT tournament FROM table_name_32 WHERE tournament LIKE '%grand slam tournaments%' |
What is the total number of bronzes that is less than 1 in total? | CREATE TABLE table_60712 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Bronze") FROM table_60712 WHERE "Total" < 1 |
Ken Wright of the National Party was from which province? | CREATE TABLE table_name_79 (
province VARCHAR,
party VARCHAR,
name VARCHAR
) | SELECT province FROM table_name_79 WHERE party LIKE "%national%" AND name LIKE "%ken wright%" |
What was the date of the game when the record was 70-74? | CREATE TABLE table_name_86 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_86 WHERE record LIKE "%70-74%" |
What entrant had a Maserati 250F chassis and fewer than 6 points before 1957? | CREATE TABLE table_67242 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Entrant" FROM table_67242 WHERE "Chassis" LIKE '%maserati 250f%' AND "Year" < '1957' AND "Points" < '6' |
what is the heat when the athlete is anita pistone? | CREATE TABLE table_64388 (
"Rank" real,
"Heat" real,
"Athlete" text,
"Country" text,
"Time" real
) | SELECT SUM("Heat") FROM table_64388 WHERE "Athlete" LIKE '%anita pistone%' |
what was the opponent on november 14, 2005? | CREATE TABLE table_69928 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_69928 WHERE "Date" LIKE '%november 14, 2005%' |
What day had 37,500 attending? | CREATE TABLE table_name_56 (
date VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_56 WHERE attendance LIKE "%37,500%" |
what is the venue when the home team is melbourne? | CREATE TABLE table_52259 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | SELECT "Venue" FROM table_52259 WHERE "Home team" LIKE '%melbourne%' |
When was there a score of 5-1? | CREATE TABLE table_53874 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_53874 WHERE "Score" LIKE '%5-1%' |
Which director had a worldwide gross of $30,471? | CREATE TABLE table_name_97 (
director VARCHAR,
gross__worldwide_ VARCHAR
) | SELECT director FROM table_name_97 WHERE gross__worldwide_ LIKE "%$30,471%" |
What opponent has December 6, 1964 as the date? | CREATE TABLE table_name_40 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_40 WHERE date LIKE "%december 6, 1964%" |
What's the start when the finish is 1? | CREATE TABLE table_name_63 (
start VARCHAR,
finish VARCHAR
) | SELECT start FROM table_name_63 WHERE finish LIKE "%1%" |
What is the lowest population in 2011 for the settlement of ortanovci? | CREATE TABLE table_2562572_54 (
population__2011_ INTEGER,
settlement VARCHAR
) | SELECT MIN(population__2011_) FROM table_2562572_54 WHERE settlement LIKE "%čortanovci%" |
Which venue hosted a home team with a score of 13.15 (93)? | CREATE TABLE table_74680 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_74680 WHERE "Home team score" LIKE '%13.15 (93)%' |
What is the Winning score in 1956? | CREATE TABLE table_name_57 (
winning_score VARCHAR,
year VARCHAR
) | SELECT winning_score FROM table_name_57 WHERE year LIKE '%1956%' |
After Round 5, which player was drafted for Defensive Tackle? | CREATE TABLE table_name_68 (
player VARCHAR,
round VARCHAR,
position VARCHAR
) | SELECT player FROM table_name_68 WHERE round > '5' AND position LIKE '%defensive tackle%' |
What was Australia's place? | CREATE TABLE table_name_99 (
place VARCHAR,
country VARCHAR
) | SELECT place FROM table_name_99 WHERE country LIKE "%australia%" |
What's the average destroyed with a 1990 over 12, more than 1 damaged, 6 survivors, and a to Iran less than 4? | CREATE TABLE table_name_17 (
destroyed INTEGER,
survived VARCHAR,
to_iran VARCHAR,
damaged VARCHAR
) | SELECT AVG(destroyed) FROM table_name_17 WHERE 1990 > 12 AND damaged > '1' AND to_iran < '4' AND survived LIKE '%6%' |
For each zip code, return how many times max wind speed reached 25? | CREATE TABLE weather (
zip_code VARCHAR,
max_wind_Speed_mph VARCHAR
) | SELECT zip_code, COUNT(*) FROM weather WHERE CAST(max_wind_Speed_mph AS INTEGER) >= 25 GROUP BY zip_code |
How old is the person with the height of m (ft 3 4 in)? | CREATE TABLE table_24192031_2 (
age VARCHAR,
height VARCHAR
) | SELECT age FROM table_24192031_2 WHERE height LIKE '%m (ft 3⁄4 in)%' |
What is the location for Egypt in 2013? | CREATE TABLE table_12648 (
"Perpetrator" text,
"Year" text,
"Location" text,
"Country" text,
"Killed" text
) | SELECT "Location" FROM table_12648 WHERE "Year" = '2013' AND "Country" LIKE '%egypt%' |
What type is locomotive number CTN 46? | CREATE TABLE table_name_26 (
type VARCHAR,
locomotive_number VARCHAR
) | SELECT type FROM table_name_26 WHERE locomotive_number LIKE "%ctn 46%" |
How many places did the rank change since 22006 for County Leitrim? | CREATE TABLE table_1940144_1 (
change_since_2006 VARCHAR,
county VARCHAR
) | SELECT COUNT(change_since_2006) FROM table_1940144_1 WHERE county LIKE "%county leitrim%" |
Which set 3 has a Set 1 of 19-25, and a Set 2 of 19-25? | CREATE TABLE table_name_9 (
set_3 VARCHAR,
set_1 VARCHAR,
set_2 VARCHAR
) | SELECT set_3 FROM table_name_9 WHERE set_1 LIKE "%19-25%" AND set_2 LIKE "%19-25%" |
What is the overall total for the Omaha Nighthawks? | CREATE TABLE table_27094070_4 (
overall_total INTEGER,
team VARCHAR
) | SELECT MIN(overall_total) FROM table_27094070_4 WHERE team LIKE "%omaha nighthawks%" |
What episode number in the series had a production code of bdf405? | CREATE TABLE table_28019988_5 (
series__number INTEGER,
production_code VARCHAR
) | SELECT MIN(series__number) FROM table_28019988_5 WHERE production_code LIKE "%bdf405%" |
Which gender makes up the majority of the staff? | CREATE TABLE staff (
gender VARCHAR
) | SELECT gender FROM staff GROUP BY gender ORDER BY COUNT(*) DESC LIMIT 1 |
If the province is Nunavut, what is the Arabs 2011 amount? | CREATE TABLE table_1939367_1 (
arabs_2011 VARCHAR,
province VARCHAR
) | SELECT arabs_2011 FROM table_1939367_1 WHERE province LIKE '%nunavut%' |
WHAT WAS THE LOWEST CAR # WITH SON-E-WA, AND 2012 START YEAR? | CREATE TABLE table_8040 (
"Year started" real,
"Number of cars" real,
"Current car" text,
"Car #" real,
"Website" text
) | SELECT MIN("Car #") FROM table_8040 WHERE "Current car" LIKE '%son-e-wa%' AND "Year started" < 2012 |
Which Game has a Home Team of san francisco, and a Date of april 22? | CREATE TABLE table_48706 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Game" FROM table_48706 WHERE "Home Team" LIKE '%san francisco%' AND "Date" LIKE '%april 22%' |