instruction
stringlengths
5
766
input
stringlengths
38
5.51k
response
stringlengths
4
3.91k
What episode aired on 18 April 2007?
CREATE TABLE table_10749367_3 ( _number INTEGER, air_date VARCHAR )
SELECT MIN(_number) FROM table_10749367_3 WHERE air_date = "18 April 2007"
For the Loss of Plesac (1-5), what is the Record?
CREATE TABLE table_name_63 ( record VARCHAR, loss VARCHAR )
SELECT record FROM table_name_63 WHERE loss = "plesac (1-5)"
When was the date of appointment for the manager replacing Wim Jansen?
CREATE TABLE table_20539 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text )
SELECT "Date of appointment" FROM table_20539 WHERE "Outgoing manager" = 'Wim Jansen'
What is the 1914 NER class with a d17/2 LNER class?
CREATE TABLE table_name_78 ( lner_class VARCHAR )
SELECT 1914 AS _ner_class FROM table_name_78 WHERE lner_class = "d17/2"
after december 29 what is the score?
CREATE TABLE table_75294 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT "Score" FROM table_75294 WHERE "December" > '29'
What is the average Points for a year before 1955?
CREATE TABLE table_70167 ( "Year" real, "Team" text, "Chassis" text, "Engine" text, "Points" real )
SELECT AVG("Points") FROM table_70167 WHERE "Year" < '1955'
Who was the partner that played against Serena Williams Venus Williams?
CREATE TABLE table_name_94 ( partner VARCHAR, opponents_in_the_final VARCHAR )
SELECT partner FROM table_name_94 WHERE opponents_in_the_final = "serena williams venus williams"
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the sum of price , and group by attribute name, I want to show from high to low by the x axis.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT T1.Name, T1.Price 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 Constituency number for Pandhana?
CREATE TABLE table_name_62 ( constituency_number VARCHAR, name VARCHAR )
SELECT constituency_number FROM table_name_62 WHERE name = "pandhana"
What is the cost of 972 Min Press caused 52 death?
CREATE TABLE table_name_36 ( damage__millions_usd__ VARCHAR, min_press___mbar__ VARCHAR, deaths VARCHAR )
SELECT damage__millions_usd__ FROM table_name_36 WHERE min_press___mbar__ = "972" AND deaths = "52"
Which Circuit has an Event of international procar meeting?
CREATE TABLE table_name_10 ( circuit VARCHAR, event VARCHAR )
SELECT circuit FROM table_name_10 WHERE event = "international procar meeting"
Which Catalog has a Date of july 15, 2011?
CREATE TABLE table_64721 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" real )
SELECT AVG("Catalog") FROM table_64721 WHERE "Date" = 'july 15, 2011'
What was the score of the home team when the opposing team had a score of 9.11 (65)?
CREATE TABLE table_57613 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team score" FROM table_57613 WHERE "Away team score" = '9.11 (65)'
Was it a win or loss for Wanganui in round 3?
CREATE TABLE table_26847237_1 ( win_loss VARCHAR, round__number VARCHAR )
SELECT win_loss FROM table_26847237_1 WHERE round__number = "Round 3"
what is the total number of priests that have held the job in resita ?
CREATE TABLE table_204_734 ( id number, "first name" text, "surname" text, "death year" number, "beginning of\nservice" text, "end of\nservice" text, "notes" text )
SELECT COUNT("first name") FROM table_204_734
What is the total capacity of dorms for each gender? Give me a bar chart, sort by the y-axis in descending.
CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) 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 Has_amenity ( dormid INTEGER, amenid INTEGER )
SELECT gender, SUM(student_capacity) FROM Dorm GROUP BY gender ORDER BY SUM(student_capacity) DESC
How many elected catagories are there for the district with Saxby Chambliss as the incumbent?
CREATE TABLE table_28585 ( "District" text, "Incumbent" text, "Party" text, "Elected" real, "Status" text, "Result" text )
SELECT COUNT("Elected") FROM table_28585 WHERE "Incumbent" = 'Saxby Chambliss'
When the team is yale what is max amount of times they placed fourth?
CREATE TABLE table_1313 ( "Team" text, "Titles" real, "Runner-up" real, "Third place" real, "Fourth place" real, "Years participated" real )
SELECT MAX("Fourth place") FROM table_1313 WHERE "Team" = 'Yale'
What is every 5-year peak when Emanuel Lasker, 2847 is the 10-year peak?
CREATE TABLE table_21323 ( "Rank" real, "1-year peak" text, "5-year peak" text, "10-year peak" text, "15-year peak" text, "20-year peak" text )
SELECT "5-year peak" FROM table_21323 WHERE "10-year peak" = 'Emanuel Lasker, 2847'
Which rating larger than 5 have the lowest amount of views in #3 rank with a share of 9?
CREATE TABLE table_37470 ( "Airdate" text, "Celebrities" text, "Rating" real, "Share" real, "18\u201349" text, "Viewers (millions)" real, "Weekly rank" text, "Prod. code" real )
SELECT MIN("Viewers (millions)") FROM table_37470 WHERE "Weekly rank" = '#3' AND "Share" = '9' AND "Rating" > '5'
Tell me the stages for 1981
CREATE TABLE table_31596 ( "Year" real, "Date" text, "Event" text, "Days" text, "Stages" text, "Acts" text )
SELECT "Stages" FROM table_31596 WHERE "Year" = '1981'
What is the bowling score of season 1907?
CREATE TABLE table_name_23 ( bowling VARCHAR, season VARCHAR )
SELECT bowling FROM table_name_23 WHERE season = "1907"
When were there less than 1 point with a cosworth v8 engine in jolly club switzerland?
CREATE TABLE table_14553 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT "Year" FROM table_14553 WHERE "Points" < '1' AND "Engine" = 'cosworth v8' AND "Entrant" = 'jolly club switzerland'
what is the year made when the manufacturer is 2-6-2 oooo mogul?
CREATE TABLE table_name_20 ( year_made VARCHAR, manufacturer VARCHAR )
SELECT year_made FROM table_name_20 WHERE manufacturer = "2-6-2 — oooo — mogul"
When kumbha is the international alphabet of sanskrit transliteration what is the gloss?
CREATE TABLE table_22517 ( "Number" real, "Sanskrit" text, "International Alphabet of Sanskrit Transliteration" text, "Sanskrit gloss" text, "Western name" text, "Greek" text, "Gloss" text, "Tattva (Element)" text, "Quality" text, "Ruling Planet" text )
SELECT "Gloss" FROM table_22517 WHERE "International Alphabet of Sanskrit Transliteration" = 'Kumbha'
Which were the bout 1 when the bout 5 was andreev ( rus ) w 5-2?
CREATE TABLE table_19398910_4 ( bout_1 VARCHAR, bout_5 VARCHAR )
SELECT bout_1 FROM table_19398910_4 WHERE bout_5 = "Andreev ( RUS ) W 5-2"
What Elector was Elevated on December 18, 1182?
CREATE TABLE table_78928 ( "Elector" text, "Place of birth" text, "Cardinalatial title" text, "Elevated" text, "Elevator" text )
SELECT "Elector" FROM table_78928 WHERE "Elevated" = 'december 18, 1182'
what is the dadar xi b where the good shepherd is sea liner fc?
CREATE TABLE table_30722 ( "Athens XI" text, "PIFA Colaba FC u-17" text, "Tata Power" text, "Dadar XI \u2018B\u2019" text, "IDBI" text, "World Network Services" text, "United FC" text, "Good Shepherd" text )
SELECT "Dadar XI \u2018B\u2019" FROM table_30722 WHERE "Good Shepherd" = 'Sea Liner FC'
Which boys' school wears Royal Blue and Gold and entered the competition in 1929?
CREATE TABLE table_40166 ( "School" text, "Location" text, "Enrolment" real, "Founded" real, "Denomination" text, "Boys/Girls" text, "Day/Boarding" text, "Year Entered Competition" real, "School Colors" text )
SELECT "School" FROM table_40166 WHERE "Boys/Girls" = 'boys' AND "Year Entered Competition" = '1929' AND "School Colors" = 'royal blue and gold'
If collingwood is playing away, who played as the home team?
CREATE TABLE table_name_43 ( home_team VARCHAR, away_team VARCHAR )
SELECT home_team FROM table_name_43 WHERE away_team = "collingwood"
what is the silver when the nation is syria (syr) and gold is more than 0?
CREATE TABLE table_13500 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT SUM("Silver") FROM table_13500 WHERE "Nation" = 'syria (syr)' AND "Gold" > '0'
What is every state and District of Columbia with 60.0% overweight or obese adults?
CREATE TABLE table_22730 ( "State and District of Columbia" text, "Obese adults" text, "Overweight (incl. obese) adults" text, "Obese children and adolescents" text, "Obesity rank" real )
SELECT "State and District of Columbia" FROM table_22730 WHERE "Overweight (incl. obese) adults" = '60.0%'
Show the average population of all counties.
CREATE TABLE county ( Population INTEGER )
SELECT AVG(Population) FROM county
what other movies was aggarwal in the same year as her role in veera ?
CREATE TABLE table_203_451 ( id number, "year" number, "film" text, "role" text, "language" text, "notes" text )
SELECT "film" FROM table_203_451 WHERE "film" <> 'veera' AND "year" = (SELECT "year" FROM table_203_451 WHERE "film" = 'veera')
What's the original artist of the song performed in the top 3 episode?
CREATE TABLE table_72299 ( "Episode" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text )
SELECT "Original artist" FROM table_72299 WHERE "Episode" = 'Top 3'
What are the different card type codes?
CREATE TABLE customers ( customer_id number, customer_first_name text, customer_last_name text, customer_address text, customer_phone text, customer_email text, other_customer_details text ) CREATE TABLE accounts ( account_id number, customer_id number, account_name text, other_account_details text ) CREATE TABLE customers_cards ( card_id number, customer_id number, card_type_code text, card_number text, date_valid_from time, date_valid_to time, other_card_details text ) CREATE TABLE financial_transactions ( transaction_id number, previous_transaction_id number, account_id number, card_id number, transaction_type text, transaction_date time, transaction_amount number, transaction_comment text, other_transaction_details text )
SELECT DISTINCT card_type_code FROM customers_cards
Game larger than 4, and a Time of 2:26 resulted in what score?
CREATE TABLE table_name_15 ( score VARCHAR, game VARCHAR, time VARCHAR )
SELECT score FROM table_name_15 WHERE game > 4 AND time = "2:26"
What is the highest Super G, when Season is later than 1996?
CREATE TABLE table_7716 ( "Season" real, "Overall" real, "Slalom" text, "Super G" real, "Downhill" text, "Combined" text )
SELECT MAX("Super G") FROM table_7716 WHERE "Season" > '1996'
how many verbs have the yo form as sienta?
CREATE TABLE table_23315 ( "Verbs" text, "Yo" text, "T\u00fa" text, "Vos (*)" text, "\u00c9l / Ella / Usted" text, "Nosotros / Nosotras" text, "Vosotros / Vosotras" text, "Ellos / Ellas / Ustedes" text )
SELECT COUNT("Verbs") FROM table_23315 WHERE "Yo" = 'sienta'
What is the release date for the song 'had a dad'?
CREATE TABLE table_22205 ( "Song title" text, "Artist" text, "Decade" text, "Genre" text, "Single / Pack name" text, "Release date" text, "Family Friendly" text, "Additional Rock Band 3 Features" text )
SELECT "Release date" FROM table_22205 WHERE "Song title" = 'Had a Dad'
What was the 2nd leg score having an aggregate score of 4-2?
CREATE TABLE table_name_88 ( aggregate VARCHAR )
SELECT 2 AS nd_leg FROM table_name_88 WHERE aggregate = "4-2"
WHAT NAME HAS A FREE TRANSFER FREE AND RETIRED?
CREATE TABLE table_59699 ( "Nat." text, "Name" text, "Moving to" text, "Type" text, "Transfer window" text, "Transfer fee" text, "Source" text )
SELECT "Name" FROM table_59699 WHERE "Transfer fee" = 'free' AND "Moving to" = 'retired'
How many players' hometown was Akron, Ohio?
CREATE TABLE table_11677691_4 ( school VARCHAR, hometown VARCHAR )
SELECT COUNT(school) FROM table_11677691_4 WHERE hometown = "Akron, Ohio"
What venue did the partnership of herschelle gibbs / justin kemp happen?
CREATE TABLE table_name_74 ( venue VARCHAR, partnerships VARCHAR )
SELECT venue FROM table_name_74 WHERE partnerships = "herschelle gibbs / justin kemp"
which farm grew the larger amount on 9 feb , gamini maha vidyalayam or nelukkulam kalaimahal maha vidyalayam ?
CREATE TABLE table_204_217 ( id number, "camp" text, "div sec\ndivision" text, "admin\ndistrict" text, "9 feb" number, "11 feb" number, "16 feb" number, "25 feb" number, "27 feb" number, "2 mar" number, "4 mar" number, "6 mar" number, "11 mar" number, "13 mar" number, "24 mar" number, "30 mar" number, "31 mar" number )
SELECT "camp" FROM table_204_217 WHERE "camp" IN ('gamini maha vidyalayam', 'nelukkulam kalaimahal maha vidyalayam') ORDER BY "9 feb" DESC LIMIT 1
How many Bronze medals for the Nation with a Rank of 11 and less than 1 Silver?
CREATE TABLE table_46366 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MIN("Bronze") FROM table_46366 WHERE "Rank" = '11' AND "Silver" < '1'
What is Place, when Weapon is '35mm fire', and when Date is '27 May 1982'?
CREATE TABLE table_name_15 ( place VARCHAR, weapon VARCHAR, date VARCHAR )
SELECT place FROM table_name_15 WHERE weapon = "35mm fire" AND date = "27 may 1982"
What was the record on March 22?
CREATE TABLE table_51373 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
SELECT "Record" FROM table_51373 WHERE "Date" = 'march 22'
the average number of points
CREATE TABLE table_203_439 ( id number, "pos." number, "rider" text, "semi-final points" number, "final points" number, "final heats" text, "total points" number )
SELECT AVG("total points") FROM table_203_439
What is the Venue of the Friendly Competition with a Score of 1 4?
CREATE TABLE table_60429 ( "Date" text, "Venue" text, "Score" text, "Competition" text, "Report" text )
SELECT "Venue" FROM table_60429 WHERE "Competition" = 'friendly' AND "Score" = '1–4'
what is the week when the finalist is marcelo r os?
CREATE TABLE table_name_16 ( week VARCHAR, finalist VARCHAR )
SELECT week FROM table_name_16 WHERE finalist = "marcelo ríos"
What is the name of the aircraft that was on flight number 99?
CREATE TABLE employee ( eid number, name text, salary number ) CREATE TABLE aircraft ( aid number, name text, distance 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 WHERE T1.flno = 99
What is the height in meters for a building in Frankfurt that is 850 feet tall?
CREATE TABLE table_name_66 ( height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR )
SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850
how many players were from notre dame ?
CREATE TABLE table_203_735 ( id number, "rd" number, "pick" number, "player" text, "position" text, "school" text )
SELECT COUNT("player") FROM table_203_735 WHERE "school" = 'notre dame'
left ventricular ejection fraction less than 30 %
CREATE TABLE table_train_38 ( "id" int, "left_ventricular_ejection_fraction_lvef" int, "child_pugh_class" string, "systolic_blood_pressure_sbp" int, "heart_disease" bool, "acute_hepatitis" bool, "liver_disease" bool, "heart_rate" int, "NOUSE" float )
SELECT * FROM table_train_38 WHERE left_ventricular_ejection_fraction_lvef < 30
what chart position did the single with david bowie reach in the us ?
CREATE TABLE table_200_22 ( id number, "year" number, "single" text, "peak chart positions\nger" number, "peak chart positions\nire" number, "peak chart positions\nuk" number, "peak chart positions\nus" number, "peak chart positions\nus\nmain" number, "peak chart positions\nus\ndance" number, "certifications\n(sales thresholds)" number, "album" text )
SELECT "peak chart positions\nus" FROM table_200_22 WHERE "single" = 'with david bowie'
Who is the pitcher from the 1994 season that had the Cleveland Indians as an opponent?
CREATE TABLE table_63221 ( "Season" text, "Pitcher" text, "Decision" text, "Opponent" text, "Location" text )
SELECT "Pitcher" FROM table_63221 WHERE "Opponent" = 'cleveland indians' AND "Season" = '1994'
Name the matches for gold coast
CREATE TABLE table_71868 ( "Team" text, "1st Match" text, "Matches" text, "Lost" text, "% Won" text )
SELECT "Matches" FROM table_71868 WHERE "Team" = 'gold coast'
Find the number of phones for each accreditation type.
CREATE TABLE screen_mode ( graphics_mode number, char_cells text, pixels text, hardware_colours number, used_kb number, map text, type text ) CREATE TABLE chip_model ( model_name text, launch_year number, ram_mib number, rom_mib number, slots text, wifi text, bluetooth text ) CREATE TABLE phone ( company_name text, hardware_model_name text, accreditation_type text, accreditation_level text, date text, chip_model text, screen_mode text )
SELECT accreditation_type, COUNT(*) FROM phone GROUP BY accreditation_type
Before 2007, how many wins were there when the point total was 48?
CREATE TABLE table_33457 ( "Year" real, "Drivers" text, "Wins" real, "Points" text, "D.C." text )
SELECT SUM("Wins") FROM table_33457 WHERE "Points" = '48' AND "Year" < '2007'
What is the score for game 5?
CREATE TABLE table_33885 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Series" text )
SELECT "Score" FROM table_33885 WHERE "Game" = '5'
When the driver peter gethin has a grid less than 25, what is the average number of laps?
CREATE TABLE table_55351 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT AVG("Laps") FROM table_55351 WHERE "Driver" = 'peter gethin' AND "Grid" < '25'
If the team in the New England Patriots, what is the super bowl championship minimum number?
CREATE TABLE table_23061 ( "Team" text, "Division Titles" real, "Playoff Berths" real, "AFL Titles" real, "AFC Championships" real, "Super Bowl Championships" real )
SELECT MIN("Super Bowl Championships") FROM table_23061 WHERE "Team" = 'New England Patriots'
What was the result for the fil Paljas?
CREATE TABLE table_name_1 ( result VARCHAR, film_title VARCHAR )
SELECT result FROM table_name_1 WHERE film_title = "paljas"
Which venue has 1st as the result?
CREATE TABLE table_name_45 ( venue VARCHAR, result VARCHAR )
SELECT venue FROM table_name_45 WHERE result = "1st"
What is the mean on-site ATMS that have off-site ATMs of 1567, and the total number of ATMs less than 4772?
CREATE TABLE table_43964 ( "Bank type" text, "Number of branches" real, "On-site ATMs" real, "Off-site ATMs" real, "Total ATMs" real )
SELECT AVG("On-site ATMs") FROM table_43964 WHERE "Off-site ATMs" = '1567' AND "Total ATMs" < '4772'
Which Outcome has a Championship of us championships, and a Score in the final of 5 7, 6 1, 6 3, 6 3?
CREATE TABLE table_name_61 ( outcome VARCHAR, championship VARCHAR, score_in_the_final VARCHAR )
SELECT outcome FROM table_name_61 WHERE championship = "us championships" AND score_in_the_final = "5–7, 6–1, 6–3, 6–3"
When has a Leading scorer of ricky davis (20)?
CREATE TABLE table_name_48 ( date VARCHAR, leading_scorer VARCHAR )
SELECT date FROM table_name_48 WHERE leading_scorer = "ricky davis (20)"
Who as the candidate when the result - % was 2.9%?
CREATE TABLE table_25818630_2 ( candidate VARCHAR, result____percentage VARCHAR )
SELECT candidate FROM table_25818630_2 WHERE result____percentage = "2.9%"
What are the seasons where Marcello Puglisi (formula master italia) was the secondary class champion?
CREATE TABLE table_55689 ( "Season" real, "Series Name" text, "Champion" text, "Team Champion" text, "Secondary Class Champion" text )
SELECT SUM("Season") FROM table_55689 WHERE "Secondary Class Champion" = 'marcello puglisi (formula master italia)'
What is the lowest Goals Agains, when Played is greater than 34?
CREATE TABLE table_name_38 ( goals_against INTEGER, played INTEGER )
SELECT MIN(goals_against) FROM table_name_38 WHERE played > 34
Who was the rider riding the Kawasaki ZX-6r, that rode less than 22 laps, and the grid was greater than 19, and retirement was the time?
CREATE TABLE table_name_64 ( rider VARCHAR, bike VARCHAR, time VARCHAR, laps VARCHAR, grid VARCHAR )
SELECT rider FROM table_name_64 WHERE laps < 22 AND grid > 19 AND time = "retirement" AND bike = "kawasaki zx-6r"
What was the title of series number 56?
CREATE TABLE table_2468961_4 ( title VARCHAR, no_in_series VARCHAR )
SELECT title FROM table_2468961_4 WHERE no_in_series = 56
Tell me the most crowd for arden street oval venue
CREATE TABLE table_name_39 ( crowd INTEGER, venue VARCHAR )
SELECT MAX(crowd) FROM table_name_39 WHERE venue = "arden street oval"
What is the average final with an all around greater than 19.35 and a total over 40?
CREATE TABLE table_60943 ( "Place" real, "Nation" text, "All Around" real, "Final" real, "Total" real )
SELECT AVG("Final") FROM table_60943 WHERE "All Around" > '19.35' AND "Total" > '40'
Can you tell me the Attendance that has the Date of april 12?
CREATE TABLE table_67806 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
SELECT "Attendance" FROM table_67806 WHERE "Date" = 'april 12'
Where is Exxon Mobil, an oil and gas corporation, headquartered?
CREATE TABLE table_name_49 ( headquarters VARCHAR, primary_industry VARCHAR, name VARCHAR )
SELECT headquarters FROM table_name_49 WHERE primary_industry = "oil and gas" AND name = "exxon mobil"
What is the lowest Long, when Name is Kass, Rob, and when Avg/g is less than -0.30000000000000004?
CREATE TABLE table_name_81 ( long INTEGER, name VARCHAR, avg_g VARCHAR )
SELECT MIN(long) FROM table_name_81 WHERE name = "kass, rob" AND avg_g < -0.30000000000000004
Role of narrator, and a Year larger than 2009, and a Release/Air Date of 7 october 2010 belongs to what author?
CREATE TABLE table_67775 ( "Year" real, "Role" text, "Author" text, "Radio Station/Production Company" text, "Release/Air Date" text )
SELECT "Author" FROM table_67775 WHERE "Role" = 'narrator' AND "Year" > '2009' AND "Release/Air Date" = '7 october 2010'
When did chatham complete the Hmsmedusa?
CREATE TABLE table_name_91 ( completed VARCHAR, builder VARCHAR, name VARCHAR )
SELECT completed FROM table_name_91 WHERE builder = "chatham" AND name = "hmsmedusa"
how many more games were released in 2005 than 2003 ?
CREATE TABLE table_203_583 ( id number, "title" text, "release" number, "6th gen" text, "handheld" text, "note" text )
SELECT (SELECT COUNT("title") FROM table_203_583 WHERE "release" = 2005) - (SELECT COUNT("title") FROM table_203_583 WHERE "release" = 2003)
what was the name of the mission previous to cosmos 300 ?
CREATE TABLE table_204_633 ( id number, "launch date" text, "operator" text, "name" text, "sample origin" text, "samples returned" text, "recovery date" text, "mission result" text )
SELECT "name" FROM table_204_633 WHERE id = (SELECT id FROM table_204_633 WHERE "name" = 'cosmos 300') - 1
What is the entrant in 1999?
CREATE TABLE table_name_64 ( entrant VARCHAR, year VARCHAR )
SELECT entrant FROM table_name_64 WHERE year = 1999
What the lost in place less than 3 and having more than 63 goals scored?
CREATE TABLE table_name_87 ( lost INTEGER, goals_scored VARCHAR, place VARCHAR )
SELECT SUM(lost) FROM table_name_87 WHERE goals_scored > 63 AND place < 3
What was the year when West Manila has a tariff increase of 6.5?
CREATE TABLE table_21480 ( "Year" real, "West Manila" text, "East Manila" text, "Consumer Price Index (2005=100)" text, "West Manila as a share of 1996 real tariff" text, "East Manila as a share of 1996 real tariff" text )
SELECT "Year" FROM table_21480 WHERE "West Manila" = '6.5'
How many movie directors are there?
CREATE TABLE culture_company ( company_name text, type text, incorporated_in text, group_equity_shareholding number, book_club_id text, movie_id text ) CREATE TABLE movie ( movie_id number, title text, year number, director text, budget_million number, gross_worldwide number ) CREATE TABLE book_club ( book_club_id number, year number, author_or_editor text, book_title text, publisher text, category text, result text )
SELECT COUNT(DISTINCT director) FROM movie
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the name , and group by attribute name by a bar chart, I want to show by the X-axis in descending.
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, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC
What is the total number of points when draw is 4?
CREATE TABLE table_67717 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real )
SELECT COUNT("Points") FROM table_67717 WHERE "Draw" = '4'
who was the winning driver after nigel mansell ?
CREATE TABLE table_203_408 ( id number, "rd." number, "grand prix" text, "date" text, "location" text, "pole position" text, "fastest lap" text, "winning driver" text, "constructor" text, "report" text )
SELECT "winning driver" FROM table_203_408 WHERE "rd." > (SELECT "rd." FROM table_203_408 WHERE "winning driver" = 'nigel mansell') ORDER BY "rd." LIMIT 1
What Russian has an Avoirdupois value of 0.686 gr?
CREATE TABLE table_name_16 ( russian VARCHAR, avoirdupois_value VARCHAR )
SELECT russian FROM table_name_16 WHERE avoirdupois_value = "0.686 gr"
What is the skip that has a third of Anna Sloan in season 2012-13?
CREATE TABLE table_50536 ( "Season" text, "Skip" text, "Third" text, "Second" text, "Lead" text )
SELECT "Skip" FROM table_50536 WHERE "Third" = 'anna sloan' AND "Season" = '2012-13'
Which Grid has a Driver of cristiano da matta, and Points smaller than 33?
CREATE TABLE table_5157 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real )
SELECT SUM("Grid") FROM table_5157 WHERE "Driver" = 'cristiano da matta' AND "Points" < '33'
What is the Loser when the winner was los angeles lakers (10)?
CREATE TABLE table_6902 ( "Year" text, "Playoff round" text, "Venue" text, "Winner" text, "Result" text, "Loser" text )
SELECT "Loser" FROM table_6902 WHERE "Winner" = 'los angeles lakers (10)'
which township has the most residents ?
CREATE TABLE table_204_322 ( id number, "township" text, "fips" number, "population" number, "population\ndensity\n/km2 (/sq mi)" text, "land area\nkm2 (sq mi)" text, "water area\nkm2 (sq mi)" text, "water %" text, "geographic coordinates" text )
SELECT "township" FROM table_204_322 ORDER BY "population" DESC LIMIT 1
Find all 200 meter and 300 meter results of swimmers with nationality 'Australia'.
CREATE TABLE event ( id number, name text, stadium_id number, year text ) CREATE TABLE stadium ( id number, name text, capacity number, city text, country text, opening_year number ) CREATE TABLE swimmer ( id number, name text, nationality text, meter_100 number, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, time text ) CREATE TABLE record ( id number, result text, swimmer_id number, event_id number )
SELECT meter_200, meter_300 FROM swimmer WHERE nationality = 'Australia'
What is the average Acquired when the Number shows as 7?
CREATE TABLE table_name_73 ( acquired INTEGER, number VARCHAR )
SELECT AVG(acquired) FROM table_name_73 WHERE number = 7
When was outgoing manager Zolt n Varga appointed?
CREATE TABLE table_name_77 ( date_of_appointment VARCHAR, outgoing_manager VARCHAR )
SELECT date_of_appointment FROM table_name_77 WHERE outgoing_manager = "zoltán varga"
What try bonus has 19 as the tries against?
CREATE TABLE table_name_17 ( try_bonus VARCHAR, tries_against VARCHAR )
SELECT try_bonus FROM table_name_17 WHERE tries_against = "19"
Name the number of week for game site being memorial stadium for buffalo bills
CREATE TABLE table_14940519_1 ( week VARCHAR, game_site VARCHAR, opponent VARCHAR )
SELECT COUNT(week) FROM table_14940519_1 WHERE game_site = "Memorial Stadium" AND opponent = "Buffalo Bills"
Name the tries against when tries for is 30
CREATE TABLE table_22025 ( "Club" text, "Played" text, "Won" 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 "Tries against" FROM table_22025 WHERE "Tries for" = '30'