sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Precincts FROM table WHERE G. Hager = 2,260 (15%)
CREATE TABLE INST, Here is a database schema( table schema);
Which Precincts has a G. Hager of 2,260 (15%)?.It is not neccessary to use all the tables.
SELECT SUM Pick FROM table WHERE School = mckinney high school
CREATE TABLE INST, Here is a database schema( table schema);
What's the total number of picks for mckinney high school?.It is not neccessary to use all the tables.
SELECT host_nation_s_ FROM table_28601467_1 WHERE year = 2004
CREATE TABLE INST, Here is a database schema( table schema);
Which nation hosted the competition in 2004?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Against > 8 AND Lost = 7 AND Position = 5
CREATE TABLE INST, Here is a database schema( table schema);
What team has an against more than 8, lost of 7, and the position is 5?.It is not neccessary to use all the tables.
SELECT Grid FROM table WHERE Driver = buddy rice
CREATE TABLE INST, Here is a database schema( table schema);
What was the grid of Buddy Rice?.It is not neccessary to use all the tables.
SELECT AVG("A Score") FROM table_65548 WHERE "B Score" = '9.05' AND "Position" > '6'
CREATE TABLE INST, Here is a database schema( table schema);
What was the A Score when the B Score was 9.05, and position was larger than 6?It is not neccessary to use all the tables.
SELECT COUNT Game FROM table WHERE High rebounds = radoslav nesterović (8) AND High assists = josé calderón (9)
CREATE TABLE INST, Here is a database schema( table schema);
What numbered game featured a High rebounds of radoslav nesterović (8), and a High assists of josé calderón (9)?.It is not neccessary to use all the tables.
SELECT date FROM table_2446333_2 WHERE circuit = "Eastern Creek Raceway"
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for eastern creek racewayIt is not neccessary to use all the tables.
SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code
CREATE TABLE INST, Here is a database schema( table schema);
List all payment methods and number of payments using each payment methods.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Event = adrenaline mma 3
CREATE TABLE INST, Here is a database schema( table schema);
How long was the fight 'adrenaline mma 3'?.It is not neccessary to use all the tables.
SELECT Purpose FROM table WHERE Freq currently = 8rn AND Area served = katherine
CREATE TABLE INST, Here is a database schema( table schema);
What is the purpose for the katherine freq of 8rn?.It is not neccessary to use all the tables.
SELECT DISTINCT main_industry FROM company
CREATE TABLE INST, Here is a database schema( table schema);
Show all main industry for all companies.It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_15 WHERE entrant = "bmw motorsport"
CREATE TABLE INST, Here is a database schema( table schema);
What year shows the Entrant of bmw motorsport?It is not neccessary to use all the tables.
SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10
CREATE TABLE INST, Here is a database schema( table schema);
What are the region names affected by the storm with a number of deaths of least 10?It is not neccessary to use all the tables.
SELECT groupYear FROM torrents GROUP BY groupYear ORDER BY count(groupName) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( torrents);
Which year has the most released song?. It is not neccessary to use all the tables.
SELECT Final score FROM table WHERE Stadium = heinz field
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score at Heinz Field?.It is not neccessary to use all the tables.
SELECT A-League FROM table WHERE Finals = 6 (1) AND Name = leigh broxham
CREATE TABLE INST, Here is a database schema( table schema);
What A-League has 6 (1) for the finals, and leigh broxham as the name?.It is not neccessary to use all the tables.
SELECT "opponent" FROM table_203_478 ORDER BY "attendance" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
against which opponent were there the most people in attendance ?It is not neccessary to use all the tables.
SELECT vs_terran FROM table_name_12 WHERE vs_zerg = "69"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score vs. Terran when the score vs. Zerg is 69?It is not neccessary to use all the tables.
SELECT title FROM table_name_26 WHERE label = "pacific jazz" AND year = 1963 AND label - Nr = st - 81
CREATE TABLE INST, Here is a database schema( table schema);
What is the song title from 1963 on the Pacific Jazz label and a Label-Nr of st-81?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_67 WHERE home_team = "south melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What was home team South Melbourne's opponents score?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Laps = 23 AND Grid = 13
CREATE TABLE INST, Here is a database schema( table schema);
How long did it take to ride when the laps were 23 and the grid of 13?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Date = october 31
CREATE TABLE INST, Here is a database schema( table schema);
On October 31 what team played at home?.It is not neccessary to use all the tables.
SELECT COUNT Crowd FROM table WHERE Away team = hawthorn
CREATE TABLE INST, Here is a database schema( table schema);
What is the listed crowd when hawthorn is away?.It is not neccessary to use all the tables.
SELECT MNZ FEA FROM table WHERE SIL SPR = 18
CREATE TABLE INST, Here is a database schema( table schema);
What was the MNZ FEA when the SIL SPR was 18?.It is not neccessary to use all the tables.
SELECT binibining_pilipinas_international FROM table_1825751_4 WHERE miss_universe_philippines = "Gionna Cabrera"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?It is not neccessary to use all the tables.
SELECT COUNT(rider) FROM table_25220821_3 WHERE tues_1_june = "21' 05.27 107.351mph"
CREATE TABLE INST, Here is a database schema( table schema);
If Tuesday 1 June is 21' 05.27 107.351mph what is the rider total number?It is not neccessary to use all the tables.
SELECT 2006-2009 FROM table WHERE 2010-2012 = 20.1
CREATE TABLE INST, Here is a database schema( table schema);
What was GDP for 2006-2009 for the sector that had a 20.1 GDP for 2010-2012?.It is not neccessary to use all the tables.
SELECT MIN(game) FROM table_name_14 WHERE points < 92
CREATE TABLE INST, Here is a database schema( table schema);
Which Game is the lowest one that has Points smaller than 92?It is not neccessary to use all the tables.
SELECT MIN(crowd) FROM table_name_29 WHERE venue = "hisense arena" AND date = "8 february"
CREATE TABLE INST, Here is a database schema( table schema);
Name the lowest Crowd of hisense arena on 8 february?It is not neccessary to use all the tables.
SELECT winner FROM table_name_51 WHERE circuit = "winton motor raceway"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner for the Winton Motor Raceway circuit?It is not neccessary to use all the tables.
SELECT "Result" FROM table_28931 WHERE "Incumbent" = 'Andrew Gregg'
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for Andrew Gregg?It is not neccessary to use all the tables.
SELECT winner FROM table_name_85 WHERE points_classification = "francesco moser" AND stage = "12"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner of Stage 12 with a Points Classification of Francesco Moser?It is not neccessary to use all the tables.
SELECT FRAMED SIZE FROM table WHERE NICKNAME = Robot Black
CREATE TABLE INST, Here is a database schema( table schema);
for the robot black nickname, what framed size is used.It is not neccessary to use all the tables.
SELECT player FROM table_11734041_16 WHERE no_s_ = "3"
CREATE TABLE INST, Here is a database schema( table schema);
Which players were number 3?It is not neccessary to use all the tables.
SELECT open_cup FROM table_name_61 WHERE playoffs = "conference semifinal" AND year = 2012
CREATE TABLE INST, Here is a database schema( table schema);
In 2012 which round in the Open Cup did Real Colorado Foxes make it to the conference semifinal?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Incumbent = John J. Delaney
CREATE TABLE INST, Here is a database schema( table schema);
Which political party is involved where John J. Delaney is the sitting Representative?.It is not neccessary to use all the tables.
SELECT "Capital" FROM table_42223 WHERE "Hanja" = '漢州'
CREATE TABLE INST, Here is a database schema( table schema);
What is the capital of the province with in Hanja?It is not neccessary to use all the tables.
SELECT MIN Cmp. % FROM table WHERE Int. < 2 AND Cmp. < 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Cmp % has an Int smaller than 2 and a Cmpnsmaller than 1?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Opponent = miami dolphins
CREATE TABLE INST, Here is a database schema( table schema);
What result has miami dolphins as the opponent?.It is not neccessary to use all the tables.
SELECT MAX GEO ID FROM table WHERE Water (sqmi) = 0.771
CREATE TABLE INST, Here is a database schema( table schema);
What is the geo ID for the township with 0.771 square miles of water?.It is not neccessary to use all the tables.
SELECT weeks FROM table_name_18 WHERE date = "december 12, 2001"
CREATE TABLE INST, Here is a database schema( table schema);
On December 12 2001 how many weeks had the single been in its position?It is not neccessary to use all the tables.
SELECT AVG(losses) FROM table_name_63 WHERE runs_allowed < 25 AND wins = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of losses the team with less than 25 runs allowed and 5 wins have?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Week = 13
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the date with week of 13.It is not neccessary to use all the tables.
SELECT manufacturer FROM table_24193494_3 WHERE order_year = 2011
CREATE TABLE INST, Here is a database schema( table schema);
Name the manufacturer for 2011It is not neccessary to use all the tables.
SELECT SUM(against) FROM table_name_70 WHERE losses < 9 AND ntfa_div_2 = "old scotch"
CREATE TABLE INST, Here is a database schema( table schema);
Old Scotch had less than 9 losses and how much against?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Opponent = tulsa
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game versus Tulsa?.It is not neccessary to use all the tables.
SELECT MAX(percent_yes) FROM table_name_29 WHERE jurisdiction = "alberta" AND percent_no < 60.2
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest percent of yes Alberta which had less than 60.2 vote no has?It is not neccessary to use all the tables.
SELECT Set 1 FROM table WHERE Set 4 = 28-30
CREATE TABLE INST, Here is a database schema( table schema);
What is the set 1 with a 28-30 set 4?.It is not neccessary to use all the tables.
SELECT Driver FROM table WHERE Time/Retired = +1 lap AND Constructor = bar - honda
CREATE TABLE INST, Here is a database schema( table schema);
What driver has a ime/Retired of +1 lap, and a Constructor of bar - honda?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Location = mississippi, united states AND Opponent = anthony macias
CREATE TABLE INST, Here is a database schema( table schema);
What was Gassaway's record at the fight in mississippi, united states against anthony macias?.It is not neccessary to use all the tables.
SELECT From FROM table WHERE Position = sg
CREATE TABLE INST, Here is a database schema( table schema);
Where is the position of sG from?.It is not neccessary to use all the tables.
SELECT resolution FROM table_name_65 WHERE active_pixels = "6726 x 5040" AND model = "afi 7"
CREATE TABLE INST, Here is a database schema( table schema);
What is the resolution of the camera that has 6726 x 5040 pixels and a model of afi 7?It is not neccessary to use all the tables.
SELECT Successor FROM table WHERE Date of successors formal installation = March 30, 1870
CREATE TABLE INST, Here is a database schema( table schema);
Who was the successor that was formally installed on March 30, 1870?.It is not neccessary to use all the tables.
SELECT MIN No. in series FROM table WHERE U.S. viewers (million) = 1.98
CREATE TABLE INST, Here is a database schema( table schema);
Which series number had 1.98 million viewers?.It is not neccessary to use all the tables.
SELECT MAX(total_kurdistan_list) FROM table_24440361_1 WHERE governorate = "Diyala"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most kirdistan list for diyalaIt is not neccessary to use all the tables.
SELECT arranger FROM table_name_29 WHERE title = "ana rouh"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the arranger for Ana Rouh?It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_76 WHERE actress = "quvenzhané wallis"
CREATE TABLE INST, Here is a database schema( table schema);
When did Quvenzhané Wallis first win?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = kangaroos
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Away Team is Kangaroos?.It is not neccessary to use all the tables.
SELECT pali FROM table_name_87 WHERE poison_klesha = "pride"
CREATE TABLE INST, Here is a database schema( table schema);
What is the pali word for pride in poison/klesha?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_88 WHERE grid = 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid 13 time score?It is not neccessary to use all the tables.
SELECT # FROM table WHERE Hometown = Tampa, FL
CREATE TABLE INST, Here is a database schema( table schema);
What number is the player whose hometown is Tampa, FL?.It is not neccessary to use all the tables.
SELECT Articulatory class FROM table WHERE "Muddy" voice = ᅇ, ㆅ
CREATE TABLE INST, Here is a database schema( table schema);
If the "Muddy" voice is ᅇ, ㆅ, what is the Articulatory class?.It is not neccessary to use all the tables.
SELECT MAX(lost) FROM table_name_74 WHERE points = 32 AND difference < 86
CREATE TABLE INST, Here is a database schema( table schema);
What is the most lost games for the team with a difference smaller than 86 and points of 32?It is not neccessary to use all the tables.
SELECT SUM(played) FROM table_name_81 WHERE points_1 = "53" AND position > 3
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE SUM PLAYED WITH POINTS 1 OF 53 AND POSITION LARGER THAN 3?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Country = united states AND Player = tiger woods
CREATE TABLE INST, Here is a database schema( table schema);
In what place was Tiger Woods of the United States?.It is not neccessary to use all the tables.
SELECT surface FROM table_22597626_2 WHERE championship = "US Open" AND year = 1979
CREATE TABLE INST, Here is a database schema( table schema);
What is the surface made of if the year is 1979 and the championship is US Open?It is not neccessary to use all the tables.
SELECT sat_29_aug FROM table_23465864_4 WHERE fri_28_aug = "25' 01.89 90.438mph"
CREATE TABLE INST, Here is a database schema( table schema);
What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Date of appointment = 23 March 2011
CREATE TABLE INST, Here is a database schema( table schema);
What is the team when the date of appointment is 23 march 2011?.It is not neccessary to use all the tables.
SELECT SUM Series FROM table WHERE Sixth place = joan tena
CREATE TABLE INST, Here is a database schema( table schema);
What series had Joan Tena in sixth place?.It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Lane > 4 AND Nationality = great britain AND Name = margaretha pedder
CREATE TABLE INST, Here is a database schema( table schema);
How many ranks are higher than lane 4 from Great Britain, raced by Margaretha Pedder?.It is not neccessary to use all the tables.
SELECT years FROM table_name_83 WHERE nationality = "united states" AND position = "pg / sg"
CREATE TABLE INST, Here is a database schema( table schema);
What is Years, when Nationality is United States, and when Position is PG / SG?It is not neccessary to use all the tables.
SELECT high_assists FROM table_11964154_11 WHERE team = "@ Dallas"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high assists @ Dallas?It is not neccessary to use all the tables.
SELECT Engine FROM table WHERE Start < 7 AND Finish = 23
CREATE TABLE INST, Here is a database schema( table schema);
What engine has a start less than 7, and 23 as a finish?.It is not neccessary to use all the tables.
SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2009 = "6.02"
CREATE TABLE INST, Here is a database schema( table schema);
how many countiers had 2009 remittances of 6.02?It is not neccessary to use all the tables.
SELECT position FROM table_name_45 WHERE round > 4 AND player = "patrick johnson"
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a Round larger than 4 and a Player of patrick johnson?It is not neccessary to use all the tables.
SELECT MIN(losses) FROM table_name_53 WHERE wins > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of losses for a team with more than 0 wins?It is not neccessary to use all the tables.
SELECT time FROM table_name_15 WHERE city = "sheffield"
CREATE TABLE INST, Here is a database schema( table schema);
What is the time for Sheffield?It is not neccessary to use all the tables.
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+14.3%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the percentage of registered voters in which the d-r spread is +14.3%?It is not neccessary to use all the tables.
SELECT position FROM table_name_28 WHERE overall < 421 AND player = "matt clark"
CREATE TABLE INST, Here is a database schema( table schema);
What position was less than 421 overall played by Matt Clark?It is not neccessary to use all the tables.
SELECT AVG Total FROM table WHERE Championship < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average total for less than 1 championship?.It is not neccessary to use all the tables.
SELECT Human Gene (Protein) FROM table WHERE Mouse Ortholog = lig1
CREATE TABLE INST, Here is a database schema( table schema);
What is the human gene that has a mouse ortholog of LIG1?.It is not neccessary to use all the tables.
SELECT date FROM table_name_39 WHERE city = "warsaw"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date when the City is Warsaw?It is not neccessary to use all the tables.
SELECT COUNT(stadium) FROM table_11208143_9 WHERE capacity = 7500
CREATE TABLE INST, Here is a database schema( table schema);
How many stadiums are there with a capacity of 7500?It is not neccessary to use all the tables.
SELECT GDP per capita (US$) FROM table WHERE GDP (billion US$) = 156.640
CREATE TABLE INST, Here is a database schema( table schema);
What is the per-capita GDP for the country with an overall GDP of 156.640?.It is not neccessary to use all the tables.
SELECT diagnosis.diagnosistime FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-25705')) AND diagnosis.diagnosisname = 'depression' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY diagnosis.diagnosistime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
when was the last time patient 021-25705 has been diagnosed with depression since 2 years ago?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Round > 1 AND Method = decision (unanimous)
CREATE TABLE INST, Here is a database schema( table schema);
What is the opponent after round number 1 with a method of decision (unanimous)?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = April 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the final score of the game on April 9?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Event = rip curl women's pro
CREATE TABLE INST, Here is a database schema( table schema);
What is Country, when Event is Rip Curl Women's Pro?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_18335117_5 WHERE director = "Barnaby Southcomb" AND writer = "Charlie Martin"
CREATE TABLE INST, Here is a database schema( table schema);
Name the original air date for barnaby southcomb for charlie martinIt is not neccessary to use all the tables.
SELECT winner FROM table_name_76 WHERE stage = "12"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner of stage 12?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_12 WHERE result = "l 49–21"
CREATE TABLE INST, Here is a database schema( table schema);
I want the attendance which has a result of l 49–21It is not neccessary to use all the tables.
SELECT Rider FROM table WHERE Team = 600cc yamaha
CREATE TABLE INST, Here is a database schema( table schema);
Which rider was on the 600cc Yamaha team?.It is not neccessary to use all the tables.
SELECT name AS origin FROM table_16799784_14 WHERE diameter__km_ = "220.0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name origin with a diameter of 220.0 kilometers?It is not neccessary to use all the tables.
SELECT 1999 FROM table WHERE 1998 = grand slam tournaments
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1999 answer when 1998 is Grand Slam Tournaments?.It is not neccessary to use all the tables.
SELECT "island" FROM table_203_568 WHERE id = (SELECT id FROM table_203_568 WHERE "town/village" = 'argir') - 1
CREATE TABLE INST, Here is a database schema( table schema);
which island is listed before the town/village of argir ?It is not neccessary to use all the tables.
SELECT "2nd leg" FROM table_68948 WHERE "Team 1" = 'chicago croatian'
CREATE TABLE INST, Here is a database schema( table schema);
What was the 2nd leg when Team 1 was Chicago Croatian?It is not neccessary to use all the tables.
SELECT 20 AS _questions FROM table_name_21 WHERE cover_model = "kimberley conrad hefner"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the 20 Questions section aimed at when Cover Model was Kimberley Conrad Hefner?It is not neccessary to use all the tables.
SELECT winners_score FROM table_224616_1 WHERE year = 1982
CREATE TABLE INST, Here is a database schema( table schema);
List all winning scores from 1982.It is not neccessary to use all the tables.
SELECT SUM(races) FROM table_name_82 WHERE podiums < 3 AND wins = 0 AND season > 2001 AND points = "32"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?It is not neccessary to use all the tables.