instruction
stringlengths
12
317
input
stringlengths
38
973
response
stringlengths
25
526
What is Caps, when Province / Club is DRFC, and when Position is Center?
CREATE TABLE table_41530 ( "Player" text, "Position" text, "Date of Birth (Age)" text, "Caps" text, "Province / Club" text )
SELECT "Caps" FROM table_41530 WHERE "Province / Club" = 'drfc' AND "Position" = 'center'
How may draws did libertad have?
CREATE TABLE table_14889048_2 ( draws VARCHAR, team VARCHAR )
SELECT COUNT(draws) FROM table_14889048_2 WHERE team = "Libertad"
What is the PRR class for wheel arrangement c-c and total less than 15?
CREATE TABLE table_name_80 ( prr_class VARCHAR, wheel_arrangement VARCHAR, total_produced VARCHAR )
SELECT prr_class FROM table_name_80 WHERE wheel_arrangement = "c-c" AND total_produced < 15
What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55?
CREATE TABLE table_name_48 ( february VARCHAR, opponent VARCHAR, game VARCHAR )
SELECT COUNT(february) FROM table_name_48 WHERE opponent = "vancouver canucks" AND game > 55
What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?
CREATE TABLE table_name_72 ( top_5 INTEGER, tournament VARCHAR, cuts_made VARCHAR )
SELECT AVG(top_5) FROM table_name_72 WHERE tournament = "u.s. open" AND cuts_made > 10
What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct?
CREATE TABLE table_name_57 ( blank_ends VARCHAR, shot_pct VARCHAR, stolen_ends VARCHAR, skip VARCHAR )
SELECT COUNT(blank_ends) FROM table_name_57 WHERE stolen_ends = 17 AND skip = "jennifer jones" AND shot_pct > 83
Which opponent has a save of smith (22)?
CREATE TABLE table_name_65 ( opponent VARCHAR, save VARCHAR )
SELECT opponent FROM table_name_65 WHERE save = "smith (22)"
Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939
CREATE TABLE table_name_73 ( name VARCHAR, laid_down VARCHAR, commissioned VARCHAR )
SELECT name FROM table_name_73 WHERE laid_down = "22 september 1939" AND commissioned = "30 august 1941"
What was the format for the region of europe?
CREATE TABLE table_name_81 ( format VARCHAR, region VARCHAR )
SELECT format FROM table_name_81 WHERE region = "europe"
What is the date for Watford and player Lionel Ainsworth?
CREATE TABLE table_61692 ( "Date From" text, "Date To" text, "Position" text, "Name" text, "From" text )
SELECT "Date To" FROM table_61692 WHERE "From" = 'watford' AND "Name" = 'lionel ainsworth'
What team played against Al-Ismaily (team 1)?
CREATE TABLE table_80411 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text )
SELECT "Team 2" FROM table_80411 WHERE "Team 1" = 'al-ismaily'
What is the dates where Hillcrest Reserve is the home grounds?
CREATE TABLE table_73053 ( "Name" text, "Nickname" text, "First season" text, "Location" text, "Home ground(s)" text, "Coach" text, "Captain" text )
SELECT "First season" FROM table_73053 WHERE "Home ground(s)" = 'Hillcrest Reserve'
When momoiro clover z is the vocalist how many japanese titles are there?
CREATE TABLE table_2460 ( "#" real, "Japanese title" text, "R\u014dmaji" text, "Japanese translation" text, "Vocalist" text, "Episodes used" text )
SELECT COUNT("Japanese title") FROM table_2460 WHERE "Vocalist" = 'Momoiro Clover Z'
Compute the total sum enrollment across county as a pie chart.
CREATE TABLE endowment ( endowment_id int, School_id int, donator_name text, amount real ) CREATE TABLE School ( School_id text, School_name text, Location text, Mascot text, Enrollment int, IHSAA_Class text, IHSAA_Football_Class text, County text ) CREATE TABLE budget ( School_id int, Year int, Budgeted int, total_budget_percent_budgeted real, Invested int, total_budget_percent_invested real, Budget_invested_percent text )
SELECT County, SUM(Enrollment) FROM School GROUP BY County
body mass index ( bmi ) of 27 to 45 kg / m2 with weight < / = 136 kg ( 300 lbs.
CREATE TABLE table_train_273 ( "id" int, "systolic_blood_pressure_sbp" int, "hemoglobin_a1c_hba1c" float, "body_weight" float, "hba1c" float, "insulin_requirement" float, "body_mass_index_bmi" float, "NOUSE" float )
SELECT * FROM table_train_273 WHERE body_mass_index_bmi >= 27 AND body_mass_index_bmi <= 45 AND body_weight <= 136
Who was the incumbent when henry e. barbour ran?
CREATE TABLE table_1342379_5 ( candidates VARCHAR, incumbent VARCHAR )
SELECT candidates FROM table_1342379_5 WHERE incumbent = "Henry E. Barbour"
Which staff handled least number of payments? List the full name and the id.
CREATE TABLE payment ( staff_id VARCHAR ) CREATE TABLE staff ( first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR )
SELECT T1.first_name, T1.last_name, T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY COUNT(*) LIMIT 1
Tell me the home team for vfl park venue
CREATE TABLE table_name_21 ( home_team VARCHAR, venue VARCHAR )
SELECT home_team FROM table_name_21 WHERE venue = "vfl park"
what was the number of winners from spain ?
CREATE TABLE table_203_600 ( id number, "rank" text, "country" text, "winners" number, "runners-up" number, "finals total" number )
SELECT "winners" FROM table_203_600 WHERE "country" = 'spain'
What was the winning score in 1980?
CREATE TABLE table_name_51 ( winning_score VARCHAR, year VARCHAR )
SELECT winning_score FROM table_name_51 WHERE year = 1980
Which opponent has a record of 17-11?
CREATE TABLE table_68602 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
SELECT "Opponent" FROM table_68602 WHERE "Record" = '17-11'
How many millions of $ were spent in Iceland in 1948/49?
CREATE TABLE table_19766_1 ( country VARCHAR )
SELECT MAX(1948 AS _49__) AS $_millions_ FROM table_19766_1 WHERE country = "Iceland"
what's the village with wine style being red wine and vineyard surface (2010) being hectares (acres)
CREATE TABLE table_19045 ( "Grand Cru" text, "Region" text, "Village" text, "Wine style" text, "Vineyard surface (2010)" text )
SELECT "Village" FROM table_19045 WHERE "Wine style" = 'Red wine' AND "Vineyard surface (2010)" = 'hectares (acres)'
What is the place of Mark O'Meara?
CREATE TABLE table_name_28 ( place VARCHAR, player VARCHAR )
SELECT place FROM table_name_28 WHERE player = "mark o'meara"
What is the home team that played Derby County as the away team?
CREATE TABLE table_name_18 ( home_team VARCHAR, away_team VARCHAR )
SELECT home_team FROM table_name_18 WHERE away_team = "derby county"
What's the average number of wins for those with less than 2 byes?
CREATE TABLE table_61970 ( "Golden Rivers" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real )
SELECT AVG("Wins") FROM table_61970 WHERE "Byes" < '2'
What was McCain's percentage when Obama had 64.39% of the vote?
CREATE TABLE table_23846 ( "Parish" text, "Obama%" text, "Obama#" real, "McCain%" text, "McCain#" real )
SELECT "McCain%" FROM table_23846 WHERE "Obama%" = '64.39%'
what is the difference in attendance for week 5 and 9
CREATE TABLE table_204_670 ( id number, "week" number, "date" text, "opponent" text, "result" text, "record" text, "attendance" number )
SELECT ABS((SELECT "attendance" FROM table_204_670 WHERE "week" = 5) - (SELECT "attendance" FROM table_204_670 WHERE "week" = 9))
Show names for all aircraft with at least two flights.
CREATE TABLE aircraft ( aid number, name text, distance number ) CREATE TABLE employee ( eid number, name text, salary number ) CREATE TABLE flight ( flno number, origin text, destination text, distance number, departure_date time, arrival_date time, price number, aid number ) CREATE TABLE certificate ( eid number, aid number )
SELECT T2.name FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING COUNT(*) >= 2
HOw many no votes were there when there were 45.60% yes votes
CREATE TABLE table_73834 ( "meas. num" real, "passed" text, "YES votes" real, "NO votes" real, "% YES" text, "Const. Amd.?" text, "type" text, "description" text )
SELECT MIN("NO votes") FROM table_73834 WHERE "% YES" = '45.60%'
Which score has a visitor of New York?
CREATE TABLE table_6481 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
SELECT "Score" FROM table_6481 WHERE "Visitor" = 'new york'
How many countries were sampled for the Prosperity Index (2008)?
CREATE TABLE table_2202 ( "Index (Year)" text, "Author / Editor / Source" text, "Year of publication" text, "Countries sampled" real, "World Ranking (1)" text, "Ranking L.A. (2)" text )
SELECT MAX("Countries sampled") FROM table_2202 WHERE "Index (Year)" = 'Prosperity Index (2008)'
What is the name of episode number 77 in the series?
CREATE TABLE table_26548 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT "Title" FROM table_26548 WHERE "No. in series" = '77'
Show all publishers which do not have a book in 1989.
CREATE TABLE book_club ( publisher VARCHAR, YEAR VARCHAR )
SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989
What home team played against Footscray as the away team?
CREATE TABLE table_name_73 ( home_team VARCHAR, away_team VARCHAR )
SELECT home_team FROM table_name_73 WHERE away_team = "footscray"
Which High rebounds has a Score of w 81-69?
CREATE TABLE table_name_62 ( high_rebounds VARCHAR, score VARCHAR )
SELECT high_rebounds FROM table_name_62 WHERE score = "w 81-69"
Which Surface has a score of 7-5, 5-7, 6-3?
CREATE TABLE table_66438 ( "Date" text, "Tournament" text, "Surface" text, "Partnering" text, "Opponents in the final" text, "Score" text )
SELECT "Surface" FROM table_66438 WHERE "Score" = '7-5, 5-7, 6-3'
What is the Venue of the 2002 World Cup Qualification?
CREATE TABLE table_name_48 ( venue VARCHAR, competition VARCHAR )
SELECT venue FROM table_name_48 WHERE competition = "2002 world cup qualification"
With a To par of 5, what is Nick Faldo's Place?
CREATE TABLE table_name_95 ( place VARCHAR, to_par VARCHAR, player VARCHAR )
SELECT place FROM table_name_95 WHERE to_par = "–5" AND player = "nick faldo"
subject must have a screening mini _ mental state examination score of 16 _ 26 .
CREATE TABLE table_train_78 ( "id" int, "mini_mental_state_examination_mmse" int, "consent" bool, "swallow_oral_medication" bool, "rosen_modified_hachinski_ischemic_score" int, "NOUSE" float )
SELECT * FROM table_train_78 WHERE mini_mental_state_examination_mmse >= 16 AND mini_mental_state_examination_mmse <= 26
What is the date of the game with 38,062 people in attendance?
CREATE TABLE table_38784 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
SELECT "Date" FROM table_38784 WHERE "Attendance" = '38,062'
who is the the voice actor (japanese) with character name being goku
CREATE TABLE table_19134 ( "Character Name" text, "Voice Actor (Japanese)" text, "Voice Actor (English 1997 / Saban)" text, "Voice Actor (English 1998 / Pioneer)" text, "Voice Actor (English 2006 / FUNimation)" text )
SELECT "Voice Actor (Japanese)" FROM table_19134 WHERE "Character Name" = 'Goku'
What is the highest field goals when there were more than 1 touchdown and 0 extra points?
CREATE TABLE table_75348 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real )
SELECT MAX("Field goals") FROM table_75348 WHERE "Touchdowns" > '1' AND "Extra points" > '0'
Which county team has jimmy finn as the player?
CREATE TABLE table_67669 ( "Position" text, "Player" text, "County team" text, "Club team(s)" text, "Team Number" real )
SELECT "County team" FROM table_67669 WHERE "Player" = 'jimmy finn'
What are all of the states or countries with a corrected time 3:13:40:05?
CREATE TABLE table_72587 ( "Position" real, "Sail number" text, "Yacht" text, "State/country" text, "Yacht type" text, "LOA (Metres)" text, "Skipper" text, "Corrected time d:hh:mm:ss" text )
SELECT "State/country" FROM table_72587 WHERE "Corrected time d:hh:mm:ss" = '3:13:40:05'
What is the name of the swimmer in lane 6?
CREATE TABLE table_name_87 ( name VARCHAR, lane VARCHAR )
SELECT name FROM table_name_87 WHERE lane = 6
Who is the visitor when the record is 2-1?
CREATE TABLE table_41820 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" text, "Record" text )
SELECT "Visitor" FROM table_41820 WHERE "Record" = '2-1'
Name the last title for cuenca
CREATE TABLE table_73674 ( "Club" text, "Home city" text, "Stadium" text, "First season in the Serie A" real, "First season in current spell" real, "Last title" text )
SELECT "Last title" FROM table_73674 WHERE "Home city" = 'Cuenca'
What is the Galician (reintegrationist) word of the Galician (Official) is bo d a / bos d as?
CREATE TABLE table_28803 ( "English" text, "Galician ( Official )" text, "Galician ( Reintegrationist )" text, "Portuguese" text, "Spanish" text )
SELECT "Galician ( Reintegrationist )" FROM table_28803 WHERE "Galician ( Official )" = 'Bo día / Bos días'
What was the location and the crowd attendance on December 9?
CREATE TABLE table_1658 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Location Attendance" FROM table_1658 WHERE "Date" = 'December 9'
Who is the captain of Neil Warnock's team?
CREATE TABLE table_3592 ( "Team" text, "Manager" text, "Chairman" text, "Team captain" text, "Kit maker" text, "Sponsor" text )
SELECT "Team captain" FROM table_3592 WHERE "Manager" = 'Neil Warnock'
what is the 3-dart average of raymond van barneveld
CREATE TABLE table_23654 ( "Player" text, "Played" real, "Legs Won" real, "Legs Lost" real, "100+" real, "140+" real, "180s" real, "High Checkout" real, "3-dart Average" text )
SELECT "3-dart Average" FROM table_23654 WHERE "Player" = 'Raymond van Barneveld'
What are the names of the songs whose rating is below the rating of all songs in English?
CREATE TABLE files ( f_id number, artist_name text, file_size text, duration text, formats text ) CREATE TABLE genre ( g_name text, rating text, most_popular_in text ) CREATE TABLE song ( song_name text, artist_name text, country text, f_id number, genre_is text, rating number, languages text, releasedate time, resolution number ) CREATE TABLE artist ( artist_name text, country text, gender text, preferred_genre text )
SELECT song_name FROM song WHERE rating < (SELECT MIN(rating) FROM song WHERE languages = 'english')
What is the most bronze a team with more than 2 silvers has?
CREATE TABLE table_name_22 ( bronze INTEGER, silver INTEGER )
SELECT MAX(bronze) FROM table_name_22 WHERE silver > 2
What is the earliest episode aired on 8 June 2008?
CREATE TABLE table_8560 ( "Episode Number" real, "Air Date" text, "Event 1" text, "Event 2" text, "Event 3" text, "Event 4" text )
SELECT MIN("Episode Number") FROM table_8560 WHERE "Air Date" = '8 june 2008'
When the transmission make/type/speed is eaton fs 5306-a manual synchromesh 6 speed, what is the value of the gcm (kg) technical capacity?
CREATE TABLE table_245 ( "Model" text, "Engine make/Capacity" text, "Power kW@rpm" text, "Torque Nm@rpm" text, "Transmission Make/Type/Speed" text, "GVM (kg) Technical Capacity" text, "GCM (kg) Technical Capacity" text )
SELECT "GCM (kg) Technical Capacity" FROM table_245 WHERE "Transmission Make/Type/Speed" = 'Eaton FS 5306-A Manual Synchromesh 6 Speed'
Name the sumof points for year less than 1994 and chassis of lola lc89b
CREATE TABLE table_name_47 ( points INTEGER, year VARCHAR, chassis VARCHAR )
SELECT SUM(points) FROM table_name_47 WHERE year < 1994 AND chassis = "lola lc89b"
When 24th is the final placing how many wins are there?
CREATE TABLE table_26815674_1 ( wins VARCHAR, final_placing VARCHAR )
SELECT COUNT(wins) FROM table_26815674_1 WHERE final_placing = "24th"
Bar chart of minimal price from each name
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, MIN(Price) FROM Products GROUP BY Name
What is the largest number of episodes for a 1989 season dvd release?
CREATE TABLE table_1753 ( "DVD Title" text, "No. of Discs" real, "Year" text, "No. of Episodes" real, "Region 1" text, "Region 2" text, "Region 4" text )
SELECT MAX("No. of Episodes") FROM table_1753 WHERE "Year" = '1989'
What was the record for the game on Sept. 14?
CREATE TABLE table_16677887_2 ( record VARCHAR, date VARCHAR )
SELECT record FROM table_16677887_2 WHERE date = "Sept. 14"
Name the number of score for january 12
CREATE TABLE table_29931 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT COUNT("Score") FROM table_29931 WHERE "Date" = 'January 12'
What is the largest number of laps with a Grid larger than 14, a Time/Retired of + 2 laps, and a Driver of helmut marko?
CREATE TABLE table_78424 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT MAX("Laps") FROM table_78424 WHERE "Grid" > '14' AND "Time/Retired" = '+ 2 laps' AND "Driver" = 'helmut marko'
When Star Zemba was featured in Week 3, who was the cyber girl for Week 2?
CREATE TABLE table_59176 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text )
SELECT "Week 2" FROM table_59176 WHERE "Week 3" = 'star zemba'
What is the Pole Position of the Brazilian Grand Prix race?
CREATE TABLE table_name_28 ( pole_position VARCHAR, race VARCHAR )
SELECT pole_position FROM table_name_28 WHERE race = "brazilian grand prix"
Name the club/province for steve borthwick
CREATE TABLE table_name_51 ( club_province VARCHAR, player VARCHAR )
SELECT club_province FROM table_name_51 WHERE player = "steve borthwick"
Which Country has a Network of channel 1?
CREATE TABLE table_40037 ( "Country" text, "Local name" text, "Host" text, "Network" text, "Date premiered" text )
SELECT "Country" FROM table_40037 WHERE "Network" = 'channel 1'
What player belongs to Northwestern College?
CREATE TABLE table_name_34 ( player VARCHAR, college VARCHAR )
SELECT player FROM table_name_34 WHERE college = "northwestern"
What surface has 2 as a cage dive?
CREATE TABLE table_70261 ( "1-person dive" text, "2-person dive" text, "3-person dive" text, "Surface" text, "Cage dive" text, "Seal/turtle decoy" text, "Catch release" text, "Attached camera" text, "Remote camera" text )
SELECT "Surface" FROM table_70261 WHERE "Cage dive" = '2'
For a team 2 of Al-Faisaly, what was the 2nd leg?
CREATE TABLE table_name_96 ( team_2 VARCHAR )
SELECT 2 AS nd_leg FROM table_name_96 WHERE team_2 = "al-faisaly"
WHAT IS THE TEAM FOR DECEMBER 30?
CREATE TABLE table_45758 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Team" FROM table_45758 WHERE "Date" = 'december 30'
Name the total number of league cup for mark roberts
CREATE TABLE table_17598822_11 ( league VARCHAR, player VARCHAR )
SELECT COUNT(league) AS Cup FROM table_17598822_11 WHERE player = "Mark Roberts"
How many times was Scott Oelslager a representative?
CREATE TABLE table_3477 ( "District" real, "Representative" text, "Party" text, "Residence" text, "First Elected" text, "Term Limited" real )
SELECT COUNT("Residence") FROM table_3477 WHERE "Representative" = 'Scott Oelslager'
Name who directed the episode that was viewed by 4.22 million
CREATE TABLE table_18569389_1 ( directed_by VARCHAR, us_viewers__million_ VARCHAR )
SELECT directed_by FROM table_18569389_1 WHERE us_viewers__million_ = "4.22"
What is the largest area with a Code of 66097, and a Region larger than 6?
CREATE TABLE table_77858 ( "Code" real, "Type" text, "Name" text, "Area (km 2 )" real, "Population" real, "Regional County Municipality" text, "Metropolitan area" text, "Region" real )
SELECT MAX("Area (km 2 )") FROM table_77858 WHERE "Code" = '66097' AND "Region" > '6'
What's the address of the union bank of California tower?
CREATE TABLE table_name_27 ( street_address VARCHAR, name VARCHAR )
SELECT street_address FROM table_name_27 WHERE name = "union bank of california tower"
What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold?
CREATE TABLE table_name_23 ( rank INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR, silver VARCHAR )
SELECT MIN(rank) FROM table_name_23 WHERE bronze > 0 AND silver = 8 AND total = 19 AND gold < 9
Draw a bar chart for what are the names and average prices of products for manufacturers whose products cost on average 150 or more?, and list in descending by the Name.
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, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC
Which OWGR pts has Dates of may 10-13?
CREATE TABLE table_name_37 ( owgr_pts INTEGER, dates VARCHAR )
SELECT SUM(owgr_pts) FROM table_name_37 WHERE dates = "may 10-13"
Who won in 1988 with a total less than 287?
CREATE TABLE table_64946 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text )
SELECT "Player" FROM table_64946 WHERE "Total" < '287' AND "Year(s) won" = '1988'
What is the average number of starts when 11 cuts were made and the top 10 ranking is larger than 4?
CREATE TABLE table_name_33 ( starts INTEGER, cuts_made VARCHAR, top_10 VARCHAR )
SELECT AVG(starts) FROM table_name_33 WHERE cuts_made = 11 AND top_10 > 4
Which competition has a Year of 2008, a Surface of carpet, and a Date of 31 jan?
CREATE TABLE table_11058 ( "Year" real, "Competition" text, "Date" text, "Surface" text, "Location" text, "Score" text, "Result" text )
SELECT "Competition" FROM table_11058 WHERE "Year" = '2008' AND "Surface" = 'carpet' AND "Date" = '31 jan'
What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader?
CREATE TABLE table_45298 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT "Method" FROM table_45298 WHERE "Event" = 'ufc fight night: teixeira vs. bader'
List all schools and their nicknames in the order of founded year.
CREATE TABLE university ( school VARCHAR, nickname VARCHAR, founded VARCHAR )
SELECT school, nickname FROM university ORDER BY founded
Tell me what the notes are for South Australia
CREATE TABLE table_1000181_1 ( notes VARCHAR, current_slogan VARCHAR )
SELECT notes FROM table_1000181_1 WHERE current_slogan = "SOUTH AUSTRALIA"
How many Laps have Grid larger than 14, and a Rider of sylvain guintoli?
CREATE TABLE table_name_51 ( laps VARCHAR, grid VARCHAR, rider VARCHAR )
SELECT COUNT(laps) FROM table_name_51 WHERE grid > 14 AND rider = "sylvain guintoli"
What is the 2009 for 2012 1R in Wimbledon and a 2011 2r?
CREATE TABLE table_name_77 ( tournament VARCHAR )
SELECT 2009 FROM table_name_77 WHERE 2012 = "1r" AND tournament = "wimbledon" AND 2011 = "2r"
In what League is the Reed School?
CREATE TABLE table_name_87 ( league VARCHAR, school VARCHAR )
SELECT league FROM table_name_87 WHERE school = "reed"
Which run 2 with final of 5:24.47?
CREATE TABLE table_47598 ( "Rank" text, "Team" text, "Run 1" text, "Run 2" text, "Run 3" text, "Final" text )
SELECT "Run 2" FROM table_47598 WHERE "Final" = '5:24.47'
Who is the leading scorer of the game on 13 February 2008?
CREATE TABLE table_name_52 ( leading_scorer VARCHAR, date VARCHAR )
SELECT leading_scorer FROM table_name_52 WHERE date = "13 february 2008"
What is the rank that shows 426 games?
CREATE TABLE table_67019 ( "Rank" text, "Games" text, "Player" text, "Club" text, "Career span" text )
SELECT "Rank" FROM table_67019 WHERE "Games" = '426'
what college has paul seiler as a player?
CREATE TABLE table_name_22 ( college VARCHAR, player VARCHAR )
SELECT college FROM table_name_22 WHERE player = "paul seiler"
Which League has a League Cup smaller than 0?
CREATE TABLE table_40664 ( "Player" text, "Club" text, "League" real, "FA Cup" real, "FA Trophy" real, "League Cup" real, "Total" real )
SELECT MIN("League") FROM table_40664 WHERE "League Cup" < '0'
A bar chart shows the distribution of Name 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 Name, Weight FROM people
What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring?
CREATE TABLE table_name_18 ( round VARCHAR, winning_manufacturer VARCHAR, circuit VARCHAR )
SELECT COUNT(round) FROM table_name_18 WHERE winning_manufacturer = "mercedes-benz" AND circuit = "hockenheimring"
Where's the louisiana-lafayette as a visiting team?
CREATE TABLE table_26842217_4 ( site VARCHAR, visiting_team VARCHAR )
SELECT site FROM table_26842217_4 WHERE visiting_team = "Louisiana-Lafayette"
What was the high assists on April 7?
CREATE TABLE table_21453 ( "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_21453 WHERE "Date" = 'April 7'
What is the name of school that has the smallest enrollment in each state?
CREATE TABLE college ( cname text, state text, enr number ) CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text )
SELECT cname, state, MIN(enr) FROM college GROUP BY state
What message has hd 186408 as a designation HD?
CREATE TABLE table_name_75 ( message VARCHAR, designation_hd VARCHAR )
SELECT message FROM table_name_75 WHERE designation_hd = "hd 186408"
What Circuit has a Date of 25 july?
CREATE TABLE table_79039 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text )
SELECT "Circuit" FROM table_79039 WHERE "Date" = '25 july'