instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3? | CREATE TABLE table_name_61 (
area_km_2 INTEGER,
member_state VARCHAR,
population_in_millions VARCHAR
) | SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = "czech republic" AND population_in_millions < 10.3 |
Who is the director of the episode 'rain of terror' that was written by John Brown? | CREATE TABLE table_18951 (
"Ep. No." real,
"Title" text,
"Director" text,
"Written by" text,
"Original Air Date" text,
"Production No." real
) | SELECT "Director" FROM table_18951 WHERE "Written by" = 'John Brown' AND "Title" = 'Rain of Terror' |
What is the entry for weight in kilograms of jockey D. Nikolic? | CREATE TABLE table_20434 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" text,
"Time" text,
"Jockey" text,
"Winner/2nd" text
) | SELECT "Weight (kg)" FROM table_20434 WHERE "Jockey" = 'D. Nikolic' |
What is the average attendance after week 16? | CREATE TABLE table_name_10 (
attendance INTEGER,
week INTEGER
) | SELECT AVG(attendance) FROM table_name_10 WHERE week > 16 |
What was the highest number of wins for any team? | CREATE TABLE table_18018214_3 (
wins INTEGER
) | SELECT MAX(wins) FROM table_18018214_3 |
how many matches were in 2007 ? | CREATE TABLE table_204_854 (
id number,
"#" number,
"wrestlers" text,
"reign" number,
"date" text,
"days\nheld" number,
"location" text,
"notes" text
) | SELECT COUNT(*) FROM table_204_854 WHERE "date" = 2007 |
Which System's Name is Gemulator? | CREATE TABLE table_name_45 (
system VARCHAR,
name VARCHAR
) | SELECT system FROM table_name_45 WHERE name = "gemulator" |
Who is the owner with the branding fox fm? | CREATE TABLE table_31720 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) | SELECT "Owner" FROM table_31720 WHERE "Branding" = 'fox fm' |
What is 1st Leg, when Team #1 is 'San Lorenzo'? | CREATE TABLE table_name_58 (
team__number1 VARCHAR
) | SELECT 1 AS st_leg FROM table_name_58 WHERE team__number1 = "san lorenzo" |
What is the To par has the presence of Vijay Singh? | CREATE TABLE table_70730 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Hole" text
) | SELECT "To par" FROM table_70730 WHERE "Player" = 'vijay singh' |
how many records were set in beijing ? | CREATE TABLE table_203_102 (
id number,
"event" text,
"performance" text,
"athlete" text,
"nation" text,
"place" text,
"date" text
) | SELECT COUNT(*) FROM table_203_102 WHERE "place" = 'beijing' |
In how many counties di McCain win 41.62% of the vote? | CREATE TABLE table_23740 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real
) | SELECT COUNT("County") FROM table_23740 WHERE "McCain%" = '41.62%' |
If the floor number is 14.200, what is the number for the parallel bars? | CREATE TABLE table_18662026_10 (
parallel_bars VARCHAR,
floor VARCHAR
) | SELECT parallel_bars FROM table_18662026_10 WHERE floor = "14.200" |
Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1 | CREATE TABLE table_name_99 (
attendance INTEGER,
venue VARCHAR,
series VARCHAR
) | SELECT MAX(attendance) FROM table_name_99 WHERE venue = "td banknorth garden" AND series = "montreal leads 3-1" |
What year has a nomination title of 'sangrador'? | CREATE TABLE table_name_84 (
year__ceremony_ VARCHAR,
film_title_used_in_nomination VARCHAR
) | SELECT year__ceremony_ FROM table_name_84 WHERE film_title_used_in_nomination = "sangrador" |
Which Game has a March smaller than 12, and a Score of 10 1? | CREATE TABLE table_36379 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT MIN("Game") FROM table_36379 WHERE "March" < '12' AND "Score" = '10–1' |
What is the average lap of the race with a 23 finish? | CREATE TABLE table_15315 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | SELECT AVG("Laps") FROM table_15315 WHERE "Finish" = '23' |
When the away team scored 16.21 (117), what was the home teams score? | CREATE TABLE table_78193 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_78193 WHERE "Away team score" = '16.21 (117)' |
What is the average primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335? | CREATE TABLE table_name_62 (
intake INTEGER,
dcsf_number VARCHAR,
type VARCHAR,
ofsted_number VARCHAR
) | SELECT AVG(intake) FROM table_name_62 WHERE type = "primary" AND ofsted_number = 117433 AND dcsf_number > 3335 |
How many losses did the division who appeared less than 16 times have? | CREATE TABLE table_53800 (
"Conference" text,
"Division" text,
"Appearances" real,
"Wins" real,
"Losses" real
) | SELECT "Losses" FROM table_53800 WHERE "Appearances" < '16' |
If the home team was footscray which venue did they play it? | CREATE TABLE table_51607 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_51607 WHERE "Home team" = 'footscray' |
what type was joined in 1902 5? | CREATE TABLE table_28513 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" text
) | SELECT "Type" FROM table_28513 WHERE "Joined" = '1902 5' |
What is the percentage of others when the number for Bush is 1329? | CREATE TABLE table_1733513_1 (
others_percentage VARCHAR,
bush_number VARCHAR
) | SELECT others_percentage FROM table_1733513_1 WHERE bush_number = 1329 |
What is Born-Died, when Term End is 19 January 1943? | CREATE TABLE table_46082 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
) | SELECT "Born-Died" FROM table_46082 WHERE "Term end" = '19 january 1943' |
What was Carlton's score when they were the away team? | CREATE TABLE table_33047 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_33047 WHERE "Away team" = 'carlton' |
What is the percentage for 2008 First time when in 2006 it was 85%? | CREATE TABLE table_79753 (
"Exam" text,
"2006 First Time" text,
"2006 All" text,
"2007 First Time" text,
"2007 All" text,
"2008 First Time" text,
"2008 All" text,
"2009 First Time" text,
"2009 All" text,
"2010 First Time" text,
"2011 First Time" text,
"2012 First Time" text
) | SELECT "2008 First Time" FROM table_79753 WHERE "2006 First Time" = '85%' |
What is the home team in week 1? | CREATE TABLE table_62362 (
"Week" text,
"Date" text,
"Home team" text,
"Away team" text,
"Venue" text
) | SELECT "Home team" FROM table_62362 WHERE "Week" = '1' |
What was the highest share for the winners in 1959? | CREATE TABLE table_9049 (
"Year" real,
"Winner" text,
"Score" text,
"Runner(s)-up" text,
"Winner's share ($)" real,
"Course" text,
"Location" text
) | SELECT MAX("Winner's share ($)") FROM table_9049 WHERE "Year" = '1959' |
In which state did Marquis Li rule? | CREATE TABLE table_46862 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | SELECT "State" FROM table_46862 WHERE "Name" = 'li' AND "Title" = 'marquis' |
What was the crowd size when the visiting team scored 23.18 (156)? | CREATE TABLE table_56036 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT COUNT("Crowd") FROM table_56036 WHERE "Away team score" = '23.18 (156)' |
Which System's Name is Gemulator? | CREATE TABLE table_53113 (
"Name" text,
"Actual version" text,
"System" text,
"Platform" text,
"License" text
) | SELECT "System" FROM table_53113 WHERE "Name" = 'gemulator' |
What is the Population of the Parish with an Area km 2 of 236.76? | CREATE TABLE table_47765 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
) | SELECT MIN("Population") FROM table_47765 WHERE "Area km 2" = '236.76' |
How many times is the ethnic group other: total? | CREATE TABLE table_282413_3 (
ethnic_group VARCHAR
) | SELECT COUNT(2001 AS __percentage) FROM table_282413_3 WHERE ethnic_group = "Other: Total" |
what is the party when candidates is jim demint (r) 80%? | CREATE TABLE table_1341423_40 (
party VARCHAR,
candidates VARCHAR
) | SELECT party FROM table_1341423_40 WHERE candidates = "Jim DeMint (R) 80%" |
What country does Tiger Woods come from? | CREATE TABLE table_name_58 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_58 WHERE player = "tiger woods" |
What was the date of the tournament held in Indonesia? | CREATE TABLE table_name_23 (
date VARCHAR,
country VARCHAR
) | SELECT date FROM table_name_23 WHERE country = "indonesia" |
Which League Cup goals have a Total larger than 14, and a League goals of 14, and a FA Cup goals of 0? | CREATE TABLE table_43814 (
"Club" text,
"League goals" text,
"FA Cup goals" text,
"League Cup goals" text,
"Total" real
) | SELECT "League Cup goals" FROM table_43814 WHERE "Total" > '14' AND "League goals" = '14' AND "FA Cup goals" = '0' |
What away team has tottenham hotspur as the home team? | CREATE TABLE table_6945 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
) | SELECT "Away team" FROM table_6945 WHERE "Home team" = 'tottenham hotspur' |
Show the hometown of all members, I want to sort by the X-axis in asc. | CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City text,
membership_amount text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Year text,
Total_pounds real
)
CREATE TABLE membership_register_branch (
Member_ID int,
Branch_ID text,
Register_Year text
)
CREATE TABLE member (
Member_ID int,
Card_Number text,
Name text,
Hometown text,
Level int
) | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY Hometown |
What is the Name of the Player with a Rank of 23 or less, Heat of 4 and Result of 55.91? | CREATE TABLE table_66247 (
"Rank" real,
"Heat" real,
"Name" text,
"Nationality" text,
"Result" text
) | SELECT "Name" FROM table_66247 WHERE "Heat" = '4' AND "Rank" < '23' AND "Result" = '55.91' |
Use a stacked bar chart to show how many films for each title and each type. The x-axis is title. | CREATE TABLE film_market_estimation (
Estimation_ID int,
Low_Estimate real,
High_Estimate real,
Film_ID int,
Type text,
Market_ID int,
Year int
)
CREATE TABLE market (
Market_ID int,
Country text,
Number_cities int
)
CREATE TABLE film (
Film_ID int,
Title text,
Studio text,
Director text,
Gross_in_dollar int
) | SELECT Title, COUNT(Title) FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID GROUP BY Type, Title |
What is the one mora for the three-mora word /kaze/ [k z ]? | CREATE TABLE table_66921 (
"!accented mora" text,
"one mora" text,
"two-mora word" text,
"three-mora word" text,
"gloss" text
) | SELECT "one mora" FROM table_66921 WHERE "three-mora word" = '/kaze/ [kázé]' |
I want the lowest Laps for time/retired of engine and driver of charles de tornaco | CREATE TABLE table_10694 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT MIN("Laps") FROM table_10694 WHERE "Time/Retired" = 'engine' AND "Driver" = 'charles de tornaco' |
For those records from the products and each product's manufacturer, find name and the sum of code , and group by attribute name, and visualize them by a bar chart, and sort by the Y-axis from high to low. | 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 T1.Code DESC |
Who had the most assists and how many did they have in game 35? | CREATE TABLE table_29904 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_29904 WHERE "Game" = '35' |
What is the sum of people per km2 for the sandoy region with an area of 112.1? | CREATE TABLE table_name_41 (
people_per_km² INTEGER,
regions VARCHAR,
area VARCHAR
) | SELECT SUM(people_per_km²) FROM table_name_41 WHERE regions = "sandoy" AND area = 112.1 |
Name the Report with Winning constructor of maserati, and a Name of monza grand prix? | CREATE TABLE table_name_28 (
report VARCHAR,
winning_constructor VARCHAR,
name VARCHAR
) | SELECT report FROM table_name_28 WHERE winning_constructor = "maserati" AND name = "monza grand prix" |
which three teams have been playing for the most seasons ? | CREATE TABLE table_204_506 (
id number,
"seasons" number,
"team" text,
"ch.wins" number,
"promotions" number,
"relegations" number
) | SELECT "team" FROM table_204_506 WHERE "seasons" = (SELECT MAX("seasons") FROM table_204_506) |
If the area of a country is over 9,826,675 kilometers and a total of emissions per person less than 14.9, what's the average Population found? | CREATE TABLE table_44401 (
"Country" text,
"CO2 emissions" text,
"Area (in km 2 )" real,
"Population" real,
"Emission / Person" real
) | SELECT AVG("Population") FROM table_44401 WHERE "Area (in km 2 )" > '9,826,675' AND "Emission / Person" < '14.9' |
How many wrestlers were born in nara, and have a completed 'career and other notes' section? | CREATE TABLE table_1557974_1 (
career_and_other_notes VARCHAR,
birthplace VARCHAR
) | SELECT COUNT(career_and_other_notes) FROM table_1557974_1 WHERE birthplace = "Nara" |
What was the manner of departure for notts county with an incoming manager of martin allen | CREATE TABLE table_26914759_3 (
manner_of_departure VARCHAR,
team VARCHAR,
incoming_manager VARCHAR
) | SELECT manner_of_departure FROM table_26914759_3 WHERE team = "Notts County" AND incoming_manager = "Martin Allen" |
What occurence has 0.925 listed as the matrix sim? | CREATE TABLE table_28964 (
"Detailed Family Information" text,
"From" real,
"To" real,
"Anchor" real,
"Orientation" text,
"Conserved in Mus Musculus" text,
"Matrix Sim" text,
"Sequence" text,
"Occurrence" real
) | SELECT MAX("Occurrence") FROM table_28964 WHERE "Matrix Sim" = '0.925' |
what is the total number of points when the constructor is citro n total world rally team and the wins is less than 7? | CREATE TABLE table_79265 (
"Constructor" text,
"Chassis" text,
"Starts" real,
"Finishes" real,
"Wins" real,
"Podiums" real,
"Stage wins" real,
"Points" real
) | SELECT COUNT("Points") FROM table_79265 WHERE "Constructor" = 'citroën total world rally team' AND "Wins" < '7' |
What was the maximum vertical measurement if the horizon measurement is 640? | CREATE TABLE table_272313_1 (
vertical INTEGER,
horizontal VARCHAR
) | SELECT MAX(vertical) FROM table_272313_1 WHERE horizontal = 640 |
A bar chart shows the number of appellations whose score is higher than 93, and ordered by Name. | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
) | SELECT Appelation, COUNT(Appelation) FROM wine WHERE Score > 93 GROUP BY Appelation ORDER BY Name |
How did Stella Farentino die? | CREATE TABLE table_24143253_2 (
cause_of_death VARCHAR,
name VARCHAR
) | SELECT cause_of_death FROM table_24143253_2 WHERE name = "Stella Farentino" |
What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006? | CREATE TABLE table_43268 (
"Date" text,
"Label" text,
"Format" text,
"Country" text,
"Catalog" text
) | SELECT "Catalog" FROM table_43268 WHERE "Format" = 'lp' AND "Country" = 'us' AND "Label" = 'sundazed' AND "Date" = '2006' |
How many wins has a podiums greater than 1 and 9 as the races with a season after 1984? | CREATE TABLE table_70169 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Podiums" real
) | SELECT COUNT("Wins") FROM table_70169 WHERE "Podiums" > '1' AND "Races" = '9' AND "Season" > '1984' |
who was the last pick in round four ? | CREATE TABLE table_203_676 (
id number,
"pick #" number,
"cfl team" text,
"player" text,
"position" text,
"college" text
) | SELECT "player" FROM table_203_676 ORDER BY "pick #" DESC LIMIT 1 |
What is the smallest End term with a Start term of 1913, and a Name of ludwig iii? | CREATE TABLE table_name_39 (
end_term INTEGER,
start_term VARCHAR,
name VARCHAR
) | SELECT MIN(end_term) FROM table_name_39 WHERE start_term = 1913 AND name = "ludwig iii" |
What's the title of the audio book with story number 91? | CREATE TABLE table_23576 (
"Story #" real,
"Target #" text,
"Title" text,
"Author" text,
"Reader" text,
"Format" text,
"Company" text,
"Release Date" text,
"Notes" text
) | SELECT "Title" FROM table_23576 WHERE "Story #" = '91' |
Which Medal had a Name of f lix s nchez, and a Games of 2012 london? | CREATE TABLE table_name_43 (
medal VARCHAR,
name VARCHAR,
games VARCHAR
) | SELECT medal FROM table_name_43 WHERE name = "félix sánchez" AND games = "2012 london" |
Name the most copa del rey for karim benzema | CREATE TABLE table_25565 (
"R" real,
"Player" text,
"Position" text,
"League" real,
"Champions League" real,
"Copa del Rey" real,
"Total" real
) | SELECT MAX("Copa del Rey") FROM table_25565 WHERE "Player" = 'Karim Benzema' |
What are the open dates and years for the shop named Apple? | CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version text,
applications text,
software_platform text
)
CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
) | SELECT open_date, open_year FROM shop WHERE shop_name = "Apple" |
What is the English title for Ansikte Mot Ansikte? | CREATE TABLE table_68616 (
"Year" text,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
) | SELECT "English title" FROM table_68616 WHERE "Original title" = 'ansikte mot ansikte' |
How many women has got the first runner-up position in representation of Philippines? | CREATE TABLE table_29942205_1 (
country_territory VARCHAR
) | SELECT 1 AS st_runner_up FROM table_29942205_1 WHERE country_territory = "Philippines" |
List the highest number of students in attendance for the institution that started in 1923. | CREATE TABLE table_28243691_1 (
enrollment INTEGER,
founded VARCHAR
) | SELECT MAX(enrollment) FROM table_28243691_1 WHERE founded = 1923 |
Which state has a royal house of Jiang? | CREATE TABLE table_12476 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | SELECT "State" FROM table_12476 WHERE "Royal house" = 'jiang' |
what was the average number of assists in league one ? | CREATE TABLE table_204_575 (
id number,
"place" number,
"position" text,
"number" number,
"name" text,
"league one" number,
"fa cup" number,
"league cup" number,
"football league trophy" number,
"total" number
) | SELECT AVG("league one") FROM table_204_575 |
Can you tell me the sum of Area km 2 that has the Official Name of glenelg? | CREATE TABLE table_name_75 (
area_km_2 INTEGER,
official_name VARCHAR
) | SELECT SUM(area_km_2) FROM table_name_75 WHERE official_name = "glenelg" |
What is the games lost when games played was 2, year was earlier than 1999, and points for was 24? | CREATE TABLE table_14087 (
"Year(s)" real,
"Tournament or series" text,
"Played in" text,
"Games played ( Tests )" text,
"Games won ( Tests )" text,
"Games lost ( Tests )" text,
"Games drawn ( Tests )" text,
"Points for ( Tests )" text,
"Points against ( Tests )" text
) | SELECT "Games lost ( Tests )" FROM table_14087 WHERE "Games played ( Tests )" = '2' AND "Year(s)" < '1999' AND "Points for ( Tests )" = '24' |
How many introductory phrases are there with 'the w rd' is 'unrequited gov'? | CREATE TABLE table_28001 (
"Episode #" real,
"The W\u00f8rd" text,
"Guest" text,
"Introductory phrase" text,
"Original airdate" text,
"Production code" real
) | SELECT COUNT("Introductory phrase") FROM table_28001 WHERE "The W\u00f8rd" = 'Unrequited Gov' |
How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129? | CREATE TABLE table_37490 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
) | SELECT SUM("Long") FROM table_37490 WHERE "Loss" > '2' AND "Gain" = '157' AND "Avg/G" < '129' |
What rank is the airport in Fortaleza? | CREATE TABLE table_name_19 (
rank VARCHAR,
location VARCHAR
) | SELECT rank FROM table_name_19 WHERE location = "fortaleza" |
What is the sum of the pick numbers for the player that went to San Miguel Beermen who played at San Sebastian? | CREATE TABLE table_42421 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
) | SELECT SUM("Pick") FROM table_42421 WHERE "PBA team" = 'san miguel beermen' AND "College" = 'san sebastian' |
When was the game that ended with a score of 6-4? | CREATE TABLE table_name_38 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_38 WHERE score = "6-4" |
Which Score has a To par larger than 17, and a Player of mike brady? | CREATE TABLE table_59953 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT "Score" FROM table_59953 WHERE "To par" > '17' AND "Player" = 'mike brady' |
In the Phoenix Open, what was the winning score? | CREATE TABLE table_name_28 (
winning_score VARCHAR,
tournament VARCHAR
) | SELECT winning_score FROM table_name_28 WHERE tournament = "phoenix open" |
For the area which was 9.1 in October 2010, what is the figure for October 2012? | CREATE TABLE table_21531764_1 (
october_2012 VARCHAR,
october_2010 VARCHAR
) | SELECT october_2012 FROM table_21531764_1 WHERE october_2010 = "9.1" |
What's the Place of birth listed that has an Elevator of ALexander III, and an Elector of Ruggiero Di San Severino? | CREATE TABLE table_14246 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
) | SELECT "Place of birth" FROM table_14246 WHERE "Elevator" = 'alexander iii' AND "Elector" = 'ruggiero di san severino' |
What is the NBA Draft status of the person who went to college at LSU? | CREATE TABLE table_name_38 (
nba_draft VARCHAR,
college VARCHAR
) | SELECT nba_draft FROM table_name_38 WHERE college = "lsu" |
How many vuts made for a player with 2 wins and under 7 top 5s? | CREATE TABLE table_name_96 (
cuts_made INTEGER,
wins VARCHAR,
top_5 VARCHAR
) | SELECT AVG(cuts_made) FROM table_name_96 WHERE wins = 2 AND top_5 < 7 |
The hanja is for what capital? | CREATE TABLE table_72744 (
"Former kingdom" text,
"Province" text,
"Hangul" text,
"Hanja" text,
"Capital" text,
"Modern equivalent" text
) | SELECT "Capital" FROM table_72744 WHERE "Hanja" = '尙州' |
Name the sum of played for position less than 9 and draws more than 19 with goals against more than 27 | CREATE TABLE table_53941 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT SUM("Played") FROM table_53941 WHERE "Position" < '9' AND "Draws" > '19' AND "Goals against" > '27' |
What is the total number of silver medals of the team with less than 2 gold, 1 bronze, and more than 2 total medals? | CREATE TABLE table_name_13 (
silver VARCHAR,
total VARCHAR,
gold VARCHAR,
bronze VARCHAR
) | SELECT COUNT(silver) FROM table_name_13 WHERE gold < 2 AND bronze = 1 AND total > 2 |
How many performances of each location? Show me the proportion using a pie chart. | CREATE TABLE member_attendance (
Member_ID int,
Performance_ID int,
Num_of_Pieces int
)
CREATE TABLE member (
Member_ID text,
Name text,
Nationality text,
Role text
)
CREATE TABLE performance (
Performance_ID real,
Date text,
Host text,
Location text,
Attendance int
) | SELECT Location, COUNT(Location) FROM performance GROUP BY Location |
What is the lowest number of f/laps with more than 4 podiums and more than 14 races? | CREATE TABLE table_13968 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | SELECT MIN("F/Laps") FROM table_13968 WHERE "Podiums" > '4' AND "Races" > '14' |
Can you tell me the Score that has the Opponent of at edmonton oilers? | CREATE TABLE table_name_97 (
score VARCHAR,
opponent VARCHAR
) | SELECT score FROM table_name_97 WHERE opponent = "at edmonton oilers" |
What is the hebrew word listed for strongs # 5418? | CREATE TABLE table_17661 (
"Strongs #" text,
"Hebrew word" text,
"Strongs Transliteration" text,
"Strongs Words Compounded" text,
"English Spelling" text
) | SELECT "Hebrew word" FROM table_17661 WHERE "Strongs #" = '5418' |
Tell me the rider with 18.185 points round 1 | CREATE TABLE table_77539 (
"Rider" text,
"Horse" text,
"Faults" text,
"Round 1 Points" text,
"Total" real
) | SELECT "Rider" FROM table_77539 WHERE "Round 1 Points" = '18.185' |
what series was on may 14 | CREATE TABLE table_34831 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
) | SELECT "Series" FROM table_34831 WHERE "Date" = 'may 14' |
Display a bar chart for what is the total revenue of companies started by founder?, and could you list in asc by the total number of revenue? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Founder, SUM(Revenue) FROM Manufacturers GROUP BY Founder ORDER BY SUM(Revenue) |
Count the names of all the products in the store and return me a bar chart, could you order Name in asc order? | 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 Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name |
On what date did the woman married to Louis II become consort? | CREATE TABLE table_61634 (
"Name" text,
"Birth" text,
"Marriage" text,
"Became Consort" text,
"Ceased to be Consort" text,
"Spouse" text
) | SELECT "Became Consort" FROM table_61634 WHERE "Spouse" = 'louis ii' |
What is the surface of the tournament with Sascha Kloer as the opponent? | CREATE TABLE table_name_37 (
surface VARCHAR,
opponent VARCHAR
) | SELECT surface FROM table_name_37 WHERE opponent = "sascha kloer" |
Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price? | CREATE TABLE table_name_99 (
date VARCHAR,
decision VARCHAR,
home VARCHAR,
points VARCHAR
) | SELECT date FROM table_name_99 WHERE home = "montreal canadiens" AND points > 9 AND decision = "price" |
Show me the comparison of the total number of all ships' nationalities with a bar graph, and I want to sort in desc by the x axis. | CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) | SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY Nationality DESC |
What are the names of candidates who have a lower support rate than oppose rate? | CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,
unsure_rate number
)
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height number,
weight number
) | SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate |
how many competitions had a score of 1-0 at most ? | CREATE TABLE table_203_652 (
id number,
"goal" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT COUNT(*) FROM table_203_652 WHERE "score" = '1-0' |
Which nationality is the player from the Philadelphia Flyers? | CREATE TABLE table_1473672_3 (
nationality VARCHAR,
nhl_team VARCHAR
) | SELECT nationality FROM table_1473672_3 WHERE nhl_team = "Philadelphia Flyers" |