sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Years of Kindergarten legally required FROM table WHERE Canton = Zug
CREATE TABLE INST, Here is a database schema( table schema);
How many years is kindergarten legally requited in Zug?.It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Directed by = Nelson McCormick
CREATE TABLE INST, Here is a database schema( table schema);
Which episodes did Nelson McCormick direct?.It is not neccessary to use all the tables.
SELECT water__sqmi_ FROM table_18600760_15 WHERE county = "Ramsey" AND geo_id > 3807159460.0
CREATE TABLE INST, Here is a database schema( table schema);
How many square miles of water is in Ramsey County with a geo id larger than 3807159460.0?It is not neccessary to use all the tables.
SELECT For (%) FROM table WHERE Against (%) = 35,782 (69)
CREATE TABLE INST, Here is a database schema( table schema);
How many for percentages are there when the against percentage is 35,782 (69)?.It is not neccessary to use all the tables.
SELECT Latitude FROM table WHERE Name = Laima Tessera
CREATE TABLE INST, Here is a database schema( table schema);
Name the latitude of laima tessera.It is not neccessary to use all the tables.
SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200
CREATE TABLE INST, Here is a database schema( table schema);
Show all artist names with an average exhibition attendance over 200.It is not neccessary to use all the tables.
SELECT Report FROM table WHERE Winning driver = Mike Hawthorn
CREATE TABLE INST, Here is a database schema( table schema);
What was the report of Mike Hawthorn's winning race?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "ASIAN" AND demographic.dob_year < "1850"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose ethnicity is asian and year of birth is less than 1850?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Rating > 2746 AND Prev < 4 AND Chng = +4
CREATE TABLE INST, Here is a database schema( table schema);
What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng?.It is not neccessary to use all the tables.
SELECT A-side FROM table WHERE Catalog number = 902
CREATE TABLE INST, Here is a database schema( table schema);
What is the A-side for catalog 902?.It is not neccessary to use all the tables.
SELECT working_force_of_hk FROM table_27257896_2 WHERE nepalese = "37.1%"
CREATE TABLE INST, Here is a database schema( table schema);
If the nepalese is 37.1% what is the working force of HK?It is not neccessary to use all the tables.
SELECT class FROM table_name_34 WHERE part_4 = "*buranaz"
CREATE TABLE INST, Here is a database schema( table schema);
Which class has *buranaz as Part 4?It is not neccessary to use all the tables.
SELECT surface FROM table_name_19 WHERE outcome = "winner" AND date = "12 march 1989"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface where the outcome was winner on 12 march 1989?It is not neccessary to use all the tables.
SELECT date FROM table_name_20 WHERE record = "74-84"
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for record of 74-84It is not neccessary to use all the tables.
SELECT COUNT(draws) FROM table_name_15 WHERE wins < 9 AND byes < 2
CREATE TABLE INST, Here is a database schema( table schema);
What are the draws when wins are fwewer than 9 and byes fewer than 2?It is not neccessary to use all the tables.
SELECT last_match FROM table_name_26 WHERE date_of_vacancy = "round 2" AND outgoing_manager = "ney franco"
CREATE TABLE INST, Here is a database schema( table schema);
What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?It is not neccessary to use all the tables.
SELECT manager FROM table_1218784_1 WHERE rank = 16
CREATE TABLE INST, Here is a database schema( table schema);
Who is the manager whose rank is 16?It is not neccessary to use all the tables.
SELECT city FROM table_name_83 WHERE previous_counference = "lake" AND ihsaa_class = "3a"
CREATE TABLE INST, Here is a database schema( table schema);
What city has a team in IHSAA class 3a, and previous conference of lake?It is not neccessary to use all the tables.
SELECT date FROM table_name_29 WHERE score = "w 112-107 (ot)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the Game with a Score of w 112-107 (ot)?It is not neccessary to use all the tables.
SELECT Notes FROM table WHERE Distance > 7 AND Location = aplin
CREATE TABLE INST, Here is a database schema( table schema);
Which Notes have a Distance larger than 7, and a Location of aplin?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_16388439_3 WHERE home_team = "Brisbane Lions"
CREATE TABLE INST, Here is a database schema( table schema);
Name the home team score for brisbane lionsIt is not neccessary to use all the tables.
SELECT MIN(opponents) FROM table_22801331_1 WHERE cowboys_points = 36
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest points opponents have scored when the Cowboys score 36?It is not neccessary to use all the tables.
SELECT unit_test FROM table_name_76 WHERE msdn_integration = "full" AND projects_templates = "yes"
CREATE TABLE INST, Here is a database schema( table schema);
Which Unit test has a MSDN integration of full and a Projects templates of yes?It is not neccessary to use all the tables.
SELECT termination FROM table_1601027_1 WHERE headphone_model = "SR80i"
CREATE TABLE INST, Here is a database schema( table schema);
Which terminations correspond with headphone model SR80I?It is not neccessary to use all the tables.
SELECT MIN(issue) FROM table_name_12 WHERE writer = "arnie kogen" AND date = "december 1964"
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest issue Arnie Kogen wrote for in December 1964?It is not neccessary to use all the tables.
SELECT week__number FROM table_19508635_1 WHERE theme = "The Beatles"
CREATE TABLE INST, Here is a database schema( table schema);
Name the week number for the beatlesIt is not neccessary to use all the tables.
SELECT record FROM table_15607589_2 WHERE opponent = "New York Giants"
CREATE TABLE INST, Here is a database schema( table schema);
Name the record for new york giantsIt is not neccessary to use all the tables.
SELECT Absorb (nm) FROM table WHERE Color = orange
CREATE TABLE INST, Here is a database schema( table schema);
What is the Absorbtion (in nanometers) of the color Orange?.It is not neccessary to use all the tables.
SELECT AVG(series__number) FROM table_name_81 WHERE directed_by = "milan cheylov" AND written_by = "will dixon"
CREATE TABLE INST, Here is a database schema( table schema);
What series number was directed by milan cheylov and written by will dixon?It is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_53 WHERE position = "back" AND player = "ed cody"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest round where a back named Ed Cody can be found?It is not neccessary to use all the tables.
SELECT away_captain FROM table_name_86 WHERE venue = "the oval"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Away Captain at The Oval?It is not neccessary to use all the tables.
SELECT Expenditure (S$m) FROM table WHERE Operating profit (S$m) = 717.1
CREATE TABLE INST, Here is a database schema( table schema);
What was the expenditure (s$m) associated with an operating profit (s$m) of 717.1?.It is not neccessary to use all the tables.
SELECT successor FROM table_225093_4 WHERE reason_for_change = "Seat declared vacant January 2, 1808"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the successor when the reason for change is seat declared vacant January 2 1808It is not neccessary to use all the tables.
SELECT driver FROM table_name_51 WHERE year < 1905
CREATE TABLE INST, Here is a database schema( table schema);
Which driver had a year under 1905?It is not neccessary to use all the tables.
SELECT meter_200, SUM(meter_100) FROM swimmer GROUP BY meter_200
CREATE TABLE INST, Here is a database schema( table schema);
Create a bar chart showing total number of meter 100 across meter 200It is not neccessary to use all the tables.
SELECT grade FROM Highschooler
CREATE TABLE INST, Here is a database schema( table schema);
Show all the grades of the high schoolers.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Score in final = 3-6, 6-3, 6-2
CREATE TABLE INST, Here is a database schema( table schema);
What is Surface, when Score in Final is 3-6, 6-3, 6-2?.It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Games > 125 AND Player = david gonzalvez
CREATE TABLE INST, Here is a database schema( table schema);
How many players played over 125 games and were named david gonzalvez?.It is not neccessary to use all the tables.
SELECT position FROM table_name_46 WHERE name = "martina wood"
CREATE TABLE INST, Here is a database schema( table schema);
What is Martina Wood's Position?It is not neccessary to use all the tables.
SELECT teams FROM table_name_89 WHERE season = "1950-51"
CREATE TABLE INST, Here is a database schema( table schema);
what is the teams for season 1950-51?It is not neccessary to use all the tables.
SELECT SUM Pos. FROM table WHERE Team = roush fenway racing AND Car # = 99
CREATE TABLE INST, Here is a database schema( table schema);
Which Pos has a Team of roush fenway racing, and a Car # of 99?.It is not neccessary to use all the tables.
SELECT location.house_number, restaurant.name FROM geographic, location, restaurant WHERE geographic.region = 'bay area' AND restaurant.city_name = geographic.city_name AND restaurant.food_type = 'american' AND restaurant.id = location.restaurant_id AND restaurant.rating = (SELECT MAX(RESTAURANTalias1.rating) FROM geog...
CREATE TABLE INST, Here is a database schema( table schema);
where is the best restaurant in the bay area for american food ?It is not neccessary to use all the tables.
SELECT cover_model FROM table_name_22 WHERE centerfold_model = "scarlett keegan"
CREATE TABLE INST, Here is a database schema( table schema);
Which Cover model has a Centerfold model of scarlett keegan?It is not neccessary to use all the tables.
SELECT Others FROM table WHERE McCain% = 65.5%
CREATE TABLE INST, Here is a database schema( table schema);
How many people voted for others in the county where McCain got 65.5% of the votes?.It is not neccessary to use all the tables.
SELECT MIN First elected FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What year was someone first elected?.It is not neccessary to use all the tables.
SELECT MIN("Final year") FROM table_8471 WHERE "North or east terminus" = 'covington'
CREATE TABLE INST, Here is a database schema( table schema);
What is the most minimal Final year that has a North or east end of covington?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = Robert Allenby
CREATE TABLE INST, Here is a database schema( table schema);
What country does robert allenby represent?.It is not neccessary to use all the tables.
SELECT Years for Grizzlies FROM table WHERE School/Club Team = Maryland
CREATE TABLE INST, Here is a database schema( table schema);
when was the school/club team for grizzles was maryland.It is not neccessary to use all the tables.
SELECT playoffs FROM table_2357201_1 WHERE regular_season = "2nd, Great Lakes"
CREATE TABLE INST, Here is a database schema( table schema);
When Cleveland was 2nd great lakes in the regular season what did they get to in the playoffs?It is not neccessary to use all the tables.
SELECT COUNT(avg_g) FROM table_name_69 WHERE name = "cameron dantley" AND loss < 35
CREATE TABLE INST, Here is a database schema( table schema);
What's cameron dantley's total avg/g for loss less than 35?It is not neccessary to use all the tables.
SELECT Team 1 FROM table WHERE Team 2 = gazélec ajaccio (d3)
CREATE TABLE INST, Here is a database schema( table schema);
what is team 1 when team 2 is gazélec ajaccio (d3)?.It is not neccessary to use all the tables.
SELECT fastest_lap FROM table_name_8 WHERE winning_team = "team brm" AND race = 1 AND pole_position = "leanne tander" AND circuit = "phillip island"
CREATE TABLE INST, Here is a database schema( table schema);
What is Fastest Lap when Winning Team is Team BRM when Race is 1 when Pole Position is Leanne Tander and when Circuit is Phillip Island?It is not neccessary to use all the tables.
SELECT MIN(infant_mortality_rate) FROM table_21258_1 WHERE period = "1985 - 1990"
CREATE TABLE INST, Here is a database schema( table schema);
period between 1985 - 1990 have minimum infant mortality rate of what.It is not neccessary to use all the tables.
SELECT Group FROM table WHERE Result = nominated AND Year > 2008 AND Award = best lead actor in a television drama
CREATE TABLE INST, Here is a database schema( table schema);
After 2008, which Group has the Result, nominated, and the Award, Best Lead Actor in a Television Drama?.It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Tie no = 30
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended the game with a Tie no of 30?.It is not neccessary to use all the tables.
SELECT MIN(earnings__) AS $_ FROM table_name_93 WHERE money_list_rank = "6" AND starts < 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?It is not neccessary to use all the tables.
SELECT AVG(extra_points) FROM table_name_35 WHERE touchdowns < 2 AND player = "herrnstein" AND field_goals < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals?It is not neccessary to use all the tables.
SELECT COUNT(to_par) FROM table_name_42 WHERE country = "united states" AND money___$__ = 90
CREATE TABLE INST, Here is a database schema( table schema);
How much To par has a Country of united states and a Money ($) of 90?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_40 WHERE week > 5 AND opponent = "bye"
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance in the bye week after week 5?It is not neccessary to use all the tables.
SELECT director FROM table_22265716_1 WHERE film_title_used_in_nomination = "Three Summer Days"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the film with the title three summer days?It is not neccessary to use all the tables.
SELECT player FROM table_name_15 WHERE draft = 1971 AND pick > 7
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player from the 1971 draft with a pick greater than 7?It is not neccessary to use all the tables.
SELECT Bike FROM table WHERE Grid > 17 AND Laps < 8 AND Rider = milos cihak
CREATE TABLE INST, Here is a database schema( table schema);
What bike has a grid greater than 17, laps less than 8, with milos cihak as the rider?.It is not neccessary to use all the tables.
SELECT City FROM table WHERE Gross Revenue (2011) = $739,578
CREATE TABLE INST, Here is a database schema( table schema);
Which city had a gross revenue in 2011 of $739,578?.It is not neccessary to use all the tables.
SELECT july FROM table_name_7 WHERE october = "jill de vries"
CREATE TABLE INST, Here is a database schema( table schema);
Who is in July where October is jill de vries?It is not neccessary to use all the tables.
SELECT dorm_name, AVG(T1.Age) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name ORDER BY dorm_name
CREATE TABLE INST, Here is a database schema( table schema);
Find the average age of students living in each dorm and the name of dorm Plot them as bar chart, rank by the bars in asc.It is not neccessary to use all the tables.
SELECT thurs_2_june FROM table_29218221_1 WHERE fri_3_june = "17' 36.58 128.554mph"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Thurs 2 June time for the rider with a Fri 3 June time of 17' 36.58 128.554mph?It is not neccessary to use all the tables.
SELECT regular_season FROM table_2357201_1 WHERE year = 2006
CREATE TABLE INST, Here is a database schema( table schema);
How did Cleveland do in the regular season in 2006?It is not neccessary to use all the tables.
SELECT Results FROM table WHERE First elected = 2000
CREATE TABLE INST, Here is a database schema( table schema);
What was the result in the election where the date of first elected was 2000? .It is not neccessary to use all the tables.
SELECT "Rider" FROM table_5438 WHERE "Rank" = '10'
CREATE TABLE INST, Here is a database schema( table schema);
what person was in rank 10It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_46 WHERE driver = "john watson"
CREATE TABLE INST, Here is a database schema( table schema);
What was John Watson's time/retired?It is not neccessary to use all the tables.
SELECT MAX Total Goals FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest value of Total Goals?.It is not neccessary to use all the tables.
SELECT Crowd FROM table WHERE Home team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
What was the crowd size when Essendon was the home team?.It is not neccessary to use all the tables.
SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = '50 ml syringe: dextrose 50 % iv soln' AND patient.uniquepid = '002-58884' AND DATETIME(medication.drugstarttime, 'start o...
CREATE TABLE INST, Here is a database schema( table schema);
when was the first time when patient 002-58884 was prescribed 50 ml syringe: dextrose 50 % iv soln and lactated ringers iv : 1000 ml bag at the same time last month?It is not neccessary to use all the tables.
SELECT SUM Points FROM table WHERE Song = "why did you have to go?"
CREATE TABLE INST, Here is a database schema( table schema);
What was the sum of the points for the song "why did you have to go?".It is not neccessary to use all the tables.
SELECT country FROM table_name_70 WHERE notes = "fa" AND athlete = "ekaterina karsten"
CREATE TABLE INST, Here is a database schema( table schema);
What country did ekaterina karsten row for with fa listed under notes?It is not neccessary to use all the tables.
SELECT SUM Events FROM table WHERE Rank > 5
CREATE TABLE INST, Here is a database schema( table schema);
the sum of Events that has a Rank larger than 5 is 3.It is not neccessary to use all the tables.
SELECT COUNT District FROM table WHERE First elected = 1944
CREATE TABLE INST, Here is a database schema( table schema);
How many districts have an incumbent first elected in 1944?.It is not neccessary to use all the tables.
SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = "रविवार ravivār" AND tuesday_mangala__mars_ = "मंगळवार mangaḷavār"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday?It is not neccessary to use all the tables.
SELECT Semifinalists FROM table WHERE Finalist = andrei chesnokov
CREATE TABLE INST, Here is a database schema( table schema);
Which Semifinalists have a Finalist of andrei chesnokov?.It is not neccessary to use all the tables.
SELECT winning_driver FROM table_26267607_2 WHERE fastest_lap = "Mike Rockenfeller"
CREATE TABLE INST, Here is a database schema( table schema);
Where the fastest lap is Mike Rockenfeller who is the winning driver?It is not neccessary to use all the tables.
SELECT Release date FROM table WHERE Version = 1.0 AND Category = utilities AND Developer = microsoft AND Title = msn money
CREATE TABLE INST, Here is a database schema( table schema);
What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money?.It is not neccessary to use all the tables.
SELECT teams_that_can_still_qualify FROM table_23995075_2 WHERE teams_that_have_secured_qualification = "0" AND teams_started = "52"
CREATE TABLE INST, Here is a database schema( table schema);
How many teams can still qualify when there are 0 teams that have secured qualification and 52 teams started?It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Written by = Jonathan Fener
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode that was written by Jonathan Fener?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Debt as % of value < 86 AND % change on year = 21
CREATE TABLE INST, Here is a database schema( table schema);
Name the country where % change on year is 21 and value is less than 86.It is not neccessary to use all the tables.
SELECT password, author_id FROM Course_Authors_and_Tutors ORDER BY personal_name
CREATE TABLE INST, Here is a database schema( table schema);
Visualize a bar chart about the distribution of password and author_id .It is not neccessary to use all the tables.
SELECT district FROM table_2159506_4 WHERE reason_for_change = "Died August 9, 1964"
CREATE TABLE INST, Here is a database schema( table schema);
What is every district for reason for change is died August 9 1964?It is not neccessary to use all the tables.
SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID
CREATE TABLE INST, Here is a database schema( table schema);
Show the names of conductors and the orchestras they have conducted.It is not neccessary to use all the tables.
SELECT COUNT Score FROM table WHERE Game = 37
CREATE TABLE INST, Here is a database schema( table schema);
How many scores are listed for game 37?.It is not neccessary to use all the tables.
SELECT driver FROM table_17271495_1 WHERE points = "13"
CREATE TABLE INST, Here is a database schema( table schema);
Name the drive for points being 13It is not neccessary to use all the tables.
SELECT COUNT Asian team classification FROM table WHERE Asian rider classification = Samai Amari
CREATE TABLE INST, Here is a database schema( table schema);
When samai amari is the asian rider classification how many asian team classifications are there?.It is not neccessary to use all the tables.
SELECT type FROM table_2076608_1 WHERE school = "Stratford University"
CREATE TABLE INST, Here is a database schema( table schema);
What type of school is Stratford University?It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Year > 1988
CREATE TABLE INST, Here is a database schema( table schema);
with year greater than 1988 what is the total number of points?.It is not neccessary to use all the tables.
SELECT Games Played FROM table WHERE Goals For/Against = 29-24
CREATE TABLE INST, Here is a database schema( table schema);
How many games has the club with 29-24 goals for/against score played? .It is not neccessary to use all the tables.
SELECT date FROM table_name_93 WHERE turkey_scorers = "nihat kahveci"
CREATE TABLE INST, Here is a database schema( table schema);
I want the date for nihat kahveciIt is not neccessary to use all the tables.
SELECT Date FROM table WHERE Stage = 5
CREATE TABLE INST, Here is a database schema( table schema);
When did stage 5 occur?.It is not neccessary to use all the tables.
SELECT Race FROM table WHERE Time = 1:24.35
CREATE TABLE INST, Here is a database schema( table schema);
Which race had a time of 1:24.35?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = leeds united AND Competition = league cup
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away team for the tome team Leeds United, at the League Cup Competition?.It is not neccessary to use all the tables.
SELECT platforms FROM table_name_38 WHERE hazmat = "–" AND type = "urban & rural" AND brigade = "lara"
CREATE TABLE INST, Here is a database schema( table schema);
Which Platforms have a Hazmat of – and a Type of urban & rural and a Brigade of lara?It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Year > 1990 AND Entrant = fondmetal f1 spa
CREATE TABLE INST, Here is a database schema( table schema);
Which chassis did fondmetal f1 spa use after 1990?.It is not neccessary to use all the tables.
SELECT format FROM table_name_3 WHERE label = "geffen" AND region = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the format for geffen of the united statesIt is not neccessary to use all the tables.