instruction stringlengths 5 766 | input stringlengths 38 5.51k | response stringlengths 4 3.91k |
|---|---|---|
How many different allergy types exist? | CREATE TABLE Allergy_type (
allergytype VARCHAR
) | SELECT COUNT(DISTINCT allergytype) FROM Allergy_type |
Where Date is september 13, 1998 what is result? | CREATE TABLE table_name_89 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_89 WHERE date = "september 13, 1998" |
On what date was the crowd size of 71,789? | CREATE TABLE table_name_35 (
date VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_35 WHERE attendance = "71,789" |
WHAT IS THE SCORE WITH A RECORD OF 1-0? | CREATE TABLE table_76967 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
) | SELECT "Score" FROM table_76967 WHERE "Record" = '1-0' |
Which song had Central Station as a label and whose album was Various - Wild Nights 4? | CREATE TABLE table_31987 (
"Year" real,
"Album" text,
"Song" text,
"Label" text,
"Catalog#" text,
"Format" text,
"Country" text
) | SELECT "Song" FROM table_31987 WHERE "Label" = 'central station' AND "Album" = 'various - wild nights 4' |
Which teachers teach in classroom 109? Give me their last names. | CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
) | SELECT lastname FROM teachers WHERE classroom = 109 |
WHAT IS THE ABBR WITH VOTES OF 11.2% IN 2011? | CREATE TABLE table_name_70 (
abbr VARCHAR,
votes__2011_ VARCHAR
) | SELECT abbr FROM table_name_70 WHERE votes__2011_ = "11.2%" |
Which event had the record of 18 5 (1)? | CREATE TABLE table_name_18 (
event VARCHAR,
record VARCHAR
) | SELECT event FROM table_name_18 WHERE record = "18–5 (1)" |
What is the number of 2012 passengers in millions that have traveled a distance of 1075km? | CREATE TABLE table_name_56 (
distance VARCHAR
) | SELECT COUNT(2012 AS _passengers__in_millions_) FROM table_name_56 WHERE distance = "1075km" |
Who was the home team that scored 19.18 (132)? | CREATE TABLE table_53687 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_53687 WHERE "Home team score" = '19.18 (132)' |
what was the win for the 6 matches? | CREATE TABLE table_42341 (
"Year" text,
"Matches" text,
"Wins" text,
"Losses" text,
"No Result" text,
"Success Rate" text
) | SELECT "Wins" FROM table_42341 WHERE "Matches" = '6' |
What 2nd Member has a 1st Party of conservative, and a 1st Member of william edward dowdeswell? | CREATE TABLE table_60551 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | SELECT "2nd Member" FROM table_60551 WHERE "1st Party" = 'conservative' AND "1st Member" = 'william edward dowdeswell' |
What Partner has a Construction Start of 2008 january? | CREATE TABLE table_61604 (
"Location" text,
"Partner" text,
"Construction Start" text,
"Inauguration Date" text,
"Population Served" real,
"Design flow (LPM)" real
) | SELECT "Partner" FROM table_61604 WHERE "Construction Start" = '2008 january' |
What Rider has a Grid of 21? | CREATE TABLE table_50881 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Rider" FROM table_50881 WHERE "Grid" = '21' |
What is listed for the Elector that also has the Cardinalatial title of Priest of S. Marco? | CREATE TABLE table_14248 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
) | SELECT "Elector" FROM table_14248 WHERE "Cardinalatial title" = 'priest of s. marco' |
Which nation is where rider phillip dutton from? | CREATE TABLE table_22551 (
"Nation" text,
"Rider" text,
"Horse" text,
"Cross Country Penalties" text,
"Total Penalties" text,
"Total Team Penalties" text,
"Team Rank" real
) | SELECT "Nation" FROM table_22551 WHERE "Rider" = 'Phillip Dutton' |
What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2? | CREATE TABLE table_40323 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT "Tournament" FROM table_40323 WHERE "Events" > '11' AND "Top-5" = '0' AND "Top-25" = '2' |
What venue had a draw? | CREATE TABLE table_67801 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Venue" FROM table_67801 WHERE "Result" = 'draw' |
What is the city of license that has lp as the class? | CREATE TABLE table_41555 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
) | SELECT "City of license" FROM table_41555 WHERE "Class" = 'lp' |
What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses? | CREATE TABLE table_46004 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT AVG("Played") FROM table_46004 WHERE "Wins" < '11' AND "Goals for" > '42' AND "Points" > '22' AND "Losses" = '11' |
What sponsor has the head coach Samad Marfavi? | CREATE TABLE table_29469 (
"Team" text,
"Head coach" text,
"Team captain" text,
"Kit maker" text,
"Shirt sponsor" text,
"Past Season" text
) | SELECT "Shirt sponsor" FROM table_29469 WHERE "Head coach" = 'Samad Marfavi' |
When is the rhel release date when scientific linux release is 3.0.4 | CREATE TABLE table_1500146_1 (
rhel_release_date VARCHAR,
scientific_linux_release VARCHAR
) | SELECT rhel_release_date FROM table_1500146_1 WHERE scientific_linux_release = "3.0.4" |
How many products have the title 'Jak 3'? | CREATE TABLE table_10875694_11 (
product_no VARCHAR,
title VARCHAR
) | SELECT COUNT(product_no) FROM table_10875694_11 WHERE title = "Jak 3" |
What is the infinitive stem that has a subjunctive present of ou? | CREATE TABLE table_name_10 (
inf_stem VARCHAR,
subj_pres VARCHAR
) | SELECT inf_stem FROM table_name_10 WHERE subj_pres = "ou" |
How many viewers in the UK did episode 50 have? | CREATE TABLE table_31528 (
"Episode no." real,
"US Airdate" text,
"US Total viewers" text,
"UK Airdate" text,
"UK Total viewers" text
) | SELECT "UK Total viewers" FROM table_31528 WHERE "Episode no." = '50' |
What was the record on december 8 when the boston bruins visited? | CREATE TABLE table_5386 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Record" FROM table_5386 WHERE "Visitor" = 'boston bruins' AND "Date" = 'december 8' |
How large was the crowd when the away team was melbourne? | CREATE TABLE table_32310 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_32310 WHERE "Away team" = 'melbourne' |
How many students participated in tryouts for each college by descennding count? | CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
) | SELECT COUNT(*), cname FROM tryout GROUP BY cname ORDER BY COUNT(*) DESC |
what tournament has 2000 of 3r? | CREATE TABLE table_56433 (
"Tournament" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text... | SELECT "Tournament" FROM table_56433 WHERE "2000" = '3r' |
How much Founded has a League championships larger than 0, and a Club of penn state nittany lions women's volleyball? | CREATE TABLE table_46857 (
"Sport" text,
"League" text,
"Club" text,
"Founded" real,
"Venue" text,
"League championships" real,
"Championship years" text
) | SELECT COUNT("Founded") FROM table_46857 WHERE "League championships" > '0' AND "Club" = 'penn state nittany lions women''s volleyball' |
what was the last standard published ? | CREATE TABLE table_204_200 (
id number,
"iso/iec standard" text,
"title" text,
"status" text,
"description" text,
"wg" number
) | SELECT "iso/iec standard" FROM table_204_200 ORDER BY "status" DESC LIMIT 1 |
What is the weight of the shortest person? | CREATE TABLE people (
Weight VARCHAR,
Height VARCHAR
) | SELECT Weight FROM people ORDER BY Height LIMIT 1 |
who was the sooners opponent after usc ? | CREATE TABLE table_204_617 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | SELECT "opponent#" FROM table_204_617 WHERE "date" > (SELECT "date" FROM table_204_617 WHERE "opponent#" = 'usc') ORDER BY "date" LIMIT 1 |
What surface was played on with a score of 6 4, 6 3 and on 4 May 1992? | CREATE TABLE table_41299 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Surface" FROM table_41299 WHERE "Score" = '6–4, 6–3' AND "Date" = '4 may 1992' |
Series of oilers win 4 3 had what highest game? | CREATE TABLE table_75435 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
) | SELECT MAX("Game") FROM table_75435 WHERE "Series" = 'oilers win 4–3' |
How many draws feature artist wendy fierce? | CREATE TABLE table_name_18 (
draw INTEGER,
artist VARCHAR
) | SELECT SUM(draw) FROM table_name_18 WHERE artist = "wendy fierce" |
Name the date for clay surface and location of santos, brazil | CREATE TABLE table_36958 (
"Outcome" text,
"Date" text,
"Location" text,
"Surface" text,
"Opponent in final" text,
"Score" text
) | SELECT "Date" FROM table_36958 WHERE "Surface" = 'clay' AND "Location" = 'santos, brazil' |
In what year was the artist Afro-dite? | CREATE TABLE table_name_54 (
year VARCHAR,
artist VARCHAR
) | SELECT year FROM table_name_54 WHERE artist = "afro-dite" |
What is the Average of bergen, norway? | CREATE TABLE table_name_81 (
average INTEGER,
city VARCHAR
) | SELECT MIN(average) FROM table_name_81 WHERE city = "bergen, norway" |
What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30? | CREATE TABLE table_name_36 (
rank INTEGER,
notes VARCHAR,
time VARCHAR
) | SELECT SUM(rank) FROM table_name_36 WHERE notes = "fb" AND time = "6:47.30" |
Name the leading scorer for 12 january 2008 | CREATE TABLE table_57253 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Leading scorer" FROM table_57253 WHERE "Date" = '12 january 2008' |
What block has a COSPAR ID of 1995-060a? | CREATE TABLE table_57476 (
"Name" text,
"Block" text,
"Launch date/time (UTC)" text,
"COSPAR ID" text,
"Rocket" text
) | SELECT "Block" FROM table_57476 WHERE "COSPAR ID" = '1995-060a' |
Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8? | CREATE TABLE table_65573 (
"Week 1" text,
"Week 3" text,
"Week 4" text,
"Week 6" text,
"Week 7" text,
"Week 8" text,
"Week 9" text,
"Week 10" text,
"Final Week 12" text
) | SELECT "Week 8" FROM table_65573 WHERE "Week 1" = 'carol roopali' |
How many matches had the result of 6 3, 6 2? | CREATE TABLE table_11636213_7 (
partnering VARCHAR,
result VARCHAR
) | SELECT COUNT(partnering) FROM table_11636213_7 WHERE result = "6–3, 6–2" |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of code , and group by attribute name, display from low to high by the x-axis. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name |
what's the report with race argentine grand prix | CREATE TABLE table_16732 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT "Report" FROM table_16732 WHERE "Race" = 'Argentine Grand Prix' |
How many laps have a Time/Retired of +1:35.553? | CREATE TABLE table_10476 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT COUNT("Laps") FROM table_10476 WHERE "Time/Retired" = '+1:35.553' |
Tell me the outgoing manager for 22 november date of vacancy | CREATE TABLE table_77878 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Outgoing manager" FROM table_77878 WHERE "Date of vacancy" = '22 november' |
Which competition was on 17/9/00? | CREATE TABLE table_name_47 (
competition VARCHAR,
date VARCHAR
) | SELECT competition FROM table_name_47 WHERE date = "17/9/00" |
Name the series ep for darts | CREATE TABLE table_5565 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Series Ep." FROM table_5565 WHERE "Segment D" = 'darts' |
What is the average Year that has a Quantity of 10, and a GWR Numbers of 409, 290, 315, 317 321, 324, 333? | CREATE TABLE table_name_49 (
year INTEGER,
quantity VARCHAR,
gwr_numbers VARCHAR
) | SELECT AVG(year) FROM table_name_49 WHERE quantity = 10 AND gwr_numbers = "409, 290, 315, 317–321, 324, 333" |
What skip has angela tuvaeva as the lead? | CREATE TABLE table_75427 (
"Country" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Skip" FROM table_75427 WHERE "Lead" = 'angela tuvaeva' |
How many fourth places were there in 2003? | CREATE TABLE table_16812 (
"Series" real,
"Year" text,
"Winner" text,
"Runner-up" text,
"Third place" text,
"Fourth place" text,
"Fifth place" text,
"Sixth place" text,
"Host" text
) | SELECT COUNT("Fourth place") FROM table_16812 WHERE "Year" = '2003' |
Which outcome has a Surface of clay and a Score of 4 6, 7 5, 2 6? | CREATE TABLE table_68556 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Outcome" FROM table_68556 WHERE "Surface" = 'clay' AND "Score" = '4–6, 7–5, 2–6' |
WHat status had an against larger than 6 and a date of 01/02/1975? | CREATE TABLE table_13170 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Status" FROM table_13170 WHERE "Against" > '6' AND "Date" = '01/02/1975' |
What is the home team score that played away team carlton? | CREATE TABLE table_name_60 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team AS score FROM table_name_60 WHERE away_team = "carlton" |
how many times have there been helps by damon stoudamire (13) | CREATE TABLE table_802 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Record") FROM table_802 WHERE "High assists" = 'Damon Stoudamire (13)' |
How many draws did clitheroe have when their position was less than 12 and they lost less than 4 times? | CREATE TABLE table_name_76 (
drawn INTEGER,
lost VARCHAR,
position VARCHAR,
team VARCHAR
) | SELECT SUM(drawn) FROM table_name_76 WHERE position < 12 AND team = "clitheroe" AND lost > 4 |
What is the highest pick of the houston oilers NFL club, which has a round greater than 10? | CREATE TABLE table_name_87 (
pick INTEGER,
nfl_club VARCHAR,
round VARCHAR
) | SELECT MAX(pick) FROM table_name_87 WHERE nfl_club = "houston oilers" AND round > 10 |
Show the ids of all the faculty members who participate in an activity and advise a student. | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE participates_in (
stuid number,
actid number
)
CREATE TABL... | SELECT facid FROM faculty_participates_in INTERSECT SELECT advisor FROM student |
What is the roll of Bishop Viard College (An Integrated College), which has a decile larger than 1? | CREATE TABLE table_name_69 (
roll VARCHAR,
name VARCHAR,
decile VARCHAR,
authority VARCHAR
) | SELECT COUNT(roll) FROM table_name_69 WHERE decile > 1 AND authority = "integrated" AND name = "bishop viard college" |
Which Date has a Score of 2 3, a Time of 20:30, and a Set 3 of 16 25? | CREATE TABLE table_name_38 (
date VARCHAR,
set_3 VARCHAR,
score VARCHAR,
time VARCHAR
) | SELECT date FROM table_name_38 WHERE score = "2–3" AND time = "20:30" AND set_3 = "16–25" |
What is the average number of regencies (kabupaten) with more than 331 villages and a 2010 population census of 12,982,204? | CREATE TABLE table_8667 (
"Province" text,
"Capital" text,
"Population at 2010 Census" real,
"Area (km\u00b2)" real,
"Density (2010)" real,
"Geographical unit" text,
"Number of Cities (kota)" real,
"Number of Regencies (kabupaten)" real,
"Number of Districts (kecamatan)" real,
"V... | SELECT AVG("Number of Regencies (kabupaten)") FROM table_8667 WHERE "Villages" > '331' AND "Population at 2010 Census" = '12,982,204' |
Name the field goals for alexis yackley | CREATE TABLE table_23184448_4 (
field_goals INTEGER,
player VARCHAR
) | SELECT MAX(field_goals) FROM table_23184448_4 WHERE player = "Alexis Yackley" |
Where did Jack Badcock play? | CREATE TABLE table_34003 (
"Rank" text,
"Runs" text,
"Player" text,
"Opponent" text,
"Venue" text,
"Season" text
) | SELECT "Venue" FROM table_34003 WHERE "Player" = 'jack badcock' |
What event has a 0:49 time? | CREATE TABLE table_44577 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Event" FROM table_44577 WHERE "Time" = '0:49' |
Name the swuinsuit for oregon | CREATE TABLE table_72915 (
"State" text,
"Preliminary" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
) | SELECT "Swimsuit" FROM table_72915 WHERE "State" = 'Oregon' |
who wrote the no 2? | CREATE TABLE table_21726793_1 (
written_by VARCHAR,
no VARCHAR
) | SELECT written_by FROM table_21726793_1 WHERE no = 2 |
Name the outcome for jordan kerr july 19, 2004 | CREATE TABLE table_name_79 (
outcome VARCHAR,
partnering VARCHAR,
date VARCHAR
) | SELECT outcome FROM table_name_79 WHERE partnering = "jordan kerr" AND date = "july 19, 2004" |
Create a bar chart showing meter_100 across meter 600, and could you order from low to high by the Y-axis? | CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE... | SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_100 |
What is the lowest value for bronze with a total of 3 and a value for silver greater than 1 while the value of gold is smaller than 1? | CREATE TABLE table_31794 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Bronze") FROM table_31794 WHERE "Total" = '3' AND "Silver" > '1' AND "Gold" < '1' |
What was the year of Meg ll az Id ? | CREATE TABLE table_name_60 (
year VARCHAR,
original_title VARCHAR
) | SELECT year FROM table_name_60 WHERE original_title = "megáll az idö" |
Tell me the city of license for 0 106.9 fm | CREATE TABLE table_name_1 (
city_of_license VARCHAR,
frequency VARCHAR
) | SELECT city_of_license FROM table_name_1 WHERE frequency = "0 106.9 fm" |
What affiliation is Erie, Pennsylvania? | CREATE TABLE table_16381914_1 (
affiliation VARCHAR,
location VARCHAR
) | SELECT affiliation FROM table_16381914_1 WHERE location = "Erie, Pennsylvania" |
What is the length of the film with Burleigh Sullivan as the character? | CREATE TABLE table_name_30 (
length VARCHAR,
character_name VARCHAR
) | SELECT length FROM table_name_30 WHERE character_name = "burleigh sullivan" |
How many times was the time 20' 05.19 112.703mph on Thurs Aug 26th? | CREATE TABLE table_26986076_1 (
sat_21_aug VARCHAR,
thurs_26_aug VARCHAR
) | SELECT COUNT(sat_21_aug) FROM table_26986076_1 WHERE thurs_26_aug = "20' 05.19 112.703mph" |
Who is on the David's Team for the episode with the Lees Team of Jack Dee and Peter Serafinowicz | CREATE TABLE table_2908 (
"Episode" text,
"First broadcast" text,
"Davids team" text,
"Lees team" text,
"Scores" text
) | SELECT "Davids team" FROM table_2908 WHERE "Lees team" = 'Jack Dee and Peter Serafinowicz' |
What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager? | CREATE TABLE table_name_26 (
last_match VARCHAR,
date_of_vacancy VARCHAR,
outgoing_manager VARCHAR
) | SELECT last_match FROM table_name_26 WHERE date_of_vacancy = "round 2" AND outgoing_manager = "ney franco" |
When did the Roy Hibbert (27) did the high points? | CREATE TABLE table_27756164_2 (
date VARCHAR,
high_points VARCHAR
) | SELECT date FROM table_27756164_2 WHERE high_points = "Roy Hibbert (27)" |
What year had Kim Gevaert as the female winner and Xavier de Baerdemaeker as the male talent? | CREATE TABLE table_name_31 (
year VARCHAR,
winner__female_ VARCHAR,
talent__male_ VARCHAR
) | SELECT year FROM table_name_31 WHERE winner__female_ = "kim gevaert" AND talent__male_ = "xavier de baerdemaeker" |
What races were Chi-Chi Rodriguez the runner-up in? | CREATE TABLE table_name_22 (
tournament VARCHAR,
runner_s__up VARCHAR
) | SELECT tournament FROM table_name_22 WHERE runner_s__up = "chi-chi rodriguez" |
What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju? | CREATE TABLE table_7759 (
"Province of Silla" text,
"Administrative district" text,
"Pre-1009 province" text,
"Post-1009 province" text,
"Modern equivalent" text
) | SELECT "Modern equivalent" FROM table_7759 WHERE "Post-1009 province" = 'gyeongsang -do' AND "Administrative district" = 'jinju -mok' AND "Province of Silla" = 'gangju' |
WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7? | CREATE TABLE table_61007 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT AVG("Goals for") FROM table_61007 WHERE "Draws" < '6' AND "Losses" < '7' |
What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date? | CREATE TABLE table_76109 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"FPU width" text,
"Multi 1" text,
"Socket" text,
"Release date" text,
"Order part number" text
) | SELECT "Socket" FROM table_76109 WHERE "Release date" = 'september 10, 2009' AND "Order part number" = 'amm300dbo22gq' |
What was the total when the set 3 score was 25 27? | CREATE TABLE table_name_12 (
total VARCHAR,
set_3 VARCHAR
) | SELECT total FROM table_name_12 WHERE set_3 = "25–27" |
What was the time of the race for Driver Jarno Trulli on a grid smaller than 13? | CREATE TABLE table_name_59 (
time_retired VARCHAR,
grid VARCHAR,
driver VARCHAR
) | SELECT time_retired FROM table_name_59 WHERE grid < 13 AND driver = "jarno trulli" |
What is the score of the game against the baltimore bullets on March 14? | CREATE TABLE table_49542 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Score" FROM table_49542 WHERE "Opponent" = 'baltimore bullets' AND "Date" = 'march 14' |
What is the smallest area with 45 population? | CREATE TABLE table_name_72 (
area__km_2__ INTEGER,
population__2000_ VARCHAR
) | SELECT MIN(area__km_2__) FROM table_name_72 WHERE population__2000_ = "45" |
no type i patients | CREATE TABLE table_train_198 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"fasting_plasma_glucose" int,
"diabetes" bool,
"body_mass_index_bmi" float,
"type_1_patients" bool,
"NOUSE" float
) | SELECT * FROM table_train_198 WHERE type_1_patients = 0 |
With a score of 70, this player's name is listed as what? | CREATE TABLE table_name_27 (
player VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_27 WHERE score = 70 |
What is the highest entry in November for the game 20? | CREATE TABLE table_74129 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
) | SELECT MAX("November") FROM table_74129 WHERE "Game" = '20' |
Give me a histogram for what are the different parties of representative? Show the party name and the number of representatives in each party. | CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
)
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
) | SELECT Party, COUNT(*) FROM representative GROUP BY Party |
What date was the location attendance at&t center 18,797, and a game earlier than 57? | CREATE TABLE table_name_24 (
date VARCHAR,
location_attendance VARCHAR,
game VARCHAR
) | SELECT date FROM table_name_24 WHERE location_attendance = "at&t center 18,797" AND game < 57 |
What is the smallest frequency (kHz) that is in the location of Longview? | CREATE TABLE table_36968 (
"Frequency (kHz)" real,
"Call letters" text,
"Licensed location" text,
"Type" text,
"Format" text
) | SELECT MIN("Frequency (kHz)") FROM table_36968 WHERE "Licensed location" = 'longview' |
Which box score has an Attendance of 54,773? | CREATE TABLE table_name_32 (
boxscore VARCHAR,
attendance VARCHAR
) | SELECT boxscore FROM table_name_32 WHERE attendance = "54,773" |
What is the Score of the Burnley Home game? | CREATE TABLE table_name_57 (
score VARCHAR,
home_team VARCHAR
) | SELECT score FROM table_name_57 WHERE home_team = "burnley" |
Between which years were there 241 fokker 70 model cabins built? | CREATE TABLE table_name_43 (
period VARCHAR,
built VARCHAR,
model VARCHAR
) | SELECT period FROM table_name_43 WHERE built < 241 AND model = "fokker 70" |
List countries that have more than one swimmer. | CREATE TABLE swimmer (
nationality VARCHAR
) | SELECT nationality, COUNT(*) FROM swimmer GROUP BY nationality HAVING COUNT(*) > 1 |
which episode did sarah millican and grayson perry appear in | CREATE TABLE table_30969 (
"Episode" real,
"Broadcast date" text,
"Guest(s)" text,
"Singer(s)" text,
"Ratings" text
) | SELECT MIN("Episode") FROM table_30969 WHERE "Guest(s)" = 'Sarah Millican and Grayson Perry' |
What year was the 146 total? | CREATE TABLE table_60121 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | SELECT "Year(s) won" FROM table_60121 WHERE "Total" = '146' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.