sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT catalog FROM table_name_59 WHERE region = "japan"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Catalog Number is for the Japan region?It is not neccessary to use all the tables.
SELECT T2.Party, AVG(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY AVG(COUNT(*))
CREATE TABLE INST, Here is a database schema( table schema);
Show the name of each party and the corresponding number of delegates from that party in a bar chart, order by the the average of count(*) from low to high please.It is not neccessary to use all the tables.
SELECT Team USA FROM table WHERE Team Europe = Paul Moor
CREATE TABLE INST, Here is a database schema( table schema);
When paul moor is on the europe team who is on the usa team?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Visiting team = Western Kentucky
CREATE TABLE INST, Here is a database schema( table schema);
List all home teams when Western Kentucky was the visiting team..It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Waterford score = 6-08 (24)
CREATE TABLE INST, Here is a database schema( table schema);
What yeae has 6-08 (24) as a waterford score?.It is not neccessary to use all the tables.
SELECT Net Assets at End of Year FROM table WHERE Increase in Net Assets = $654,066
CREATE TABLE INST, Here is a database schema( table schema);
When the increase in net assets is $654,066, what is the net assets at end of year?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM bank
CREATE TABLE INST, Here is a database schema( table schema);
How many bank branches are there?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = bernhard langer
CREATE TABLE INST, Here is a database schema( table schema);
What Place has a Player of bernhard langer?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_76 WHERE venue = "windy hill"
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team's score at Windy Hill?It is not neccessary to use all the tables.
SELECT COUNT(2008) FROM table_name_53 WHERE 2006 > 322.7 AND 2011 = 353.9 AND 2009 < 392
CREATE TABLE INST, Here is a database schema( table schema);
What is the total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392?It is not neccessary to use all the tables.
SELECT "1st Member" FROM table_12823 WHERE "1st Party" = 'constituency abolished'
CREATE TABLE INST, Here is a database schema( table schema);
What is 1st Member, when 1st Party is 'Constituency Abolished'?It is not neccessary to use all the tables.
SELECT 2014 FROM table_name_49 WHERE 2013 = "danielle button"
CREATE TABLE INST, Here is a database schema( table schema);
Who held the same position in 2014 that Danielle Button held in 2013?It is not neccessary to use all the tables.
SELECT Mascot FROM table WHERE Year opened = 1970
CREATE TABLE INST, Here is a database schema( table schema);
What is the mascot whose school opened in 1970?.It is not neccessary to use all the tables.
SELECT MAX Overall FROM table WHERE College = georgia
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest overall of the player from Georgia?.It is not neccessary to use all the tables.
SELECT new_returning_same_network FROM table_name_35 WHERE returning = "april 3" AND show = "shop 'til you drop"
CREATE TABLE INST, Here is a database schema( table schema);
Which network returns april 3 and a Show of shop 'til you drop?It is not neccessary to use all the tables.
SELECT location FROM table_name_93 WHERE result = "28-21"
CREATE TABLE INST, Here is a database schema( table schema);
What is Location when Result is 28-21?It is not neccessary to use all the tables.
SELECT position FROM table_name_92 WHERE pick < 152 AND round < 3
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a Pick smaller than 152 and a Round smaller than 3?It is not neccessary to use all the tables.
SELECT injured FROM table_name_68 WHERE location = "borneo"
CREATE TABLE INST, Here is a database schema( table schema);
How many are injured in Borneo?It is not neccessary to use all the tables.
SELECT Status FROM table WHERE Co-contestant (Yaar vs. Pyaar) = tina sachdev
CREATE TABLE INST, Here is a database schema( table schema);
Which Status has a Co-contestant (Yaar vs. Pyaar) of tina sachdev?.It is not neccessary to use all the tables.
SELECT qual FROM table_name_41 WHERE rank = "27"
CREATE TABLE INST, Here is a database schema( table schema);
What's the Qual listed with a Rank of 27?It is not neccessary to use all the tables.
SELECT MAX(demographic.age) FROM demographic WHERE demographic.language = "ENGL" AND demographic.diagnosis = "BRADYCARDIA"
CREATE TABLE INST, Here is a database schema( table schema);
give the maximum age of patients who speak english and have bradycardia.It is not neccessary to use all the tables.
SELECT "Place" FROM table_60484 WHERE "Player" = 'john cook'
CREATE TABLE INST, Here is a database schema( table schema);
What is Place, when Player is 'John Cook'?It is not neccessary to use all the tables.
SELECT AVG("Year") FROM table_51640 WHERE "Finish" = 'lost 2001 alcs' AND "Percentage" > '0.716'
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Year for the Finish of lost 2001 alcs and the Percentage is over 0.716?It is not neccessary to use all the tables.
SELECT elector FROM table_name_5 WHERE nationality = "roman" AND elevator = "urban iv" AND elevated = "1261, december 17"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Elector with a Nationality with roman and an Elevator of urban iv and an Elevated with 1261 december 17?It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_7 WHERE score = 270
CREATE TABLE INST, Here is a database schema( table schema);
What was the average year during which the score was 270?It is not neccessary to use all the tables.
SELECT Enrollment FROM table WHERE Joined = 2007-08
CREATE TABLE INST, Here is a database schema( table schema);
Name the enrollment for 2007-08.It is not neccessary to use all the tables.
SELECT MIN(game) FROM table_18904831_7 WHERE date = "August 20"
CREATE TABLE INST, Here is a database schema( table schema);
What was # of the first game played on August 20?It is not neccessary to use all the tables.
SELECT "Incumbent" FROM table_79087 WHERE "First elected" < '2002' AND "District" = 'maryland 3'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the incumbent who was first elected before 2002 from the maryland 3 district?It is not neccessary to use all the tables.
SELECT team FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick"
CREATE TABLE INST, Here is a database schema( table schema);
Which team uses lola t92/00/ buick for their chassis/engine?It is not neccessary to use all the tables.
SELECT MAX(taper) / ft FROM table_name_27 WHERE large_end < 0.5 AND taper = "#2"
CREATE TABLE INST, Here is a database schema( table schema);
Which Taper/ft that has a Large end smaller than 0.5 and a Taper of #2?It is not neccessary to use all the tables.
SELECT Group D Winner FROM table WHERE Group B Winner = Modena
CREATE TABLE INST, Here is a database schema( table schema);
What was the group d winner for modena?.It is not neccessary to use all the tables.
SELECT COUNT(nationality) FROM table_16494599_10 WHERE school_club_team = "Duke"
CREATE TABLE INST, Here is a database schema( table schema);
What are the nationalities of players who attended duke?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'CO'
CREATE TABLE INST, Here is a database schema( table schema);
i want a flight on CO leaving SAN FRANCISCO california arriving PITTSBURGH pennsylvaniaIt is not neccessary to use all the tables.
SELECT COUNT Team classification FROM table WHERE Combination classification = Alejandro Valverde AND Points classification = Alessandro Petacchi
CREATE TABLE INST, Here is a database schema( table schema);
How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?.It is not neccessary to use all the tables.
SELECT sample_size FROM table_name_35 WHERE date = "may 2-7, 2007" AND democrat = "hillary clinton"
CREATE TABLE INST, Here is a database schema( table schema);
What was the sample size for polling on May 2-7 2007 for Hillary Clinton?It is not neccessary to use all the tables.
SELECT birthdate FROM table_name_23 WHERE height__cm_ < 191 AND weight__kg_ = 84
CREATE TABLE INST, Here is a database schema( table schema);
What is the Birthdate for the person with a height less than 191 and weight of 84 kg?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2073" AND prescriptions.route = "IV"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose year of birth is less than 2073 and drug route is iv?It is not neccessary to use all the tables.
SELECT Award FROM table WHERE Category = music video acting award
CREATE TABLE INST, Here is a database schema( table schema);
Which Award has a Category of music video acting award?.It is not neccessary to use all the tables.
SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING COUNT(*) > 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of instructors who are advising more than one student.It is not neccessary to use all the tables.
SELECT 2006/ 07 FROM table WHERE 2011/ 12 = lq AND 2010/ 11 = lq AND 2002/ 03 = lq
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2006/07 with 2011/12 of lq and 2010/11 of lq with 2002/03 of lq.It is not neccessary to use all the tables.
SELECT 1997 FROM table WHERE 1996 = 1r AND 1990 = 2r AND 1991 = f
CREATE TABLE INST, Here is a database schema( table schema);
What is 1997, when 1996 is "1R", when 1990 is "2R", and when 1991 is "F"?.It is not neccessary to use all the tables.
SELECT office FROM table_name_51 WHERE law_preservation_ticket = "william e. barron"
CREATE TABLE INST, Here is a database schema( table schema);
What office was law preservation ticket holder William E. Barron running for?It is not neccessary to use all the tables.
SELECT goalkeeper FROM table_name_32 WHERE mins < 2160
CREATE TABLE INST, Here is a database schema( table schema);
What Goalkeeper has MINS less than 2160It is not neccessary to use all the tables.
SELECT status FROM table_name_14 WHERE "role" = "role"
CREATE TABLE INST, Here is a database schema( table schema);
When the role is role what was the status?It is not neccessary to use all the tables.
SELECT Stage FROM table WHERE Intergiro classification = miguel indurain AND Points classification = mario cipollini AND Young rider classification = leonardo sierra
CREATE TABLE INST, Here is a database schema( table schema);
During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra?.It is not neccessary to use all the tables.
SELECT crowd FROM table_name_85 WHERE home_team = "st kilda"
CREATE TABLE INST, Here is a database schema( table schema);
Which Crowd has a Home team of st kilda?It is not neccessary to use all the tables.
SELECT date FROM table_name_19 WHERE home_team = "collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date for home team Collingwood?It is not neccessary to use all the tables.
SELECT MAX(poles) FROM table_2190919_3
CREATE TABLE INST, Here is a database schema( table schema);
What was the maximum amount of the poles?It is not neccessary to use all the tables.
SELECT League a FROM table WHERE FA Cup = 6 (20)
CREATE TABLE INST, Here is a database schema( table schema);
What shows for the League when the FA Cup is 6 (20)?.It is not neccessary to use all the tables.
SELECT 1 AS st_round FROM table_name_25 WHERE team_1 = "fc nantes (d1)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1st round with fc nantes (d1) as team 1?It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Directed by = Greg Sullivan AND United States Original Airdate = July 21, 2012
CREATE TABLE INST, Here is a database schema( table schema);
Who were the writers of the episodes directed by Greg Sullivan and which first aired on July 21, 2012?.It is not neccessary to use all the tables.
SELECT Series FROM table WHERE Points = 30
CREATE TABLE INST, Here is a database schema( table schema);
In what series did the driver get 30 points?.It is not neccessary to use all the tables.
SELECT demographic.diagnosis FROM demographic WHERE demographic.subject_id = "6983"
CREATE TABLE INST, Here is a database schema( table schema);
find the dignoses of subject id 6983.It is not neccessary to use all the tables.
SELECT MIN(wins) FROM table_name_40 WHERE top_10 > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Wins with a Top-10 that is larger than 9?It is not neccessary to use all the tables.
SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = "ff0 PRS"
CREATE TABLE INST, Here is a database schema( table schema);
What is the regulated retail price for the tariff code ff0 prs?It is not neccessary to use all the tables.
SELECT Week FROM table WHERE Air Date = august 30, 2008
CREATE TABLE INST, Here is a database schema( table schema);
Which Week has an Air Date of august 30, 2008?.It is not neccessary to use all the tables.
SELECT translator_call_letters FROM table_name_94 WHERE station_call_letters = "kcop-dt"
CREATE TABLE INST, Here is a database schema( table schema);
What are the translator call letters for station call letters of KCOP-DT?It is not neccessary to use all the tables.
SELECT SUM Pick FROM table WHERE School = lsu
CREATE TABLE INST, Here is a database schema( table schema);
What is the pick number for School of lsu?.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Score = 7–6(4), 6–1
CREATE TABLE INST, Here is a database schema( table schema);
Name the surface for score of 7–6(4), 6–1.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.long_title = "Open biopsy of soft tissue"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose death status is 0 and procedure long title is open biopsy of soft tissue?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Place = t10
CREATE TABLE INST, Here is a database schema( table schema);
What Player has a Place of t10?.It is not neccessary to use all the tables.
SELECT Skip FROM table WHERE Second = zrinka muhek
CREATE TABLE INST, Here is a database schema( table schema);
Which skip has Zrinka Muhek as Second?.It is not neccessary to use all the tables.
SELECT MAX(pick__number) FROM table_2508633_5 WHERE nfl_team = "Los Angeles Raiders"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest pick number the los angeles raiders got?It is not neccessary to use all the tables.
SELECT release_date FROM table_name_48 WHERE l2_cache = "2x 512 kb" AND multi_1 = "11x" AND fpu_width = "128-bit"
CREATE TABLE INST, Here is a database schema( table schema);
What is the release date of the 2x 512 kb L2 cache with a 11x multi 1 and a FPU width of 128-bit?It is not neccessary to use all the tables.
SELECT SUM(fac___lc_g) FROM table_name_30 WHERE cl_g < 2 AND total_apps < 5 AND UEfa_yc > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the FAC/LC G with a CL G less than 2 less than 5 total apps and a UEFA YC greater than 0?It is not neccessary to use all the tables.
SELECT MAX(attendance) FROM table_name_25 WHERE week = 9
CREATE TABLE INST, Here is a database schema( table schema);
What was the Attendance on Week 9?It is not neccessary to use all the tables.
SELECT result FROM table_name_50 WHERE week = 2
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for week 2?It is not neccessary to use all the tables.
SELECT MIN(top_10) FROM table_1875157_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of top 10 finishesIt is not neccessary to use all the tables.
SELECT original_air_date FROM table_24425976_7 WHERE season = 4
CREATE TABLE INST, Here is a database schema( table schema);
What date did episode 4 in the season originally air?It is not neccessary to use all the tables.
SELECT bleeding_time FROM table_name_31 WHERE condition = "factor x deficiency as seen in amyloid purpura"
CREATE TABLE INST, Here is a database schema( table schema);
Which Bleeding time has a Condition of factor x deficiency as seen in amyloid purpura?It is not neccessary to use all the tables.
SELECT MIN(date) FROM table_name_15 WHERE surface = "clay" AND championship = "linz, austria"
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest Date on a Surface of clay in a Championship in Linz Austria?It is not neccessary to use all the tables.
SELECT COUNT(2012 AS _passengers__in_millions_) FROM table_name_56 WHERE distance = "1075km"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of 2012 passengers in millions that have traveled a distance of 1075km?It is not neccessary to use all the tables.
SELECT 2012 FROM table_name_66 WHERE tournament = "cincinnati masters"
CREATE TABLE INST, Here is a database schema( table schema);
what is 2012 when the tournament is cincinnati masters?It is not neccessary to use all the tables.
SELECT stage FROM table_name_89 WHERE course = "reggio calabria to catanzaro"
CREATE TABLE INST, Here is a database schema( table schema);
What stage of the race was held on the course Reggio Calabria to Catanzaro?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Ground = Subiaco Oval
CREATE TABLE INST, Here is a database schema( table schema);
Who are the away teams when subiaco oval was the grounds?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_39 WHERE venue = "windy hill"
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team at windy hill?It is not neccessary to use all the tables.
SELECT season FROM table_name_24 WHERE home = "0–1"
CREATE TABLE INST, Here is a database schema( table schema);
Which Season has a Home of 0–1?It is not neccessary to use all the tables.
SELECT elector FROM table_name_51 WHERE faction = "italian" AND nationality = "prato"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Prato Elector with a faction of Italian?It is not neccessary to use all the tables.
SELECT "Player" FROM table_2098 WHERE "NHL team" = 'Detroit Red Wings'
CREATE TABLE INST, Here is a database schema( table schema);
What player was drafted to the Detroit Red Wings?It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Away = 4-0
CREATE TABLE INST, Here is a database schema( table schema);
What is the home for the away of 4-0?.It is not neccessary to use all the tables.
SELECT C (nF/km) FROM table WHERE L (mH/km) = 0.6099
CREATE TABLE INST, Here is a database schema( table schema);
what is the c (nf/km) when the l (mh/km) is 0.6099?.It is not neccessary to use all the tables.
SELECT in_malayalam FROM table_name_61 WHERE saka_era = "kartika–agrahayana"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE IN MALAYALAM WITH kartika–agrahayana?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Event = extreme challenge 63 AND Time = 2:00
CREATE TABLE INST, Here is a database schema( table schema);
Where was Extreme Challenge 63 with a time of 2:00 held?.It is not neccessary to use all the tables.
SELECT COUNT(original_air_date) FROM table_27969432_3 WHERE written_by = "David J. North & Janet Tamaro"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were written by david j. north & janet tamaro?It is not neccessary to use all the tables.
SELECT MIN Interview FROM table WHERE State = texas AND Average > 9.531
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest interview of Texas, with an average larger than 9.531?.It is not neccessary to use all the tables.
SELECT COUNT(grid) FROM table_name_57 WHERE laps = 37
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid total when there are 37 laps?It is not neccessary to use all the tables.
SELECT party FROM table_2668367_21 WHERE incumbent = "John Randolph Redistricted from the 15th district"
CREATE TABLE INST, Here is a database schema( table schema);
Name the party for john randolph redistricted from the 15th districtIt is not neccessary to use all the tables.
SELECT Line FROM table WHERE Name = geumjeong tunnel
CREATE TABLE INST, Here is a database schema( table schema);
Which line is the Geumjeong tunnel?.It is not neccessary to use all the tables.
SELECT written_by FROM table_15584067_7 WHERE no_in_season = "11"
CREATE TABLE INST, Here is a database schema( table schema);
Name who wrote the 11 number in the seasonIt is not neccessary to use all the tables.
SELECT college FROM table_name_87 WHERE overall > 226 AND pick < 12 AND position = "ot"
CREATE TABLE INST, Here is a database schema( table schema);
What college did the player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226?It is not neccessary to use all the tables.
SELECT original_italian_production FROM table_name_4 WHERE first_us_national_tour = "joanna glushak"
CREATE TABLE INST, Here is a database schema( table schema);
Which Original Italian production has a First US National Tour of joanna glushak?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE District = Pennsylvania 8
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for Pennsylvania 8?.It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE Candidates = Henry Garland Dupré (D) Unopposed
CREATE TABLE INST, Here is a database schema( table schema);
Who was the incumbent in the election of henry garland dupré (d) unopposed?.It is not neccessary to use all the tables.
SELECT COUNT(week) FROM table_name_67 WHERE result = "w 35–7"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the total number of week for w 35–7It is not neccessary to use all the tables.
SELECT MIN(events) FROM table_name_14 WHERE cuts_made = 17 AND top_25 < 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest events that have 17 as the cuts made, with a top-25 less than 8?It is not neccessary to use all the tables.
SELECT COUNT(league) FROM table_17598822_11 WHERE total = 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of league for 5It is not neccessary to use all the tables.
SELECT Time/Retired FROM table WHERE Grid = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the time/retired for grid 8?.It is not neccessary to use all the tables.
SELECT Result/Games FROM table WHERE Attendance = 27585
CREATE TABLE INST, Here is a database schema( table schema);
When 27585 is the attendance what are the results of the games?.It is not neccessary to use all the tables.
SELECT MIN I_{high} FROM table WHERE C_{low} = 250.5
CREATE TABLE INST, Here is a database schema( table schema);
What's the i_{high} value when C_{low} is 250.5?.It is not neccessary to use all the tables.
SELECT MIN(post) FROM table_name_31 WHERE jockey = "calvin borel"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest post number for calvin borel?It is not neccessary to use all the tables.