instruction
stringlengths
12
317
input
stringlengths
38
973
response
stringlengths
25
526
How many students have a food allergy?
CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE has_allergy ( stuid number, allergy text )
SELECT COUNT(*) FROM has_allergy AS T1 JOIN allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food"
A bar chart about what are the memories and carriers of phones?, and order by the Y-axis in descending.
CREATE TABLE phone_market ( Market_ID int, Phone_ID text, Num_of_stock int ) CREATE TABLE phone ( Name text, Phone_ID int, Memory_in_G int, Carrier text, Price real ) CREATE TABLE market ( Market_ID int, District text, Num_of_employees int, Num_of_shops real, Ranking int )
SELECT Carrier, SUM(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY SUM(Memory_in_G) DESC
What is the maximum number of 2006 subscribers for Glo Mobile?
CREATE TABLE table_29395291_2 ( subscribers__2006___thousands_ INTEGER, provider VARCHAR )
SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Glo Mobile"
What is the Revenue of the population of more than 1,499,402, with Spending (millions) of $13,986?
CREATE TABLE table_38365 ( "State" text, "Revenue (millions)" text, "Population" real, "Revenue per capita" text, "Spending (millions)" text, "Spending per capita" text, "Net contribution per capita" text )
SELECT "Revenue (millions)" FROM table_38365 WHERE "Population" > '1,499,402' AND "Spending (millions)" = '$13,986'
What is the Year of the Player weighing 185?
CREATE TABLE table_60136 ( "Name" text, "Position" text, "Height" text, "Weight" real, "Year" text, "Home Town" text )
SELECT "Year" FROM table_60136 WHERE "Weight" = '185'
Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4
CREATE TABLE table_name_3 ( against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR )
SELECT MIN(against) FROM table_name_3 WHERE losses = 4 AND draws = 0 AND wins > 14
What series has a season after 2008, super leg final as the format, and conference v as the conference?
CREATE TABLE table_9255 ( "Season" real, "Conference" text, "Champion" text, "Format" text, "Series" text, "Runner-Up" text )
SELECT "Series" FROM table_9255 WHERE "Season" > '2008' AND "Format" = 'super leg final' AND "Conference" = 'conference v'
What is the theme of the coin from before 2006?
CREATE TABLE table_11140 ( "Year" real, "Theme" text, "Artist" text, "Composition" text, "Mintage" real, "Issue Price" text )
SELECT "Theme" FROM table_11140 WHERE "Year" < '2006'
Which Position has a Competition of world championships, and a Year larger than 1997?
CREATE TABLE table_name_27 ( position VARCHAR, competition VARCHAR, year VARCHAR )
SELECT position FROM table_name_27 WHERE competition = "world championships" AND year > 1997
What is the defective year for the eighth numbered month?
CREATE TABLE table_28985631_1 ( defective_year VARCHAR, numbered_month VARCHAR )
SELECT defective_year FROM table_28985631_1 WHERE numbered_month = "Eighth"
Find all the vocal types.
CREATE TABLE vocals ( TYPE VARCHAR )
SELECT DISTINCT TYPE FROM vocals
What is the attendance number for December 2, 1979?
CREATE TABLE table_70615 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT SUM("Attendance") FROM table_70615 WHERE "Date" = 'december 2, 1979'
history of leukopenia, anemia, hepatic or renal dysfunction or malignancy
CREATE TABLE table_test_9 ( "id" int, "ejection_fraction_ef" int, "anemia" bool, "child_pugh_class" string, "systolic_blood_pressure_sbp" int, "leukopenia" int, "heart_disease" bool, "stroke" bool, "av_block" bool, "renal_disease" bool, "hepatic_disease" bool, "estimated_glomerular_filtration_rate_egfr" int, "thrombocytopenia" float, "hemodynamic_instability" bool, "heart_rate" int, "malignancy" bool, "pr" int, "plt" int, "NOUSE" float )
SELECT * FROM table_test_9 WHERE leukopenia = 1 OR anemia = 1 OR hepatic_disease = 1 OR renal_disease = 1 OR malignancy = 1
How many events did clay win?
CREATE TABLE table_66228 ( "!Event" real, "Round" text, "Surface" text, "Winner" text, "Opponent" text, "Result" text )
SELECT COUNT("!Event") FROM table_66228 WHERE "Winner" = 'clay'
what is the play when the company is cyprus theatre organisation?
CREATE TABLE table_79409 ( "play" text, "author" text, "company" text, "base" text, "country" text )
SELECT "play" FROM table_79409 WHERE "company" = 'cyprus theatre organisation'
What is the highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27?
CREATE TABLE table_name_40 ( lost INTEGER, points_1 VARCHAR, drawn VARCHAR, goals_against VARCHAR )
SELECT MAX(lost) FROM table_name_40 WHERE drawn < 6 AND goals_against < 44 AND points_1 = "27"
In what Year was the Game on September 26?
CREATE TABLE table_name_54 ( year INTEGER, date VARCHAR )
SELECT SUM(year) FROM table_name_54 WHERE date = "september 26"
Give swimsuit scores of participants 8.847 in preliminary
CREATE TABLE table_21281 ( "Country" text, "Preliminary" text, "Interview" text, "Swimsuit" text, "Evening Gown" text, "Average" text )
SELECT "Swimsuit" FROM table_21281 WHERE "Preliminary" = '8.847'
What is Round 4 when Round 6+ is triple, Round 5 is triple and Round 3 is single?
CREATE TABLE table_40927 ( "From" real, "Goal" text, "Round 1" text, "Round 2" text, "Round 3" text, "Round 4" text, "Round 5" text, "Round 6+" text )
SELECT "Round 4" FROM table_40927 WHERE "Round 6+" = 'triple' AND "Round 5" = 'triple' AND "Round 3" = 'single'
What is the model number for the GPU and 320 mhz?
CREATE TABLE table_44059 ( "Model number" text, "sSpec number" text, "Frequency" text, "GPU frequency" text, "L2 cache" text, "I/O bus" text, "Memory" text, "Voltage" text, "Socket" text, "Release date" text, "Part number(s)" text, "Release price ( USD )" text )
SELECT "Model number" FROM table_44059 WHERE "GPU frequency" = '320 mhz'
Which game modes have Pinyin of ch oj m l u sh ji ?
CREATE TABLE table_name_13 ( game_modes VARCHAR, pinyin VARCHAR )
SELECT game_modes FROM table_name_13 WHERE pinyin = "chāojí mǎlìōu shìjiè"
What is the variant when Alexander was the bodybuilder?
CREATE TABLE table_28035004_1 ( variant VARCHAR, bodybuilder VARCHAR )
SELECT variant FROM table_28035004_1 WHERE bodybuilder = "Alexander"
During which years did Jim Farmer play for Jazz?
CREATE TABLE table_11545282_6 ( years_for_jazz VARCHAR, player VARCHAR )
SELECT years_for_jazz FROM table_11545282_6 WHERE player = "Jim Farmer"
What is Doucet when Lawrance is 36?
CREATE TABLE table_16796 ( "Ward" text, "Bello" text, "Ben-Tahir" text, "Doucet" text, "Furtenbacher" text, "Gauthier" text, "Haydon" text, "Larter" text, "Lawrance" text, "Libweshya" text, "Liscumb" text )
SELECT "Doucet" FROM table_16796 WHERE "Lawrance" = '36'
what is the 1406 komppa of asteroid which 1405 sibelius is 2737 kotka
CREATE TABLE table_21568 ( "1391 Carelia" text, "1398 Donnera" text, "1405 Sibelius" text, "1406 Komppa" text, "1407 Lindel\u00f6f" text )
SELECT "1406 Komppa" FROM table_21568 WHERE "1405 Sibelius" = '2737 Kotka'
Who is week 1 if week 3 is Natasha Budhi?
CREATE TABLE table_61292 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text )
SELECT "Week 1" FROM table_61292 WHERE "Week 3" = 'natasha budhi'
name the total number of timeslot for number 1
CREATE TABLE table_19834691_4 ( timeslot VARCHAR, _number VARCHAR )
SELECT COUNT(timeslot) FROM table_19834691_4 WHERE _number = 1
what number of dates were won by the chicago bears ?
CREATE TABLE table_204_855 ( id number, "year" number, "date" text, "winner" text, "result" text, "loser" text, "attendance" number, "location" text )
SELECT COUNT("date") FROM table_204_855 WHERE "winner" = 'chicago bears'
Name the number of year for june 30
CREATE TABLE table_23015396_1 ( year VARCHAR, date VARCHAR )
SELECT COUNT(year) FROM table_23015396_1 WHERE date = "June 30"
Is drawing tablet support part of the semi-DDM class?
CREATE TABLE table_1153898_1 ( semi_ddm_class VARCHAR, comparisons VARCHAR )
SELECT semi_ddm_class FROM table_1153898_1 WHERE comparisons = "Drawing Tablet Support"
How many appelations are in Napa Country?
CREATE TABLE APPELLATIONS ( County VARCHAR )
SELECT COUNT(*) FROM APPELLATIONS WHERE County = "Napa"
Who is the professional partner of celebrity ma gorzata foremniak with a season less than 7, an average greater than 34.66, and a rank less than 10?
CREATE TABLE table_name_52 ( professional_partner VARCHAR, celebrity VARCHAR, rank VARCHAR, season VARCHAR, average VARCHAR )
SELECT professional_partner FROM table_name_52 WHERE season < 7 AND average > 34.66 AND rank < 10 AND celebrity = "małgorzata foremniak"
pregnant female with pre _ gestational hypertension.
CREATE TABLE table_train_253 ( "id" int, "pregnancy_or_lactation" bool, "pre_eclampsia" bool, "acute_ischemia" bool, "pre_gestational_hypertension" bool, "diabetic" string, "smoking" bool, "coronary_artery_disease_cad" bool, "NOUSE" float )
SELECT * FROM table_train_253 WHERE pregnancy_or_lactation = 1 AND pre_gestational_hypertension = 1
Jack Loell had how many extra points?
CREATE TABLE table_25724294_2 ( extra_points VARCHAR, player VARCHAR )
SELECT extra_points FROM table_25724294_2 WHERE player = "Jack Loell"
What is the tournament surface at Aptos?
CREATE TABLE table_56308 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text )
SELECT "Surface" FROM table_56308 WHERE "Tournament" = 'aptos'
Who is the trainer of the winner skylighter?
CREATE TABLE table_name_5 ( trainer VARCHAR, winner VARCHAR )
SELECT trainer FROM table_name_5 WHERE winner = "skylighter"
How many times is the total less than 15, rank less than 5, bronze is 4 and gold smaller than 3?
CREATE TABLE table_name_23 ( silver VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR, rank VARCHAR )
SELECT COUNT(silver) FROM table_name_23 WHERE total < 15 AND rank < 5 AND bronze = 4 AND gold < 3
What was the date of the Circuit of Indianapolis?
CREATE TABLE table_53248 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text )
SELECT "Date" FROM table_53248 WHERE "Circuit" = 'indianapolis'
What is the number of matches with an average larger than 6.33, with a rank of 1?
CREATE TABLE table_65442 ( "Rank" real, "Player" text, "County" text, "Tally" text, "Total" real, "Matches" real, "Average" real )
SELECT SUM("Matches") FROM table_65442 WHERE "Average" > '6.33' AND "Rank" = '1'
Name the sport for puerto rico and year of 2000
CREATE TABLE table_name_44 ( sport VARCHAR, country VARCHAR, year VARCHAR )
SELECT sport FROM table_name_44 WHERE country = "puerto rico" AND year = 2000
Which label is from the Germany region?
CREATE TABLE table_71781 ( "Date" text, "Region" text, "Label" text, "Catalogue" text, "Format" text )
SELECT "Label" FROM table_71781 WHERE "Region" = 'germany'
What is the issued serial given in 1966?
CREATE TABLE table_49496 ( "Issued" real, "Type" text, "Design" text, "Serial format" text, "Serials issued" text )
SELECT "Serials issued" FROM table_49496 WHERE "Issued" = '1966'
Who is shown for the 2nd (m) of 220.5?
CREATE TABLE table_19328 ( "Rank" real, "Name" text, "Nationality" text, "1st (m)" text, "2nd (m)" text, "Points" text, "Overall WC points (Rank)" text )
SELECT "Name" FROM table_19328 WHERE "2nd (m)" = '220.5'
Which Captain 2 has a Result of final?
CREATE TABLE table_76555 ( "Date" text, "Captain 1" text, "Team 2" text, "Captain 2" text, "Venue" text, "Result" text )
SELECT "Captain 2" FROM table_76555 WHERE "Result" = 'final'
What reactor type that has a commercial operation of , and a tianwan-7 unit?
CREATE TABLE table_14736 ( "Unit" text, "Reactor type" text, "Net capacity" text, "Gross capacity" text, "Construction started" text, "Electricity grid" text, "Commercial operation" text, "Shutdown" text )
SELECT "Reactor type" FROM table_14736 WHERE "Commercial operation" = '—' AND "Unit" = 'tianwan-7'
With less than 7 Silver medals, how many Gold medals did Canada receive?
CREATE TABLE table_name_30 ( gold INTEGER, nation VARCHAR, silver VARCHAR )
SELECT MAX(gold) FROM table_name_30 WHERE nation = "canada" AND silver < 7
How many earnings values are associated with players who had a best finish of T38?
CREATE TABLE table_28540609_2 ( earnings__ VARCHAR, best_finish VARCHAR )
SELECT COUNT(earnings__) AS €_ FROM table_28540609_2 WHERE best_finish = "T38"
who was his first opponent in the 2006 fifa world cup qualification round ?
CREATE TABLE table_204_774 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text )
SELECT "opponent" FROM table_204_774 WHERE "competition" = '2006 fifa world cup qualification' ORDER BY "date" LIMIT 1
What team was the opponent when the score was 7 1?
CREATE TABLE table_71565 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
SELECT "Opponent" FROM table_71565 WHERE "Score" = '7–1'
what 's the number of schools represented in the table ?
CREATE TABLE table_203_721 ( id number, "school" text, "location" text, "control" text, "type" text, "enrollment" number, "founded" number )
SELECT COUNT("school") FROM table_203_721
What are the lowest points with 2013 as the year, and goals less than 0?
CREATE TABLE table_name_48 ( points INTEGER, year VARCHAR, goals VARCHAR )
SELECT MIN(points) FROM table_name_48 WHERE year = "2013" AND goals < 0
What was the drawn amount for teams with points of 12 and played smaller than 10?
CREATE TABLE table_name_13 ( drawn INTEGER, points VARCHAR, played VARCHAR )
SELECT AVG(drawn) FROM table_name_13 WHERE points = 12 AND played < 10
When the Score was 4-10, what was the Attendance?
CREATE TABLE table_54492 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
SELECT "Attendance" FROM table_54492 WHERE "Score" = '4-10'
What tournament location has south korea as the country?
CREATE TABLE table_46089 ( "Year" real, "Dates" text, "Champion" text, "Country" text, "Winning score" text, "To par" text, "Margin of victory" text, "Tournament location" text, "Purse ( $ )" text, "Winner's share ($)" text )
SELECT "Tournament location" FROM table_46089 WHERE "Country" = 'south korea'
Jimmie Lee Sloas was the composer for what album?
CREATE TABLE table_name_44 ( album VARCHAR, composer_s_ VARCHAR )
SELECT album FROM table_name_44 WHERE composer_s_ = "jimmie lee sloas"
What is the total capacity of venues that opened in 1999?
CREATE TABLE table_name_15 ( capacity VARCHAR, opened VARCHAR )
SELECT COUNT(capacity) FROM table_name_15 WHERE opened = "1999"
What is the total attendance when Stourbridge is the home team?
CREATE TABLE table_12564 ( "Tie no" real, "Home team" text, "Score" text, "Away team" text, "Attendance" real )
SELECT COUNT("Attendance") FROM table_12564 WHERE "Home team" = 'stourbridge'
What is every year with average start of 27.2?
CREATE TABLE table_2597876_2 ( year VARCHAR, avg_start VARCHAR )
SELECT year FROM table_2597876_2 WHERE avg_start = "27.2"
Who was the Republican when the green was Harold Burbank?
CREATE TABLE table_name_27 ( republican VARCHAR, green VARCHAR )
SELECT republican FROM table_name_27 WHERE green = "harold burbank"
What is the lowest Against when the played is more than 10?
CREATE TABLE table_name_4 ( against INTEGER, played INTEGER )
SELECT MIN(against) FROM table_name_4 WHERE played > 10
What was the venue after 2012?
CREATE TABLE table_79308 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text )
SELECT "Venue" FROM table_79308 WHERE "Year" > '2012'
which month were the most games played in ?
CREATE TABLE table_203_368 ( id number, "date" text, "opponent" text, "venue" text, "result" text )
SELECT "date" FROM table_203_368 GROUP BY "date" ORDER BY COUNT("opponent") DESC LIMIT 1
When was there 8.9% Green-Communist?
CREATE TABLE table_19475 ( "Date Released" text, "Polling institute" text, "Socialist" text, "Social Democratic" text, "Peoples Party" text, "Green-Communist" text, "Left Bloc" text, "Lead" text )
SELECT "Date Released" FROM table_19475 WHERE "Green-Communist" = '8.9%'
What are the last names of students studying major 50?
CREATE TABLE voting_record ( stuid number, registration_date text, election_cycle text, president_vote number, vice_president_vote number, secretary_vote number, treasurer_vote number, class_president_vote number, class_senator_vote number ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text )
SELECT lname FROM student WHERE major = 50
Return a bar chart about the distribution of name and meter_100 , and list in asc by the total number.
CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int )
SELECT name, meter_100 FROM swimmer ORDER BY meter_100
What is the to par of the player with more than $4,100 and a score of 69-67-72-70=278?
CREATE TABLE table_48568 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real )
SELECT "To par" FROM table_48568 WHERE "Money ( $ )" > '4,100' AND "Score" = '69-67-72-70=278'
Name the record with opponent of christian nielson
CREATE TABLE table_68933 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Time" text, "Location" text )
SELECT "Record" FROM table_68933 WHERE "Opponent" = 'christian nielson'
What was the score of the golfer representing Scotland?
CREATE TABLE table_62666 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Score" FROM table_62666 WHERE "Country" = 'scotland'
Which Opponent has a Time of 4:51?
CREATE TABLE table_name_84 ( opponent VARCHAR, time VARCHAR )
SELECT opponent FROM table_name_84 WHERE time = "4:51"
What body is at the World Championship for Underwater Target shooting?
CREATE TABLE table_66468 ( "Sport" text, "Body" text, "Year" text, "Event type" text, "Location" text, "Nations" text )
SELECT "Body" FROM table_66468 WHERE "Event type" = 'world championship' AND "Sport" = 'underwater target shooting'
What is the current club with more than 368 apps and a debut year earlier than 1994?
CREATE TABLE table_name_51 ( current_club VARCHAR, apps VARCHAR, debut_year VARCHAR )
SELECT current_club FROM table_name_51 WHERE apps > 368 AND debut_year < 1994
What is the upstream with the price 65 chf?
CREATE TABLE table_44728 ( "Internet Plan" text, "Downstream" text, "Upstream" text, "Bandwidth Included" text, "Price" text )
SELECT "Upstream" FROM table_44728 WHERE "Price" = '65 chf'
What is the value of Monday August 24 if the rider is Benny Smith 600cc Yamaha?
CREATE TABLE table_23465864_5 ( mon_24_aug VARCHAR, rider VARCHAR )
SELECT mon_24_aug FROM table_23465864_5 WHERE rider = "Benny Smith 600cc Yamaha"
Which location has a method of decision and Nikos Tsoukalas for an opponent?
CREATE TABLE table_61731 ( "Result" text, "Record" text, "Opponent" text, "Method" text, "Location" text )
SELECT "Location" FROM table_61731 WHERE "Method" = 'decision' AND "Opponent" = 'nikos tsoukalas'
What type of song is larger than 8 and named ?
CREATE TABLE table_name_50 ( kind_of_the_song VARCHAR, number VARCHAR, name_of_the_song VARCHAR )
SELECT kind_of_the_song FROM table_name_50 WHERE number > 8 AND name_of_the_song = "實情"
Name the interview for peru delegate
CREATE TABLE table_287 ( "Delegate" text, "Interview" text, "Swimsuit" text, "Evening Gown" text, "Average" text )
SELECT "Interview" FROM table_287 WHERE "Delegate" = 'Peru'
List the distinct director of all films.
CREATE TABLE film ( Director VARCHAR )
SELECT DISTINCT Director FROM film
Find the ship type that are used by both ships with Panama and Malta flags.
CREATE TABLE ship ( TYPE VARCHAR, flag VARCHAR )
SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta'
Which team has a match played of 10 4?
CREATE TABLE table_73343 ( "Team" text, "Stadium" text, "Match played" text, "Highest" real, "Lowest" real, "Average" real )
SELECT "Team" FROM table_73343 WHERE "Match played" = '10 4'
systolic bp >= 170 mmhg
CREATE TABLE table_train_109 ( "id" int, "serum_potassium" float, "systolic_blood_pressure_sbp" int, "body_mass_index_bmi" float, "hypertension" bool, "NOUSE" float )
SELECT * FROM table_train_109 WHERE systolic_blood_pressure_sbp >= 170
What are the result description of the project whose detail is 'sint'?
CREATE TABLE Projects ( project_id VARCHAR, project_details VARCHAR ) CREATE TABLE Project_outcomes ( outcome_code VARCHAR, project_id VARCHAR ) CREATE TABLE Research_outcomes ( outcome_description VARCHAR, outcome_code VARCHAR )
SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint'
the top ranked nation for total medals won
CREATE TABLE table_204_822 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT "nation" FROM table_204_822 ORDER BY "total" DESC LIMIT 1
In Ascot (UK), what was the result?
CREATE TABLE table_14981555_3 ( result VARCHAR, venue VARCHAR )
SELECT result FROM table_14981555_3 WHERE venue = "Ascot (UK)"
What is the age group for figure skating?
CREATE TABLE table_68955 ( "Sport" text, "Competition name" text, "Competing entities" text, "Age groups" text, "Held every" text )
SELECT "Age groups" FROM table_68955 WHERE "Sport" = 'figure skating'
What race was there in the formula one series when there was a test driver?
CREATE TABLE table_36576 ( "Season" real, "Series" text, "Team" text, "Races" text, "Wins" text, "Poles" text, "F/Laps" text, "Podiums" text, "Points" text, "Position" text )
SELECT "Races" FROM table_36576 WHERE "Series" = 'formula one' AND "Poles" = 'test driver'
What is the Elevator of the Elected Elevated on September 21, 1179?
CREATE TABLE table_name_50 ( elevator VARCHAR, elevated VARCHAR )
SELECT elevator FROM table_name_50 WHERE elevated = "september 21, 1179"
Which country contains the Shanghai Pudong International airport?
CREATE TABLE table_name_41 ( country VARCHAR, airport VARCHAR )
SELECT country FROM table_name_41 WHERE airport = "shanghai pudong international airport"
What department has an m.phil (physics) qualification?
CREATE TABLE table_44284 ( "College code" text, "Faculty name" text, "Designation" text, "Qualification" text, "Department" text, "Experience" text )
SELECT "Department" FROM table_44284 WHERE "Qualification" = 'm.phil (physics)'
how many license plates were issued before 1960 ?
CREATE TABLE table_203_379 ( id number, "first issued" text, "design" text, "slogan" text, "serial format" text, "serials issued" text, "notes" text )
SELECT COUNT(*) FROM table_203_379 WHERE "first issued" < 1960
any absolute contraindication to central venous catheterization
CREATE TABLE table_train_40 ( "id" int, "bone_marrow_transplant" bool, "organ_transplantation" bool, "systolic_blood_pressure_sbp" int, "do_not_resuscitate_dnr" bool, "autoimmune_disease" bool, "steroid_therapy" bool, "intention_to_central_venous_catheter" bool, "hematologic_disease" bool, "sepsis" bool, "acute_leukemia" bool, "allergy_to_ifn_gamma" bool, "neoplasma" bool, "receiving_prednisolone" int, "septic_shock" bool, "lactate" int, "NOUSE" float )
SELECT * FROM table_train_40 WHERE intention_to_central_venous_catheter = 0
what is the venue where the scores are 15.13 (103) 8.4 (52)?
CREATE TABLE table_16703 ( "Year" real, "Winners" text, "Grand Finalist" text, "Scores" text, "Venue" text, "Crowd" real, "Margin" real, "Season Result" text )
SELECT "Venue" FROM table_16703 WHERE "Scores" = '15.13 (103) – 8.4 (52)'
Which School/Club Team did Andre Wakefield play for?
CREATE TABLE table_name_34 ( school_club_team VARCHAR, player VARCHAR )
SELECT school_club_team FROM table_name_34 WHERE player = "andre wakefield"
What is the Position for the brandon wheat kings (wchl)?
CREATE TABLE table_5865 ( "Pick #" text, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text )
SELECT "Position" FROM table_5865 WHERE "College/junior/club team" = 'brandon wheat kings (wchl)'
How many people watch at Western Oval venue?
CREATE TABLE table_name_4 ( crowd VARCHAR, venue VARCHAR )
SELECT COUNT(crowd) FROM table_name_4 WHERE venue = "western oval"
What is the Winning score in 1956?
CREATE TABLE table_39386 ( "Year" real, "Championship" text, "54 holes" text, "Winning score" text, "Margin" text, "Runner(s)-up" text )
SELECT "Winning score" FROM table_39386 WHERE "Year" = '1956'
Name the performance nominated for a Capif Award.
CREATE TABLE table_78590 ( "Year" text, "Award" text, "Category" text, "Nominated" text, "Result" text )
SELECT "Nominated" FROM table_78590 WHERE "Award" = 'capif award'
where is citv located
CREATE TABLE table_1397655_1 ( city VARCHAR, station VARCHAR )
SELECT city FROM table_1397655_1 WHERE station = "CITV"
A bar graph listing the local authorities and how many local authorities provided by all stations, could you display X from high to low order?
CREATE TABLE route ( train_id int, station_id int ) CREATE TABLE train ( id int, train_number int, name text, origin text, destination text, time text, interval text ) CREATE TABLE weekly_weather ( station_id int, day_of_week text, high_temperature int, low_temperature int, precipitation real, wind_speed_mph int ) CREATE TABLE station ( id int, network_name text, services text, local_authority text )
SELECT local_authority, COUNT(local_authority) FROM station GROUP BY local_authority ORDER BY local_authority DESC
At what time was the game when they played the White Sox and had a record of 63-70?
CREATE TABLE table_37927 ( "Date" text, "Time" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
SELECT "Time" FROM table_37927 WHERE "Opponent" = 'white sox' AND "Record" = '63-70'
Bar chart x axis country y axis the average of age, and display by the names in desc.
CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int ) CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real )
SELECT Country, AVG(Age) FROM artist GROUP BY Country ORDER BY Country DESC