sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Nat. FROM table WHERE Name = acquafresca | CREATE TABLE INST, Here is a database schema( table schema); | What is the nationality of Acquafresca?.It is not neccessary to use all the tables. |
SELECT english_translation FROM table_13003460_1 WHERE word_number = "219" | CREATE TABLE INST, Here is a database schema( table schema); | Name the english translation of 219It is not neccessary to use all the tables. |
SELECT race FROM table_name_16 WHERE replica = "dnf" | CREATE TABLE INST, Here is a database schema( table schema); | Which race has a replica of DNF?It is not neccessary to use all the tables. |
SELECT Time/Retired FROM table WHERE Grid = 18 | CREATE TABLE INST, Here is a database schema( table schema); | What was the retired time for someone who was on grid 18?.It is not neccessary to use all the tables. |
SELECT termination FROM table_1601027_1 WHERE us_msrp = "$49" | CREATE TABLE INST, Here is a database schema( table schema); | Which terminations correspond to a US MSRP of $49?It is not neccessary to use all the tables. |
SELECT Grand Prix FROM table WHERE Winning Driver = david coulthard AND Pole Position = michael schumacher AND Round < 9 | CREATE TABLE INST, Here is a database schema( table schema); | Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9?.It is not neccessary to use all the tables. |
SELECT Nation FROM table WHERE Record = 15.16 m | CREATE TABLE INST, Here is a database schema( table schema); | Which Nation has a Record of 15.16 m?.It is not neccessary to use all the tables. |
SELECT known_for FROM table_name_67 WHERE entered = "day 1" AND celebrity = "freddie starr" | CREATE TABLE INST, Here is a database schema( table schema); | What was Freddie Starr who entered on Day 1 known for?It is not neccessary to use all the tables. |
SELECT player FROM table_name_92 WHERE team = "chicago bulls" | CREATE TABLE INST, Here is a database schema( table schema); | Who plays for the chicago bulls?It is not neccessary to use all the tables. |
SELECT date, AVG(cloud_cover) FROM weather ORDER BY AVG(cloud_cover) | CREATE TABLE INST, Here is a database schema( table schema); | I want a bar chart to show the average cloud cover of the dates that have the 5 highest cloud cover rates each day, list Y-axis in ascending order please.It is not neccessary to use all the tables. |
SELECT chinese FROM table_name_50 WHERE subject = "adjectives, adverbs, mostly with reduplication" | CREATE TABLE INST, Here is a database schema( table schema); | Name the chinese with subject of adjectives adverbs mostly with reduplicationIt is not neccessary to use all the tables. |
SELECT status FROM table_28178595_2 WHERE character = "Keel (Keele) Zeibel" | CREATE TABLE INST, Here is a database schema( table schema); | What is the status of the character keel (keele) zeibel?It is not neccessary to use all the tables. |
SELECT SUM(starts) FROM table_name_54 WHERE avg_finish > 43 | CREATE TABLE INST, Here is a database schema( table schema); | How many starts for an average finish greater than 43?It is not neccessary to use all the tables. |
SELECT MIN(christer_tornell) FROM table_28677723_10 WHERE karianne_gulliksen = 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is listed under chister tornell when karianne gulliksen is 7?It is not neccessary to use all the tables. |
SELECT COUNT Nationality FROM table WHERE Player = Ryan Mckie | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of nationalities for ryan mckie.It is not neccessary to use all the tables. |
SELECT COUNT(callsign) FROM table_1979203_1 WHERE branding = "Telemundo 47" | CREATE TABLE INST, Here is a database schema( table schema); | how many callsigns are for the branding telemundo 47It is not neccessary to use all the tables. |
SELECT rider FROM table_name_14 WHERE time = "+1:08.291" | CREATE TABLE INST, Here is a database schema( table schema); | What Rider had a Time of +1:08.291?It is not neccessary to use all the tables. |
SELECT Place FROM table WHERE Score = 70-70-68-70=278 | CREATE TABLE INST, Here is a database schema( table schema); | What is Place, when Score is "70-70-68-70=278"?.It is not neccessary to use all the tables. |
SELECT class FROM table_15327489_1 WHERE riders = "Makoto Tamada" AND races = "17" | CREATE TABLE INST, Here is a database schema( table schema); | Name the class for makoto tamada and races is 17It is not neccessary to use all the tables. |
SELECT COUNT Rank FROM table WHERE Attendance = 93,039 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Rank of the game with an Attendance of 93,039?.It is not neccessary to use all the tables. |
SELECT result FROM table_name_30 WHERE date = "november 29, 2001" | CREATE TABLE INST, Here is a database schema( table schema); | WHAT WAS THE RESULT FOR NOVEMBER 29 2001?It is not neccessary to use all the tables. |
SELECT COUNT("Rank") FROM table_40900 WHERE "Silver" = '1' AND "Total" > '3' AND "Gold" > '2' | CREATE TABLE INST, Here is a database schema( table schema); | What rank has 1 silver, more than 2 gold, and a total larger than 3?It is not neccessary to use all the tables. |
SELECT MIN(loses) FROM table_name_83 WHERE position < 8 AND games_played < 30 | CREATE TABLE INST, Here is a database schema( table schema); | What is the fewest loses for the club that is below 8 in position and had played less than 30 games?It is not neccessary to use all the tables. |
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t4.icd9_code FROM (SELECT t3.icd9_code, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.icd9_code, 100 - SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.chartt... | CREATE TABLE INST, Here is a database schema( table schema); | what was the highest five diagnosis, which had the highest three year mortality rate?It is not neccessary to use all the tables. |
SELECT owner FROM table_name_80 WHERE trainer = "steve klesaris" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the owner of the trainer Steve Klesaris?It is not neccessary to use all the tables. |
SELECT COUNT Group FROM table WHERE Distance = 2020 m | CREATE TABLE INST, Here is a database schema( table schema); | How many races were for a distance of 2020 m?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_55 WHERE total = "80–72" | CREATE TABLE INST, Here is a database schema( table schema); | Which Score has a Total of 80–72?It is not neccessary to use all the tables. |
SELECT "Date" FROM table_8468 WHERE "Name" = 'tirrana' | CREATE TABLE INST, Here is a database schema( table schema); | what is the date for tirrana?It is not neccessary to use all the tables. |
SELECT section_name, section_description FROM Sections | CREATE TABLE INST, Here is a database schema( table schema); | What are the names and descriptions of all the sections?It is not neccessary to use all the tables. |
SELECT saturday_shani__saturn_ FROM table_1277350_3 WHERE sunday_surya__the_sun_ = "ஞாயிற்று கிழமை Nyāyitru kizhamai" | CREATE TABLE INST, Here is a database schema( table schema); | In the system where Sunday is ஞாயிற்று கிழமை nyāyitru kizhamai what is Saturday?It is not neccessary to use all the tables. |
SELECT Place FROM table WHERE Money ( $ ) = 350 | CREATE TABLE INST, Here is a database schema( table schema); | What place did the player that took won $350 finish in?.It is not neccessary to use all the tables. |
SELECT Replaced By FROM table WHERE Team = racing santander | CREATE TABLE INST, Here is a database schema( table schema); | Name the replaced by for racing santander.It is not neccessary to use all the tables. |
SELECT last_year FROM table_name_75 WHERE first_year = "1982" | CREATE TABLE INST, Here is a database schema( table schema); | When did the comic which came out in 1982 end?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Visitor = edmonton oilers | CREATE TABLE INST, Here is a database schema( table schema); | What was the score for the game in which the Edmonton Oilers were visitors?.It is not neccessary to use all the tables. |
SELECT home_team FROM table_name_6 WHERE venue = "arden street oval" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team when the VFL played Arden Street Oval?It is not neccessary to use all the tables. |
SELECT COUNT(original_air_date) FROM table_25740548_2 WHERE directed_by = "Tim Matheson" | CREATE TABLE INST, Here is a database schema( table schema); | How many episodes were directed by Tim Matheson?It is not neccessary to use all the tables. |
SELECT Length/Fuel FROM table WHERE Floor Styling = high AND Year Built = 2000-2003 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styling?.It is not neccessary to use all the tables. |
SELECT race FROM table_name_90 WHERE position = "3rd" AND speed = "123.628" | CREATE TABLE INST, Here is a database schema( table schema); | Which race has a position of 3rd and a speed of 123.628?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Result = 5-1 | CREATE TABLE INST, Here is a database schema( table schema); | Which Score has a Result of 5-1?.It is not neccessary to use all the tables. |
SELECT time FROM table_name_44 WHERE team = "triumph" AND rank < 4 | CREATE TABLE INST, Here is a database schema( table schema); | What is the time/s of team Triumph in those races in which Triumph ranked higher than 4?It is not neccessary to use all the tables. |
SELECT location FROM table_name_50 WHERE year = "2009" | CREATE TABLE INST, Here is a database schema( table schema); | What was the location in 2009?It is not neccessary to use all the tables. |
SELECT date FROM table_name_67 WHERE round = "sf" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Date with a Round with sf?It is not neccessary to use all the tables. |
SELECT "Nominating Festival" FROM table_70370 WHERE "Country" = 'germany' | CREATE TABLE INST, Here is a database schema( table schema); | What Nominating Festival took place in Germany?It is not neccessary to use all the tables. |
SELECT position FROM table_26996293_2 WHERE player = "Jim Henshall" | CREATE TABLE INST, Here is a database schema( table schema); | player is jim henshall what are all the positionIt is not neccessary to use all the tables. |
SELECT MAX Touchdowns FROM table WHERE Player = Heston | CREATE TABLE INST, Here is a database schema( table schema); | How many touchdowns were there when Heston was in play?.It is not neccessary to use all the tables. |
SELECT l2_cache FROM table_name_92 WHERE sspec_number = "slbmm(c2)slbsr(k0)" | CREATE TABLE INST, Here is a database schema( table schema); | What is the L2 cache with ec number of slbmm(c2)slbsr(k0)?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE To par < 2 | CREATE TABLE INST, Here is a database schema( table schema); | When To par was less than 2, what was the score?.It is not neccessary to use all the tables. |
SELECT AVG(total_freshwater_withdrawal__km_3__yr_) FROM table_name_5 WHERE industrial_use__m_3__p_yr__in__percentage_ = "337(63%)" AND per_capita_withdrawal__m_3__p_yr_ > 535 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average Total Freshwater Withdrawal (km 3 /yr) when Industrial Use (m 3 /p/yr)(in %) is 337(63%) and when Per Capita Withdrawal (m 3 /p/yr) is greater than 535?It is not neccessary to use all the tables. |
SELECT COUNT Enrollment 08-09 FROM table WHERE School = franklin county | CREATE TABLE INST, Here is a database schema( table schema); | What was the total enrollment 08-09 of Franklin County?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Number = 28 | CREATE TABLE INST, Here is a database schema( table schema); | What was the name of race #28?.It is not neccessary to use all the tables. |
SELECT COUNT Grid FROM table WHERE Laps = 24 | CREATE TABLE INST, Here is a database schema( table schema); | What is the grid when the laps were 24?.It is not neccessary to use all the tables. |
SELECT year FROM table_name_36 WHERE award = "kids' choice awards argentina" AND category = "best actress" | CREATE TABLE INST, Here is a database schema( table schema); | What year was there a nomination for Best Actress at the Kids' Choice Awards Argentina?It is not neccessary to use all the tables. |
WITH tmp AS (SELECT p.Id, p.AcceptedAnswerId AS Acc, Period = TIME_TO_STR(bs.CreationDate, '%W') FROM Posts AS p INNER JOIN Votes AS bs ON p.Id = bs.PostId AND bs.VoteTypeId = 8) SELECT Period, ROUND((COUNT(Acc)) * 100.0 / (COUNT(*)), 2) AS percentage FROM tmp GROUP BY Period ORDER BY Period | CREATE TABLE INST, Here is a database schema( table schema); | Percentage of bounties with accepted answer depending on the day when the bounty started.It is not neccessary to use all the tables. |
SELECT emissions CO2 FROM table WHERE max. speed = km/h (mph) AND car model = panamera 4s | CREATE TABLE INST, Here is a database schema( table schema); | What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?.It is not neccessary to use all the tables. |
SELECT name FROM table_name_13 WHERE floors = 10 | CREATE TABLE INST, Here is a database schema( table schema); | What was the name of the building with 10 floors?It is not neccessary to use all the tables. |
SELECT player FROM table_name_86 WHERE school_club_team = "auburn" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the player from Auburn?It is not neccessary to use all the tables. |
SELECT Vote FROM table WHERE Eliminated = Thiago | CREATE TABLE INST, Here is a database schema( table schema); | Name the vote for thiago.It is not neccessary to use all the tables. |
SELECT "Rider" FROM table_2884 WHERE "Mon 24 Aug" = '21'' 12.02 106.781mph' | CREATE TABLE INST, Here is a database schema( table schema); | What is every rider on Monday August 24 at 21' 12.02 106.781mph?It is not neccessary to use all the tables. |
SELECT SUM(number_of_jews__wjc_) FROM table_name_73 WHERE metro_area = "los angeles" AND rank__arda_ > 2 | CREATE TABLE INST, Here is a database schema( table schema); | How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2?It is not neccessary to use all the tables. |
SELECT COUNT(australian) FROM table_17798093_20 WHERE american = "əs" | CREATE TABLE INST, Here is a database schema( table schema); | how many endings have american pronounciation əsIt is not neccessary to use all the tables. |
SELECT MAX Laps FROM table WHERE Rank = 14 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest laps of the year when the rank was 14?.It is not neccessary to use all the tables. |
SELECT engine FROM table_name_6 WHERE points = 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the engine for the car with 3 points?It is not neccessary to use all the tables. |
SELECT "Years at club" FROM table_77670 WHERE "Goals" = '2' AND "Date of birth" = '23 july 1910' | CREATE TABLE INST, Here is a database schema( table schema); | What is the years at the club of the player with 2 goals and was born on 23 July 1910?It is not neccessary to use all the tables. |
SELECT MIN(total) FROM table_name_37 WHERE bronze = 5 AND silver < 1 | CREATE TABLE INST, Here is a database schema( table schema); | Which Total has a Bronze of 5 and a Silver smaller than 1?It is not neccessary to use all the tables. |
SELECT record FROM table_name_41 WHERE date = "april 16" | CREATE TABLE INST, Here is a database schema( table schema); | What was the record on April 16?It is not neccessary to use all the tables. |
SELECT AVG L/100km Combined FROM table WHERE L/100km Urban (Cold) = 13.9 AND mpg-UK Combined > 28.5 AND mpg-UK Extra-Urban < 38.7 | CREATE TABLE INST, Here is a database schema( table schema); | What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7?.It is not neccessary to use all the tables. |
SELECT MIN Profits (billion $) FROM table WHERE Sales (billion $) = 425.7 AND Rank > 4 | CREATE TABLE INST, Here is a database schema( table schema); | Name the lowest Profits (billion $) which has a Sales (billion $) of 425.7, and a Rank larger than 4?.It is not neccessary to use all the tables. |
SELECT listed FROM table_name_22 WHERE municipality = "florida" | CREATE TABLE INST, Here is a database schema( table schema); | What is the site for Florida?It is not neccessary to use all the tables. |
SELECT COUNT Frequency MHz FROM table WHERE Call sign = w233ag | CREATE TABLE INST, Here is a database schema( table schema); | On what frequency does W233AG broadcast?.It is not neccessary to use all the tables. |
SELECT "Finals" FROM table_67588 WHERE "Prelim" = 'out of playoffs' | CREATE TABLE INST, Here is a database schema( table schema); | Name the finals for prelim of out of playoffsIt is not neccessary to use all the tables. |
SELECT COUNT Laps FROM table WHERE Points = 8 AND Grid < 8 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of laps associated with 8 points and a grid under 8?.It is not neccessary to use all the tables. |
SELECT "opponent" FROM table_203_383 WHERE "game site" = 'soldier field' ORDER BY "date" DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | which opponent was the last opponent to play at the soldier field ?It is not neccessary to use all the tables. |
SELECT date FROM table_name_91 WHERE score = "7–0" | CREATE TABLE INST, Here is a database schema( table schema); | On what date was the game that had a score of 7–0?It is not neccessary to use all the tables. |
SELECT Studio(s) FROM table WHERE Year < 2004 AND Director = peter lord nick park | CREATE TABLE INST, Here is a database schema( table schema); | What studio had the director Peter Lord Nick Park before 2004?.It is not neccessary to use all the tables. |
SELECT Leader_Name, College_Location FROM college | CREATE TABLE INST, Here is a database schema( table schema); | Show the leader names and locations of colleges.It is not neccessary to use all the tables. |
SELECT authority FROM table_name_64 WHERE roll < 254 AND decile = "8" AND area = "te akau" | CREATE TABLE INST, Here is a database schema( table schema); | Name the authority for te akau with roll less than 254 and decile of 8It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Opponent = chicago bulls | CREATE TABLE INST, Here is a database schema( table schema); | Opponent of chicago bulls had what location?.It is not neccessary to use all the tables. |
SELECT MAX(total_seats) FROM table_name_28 WHERE pr_seats = 48 AND district_seats > 73 | CREATE TABLE INST, Here is a database schema( table schema); | Who had the highest total PR seats of 48 with a District seat larger than than 73?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Alma Mater = Wilfrid Laurier University | CREATE TABLE INST, Here is a database schema( table schema); | List the plats that attended Wilfrid Laurier University. .It is not neccessary to use all the tables. |
SELECT Primary Sponsor(s) FROM table WHERE Car(s) = ford fusion AND Crew Chief = drew blickensderfer | CREATE TABLE INST, Here is a database schema( table schema); | What primary sponsor(s) owns ford fusion car(s) and the crew chief is Drew Blickensderfer?.It is not neccessary to use all the tables. |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-20116'... | CREATE TABLE INST, Here is a database schema( table schema); | what is the number of days since patient 012-20116 first received a procedure on this hospital visit?It is not neccessary to use all the tables. |
SELECT country FROM table_name_41 WHERE score = 69 | CREATE TABLE INST, Here is a database schema( table schema); | Which country has 69 score?It is not neccessary to use all the tables. |
SELECT 2013 AS _profit__mil_usd__ FROM table_24307126_3 WHERE assets_2013__bil$_ = "11.2" | CREATE TABLE INST, Here is a database schema( table schema); | Name the 2013 profit for assets being 11.2It is not neccessary to use all the tables. |
SELECT frequency FROM table_name_47 WHERE identifier = "cbf-fm-9" | CREATE TABLE INST, Here is a database schema( table schema); | What's the frequency when the identifier is cbf-fm-9?It is not neccessary to use all the tables. |
SELECT Catalog FROM table WHERE Region = japan | CREATE TABLE INST, Here is a database schema( table schema); | What is the Catalog number for the region of Japan?.It is not neccessary to use all the tables. |
SELECT Year (Ceremony) FROM table WHERE Original title = Vitus | CREATE TABLE INST, Here is a database schema( table schema); | What was the year for the film "Vitus"?.It is not neccessary to use all the tables. |
SELECT MAX(points) FROM table_name_27 WHERE date = "february 10, 2009" AND game > 54 | CREATE TABLE INST, Here is a database schema( table schema); | What game in February 10 2009 has the most points and a game number larger than 54?It is not neccessary to use all the tables. |
SELECT line_name FROM table_name_7 WHERE nimt_junction = "huntly" | CREATE TABLE INST, Here is a database schema( table schema); | What line has Junction of Huntly NIMTIt is not neccessary to use all the tables. |
SELECT MIN Game FROM table WHERE Opponent = pittsburgh penguins | CREATE TABLE INST, Here is a database schema( table schema); | What game is the first with the Pittsburgh Penguins the opponent?.It is not neccessary to use all the tables. |
SELECT MIN Round FROM table WHERE Player = neil colzie AND Pick < 24 | CREATE TABLE INST, Here is a database schema( table schema); | What was the earliest round with Neil Colzie and a pick smaller than 24?.It is not neccessary to use all the tables. |
SELECT MAX(weight__kg_) FROM table_2062148_4 | CREATE TABLE INST, Here is a database schema( table schema); | Name the most weightIt is not neccessary to use all the tables. |
SELECT First Episode FROM table WHERE Final Episode = "Rio" | CREATE TABLE INST, Here is a database schema( table schema); | what's the first epbeingode with final epbeingode being "rio".It is not neccessary to use all the tables. |
SELECT Tie no FROM table WHERE Away team = east thurrock united | CREATE TABLE INST, Here is a database schema( table schema); | What was the Tie no when the away team was east thurrock united?.It is not neccessary to use all the tables. |
SELECT rank FROM table_name_16 WHERE date = "september 9, 2004" | CREATE TABLE INST, Here is a database schema( table schema); | Which Rank that is on september 9 2004?It is not neccessary to use all the tables. |
SELECT SUM(pick) FROM table_name_82 WHERE name = "david terrell" AND round < 7 | CREATE TABLE INST, Here is a database schema( table schema); | WHAT IS THE SUM OF PICK FOR DAVID TERRELL WITH A ROUND SMALLER THAN 7?It is not neccessary to use all the tables. |
SELECT TV season FROM table WHERE Viewers (in millions) = 14.54 | CREATE TABLE INST, Here is a database schema( table schema); | What tv season year had 14.54 million viewers?.It is not neccessary to use all the tables. |
SELECT MAX Date founded FROM table WHERE County or counties = elk county | CREATE TABLE INST, Here is a database schema( table schema); | what is the most recent date founded in elk county?.It is not neccessary to use all the tables. |
SELECT COUNT Season # FROM table WHERE Writer(s) = Jeff Truman | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of season number for jeff truman.It is not neccessary to use all the tables. |
SELECT "at/vs." FROM table_23875 WHERE "#" = '7' | CREATE TABLE INST, Here is a database schema( table schema); | What was the game #7, at or versus (home or at)?It is not neccessary to use all the tables. |
SELECT long FROM table_name_60 WHERE year = "1994" | CREATE TABLE INST, Here is a database schema( table schema); | What is the long in 1994?It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.