instruction
stringlengths
5
766
input
stringlengths
38
5.51k
response
stringlengths
4
3.91k
Where is the German Grand Prix?
CREATE TABLE table_1140082_2 ( location VARCHAR, race VARCHAR )
SELECT location FROM table_1140082_2 WHERE race = "German Grand Prix"
Show me about the correlation between ACC_Percent and All_Games_Percent in a scatter chart.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT ACC_Percent, All_Games_Percent FROM basketball_match
What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has?
CREATE TABLE table_name_67 ( bronze INTEGER, gold VARCHAR, silver VARCHAR )
SELECT SUM(bronze) FROM table_name_67 WHERE gold = 1 AND silver > 3
what is the score when the outcome is winner against yevgeny kafelnikov?
CREATE TABLE table_77185 ( "Outcome" text, "Date" text, "Championship" text, "Surface" text, "Opponent" text, "Score" text )
SELECT "Score" FROM table_77185 WHERE "Outcome" = 'winner' AND "Opponent" = 'yevgeny kafelnikov'
In what year was Xavier Malisse the runner-up with scores of 4 6, 6 4, [8 10]?
CREATE TABLE table_41525 ( "Outcome" text, "Year" text, "Championship" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text )
SELECT "Year" FROM table_41525 WHERE "Outcome" = 'runner-up' AND "Score" = '4–6, 6–4, [8–10]'
What is the Selsdon for the 17:19 Coombe Road?
CREATE TABLE table_name_14 ( selsdon VARCHAR, coombe_road VARCHAR )
SELECT selsdon FROM table_name_14 WHERE coombe_road = "17:19"
Name the agg for seba united
CREATE TABLE table_name_12 ( agg VARCHAR, team_1 VARCHAR )
SELECT agg FROM table_name_12 WHERE team_1 = "seba united"
What is the production code for episode number 86 in the series?
CREATE TABLE table_26544 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT MIN("Production code") FROM table_26544 WHERE "No. in series" = '86'
On what date did they have a record of 12-17?
CREATE TABLE table_15731 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT "Date" FROM table_15731 WHERE "Record" = '12-17'
How many current drivers, as of March 20, 2010 does Denmark have?
CREATE TABLE table_19487922_2 ( current_march_20 VARCHAR, _2010 VARCHAR, country VARCHAR )
SELECT current_march_20, _2010 FROM table_19487922_2 WHERE country = "Denmark"
how many points did portugal score in the 1994 europeans men 's handball championship preliminary round ?
CREATE TABLE table_200_4 ( id number, "team" text, "p" number, "w" number, "t" number, "l" number, "gf" number, "ga" number, "gd" number, "pts." number )
SELECT "pts." FROM table_200_4 WHERE "team" = 'portugal'
What is the average finish for winnings of $1,400?
CREATE TABLE table_22582 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text )
SELECT "Avg. Finish" FROM table_22582 WHERE "Winnings" = '$1,400'
How many rounds were on July 10?
CREATE TABLE table_24626 ( "Round" real, "Date" text, "City and venue" text, "Winner" text, "Runner-up" text, "3rd placed" text, "4th placed" text, "Results" text )
SELECT COUNT("Round") FROM table_24626 WHERE "Date" = 'July 10'
Who drove the car with the n175 chassis in round 13?
CREATE TABLE table_53386 ( "Constructor" text, "Chassis" text, "Engine" text, "Tyre" text, "Driver" text, "Rounds" text )
SELECT "Driver" FROM table_53386 WHERE "Chassis" = 'n175' AND "Rounds" = '13'
Who directed the episode where u.s. viewers (million) is 12.90?
CREATE TABLE table_16244 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Featured character(s)" text, "Original air date" text, "U.S. viewers (million)" text )
SELECT "Directed by" FROM table_16244 WHERE "U.S. viewers (million)" = '12.90'
what's the chroma format with scalable modes being snr- or spatial-scalable and intra dc precbeingion being 8, 9, 10
CREATE TABLE table_1376890_2 ( chroma_format VARCHAR, scalable_modes VARCHAR, intra_dc_precision VARCHAR )
SELECT chroma_format FROM table_1376890_2 WHERE scalable_modes = "SNR- or spatial-scalable" AND intra_dc_precision = "8, 9, 10"
What is the Class AA in the 2010-11 school year with a class AAA of Giddings?
CREATE TABLE table_38475 ( "School Year" text, "Class A" text, "Class AA" text, "Class AAA" text, "Class AAAA" text, "Class AAAAA" text )
SELECT "Class AA" FROM table_38475 WHERE "Class AAA" = 'giddings' AND "School Year" = '2010-11'
What's the location when the branding is 1116 DXAS Zamboanga?
CREATE TABLE table_65419 ( "Branding" text, "Call-Sign" text, "Frequency" text, "Power (kw)" text, "Location" text )
SELECT "Location" FROM table_65419 WHERE "Branding" = '1116 dxas zamboanga'
how many were held at hongkou stadium ?
CREATE TABLE table_204_770 ( id number, "season" number, "date" text, "jia-a/csl winner" text, "result" text, "fa cup winner" text, "scorers" text, "stadium" text )
SELECT COUNT(*) FROM table_204_770 WHERE "stadium" = 'hongkou stadium'
What is the name of the Original artist when the week # is top 16 (8 men)?
CREATE TABLE table_name_15 ( original_artist VARCHAR, week__number VARCHAR )
SELECT original_artist FROM table_name_15 WHERE week__number = "top 16 (8 men)"
Show weight from each date of birth, list X in desc order.
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 Date_of_Birth, Weight FROM people ORDER BY Date_of_Birth DESC
Name the nation when bronze is less than 4 and the total is more than 4
CREATE TABLE table_name_46 ( nation VARCHAR, total VARCHAR, bronze VARCHAR )
SELECT nation FROM table_name_46 WHERE total > 4 AND bronze < 4
What character did actor Damien Richardson play?
CREATE TABLE table_name_50 ( character VARCHAR, actor_actress VARCHAR )
SELECT character FROM table_name_50 WHERE actor_actress = "damien richardson"
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of manufacturer , and group by attribute name, I want to show in desc by the x axis.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC
What is the margin at the Nabisco Championship?
CREATE TABLE table_31649 ( "Year" real, "Championship" text, "Winning score" text, "Margin" text, "Runner(s)-up" text )
SELECT "Margin" FROM table_31649 WHERE "Championship" = 'nabisco championship'
Which music is jive?
CREATE TABLE table_38756 ( "Couple" text, "Score" text, "Style" text, "Music" text, "Result" text )
SELECT "Music" FROM table_38756 WHERE "Style" = 'jive'
Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?
CREATE TABLE table_name_17 ( wins INTEGER, ties VARCHAR, win__percentage VARCHAR, name VARCHAR )
SELECT SUM(wins) FROM table_name_17 WHERE win__percentage < 0.8270000000000001 AND name = "rick mirer" AND ties < 1
How many Gold medals did Great Britain with a Total of more than 2 medals receive?
CREATE TABLE table_43387 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MIN("Gold") FROM table_43387 WHERE "Nation" = 'great britain' AND "Total" > '2'
Find the first name and age of the students who are playing both Football and Lacrosse.
CREATE TABLE Student ( fname VARCHAR, age VARCHAR, StuID VARCHAR, SportName VARCHAR ) CREATE TABLE Sportsinfo ( fname VARCHAR, age VARCHAR, StuID VARCHAR, SportName VARCHAR )
SELECT fname, age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = "Football" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = "Lacrosse")
What is the Attendance when Vida is the Away team?
CREATE TABLE table_8371 ( "Date" text, "Home" text, "Score" text, "Away" text, "Attendance" real )
SELECT AVG("Attendance") FROM table_8371 WHERE "Away" = 'vida'
Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18?
CREATE TABLE table_name_89 ( loser VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR )
SELECT loser FROM table_name_89 WHERE location = "schaefer stadium" AND winner = "new england patriots" AND date = "october 18"
What was Tom Kite's to par?
CREATE TABLE table_7771 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "To par" FROM table_7771 WHERE "Player" = 'tom kite'
What is the total number of win % when John Gartin is coach, the crew is varsity 8+, and the year is 2005?
CREATE TABLE table_38332 ( "Year" text, "Coach" text, "Crew" text, "Record" text, "Win %" real )
SELECT SUM("Win %") FROM table_38332 WHERE "Coach" = 'john gartin' AND "Crew" = 'varsity 8+' AND "Year" = '2005'
Bar graph to show maximal age from different sex, and could you list Sex from high to low order?
CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) )
SELECT Sex, MAX(Age) FROM Student GROUP BY Sex ORDER BY Sex DESC
In what bowl game was the result Oklahoma 31, Stanford 27?
CREATE TABLE table_23718905_6 ( bowl_game VARCHAR, matchup_results VARCHAR )
SELECT bowl_game FROM table_23718905_6 WHERE matchup_results = "Oklahoma 31, Stanford 27"
What is the RAvg of the year with Ratt of 9?
CREATE TABLE table_name_27 ( ravg VARCHAR, ratt VARCHAR )
SELECT ravg FROM table_name_27 WHERE ratt = "9"
What is Opponent, when Attendance is 58,836?
CREATE TABLE table_49308 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT "Opponent" FROM table_49308 WHERE "Attendance" = '58,836'
What is the highest round of the player with an overall of 152?
CREATE TABLE table_name_38 ( round INTEGER, overall VARCHAR )
SELECT MAX(round) FROM table_name_38 WHERE overall = 152
show me a good arabic restaurant in mountain view ?
CREATE TABLE restaurant ( id int, name varchar, food_type varchar, city_name varchar, rating "decimal ) CREATE TABLE geographic ( city_name varchar, county varchar, region varchar ) CREATE TABLE location ( restaurant_id int, house_number int, street_name varchar, city_name varchar )
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
What was the discipline for the euroboss championship?
CREATE TABLE table_8627 ( "Discipline" text, "Championship" text, "Circuit" text, "Session" text, "Cause" text )
SELECT "Discipline" FROM table_8627 WHERE "Championship" = 'euroboss'
Which school was the drafted player from in a pick larger than 181?
CREATE TABLE table_37167 ( "Round" real, "Pick" real, "Player" text, "Position" text, "School" text )
SELECT "School" FROM table_37167 WHERE "Pick" > '181'
Which Opposition has a City of taunton?
CREATE TABLE table_name_17 ( opposition VARCHAR, city VARCHAR )
SELECT opposition FROM table_name_17 WHERE city = "taunton"
How many students are affected by each allergy type Visualize by bar chart, order by the X-axis in ascending.
CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) )
SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType ORDER BY AllergyType
How many civilians died in the conflict that left 178, excluding foreigners, dead?
CREATE TABLE table_name_19 ( civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR )
SELECT civilian_deaths FROM table_name_19 WHERE total_deaths__not_including_foreigners_ = "178"
Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?
CREATE TABLE table_name_57 ( evening_gown VARCHAR, swimsuit VARCHAR, average VARCHAR )
SELECT COUNT(evening_gown) FROM table_name_57 WHERE swimsuit < 9.36 AND average < 9.23
What is the density of yushan county?
CREATE TABLE table_1300525_1 ( density VARCHAR, english_name VARCHAR )
SELECT COUNT(density) FROM table_1300525_1 WHERE english_name = "Yushan County"
What is the Category of the Rodez, France Tournament?
CREATE TABLE table_name_69 ( category VARCHAR, tournament VARCHAR )
SELECT category FROM table_name_69 WHERE tournament = "rodez, france"
Which year did Tony Bettenhausen complete more than 200 laps?
CREATE TABLE table_71525 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real )
SELECT "Year" FROM table_71525 WHERE "Laps" > '200'
Game smaller than 34, and a December smaller than 14, and a Score of 10 - 6 has what opponent?
CREATE TABLE table_75388 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text )
SELECT "Opponent" FROM table_75388 WHERE "Game" < '34' AND "December" < '14' AND "Score" = '10 - 6'
What is the sum of the glyph with a 38 hexadecimal and a binary less than 111000?
CREATE TABLE table_name_4 ( glyph INTEGER, hexadecimal VARCHAR, binary VARCHAR )
SELECT SUM(glyph) FROM table_name_4 WHERE hexadecimal = 38 AND binary < 111000
What was the lost with tries for?
CREATE TABLE table_12828723_5 ( lost VARCHAR )
SELECT lost FROM table_12828723_5 WHERE "tries_for" = "tries_for"
What is the HDTV when the content shows a timeshift +1 di disney junior?
CREATE TABLE table_name_54 ( hdtv VARCHAR, content VARCHAR )
SELECT hdtv FROM table_name_54 WHERE content = "timeshift +1 di disney junior"
Name the average clean and jerk for snatch of 140 and total kg less than 315
CREATE TABLE table_77710 ( "Name" text, "Bodyweight" real, "Snatch" real, "Clean & jerk" real, "Total (kg)" real )
SELECT AVG("Clean & jerk") FROM table_77710 WHERE "Snatch" = '140' AND "Total (kg)" < '315'
What are the name of the players who received a card in descending order of the hours of training?
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 pname FROM player WHERE ycard = 'yes' ORDER BY hs DESC
Name the opponent for 3 6, 4 6, 6 1, 6 7 (7 9)
CREATE TABLE table_25437 ( "Edition" text, "Round" text, "Date" text, "Against" text, "Surface" text, "Opponent" text, "W\u2013L" text, "Result" text )
SELECT "Opponent" FROM table_25437 WHERE "Result" = '3–6, 4–6, 6–1, 6–7 (7–9)'
What is Plural, when Singular is tor (your)?
CREATE TABLE table_name_33 ( plural VARCHAR, singular VARCHAR )
SELECT plural FROM table_name_33 WHERE singular = "tor (your)"
Which railway has a class of 250 and year 1936?
CREATE TABLE table_5682 ( "Gauge" text, "Railway" text, "Class" text, "Works no." text, "Year" text, "Builder" text )
SELECT "Railway" FROM table_5682 WHERE "Class" = '250' AND "Year" = '1936'
What is the class of the team that has a behind of +44.780?
CREATE TABLE table_name_18 ( class VARCHAR, behind VARCHAR )
SELECT class FROM table_name_18 WHERE behind = "+44.780"
If the home team was footscray which venue did they play it?
CREATE TABLE table_name_53 ( venue VARCHAR, home_team VARCHAR )
SELECT venue FROM table_name_53 WHERE home_team = "footscray"
What is the Akira when Tiger Mask IV is Akira (10:05)?
CREATE TABLE table_52612 ( "Block A" text, "Akira" text, "Atsushi Aoki" text, "Black Tiger V" text, "Jado" text, "Milano Collection A.T." text, "Prince Devitt" text, "Tiger Mask IV" text )
SELECT "Akira" FROM table_52612 WHERE "Tiger Mask IV" = 'akira (10:05)'
What is the team with the date of vacancy 8 dec 2010?
CREATE TABLE table_29477 ( "Team" text, "Outgoing head coach" text, "Manner of departure" text, "Date of vacancy" text, "Position in table" real, "Incoming head coach" text, "Date of appointment" text )
SELECT "Team" FROM table_29477 WHERE "Date of vacancy" = '8 Dec 2010'
If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?
CREATE TABLE table_28657 ( "Name / designation" text, "Year of introduction" text, "Country of origin" text, "Primary cartridge" text, "primary user" text )
SELECT "Primary cartridge" FROM table_28657 WHERE "Year of introduction" = '1962' AND "Country of origin" = 'Denmark'
What is the Upper index Kcal/ Nm 3 of iso-butane, and a Lower index MJ/ Nm 3 smaller than 84.71?
CREATE TABLE table_name_59 ( upper_index_kcal__nm_3 VARCHAR, fuel_gas VARCHAR, lower_index_mj__nm_3 VARCHAR )
SELECT COUNT(upper_index_kcal__nm_3) FROM table_name_59 WHERE fuel_gas = "iso-butane" AND lower_index_mj__nm_3 < 84.71
WHAT IS THE WEEK WITH AN ATTENDANCE OF 75,555?
CREATE TABLE table_76431 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "TV Time" text, "Attendance" text )
SELECT SUM("Week") FROM table_76431 WHERE "Attendance" = '75,555'
What is the total championships of James Henry that has a league cup more than 1?
CREATE TABLE table_76412 ( "Name" text, "Championship" real, "FA Cup" real, "League Cup" real, "Total" real )
SELECT SUM("Championship") FROM table_76412 WHERE "League Cup" > '1' AND "Name" = 'james henry'
What year was the total 9?
CREATE TABLE table_61289 ( "Name of ground" text, "Location" text, "Year" text, "FC matches" text, "LA matches" text, "T20 matches" text, "Total" text )
SELECT "Year" FROM table_61289 WHERE "Total" = '9'
What is Petersville's census ranking?
CREATE TABLE table_21378 ( "Official Name" text, "Status" text, "Area km 2" text, "Population" real, "Census Ranking" text )
SELECT "Census Ranking" FROM table_21378 WHERE "Official Name" = 'Petersville'
Who is the home captain that played at Edgbaston?
CREATE TABLE table_name_41 ( home_captain VARCHAR, venue VARCHAR )
SELECT home_captain FROM table_name_41 WHERE venue = "edgbaston"
What is the benue house made of?
CREATE TABLE table_11464746_1 ( composition VARCHAR, house_name VARCHAR )
SELECT composition FROM table_11464746_1 WHERE house_name = "Benue"
What is Country, when To par is '+1', and when Score is '72-71-70-72=285'?
CREATE TABLE table_62605 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real )
SELECT "Country" FROM table_62605 WHERE "To par" = '+1' AND "Score" = '72-71-70-72=285'
how many times was ucla national champion ?
CREATE TABLE table_203_726 ( id number, "year" number, "national champion" text, "score" text, "runner-up" text, "host or site" text )
SELECT COUNT(*) FROM table_203_726 WHERE "national champion" = 'ucla'
What was the score where the total points was 50?
CREATE TABLE table_name_34 ( score VARCHAR, total_points VARCHAR )
SELECT score FROM table_name_34 WHERE total_points = 50
How many Atts that have Yards of 43 and a Long larger than 43?
CREATE TABLE table_name_65 ( att INTEGER, yards VARCHAR, long VARCHAR )
SELECT SUM(att) FROM table_name_65 WHERE yards = 43 AND long > 43
What year was the player with the height 2.04 born?
CREATE TABLE table_12962773_12 ( year_born INTEGER, height VARCHAR )
SELECT MIN(year_born) FROM table_12962773_12 WHERE height = "2.04"
Tell me the away team score for away team of south melbourne
CREATE TABLE table_51600 ( "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_51600 WHERE "Away team" = 'south melbourne'
what is the image quality when the multiple sessions is x, the authentication is and the date is may 15, 2007?
CREATE TABLE table_name_32 ( image_quality VARCHAR, date VARCHAR, multiple_sessions VARCHAR, authentication VARCHAR )
SELECT image_quality FROM table_name_32 WHERE multiple_sessions = "x" AND authentication = "βœ“" AND date = "may 15, 2007"
What player is picked 302 in round 11?
CREATE TABLE table_58531 ( "Pick" real, "Round" real, "Player" text, "Position" text, "School" text )
SELECT "Player" FROM table_58531 WHERE "Round" = '11' AND "Pick" = '302'
what's the total number of tasmania with new south wales crop of 190 kilotonnes
CREATE TABLE table_1057262_2 ( tasmania VARCHAR, new_south_wales VARCHAR )
SELECT COUNT(tasmania) FROM table_1057262_2 WHERE new_south_wales = 190
What chassis has a year of 1951?
CREATE TABLE table_67243 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT "Chassis" FROM table_67243 WHERE "Year" = '1951'
where is a good arabic on buchanan in san francisco ?
CREATE TABLE restaurant ( id int, name varchar, food_type varchar, city_name varchar, rating "decimal ) CREATE TABLE geographic ( city_name varchar, county varchar, region varchar ) CREATE TABLE location ( restaurant_id int, house_number int, street_name varchar, city_name varchar )
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'san francisco' AND location.street_name = 'buchanan' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
platelets >= 100000 / mm3
CREATE TABLE table_dev_35 ( "id" int, "white_blood_cell_count_wbc" int, "platelets" int, "neutrophil_count" int, "serum_creatinine" float, "albumin" float, "NOUSE" float )
SELECT * FROM table_dev_35 WHERE platelets >= 100000
Name the average number of seasons for Prva HNL of 17
CREATE TABLE table_5658 ( "Club" text, "Position in 2012\u201313" text, "First season in top division" text, "Number of seasons in top division" real, "Number of seasons in Prva HNL" real, "First season of current spell in top division" text, "Top division titles" text, "Last top division title" text )
SELECT AVG("Number of seasons in top division") FROM table_5658 WHERE "Number of seasons in Prva HNL" = '17'
Who is the BSU head coach of the tournament after 1994 with louisville as the opponent?
CREATE TABLE table_name_76 ( bsu_head_coach VARCHAR, opponent VARCHAR, year VARCHAR )
SELECT bsu_head_coach FROM table_name_76 WHERE opponent = "louisville" AND year > 1994
Name the dar for telenord
CREATE TABLE table_15887683_17 ( dar VARCHAR, television_service VARCHAR )
SELECT dar FROM table_15887683_17 WHERE television_service = "Telenord"
What 9:00 has entertainment tonight as 7:00?
CREATE TABLE table_35758 ( "7:00" text, "7:30" text, "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text, "10:30" text )
SELECT "9:00" FROM table_35758 WHERE "7:00" = 'entertainment tonight'
Name the least draw for elena dermidjean
CREATE TABLE table_14977252_2 ( draw INTEGER, artist VARCHAR )
SELECT MIN(draw) FROM table_14977252_2 WHERE artist = "Elena Dermidjean"
On what Date was the Score of 3 6, 6 4, 3 6, 6 1, 6 2
CREATE TABLE table_56197 ( "Outcome" text, "Date" real, "Championship" text, "Surface" text, "Opponent" text, "Score" text )
SELECT SUM("Date") FROM table_56197 WHERE "Score" = '3–6, 6–4, 3–6, 6–1, 6–2'
What rank is Takat riki?
CREATE TABLE table_58735 ( "Name" text, "Total" real, "First" text, "Last" text, "Highest rank" text )
SELECT "Highest rank" FROM table_58735 WHERE "Name" = 'takatōriki'
What was the total number for the Bulls when they were at Old Trafford?
CREATE TABLE table_name_27 ( bulls VARCHAR, venue VARCHAR )
SELECT COUNT(bulls) FROM table_name_27 WHERE venue = "old trafford"
Who manufactured the car that won with an average speed of 126.259 mph?
CREATE TABLE table_2595 ( "Year" text, "Day" text, "Date" text, "Driver" text, "Team" text, "Manufacturer" text, "Laps" text, "Miles (km)" text, "Race Time" text, "Average Speed (mph)" text, "Report" text )
SELECT "Manufacturer" FROM table_2595 WHERE "Average Speed (mph)" = '126.259'
How tall is the person born on 1976-12-27?
CREATE TABLE table_name_2 ( height VARCHAR, date_of_birth VARCHAR )
SELECT height FROM table_name_2 WHERE date_of_birth = "1976-12-27"
What club has tries for in the category tries for?
CREATE TABLE table_37171 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text )
SELECT "Club" FROM table_37171 WHERE "Tries for" = 'tries for'
How many caps have a Position of prop, and a Player of rui cordeiro?
CREATE TABLE table_name_6 ( caps VARCHAR, position VARCHAR, player VARCHAR )
SELECT COUNT(caps) FROM table_name_6 WHERE position = "prop" AND player = "rui cordeiro"
Who was the visiting team at Lincoln Financial Field when the final score was 24-14?
CREATE TABLE table_11235 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text )
SELECT "Visiting Team" FROM table_11235 WHERE "Stadium" = 'lincoln financial field' AND "Final Score" = '24-14'
does the malaysia open super series pay more or less than french super series ?
CREATE TABLE table_204_634 ( id number, "tour" number, "official title" text, "venue" text, "city" text, "date\nstart" text, "date\nfinish" text, "prize money\nusd" number, "report" text )
SELECT (SELECT "prize money\nusd" FROM table_204_634 WHERE "official title" = 'malaysia open super series') > (SELECT "prize money\nusd" FROM table_204_634 WHERE "official title" = 'french super series')
When did the peterborough phantoms play at a venue of home?
CREATE TABLE table_62049 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Competition" text )
SELECT "Date" FROM table_62049 WHERE "Venue" = 'home' AND "Opponent" = 'peterborough phantoms'
Who are the semi finalists on the week of 12 june, when the runner-up is listed as Lori McNeil?
CREATE TABLE table_name_43 ( semi_finalists VARCHAR, week_of VARCHAR, runner_up VARCHAR )
SELECT semi_finalists FROM table_name_43 WHERE week_of = "12 june" AND runner_up = "lori mcneil"
What was the score when their record was 35 23 15?
CREATE TABLE table_name_58 ( score VARCHAR, record VARCHAR )
SELECT score FROM table_name_58 WHERE record = "35–23–15"
What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system?
CREATE TABLE table_77069 ( "Name of System" text, "Location" text, "Traction Type" text, "Date (From)" text, "Date (To)" text )
SELECT "Date (To)" FROM table_77069 WHERE "Traction Type" = 'electric' AND "Name of System" = 'yarmouth light and power company'
Show the transaction type code that occurs the fewest times.
CREATE TABLE transactions ( transaction_id number, investor_id number, transaction_type_code text, date_of_transaction time, amount_of_transaction number, share_count text, other_details text ) CREATE TABLE sales ( sales_transaction_id number, sales_details text ) CREATE TABLE lots ( lot_id number, investor_id number, lot_details text ) CREATE TABLE purchases ( purchase_transaction_id number, purchase_details text ) CREATE TABLE ref_transaction_types ( transaction_type_code text, transaction_type_description text ) CREATE TABLE transactions_lots ( transaction_id number, lot_id number ) CREATE TABLE investors ( investor_id number, investor_details text )
SELECT transaction_type_code FROM transactions GROUP BY transaction_type_code ORDER BY COUNT(*) LIMIT 1