question
stringlengths
12
243
answer
stringlengths
18
557
context
stringlengths
27
489
what is the maximum tonnage where date entered service is 25 march 1986
SELECT MAX(tonnage) FROM table_11662133_3 WHERE date_entered_service = "25 March 1986"
CREATE TABLE table_11662133_3 (tonnage INTEGER, date_entered_service VARCHAR)
What is the 2001 tournament with a 2005 4r?
SELECT 2001 FROM table_name_83 WHERE 2005 = "4r"
CREATE TABLE table_name_83 (Id VARCHAR)
What club has a league/division of fourth division?
SELECT club FROM table_name_95 WHERE league_division = "fourth division"
CREATE TABLE table_name_95 (club VARCHAR, league_division VARCHAR)
How many times was the mens u20 recorded when the Womens 40 were Sydney Scorpions def North Queensland Cyclones?
SELECT COUNT(mens_u20) FROM table_16724844_1 WHERE womens_40 = "Sydney Scorpions def North Queensland Cyclones"
CREATE TABLE table_16724844_1 (mens_u20 VARCHAR, womens_40 VARCHAR)
what is the verb meaning when the part 1 is lopen?
SELECT verb_meaning FROM table_name_53 WHERE part_1 = "lopen"
CREATE TABLE table_name_53 (verb_meaning VARCHAR, part_1 VARCHAR)
What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2?
SELECT venue FROM table_name_23 WHERE competition = "2002 fifa world cup qualifier" AND result = "8-2"
CREATE TABLE table_name_23 (venue VARCHAR, competition VARCHAR, result VARCHAR)
What is shown on Tuesday when Wednesday is Fox Sports Tonight (ends 1 am next day)?
SELECT tuesday FROM table_name_59 WHERE wednesday = "fox sports tonight (ends 1 am next day)"
CREATE TABLE table_name_59 (tuesday VARCHAR, wednesday VARCHAR)
Show the names and genders of players with a coach starting after 2011.
SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011
CREATE TABLE player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR)
What is the status of Aden Theobald from the hometown of London?
SELECT status FROM table_name_48 WHERE hometown = "london" AND name = "aden theobald"
CREATE TABLE table_name_48 (status VARCHAR, hometown VARCHAR, name VARCHAR)
What is the number of votes when Ron Paul is the candidate with less than 0 counties?
SELECT COUNT(votes) FROM table_name_28 WHERE candidate = "ron paul" AND counties < 0
CREATE TABLE table_name_28 (votes VARCHAR, candidate VARCHAR, counties VARCHAR)
Name the number of first elected for kentucky 3
SELECT COUNT(first_elected) FROM table_2668378_5 WHERE district = "Kentucky 3"
CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR)
Wat was the result for the 20 km after 2008 when the venue was Metz, France?
SELECT result FROM table_name_13 WHERE year > 2008 AND event = "20 km" AND venue = "metz, france"
CREATE TABLE table_name_13 (result VARCHAR, venue VARCHAR, year VARCHAR, event VARCHAR)
What was the earliest year that the result 21-17?
SELECT MIN(year) FROM table_name_51 WHERE result = "21-17"
CREATE TABLE table_name_51 (year INTEGER, result VARCHAR)
What is the Record of the game with an Attendance of 70,604?
SELECT record FROM table_name_92 WHERE attendance = "70,604"
CREATE TABLE table_name_92 (record VARCHAR, attendance VARCHAR)
Name the away team score for lake oval
SELECT away_team AS score FROM table_name_1 WHERE venue = "lake oval"
CREATE TABLE table_name_1 (away_team VARCHAR, venue VARCHAR)
What shareholders have 0 A shares?
SELECT shareholder_name FROM table_206359_1 WHERE a_shares = 0
CREATE TABLE table_206359_1 (shareholder_name VARCHAR, a_shares VARCHAR)
Which series number had 1.98 million viewers?
SELECT MIN(no_in_series) FROM table_22347090_4 WHERE us_viewers__million_ = "1.98"
CREATE TABLE table_22347090_4 (no_in_series INTEGER, us_viewers__million_ VARCHAR)
What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9?
SELECT points_classification FROM table_name_19 WHERE intergiro_classification = "sven krauß" AND mountains_classification = "koldo gil" AND trofeo_super_team = "liquigas-bianchi" AND stage = "9"
CREATE TABLE table_name_19 (points_classification VARCHAR, stage VARCHAR, trofeo_super_team VARCHAR, intergiro_classification VARCHAR, mountains_classification VARCHAR)
Can you tell me the Attendance that has the Opponent of new york giants?
SELECT attendance FROM table_name_70 WHERE opponent = "new york giants"
CREATE TABLE table_name_70 (attendance VARCHAR, opponent VARCHAR)
Name the race name for rnd being 11
SELECT race_name FROM table_22669375_1 WHERE rnd = 11
CREATE TABLE table_22669375_1 (race_name VARCHAR, rnd VARCHAR)
What is Score, when Date is May 7, 2006?
SELECT score FROM table_name_65 WHERE date = "may 7, 2006"
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre?
SELECT AVG(crowd) FROM table_name_64 WHERE away_team = "new zealand breakers" AND venue = "cairns convention centre"
CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR, venue VARCHAR)
What is the lowest year that has hypo-meeting as the tournament, with 8002 as the points?
SELECT MIN(year) FROM table_name_52 WHERE tournament = "hypo-meeting" AND points = "8002"
CREATE TABLE table_name_52 (year INTEGER, tournament VARCHAR, points VARCHAR)
how many races were in 2009 with 0 wins?
SELECT races FROM table_10748727_1 WHERE season = "2009" AND wins = 0
CREATE TABLE table_10748727_1 (races VARCHAR, season VARCHAR, wins VARCHAR)
When was the premiere of the show that had a rank of #7?
SELECT premiere FROM table_name_30 WHERE rank = "#7"
CREATE TABLE table_name_30 (premiere VARCHAR, rank VARCHAR)
List the names and phone numbers of all the distinct suppliers who supply red jeans.
SELECT DISTINCT T1.supplier_name, T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id = T2.supplier_id JOIN products AS T3 ON T2.product_id = T3.product_id WHERE T3.product_name = "red jeans"
CREATE TABLE product_suppliers (supplier_id VARCHAR, product_id VARCHAR); CREATE TABLE suppliers (supplier_name VARCHAR, supplier_phone VARCHAR, supplier_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)
What is the 1957 number when the 1955 is smaller than 0.63, and 1952 is larger than 0.22?
SELECT COUNT(1957) FROM table_name_71 WHERE 1955 < 0.63 AND 1952 > 0.22
CREATE TABLE table_name_71 (Id VARCHAR)
What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has?
SELECT SUM(bronze) FROM table_name_67 WHERE gold = 1 AND silver > 3
CREATE TABLE table_name_67 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
What is the date of the game with a w 105-88 score?
SELECT date FROM table_name_78 WHERE score = "w 105-88"
CREATE TABLE table_name_78 (date VARCHAR, score VARCHAR)
Show all the locations where some cinemas were opened in both year 2010 and year 2011.
SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011
CREATE TABLE cinema (LOCATION VARCHAR, openning_year VARCHAR)
What is the number of land areas that have a place name of Ballplay?
SELECT COUNT(land_area__2010_) FROM table_249512_2 WHERE place_name = "Ballplay"
CREATE TABLE table_249512_2 (land_area__2010_ VARCHAR, place_name VARCHAR)
For how many contestants was the background internet dreamer?
SELECT COUNT(contestant) FROM table_19810459_1 WHERE background = "Internet dreamer"
CREATE TABLE table_19810459_1 (contestant VARCHAR, background VARCHAR)
List the players for team brynäs if (sweden).
SELECT player FROM table_2850912_12 WHERE college_junior_club_team = "Brynäs IF (Sweden)"
CREATE TABLE table_2850912_12 (player VARCHAR, college_junior_club_team VARCHAR)
Which Losses have Draws smaller than 0?
SELECT MAX(losses) FROM table_name_15 WHERE draws < 0
CREATE TABLE table_name_15 (losses INTEGER, draws INTEGER)
What is the finish when the to par is +18?
SELECT finish FROM table_name_18 WHERE to_par = "+18"
CREATE TABLE table_name_18 (finish VARCHAR, to_par VARCHAR)
How many reg GP for mattias ohlund?
SELECT COUNT(reg_gp) FROM table_name_35 WHERE player = "mattias ohlund"
CREATE TABLE table_name_35 (reg_gp VARCHAR, player VARCHAR)
What is the Constituency Number of Total:?
SELECT constituency_number FROM table_name_73 WHERE name = "total:"
CREATE TABLE table_name_73 (constituency_number VARCHAR, name VARCHAR)
What is the sum of the dates in december that were against the atlanta flames before game 40?
SELECT SUM(december) FROM table_name_88 WHERE opponent = "atlanta flames" AND game < 40
CREATE TABLE table_name_88 (december INTEGER, opponent VARCHAR, game VARCHAR)
What week did they have a bye?
SELECT week FROM table_name_66 WHERE opponent = "bye"
CREATE TABLE table_name_66 (week VARCHAR, opponent VARCHAR)
What is the sum of the round of the new york jets NFL club, which has a pick less than 166?
SELECT SUM(round) FROM table_name_60 WHERE nfl_club = "new york jets" AND pick < 166
CREATE TABLE table_name_60 (round INTEGER, nfl_club VARCHAR, pick VARCHAR)
What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?
SELECT MIN(bodyweight) FROM table_name_36 WHERE clean_ & _jerk = "145.0" AND snatch < 122.5
CREATE TABLE table_name_36 (bodyweight INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
Which record was for Warriors at home?
SELECT record FROM table_name_67 WHERE home = "warriors"
CREATE TABLE table_name_67 (record VARCHAR, home VARCHAR)
Who was the writer for episode 3?
SELECT writer FROM table_29039942_1 WHERE episode = 3
CREATE TABLE table_29039942_1 (writer VARCHAR, episode VARCHAR)
Name the country vijay singh is from
SELECT country FROM table_name_16 WHERE player = "vijay singh"
CREATE TABLE table_name_16 (country VARCHAR, player VARCHAR)
What is the ID of marshall landfill on 09/08/1983?
SELECT cerclis_id FROM table_name_98 WHERE listed = "09/08/1983" AND name = "marshall landfill"
CREATE TABLE table_name_98 (cerclis_id VARCHAR, listed VARCHAR, name VARCHAR)
Who was the opponent at the game that had a loss of Bell (6–9)?
SELECT opponent FROM table_name_96 WHERE loss = "bell (6–9)"
CREATE TABLE table_name_96 (opponent VARCHAR, loss VARCHAR)
When fixed route is the type of fare how much is the 31-day pass?
SELECT 31 - day_pass FROM table_20803241_1 WHERE type_of_fare = "Fixed Route"
CREATE TABLE table_20803241_1 (day_pass VARCHAR, type_of_fare VARCHAR)
Who had the highest rebounds of the game with A. Johnson (14) as the highest assists?
SELECT high_rebounds FROM table_name_55 WHERE high_assists = "a. johnson (14)"
CREATE TABLE table_name_55 (high_rebounds VARCHAR, high_assists VARCHAR)
What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold?
SELECT AVG(total) FROM table_name_88 WHERE bronze < 34 AND gold < 14 AND silver < 0
CREATE TABLE table_name_88 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
What is the name and id of the department with the most number of degrees ?
SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE degree_programs (department_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR)
What is the decision of the game larger than 6.
SELECT decision FROM table_name_82 WHERE game > 6
CREATE TABLE table_name_82 (decision VARCHAR, game INTEGER)
what are all the percent (1990) where state is mississippi
SELECT percent__1990_ FROM table_1182314_5 WHERE state = "Mississippi"
CREATE TABLE table_1182314_5 (percent__1990_ VARCHAR, state VARCHAR)
What is the title rank of actor pauline moran?
SELECT title_rank FROM table_name_93 WHERE actor = "pauline moran"
CREATE TABLE table_name_93 (title_rank VARCHAR, actor VARCHAR)
List the names of buildings in descending order of building height.
SELECT name FROM buildings ORDER BY Height DESC
CREATE TABLE buildings (name VARCHAR, Height VARCHAR)
How many managers for club in Turku where kitmaker is Puma?
SELECT COUNT(manager) FROM table_25129482_1 WHERE kitmaker = "Puma" AND location = "Turku"
CREATE TABLE table_25129482_1 (manager VARCHAR, kitmaker VARCHAR, location VARCHAR)
Who is nominated for the film Rugrats Go Wild?
SELECT winner_nominee_s_ FROM table_name_44 WHERE result = "nominated" AND film = "rugrats go wild"
CREATE TABLE table_name_44 (winner_nominee_s_ VARCHAR, result VARCHAR, film VARCHAR)
How many numbers are given for losses by the Keighley Cougars?
SELECT COUNT(lost) FROM table_13015539_1 WHERE club = "Keighley Cougars"
CREATE TABLE table_13015539_1 (lost VARCHAR, club VARCHAR)
In what year was anna university - panruti campus established?
SELECT SUM(estd) FROM table_name_14 WHERE college_or_campus_name = "anna university - panruti campus"
CREATE TABLE table_name_14 (estd INTEGER, college_or_campus_name VARCHAR)
Which Silver is the highest one that has a Rank of 19, and a Gold larger than 0?
SELECT MAX(silver) FROM table_name_71 WHERE rank = "19" AND gold > 0
CREATE TABLE table_name_71 (silver INTEGER, rank VARCHAR, gold VARCHAR)
What was the record when they played golden state?
SELECT record FROM table_23274514_9 WHERE team = "Golden State"
CREATE TABLE table_23274514_9 (record VARCHAR, team VARCHAR)
What is the Place of the Player with a Score of 73-67-74-71=285?
SELECT place FROM table_name_88 WHERE score = 73 - 67 - 74 - 71 = 285
CREATE TABLE table_name_88 (place VARCHAR, score VARCHAR)
When was the outcome runner-up with a score of 4–6, 3–6?
SELECT date FROM table_name_49 WHERE outcome = "runner-up" AND score = "4–6, 3–6"
CREATE TABLE table_name_49 (date VARCHAR, outcome VARCHAR, score VARCHAR)
What was the date of the game when g. rivers (5) had the high assists?
SELECT date FROM table_27882867_9 WHERE high_assists = "G. Rivers (5)"
CREATE TABLE table_27882867_9 (date VARCHAR, high_assists VARCHAR)
What is the long value for the year with an average/game of 160.9?
SELECT long FROM table_name_17 WHERE avg_g = "160.9"
CREATE TABLE table_name_17 (long VARCHAR, avg_g VARCHAR)
What value has negative infinity?
SELECT value FROM table_name_82 WHERE type = "negative infinity"
CREATE TABLE table_name_82 (value VARCHAR, type VARCHAR)
What was the first year that had a prize of 50,000?
SELECT first_year_aired FROM table_name_28 WHERE prize = "50,000"
CREATE TABLE table_name_28 (first_year_aired VARCHAR, prize VARCHAR)
How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?
SELECT chipset FROM table_199666_1 WHERE codename = "Arrandale" AND wireless_lan = "Intel centrino Ultimate-N 6300"
CREATE TABLE table_199666_1 (chipset VARCHAR, codename VARCHAR, wireless_lan VARCHAR)
What time span is listed under years for the 96th congres?
SELECT years FROM table_2841865_2 WHERE congress = "96th"
CREATE TABLE table_2841865_2 (years VARCHAR, congress VARCHAR)
On what day(s) did the Gophers play against Michigan?
SELECT date FROM table_name_88 WHERE opponent_number = "michigan"
CREATE TABLE table_name_88 (date VARCHAR, opponent_number VARCHAR)
What is the average rank for more than 12 points?
SELECT AVG(rank) FROM table_name_24 WHERE points > 12
CREATE TABLE table_name_24 (rank INTEGER, points INTEGER)
WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage?
SELECT season FROM table_name_72 WHERE head_coach = "jonas kazlauskas" AND europe = "champions cup group stage"
CREATE TABLE table_name_72 (season VARCHAR, head_coach VARCHAR, europe VARCHAR)
What were the wins of 1983?
SELECT wins FROM table_2622469_1 WHERE year = 1983
CREATE TABLE table_2622469_1 (wins VARCHAR, year VARCHAR)
What is listed as the highest ERP W with a Call sign of W262AC?
SELECT MAX(erp_w) FROM table_name_22 WHERE call_sign = "w262ac"
CREATE TABLE table_name_22 (erp_w INTEGER, call_sign VARCHAR)
What was the quantity of the A Score when the E Score was larger than 9.566 in the Greece and the T score was more than 4?
SELECT SUM(a_score) FROM table_name_54 WHERE e_score > 9.566 AND nation = "greece" AND t_score > 4
CREATE TABLE table_name_54 (a_score INTEGER, t_score VARCHAR, e_score VARCHAR, nation VARCHAR)
Who was the top goalscorer for season 2001-02?
SELECT top_goalscorer FROM table_2429942_2 WHERE season = "2001-02"
CREATE TABLE table_2429942_2 (top_goalscorer VARCHAR, season VARCHAR)
What was the overall score when set 1 was 23–25?
SELECT score FROM table_name_33 WHERE set_1 = "23–25"
CREATE TABLE table_name_33 (score VARCHAR, set_1 VARCHAR)
What was the finish place with a qual of 123.660?
SELECT finish FROM table_name_26 WHERE qual = "123.660"
CREATE TABLE table_name_26 (finish VARCHAR, qual VARCHAR)
How many transactions do we have?
SELECT COUNT(*) FROM Financial_transactions
CREATE TABLE Financial_transactions (Id VARCHAR)
What is the Date of the Game with a Score of w 112-107 (ot)?
SELECT date FROM table_name_29 WHERE score = "w 112-107 (ot)"
CREATE TABLE table_name_29 (date VARCHAR, score VARCHAR)
What is Outcome, when Score is 1-6, 3-6?
SELECT outcome FROM table_name_5 WHERE score = "1-6, 3-6"
CREATE TABLE table_name_5 (outcome VARCHAR, score VARCHAR)
List the name of all tracks in the playlists of Movies.
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies"
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
What was the result of the 1978 Atlanta Falcons season when the record was 1-2?
SELECT result FROM table_16710971_2 WHERE record = "1-2"
CREATE TABLE table_16710971_2 (result VARCHAR, record VARCHAR)
How many heavy attacks did the 450 Luftflotte 2 conduct?
SELECT COUNT(heavy_attacks) FROM table_name_29 WHERE luftflotte_2_sorties = 450
CREATE TABLE table_name_29 (heavy_attacks VARCHAR, luftflotte_2_sorties VARCHAR)
If the engine make/capacity is MWM 6.10 TCA-EURO III (Turbo Intercooler) and GVM (kg) Technical Capacity is 23000, what is the Torque Nm@rpm?
SELECT torque_nm AS @rpm FROM table_11497980_1 WHERE gcm__kg__technical_capacity = "23000" AND engine_make_capacity = "MWM 6.10 TCA-EURO III (Turbo Intercooler)"
CREATE TABLE table_11497980_1 (torque_nm VARCHAR, gcm__kg__technical_capacity VARCHAR, engine_make_capacity VARCHAR)
Which week was the December 21, 2003 game?
SELECT week FROM table_name_59 WHERE date = "december 21, 2003"
CREATE TABLE table_name_59 (week VARCHAR, date VARCHAR)
Show names of all high school students who do not have any friends.
SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id
CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Highschooler (name VARCHAR); CREATE TABLE Friend (student_id VARCHAR)
What is the population density of Siglunes when the change was smaller than -8.1 percent?
SELECT COUNT(population_density) FROM table_name_6 WHERE name = "siglunes" AND change___percentage_ < -8.1
CREATE TABLE table_name_6 (population_density VARCHAR, name VARCHAR, change___percentage_ VARCHAR)
who is the home team when the away team is bolton wanderers?
SELECT home_team FROM table_name_12 WHERE away_team = "bolton wanderers"
CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR)
Which team played on April 1?
SELECT team FROM table_13619053_9 WHERE date = "April 1"
CREATE TABLE table_13619053_9 (team VARCHAR, date VARCHAR)
Which main developer made their first release in 1991 and created the Mega Drive/Genesis console?
SELECT main_developer FROM table_12887260_1 WHERE first_release = 1991 AND console = "Mega Drive/Genesis"
CREATE TABLE table_12887260_1 (main_developer VARCHAR, first_release VARCHAR, console VARCHAR)
For the verb dhoa, what is the 2VF?
SELECT 2 AS __vf_ FROM table_name_75 WHERE verb = "dhoa"
CREATE TABLE table_name_75 (verb VARCHAR)
What other venue was a runner up to Hawthorn?
SELECT venue FROM table_1139835_9 WHERE runner_up = "Hawthorn"
CREATE TABLE table_1139835_9 (venue VARCHAR, runner_up VARCHAR)
What is Trailing Party, when Party Won is "Janata Dal", and when Year is "1996"?
SELECT trailing_party FROM table_name_74 WHERE party_won = "janata dal" AND year = 1996
CREATE TABLE table_name_74 (trailing_party VARCHAR, party_won VARCHAR, year VARCHAR)
What is the rank associated with 141.48 points?
SELECT rank FROM table_name_71 WHERE points = 141.48
CREATE TABLE table_name_71 (rank VARCHAR, points VARCHAR)
What country is Trent Yawney from?
SELECT nationality FROM table_2850912_3 WHERE player = "Trent Yawney"
CREATE TABLE table_2850912_3 (nationality VARCHAR, player VARCHAR)
What outcome has a score of 12-22?
SELECT result FROM table_name_69 WHERE score = "12-22"
CREATE TABLE table_name_69 (result VARCHAR, score VARCHAR)
Name the date for grass surface for quarterfinal at the nsw building society open tournament
SELECT date FROM table_name_36 WHERE surface = "grass" AND round = "quarterfinal" AND tournament = "nsw building society open"
CREATE TABLE table_name_36 (date VARCHAR, tournament VARCHAR, surface VARCHAR, round VARCHAR)
What was the constructor when riccardo patrese was the winning driver?
SELECT winning_constructor FROM table_name_88 WHERE winning_driver = "riccardo patrese"
CREATE TABLE table_name_88 (winning_constructor VARCHAR, winning_driver VARCHAR)
What is the state the winning driver Jamie Whincup from in round 2?
SELECT state_territory FROM table_name_8 WHERE winning_driver = "jamie whincup" AND round = 2
CREATE TABLE table_name_8 (state_territory VARCHAR, winning_driver VARCHAR, round VARCHAR)
Show the crime rates of counties in ascending order of number of police officers.
SELECT Crime_rate FROM county_public_safety ORDER BY Police_officers
CREATE TABLE county_public_safety (Crime_rate VARCHAR, Police_officers VARCHAR)