instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
What is the Craft used at Coniston Water? | CREATE TABLE table_name_15 (
craft VARCHAR,
location VARCHAR
) | SELECT craft FROM table_name_15 WHERE location = "coniston water" |
How many platinum points were awarded for 5th place? | CREATE TABLE table_11254821_2 (
points_awarded__platinum_ INTEGER,
finishing_position VARCHAR
) | SELECT MAX(points_awarded__platinum_) FROM table_11254821_2 WHERE finishing_position = "5th" |
What is the Tie no for Away Team Ipswich Town? | CREATE TABLE table_62591 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Tie no" FROM table_62591 WHERE "Away team" = 'ipswich town' |
Who is the lead for the team with Nkeiruka Ezekh as second? | CREATE TABLE table_34775 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text
) | SELECT "Lead" FROM table_34775 WHERE "Second" = 'nkeiruka ezekh' |
Which Position has a Round larger than 4, and a Player of patrick johnson? | CREATE TABLE table_name_45 (
position VARCHAR,
round VARCHAR,
player VARCHAR
) | SELECT position FROM table_name_45 WHERE round > 4 AND player = "patrick johnson" |
What is the deficit (-surplus) of France? | CREATE TABLE table_1299 (
"Country" text,
"Uranium required 2006-08" text,
"% of world demand" text,
"Indigenous mining production 2006" text,
"Deficit (-surplus)" text
) | SELECT "Deficit (-surplus)" FROM table_1299 WHERE "Country" = 'France' |
Which driver had 35+3 points? | CREATE TABLE table_50441 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
) | SELECT "Driver" FROM table_50441 WHERE "Points" = '35+3' |
Name of calvin o'neal, and a Round smaller than 6 had what number total overall? | CREATE TABLE table_name_3 (
overall VARCHAR,
name VARCHAR,
round VARCHAR
) | SELECT COUNT(overall) FROM table_name_3 WHERE name = "calvin o'neal" AND round < 6 |
How many players named paddy rowan? | CREATE TABLE table_16527640_2 (
rank_held_at_time_of_death VARCHAR,
player VARCHAR
) | SELECT COUNT(rank_held_at_time_of_death) FROM table_16527640_2 WHERE player = "Paddy Rowan" |
What score has won as the result on the date of December 14, 2004? | CREATE TABLE table_14739 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_14739 WHERE "Result" = 'won' AND "Date" = 'december 14, 2004' |
Name the aspect ratio for smpte 259m and interlaced scanning | CREATE TABLE table_29367 (
"Vertical" real,
"Horizontal" real,
"Aspect ratio" text,
"Pixel aspect ratio" text,
"Scanning" text,
"Frame rate ( Hz )" text
) | SELECT "Aspect ratio" FROM table_29367 WHERE "Pixel aspect ratio" = 'SMPTE 259M' AND "Scanning" = 'interlaced' |
what is the number of songs sung by two singers ? | CREATE TABLE table_203_267 (
id number,
"no." number,
"song" text,
"singers" text,
"length (m:ss)" text
) | SELECT COUNT("song") FROM table_203_267 WHERE "singers" >= 2 |
What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)? | CREATE TABLE table_67362 (
"Name" text,
"Species Authority" text,
"Order" text,
"Family" text,
"Red List" real
) | SELECT MAX("Red List") FROM table_67362 WHERE "Family" = 'muridae' AND "Species Authority" = 'microtus pinetorum (le conte, 1830)' |
how many singles were released as part of an album ? | CREATE TABLE table_203_751 (
id number,
"year" number,
"title" text,
"peak chart positions\nus\nair" number,
"peak chart positions\nus\nmain" number,
"peak chart positions\nus\nmod" number,
"album" text
) | SELECT COUNT("title") FROM table_203_751 WHERE "album" <> 'non-album single' |
Which player wears the number 2 on his jersey? | CREATE TABLE table_name_18 (
player VARCHAR,
jersey_number_s_ VARCHAR
) | SELECT player FROM table_name_18 WHERE jersey_number_s_ = "2" |
Who was the developer of Wii? | CREATE TABLE table_65635 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | SELECT "Developer(s)" FROM table_65635 WHERE "Platform(s)" = 'wii' |
What is the money with a Score of 76-70-75-72=293? | CREATE TABLE table_58997 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( \u00a3 )" text
) | SELECT "Money ( \u00a3 )" FROM table_58997 WHERE "Score" = '76-70-75-72=293' |
Which skill is used in fixing the most number of faults? List the skill id and description. | CREATE TABLE Skills_Required_To_Fix (
skill_id VARCHAR
)
CREATE TABLE Skills (
skill_id VARCHAR,
skill_description VARCHAR
) | SELECT T1.skill_id, T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY COUNT(*) DESC LIMIT 1 |
Who write episode number 48 in the series? | CREATE TABLE table_2453243_5 (
written_by VARCHAR,
no_in_series VARCHAR
) | SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48" |
What was the surface where the outcome was winner on 12 march 1989? | CREATE TABLE table_54160 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Surface" FROM table_54160 WHERE "Outcome" = 'winner' AND "Date" = '12 march 1989' |
How many total No Results are recorded for less than 6 wins? | CREATE TABLE table_name_21 (
no_result VARCHAR,
wins INTEGER
) | SELECT COUNT(no_result) FROM table_name_21 WHERE wins < 6 |
Find the average rating star for each movie that are not reviewed by Brittany Harris. | CREATE TABLE Rating (
mID VARCHAR,
stars INTEGER
)
CREATE TABLE Reviewer (
rID VARCHAR,
name VARCHAR
) | SELECT mID, AVG(stars) FROM Rating WHERE NOT mID IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris") GROUP BY mID |
Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0? | CREATE TABLE table_22355_20 (
athlete VARCHAR,
nation VARCHAR,
rank VARCHAR
) | SELECT athlete FROM table_22355_20 WHERE nation = "Ethiopia (ETH)" AND rank > 7.0 |
Name the final position for copa libertadores | CREATE TABLE table_2953 (
"Competition" text,
"Final position" text,
"First match" text,
"Last match" text,
"Final Place" text
) | SELECT "Final position" FROM table_2953 WHERE "Competition" = 'Copa Libertadores' |
Return a bar chart on what are the different ship flags, and how many ships have each?, list by the Y-axis in descending. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY COUNT(*) DESC |
Can you draw the trend of maximal score over the year?, rank by the x-axis in descending. | CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
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 grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
) | SELECT Year, MAX(Score) FROM wine GROUP BY Year ORDER BY Year DESC |
What song was used resulting in the bottom 3? | CREATE TABLE table_3524 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Song choice" FROM table_3524 WHERE "Result" = 'Bottom 3' |
Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name? | CREATE TABLE table_name_90 (
college VARCHAR,
name VARCHAR,
round VARCHAR,
overall VARCHAR
) | SELECT college FROM table_name_90 WHERE round > 4 AND overall < 237 AND name = "ted cottrell" |
Who is every main presenter for the year 2011? | CREATE TABLE table_26678 (
"Region/Country" text,
"Local name" text,
"Main presenter" text,
"Network" text,
"Year premiered" real
) | SELECT "Main presenter" FROM table_26678 WHERE "Year premiered" = '2011' |
What is the 1st leg that has hapoel jerusalem? | CREATE TABLE table_name_75 (
team__number1 VARCHAR
) | SELECT 1 AS st_leg FROM table_name_75 WHERE team__number1 = "hapoel jerusalem" |
Name the least podiums for 49 points | CREATE TABLE table_20398823_1 (
podiums INTEGER,
points VARCHAR
) | SELECT MIN(podiums) FROM table_20398823_1 WHERE points = "49" |
Which series occurred in which the semi-finalist was runner-up and the 7800.00 was 6420.00? | CREATE TABLE table_2544694_3 (
indonesia_super_series_2008 VARCHAR,
runner_up VARCHAR
) | SELECT indonesia_super_series_2008 FROM table_2544694_3 WHERE runner_up = "Semi-Finalist" AND 780000 = "6420.00" |
What is the weight is the name is Stuart Craig? | CREATE TABLE table_24924 (
"Name" text,
"Position" text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Home Team" text
) | SELECT "Weight" FROM table_24924 WHERE "Name" = 'Stuart Craig' |
Which 2010/ 11 has a 2011/ 12 of former non-ranking tournaments? | CREATE TABLE table_62376 (
"1999/ 00" text,
"2000/ 01" text,
"2001/ 02" text,
"2002/ 03" text,
"2003/ 04" text,
"2004/ 05" text,
"2005/ 06" text,
"2006/ 07" text,
"2007/ 08" text,
"2008/ 09" text,
"2009/ 10" text,
"2010/ 11" text,
"2011/ 12" text,
"2012/ 13" text
) | SELECT "2010/ 11" FROM table_62376 WHERE "2011/ 12" = 'former non-ranking tournaments' |
Which Losses have Draws smaller than 0? | CREATE TABLE table_66656 (
"Wimmera FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MAX("Losses") FROM table_66656 WHERE "Draws" < '0' |
Which To par has a Score of 67-72-71-75=285? | CREATE TABLE table_8918 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "To par" FROM table_8918 WHERE "Score" = '67-72-71-75=285' |
How many average Cars Entered have a Third Driver of manny ayulo? | CREATE TABLE table_67502 (
"Season" real,
"Cars Entered" real,
"Winning Driver" text,
"Second Driver" text,
"Third Driver" text,
"Race Report" text
) | SELECT AVG("Cars Entered") FROM table_67502 WHERE "Third Driver" = 'manny ayulo' |
Report all advisors that advise more than 2 students. | CREATE TABLE STUDENT (
Advisor VARCHAR
) | SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2 |
What was the away team score at Western Oval? | CREATE TABLE table_10628 (
"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_10628 WHERE "Venue" = 'western oval' |
What is the week 3, prior to the when the week 4 was Laura Nicole? | CREATE TABLE table_name_26 (
week_4 VARCHAR,
week_3 VARCHAR
) | SELECT week_4 FROM table_name_26 WHERE week_3 = "laura nicole" |
For those records from the products and each product's manufacturer, show me about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter in a bar chart. | 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 Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter |
What is the final standing in 1981 82? | CREATE TABLE table_60911 (
"Season" real,
"Years" text,
"Final Standing" real,
"Points" real,
"Top Goal Scorer" text
) | SELECT "Final Standing" FROM table_60911 WHERE "Years" = '1981β82' |
When are all years that the champion is Ji Min Jeong? | CREATE TABLE table_15315816_1 (
year VARCHAR,
champion VARCHAR
) | SELECT year FROM table_15315816_1 WHERE champion = "Ji Min Jeong" |
How many destinations have a weekly frequency and are named AC Express? | CREATE TABLE table_24575 (
"Train No." text,
"Train Name" text,
"Destination" text,
"Category" text,
"Frequency" text
) | SELECT COUNT("Destination") FROM table_24575 WHERE "Frequency" = 'Weekly' AND "Train Name" = 'AC Express' |
What is the year (ceremony) for the film title Eldra? | CREATE TABLE table_26385848_1 (
year__ceremony_ VARCHAR,
film_title VARCHAR
) | SELECT year__ceremony_ FROM table_26385848_1 WHERE film_title = "Eldra" |
What round did Matt Clark play? | CREATE TABLE table_name_94 (
round VARCHAR,
player VARCHAR
) | SELECT round FROM table_name_94 WHERE player = "matt clark" |
What is the average Number, when Position is Forward? | CREATE TABLE table_name_13 (
number INTEGER,
position VARCHAR
) | SELECT AVG(number) FROM table_name_13 WHERE position = "forward" |
Name the number of direction for debrecen | CREATE TABLE table_23211 (
"Further Cities" text,
"County, Oblast or State" text,
"Country" text,
"Distance" text,
"Direction" text
) | SELECT COUNT("Direction") FROM table_23211 WHERE "Further Cities" = 'Debrecen' |
What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020? | CREATE TABLE table_37692 (
"Rank" text,
"Urban sub-area" text,
"Population" text,
"Status" text,
"Council area" text
) | SELECT "Urban sub-area" FROM table_37692 WHERE "Council area" = 'east dunbartonshire' AND "Population" = '19,020' |
what are the number of years maine has participated ? | CREATE TABLE table_203_502 (
id number,
"team" text,
"titles" number,
"runner-up" number,
"third place" number,
"fourth place" number,
"years participated" number
) | SELECT "years participated" FROM table_203_502 WHERE "team" = 'maine' |
What song placed higher than#4? | CREATE TABLE table_64035 (
"Draw" real,
"Artist" text,
"Song" text,
"Percentage" text,
"Place" real
) | SELECT "Song" FROM table_64035 WHERE "Place" > '4' |
What is the lowest overall year? | CREATE TABLE table_16677738_1 (
year INTEGER
) | SELECT MIN(year) FROM table_16677738_1 |
What is the amount of assists for richmond kickers and points larger than 24 | CREATE TABLE table_name_32 (
assists INTEGER,
club VARCHAR,
points VARCHAR
) | SELECT SUM(assists) FROM table_name_32 WHERE club = "richmond kickers" AND points > 24 |
What was the score when the opponent in the final was iroda tulyaganova? | CREATE TABLE table_40385 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Score" FROM table_40385 WHERE "Opponent in the final" = 'iroda tulyaganova' |
What's the season number of the episode viewed by 3.19 million people in the US? | CREATE TABLE table_18268826_1 (
no_in_season INTEGER,
us_viewers__million_ VARCHAR
) | SELECT MAX(no_in_season) FROM table_18268826_1 WHERE us_viewers__million_ = "3.19" |
how many mean elevation with lowest point being gulf of mexico and state being texas | CREATE TABLE table_1416612_1 (
mean_elevation VARCHAR,
lowest_point VARCHAR,
state VARCHAR
) | SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas" |
What ship was built in 2012? | CREATE TABLE table_12259 (
"Built" real,
"Ship" text,
"Operator" text,
"Tonnage" text,
"Flag" text
) | SELECT "Ship" FROM table_12259 WHERE "Built" = '2012' |
What is the home team score that played away team carlton? | CREATE TABLE table_57264 (
"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_57264 WHERE "Away team" = 'carlton' |
What was the Finish when NL was the League, the Percentage was under 0.726, the Year was larger than 1897, and the Franchies was the Pittsburgh Pirates? | CREATE TABLE table_name_22 (
finish VARCHAR,
franchise VARCHAR,
year VARCHAR,
league VARCHAR,
percentage VARCHAR
) | SELECT finish FROM table_name_22 WHERE league = "nl" AND percentage < 0.726 AND year > 1897 AND franchise = "pittsburgh pirates" |
Who was the oppenent what the score was L 68-60? | CREATE TABLE table_21327 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Opponent" FROM table_21327 WHERE "Score" = 'L 68-60' |
Which venue held a basketball team? | CREATE TABLE table_name_98 (
venue VARCHAR,
sport VARCHAR
) | SELECT venue FROM table_name_98 WHERE sport = "basketball" |
How many losses are there with 5 goal differences, drew more than 10 times, and 43 goals against? | CREATE TABLE table_71293 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT COUNT("Losses") FROM table_71293 WHERE "Goal Difference" = '5' AND "Draws" > '10' AND "Goals against" = '43' |
What date had a record of 43-34? | CREATE TABLE table_name_17 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_17 WHERE record = "43-34" |
What is the country of the airport with the highest elevation? | CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active text
)
CREATE TABLE airports (
apid number,
name text,
city text,
country text,
x number,
y number,
elevation number,
iata text,
icao text
)
CREATE TABLE routes (
rid number,
dst_apid number,
dst_ap text,
src_apid number,
src_ap text,
alid number,
airline text,
codeshare text
) | SELECT country FROM airports ORDER BY elevation DESC LIMIT 1 |
Tell me the number of weeks for bye | CREATE TABLE table_name_5 (
week VARCHAR,
date VARCHAR
) | SELECT COUNT(week) FROM table_name_5 WHERE date = "bye" |
What is the number of airports per country, ordered from most to least? | CREATE TABLE airports (
apid number,
name text,
city text,
country text,
x number,
y number,
elevation number,
iata text,
icao text
)
CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active text
)
CREATE TABLE routes (
rid number,
dst_apid number,
dst_ap text,
src_apid number,
src_ap text,
alid number,
airline text,
codeshare text
) | SELECT COUNT(*), country FROM airports GROUP BY country ORDER BY COUNT(*) DESC |
Which Regular Season Champion(s) has a Record of 9 0, and a Tournament Champion of north carolina? | CREATE TABLE table_name_16 (
regular_season_champion_s_ VARCHAR,
record VARCHAR,
tournament_champion VARCHAR
) | SELECT regular_season_champion_s_ FROM table_name_16 WHERE record = "9β0" AND tournament_champion = "north carolina" |
If the playoff berth is 17, what is the AFC championship number? | CREATE TABLE table_23060 (
"Team" text,
"Division Titles" real,
"Playoff Berths" real,
"AFL Titles" real,
"AFC Championships" real,
"Super Bowl Championships" real
) | SELECT "AFC Championships" FROM table_23060 WHERE "Playoff Berths" = '17' |
how many time is the final record is 9 16 5? | CREATE TABLE table_26967 (
"Season" real,
"Regular Season" text,
"Playoffs" text,
"U.S. Open Cup" text,
"CONCACAF" text,
"Final Record" text
) | SELECT COUNT("Season") FROM table_26967 WHERE "Final Record" = '9β16β5' |
What is the capacity for the arena in Chester? | CREATE TABLE table_55105 (
"Team" text,
"City/Area" text,
"Arena" text,
"Capacity" text,
"Last season" text
) | SELECT "Capacity" FROM table_55105 WHERE "City/Area" = 'chester' |
how many episodes in the serie were title 'the key | CREATE TABLE table_74425 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
) | SELECT COUNT("No. in series") FROM table_74425 WHERE "Title" = 'The Key' |
What was the result of the election of the incumbent clyde doyle? | CREATE TABLE table_743 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_743 WHERE "Incumbent" = 'Clyde Doyle' |
What's the total when the position was more than 6 and had an A Score of less than 7.6? | CREATE TABLE table_name_83 (
total INTEGER,
position VARCHAR,
a_score VARCHAR
) | SELECT MAX(total) FROM table_name_83 WHERE position > 6 AND a_score < 7.6 |
Who was the host team at Louisiana Superdome when the final score was 10-20? | CREATE TABLE table_11239 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
) | SELECT "Host Team" FROM table_11239 WHERE "Stadium" = 'louisiana superdome' AND "Final Score" = '10-20' |
I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s | CREATE TABLE table_55299 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text,
"Apparent magnitude" real
) | SELECT SUM("NGC number") FROM table_55299 WHERE "Object type" = 'spiral galaxy' AND "Right ascension ( J2000 )" = '08h14m40.4s' |
Which team has an away score of 18.14 (122)? | CREATE TABLE table_55148 (
"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_55148 WHERE "Away team score" = '18.14 (122)' |
Show me a pie chart for what is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos. | CREATE TABLE photos (
id int,
camera_lens_id int,
mountain_id int,
color text,
name text
)
CREATE TABLE mountain (
id int,
name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
) | SELECT T1.name, COUNT(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id ORDER BY COUNT(*) |
Where was the game played when the high assists were scored by billups , stuckey (4)? | CREATE TABLE table_11960944_11 (
location_attendance VARCHAR,
high_assists VARCHAR
) | SELECT location_attendance FROM table_11960944_11 WHERE high_assists = "Billups , Stuckey (4)" |
What year was Bulworth nominated? | CREATE TABLE table_name_92 (
year VARCHAR,
project VARCHAR
) | SELECT year FROM table_name_92 WHERE project = "bulworth" |
What Country had a Score of 71-67=138? | CREATE TABLE table_42202 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_42202 WHERE "Score" = '71-67=138' |
What is the result of the league/cup competition with the swindon wildcats as the opponent and neil liddiard as the man of the match? | CREATE TABLE table_name_45 (
result VARCHAR,
man_of_the_match VARCHAR,
competition VARCHAR,
opponent VARCHAR
) | SELECT result FROM table_name_45 WHERE competition = "league/cup" AND opponent = "swindon wildcats" AND man_of_the_match = "neil liddiard" |
What is his low win total when he has over 3 top 25s and under 9 cuts made? | CREATE TABLE table_75591 (
"Tournament" text,
"Wins" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT MIN("Wins") FROM table_75591 WHERE "Top-25" = '3' AND "Cuts made" < '9' |
What is the 2010 result of a tournament that is A in 2006 and A in 2011? | CREATE TABLE table_67901 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2010" FROM table_67901 WHERE "2011" = 'a' AND "2006" = 'a' |
Which driver won at the Sachsenring circuit? | CREATE TABLE table_1140114_5 (
winning_driver VARCHAR,
circuit VARCHAR
) | SELECT winning_driver FROM table_1140114_5 WHERE circuit = "Sachsenring" |
What was the tie number of the game when the queens park rangers were the home team? | CREATE TABLE table_8266 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Tie no" FROM table_8266 WHERE "Home team" = 'queens park rangers' |
What is every value for points if rebounds is 6 and blocks is 0? | CREATE TABLE table_25352324_5 (
points VARCHAR,
rebounds VARCHAR,
blocks VARCHAR
) | SELECT points FROM table_25352324_5 WHERE rebounds = 6 AND blocks = 0 |
what is the population estimate 2005 for the with the area (km2) 3,034.08? | CREATE TABLE table_name_89 (
population_estimate_2005 INTEGER,
area__km_2__ VARCHAR
) | SELECT AVG(population_estimate_2005) FROM table_name_89 WHERE area__km_2__ = 3 OFFSET 034.08 |
At what Venue was the Home team score 17.19 (121)? | CREATE TABLE table_55019 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_55019 WHERE "Home team score" = '17.19 (121)' |
Name the high assists for chauncey billups , carmelo anthony (18) | CREATE TABLE table_17355408_4 (
high_assists VARCHAR,
high_points VARCHAR
) | SELECT high_assists FROM table_17355408_4 WHERE high_points = "Chauncey Billups , Carmelo Anthony (18)" |
What is the tie number when the away team is Lewes? | CREATE TABLE table_name_73 (
tie_no VARCHAR,
away_team VARCHAR
) | SELECT tie_no FROM table_name_73 WHERE away_team = "lewes" |
When did the Wolverhampton Wanderers play at home? | CREATE TABLE table_name_52 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_52 WHERE home_team = "wolverhampton wanderers" |
If the driver is Milka Duno, what is the name of the team? | CREATE TABLE table_21872 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
) | SELECT "Team" FROM table_21872 WHERE "Driver" = 'Milka Duno' |
Who was the director of the movie having a release date of 1934-09-15, an MM Series and a production number less than 6494? | CREATE TABLE table_name_12 (
director VARCHAR,
release_date VARCHAR,
series VARCHAR,
production_num VARCHAR
) | SELECT director FROM table_name_12 WHERE series = "mm" AND production_num < 6494 AND release_date = "1934-09-15" |
How many total medals for germany with under 56 bronzes? | CREATE TABLE table_39703 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Total") FROM table_39703 WHERE "Nation" = 'germany' AND "Bronze" < '56' |
What is the color of the planet venus? | CREATE TABLE table_180802_3 (
color VARCHAR,
planet VARCHAR
) | SELECT color FROM table_180802_3 WHERE planet = "Venus" |
In which series did Lecor Sports participate? | CREATE TABLE table_26400438_1 (
series VARCHAR,
team VARCHAR
) | SELECT series FROM table_26400438_1 WHERE team = "Lecor Sports" |
Pie. 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 is the relationship between Height and Weight ? | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
) | SELECT Height, Weight FROM people |
How many time was the political party the social democratic party of germany? | CREATE TABLE table_21132404_1 (
_percentage_2006 VARCHAR,
political_parties VARCHAR
) | SELECT COUNT(_percentage_2006) FROM table_21132404_1 WHERE political_parties = "Social Democratic Party of Germany" |
What is the engine of the goodyear tire and Herdez as a sponsor? | CREATE TABLE table_name_16 (
engine VARCHAR,
tire VARCHAR,
sponsor VARCHAR
) | SELECT engine FROM table_name_16 WHERE tire = "goodyear" AND sponsor = "herdez" |