sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT(field_goals) FROM table_name_33 WHERE points > 5 AND touchdowns > 2 AND extra_points < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many Field goals have Points larger than 5 and Touchdowns larger than 2 and an Extra points smaller than 0?It is not neccessary to use all the tables.
SELECT Candidates FROM table WHERE District = Pennsylvania 5
CREATE TABLE INST, Here is a database schema( table schema);
who was running in the section pennsylvania 5.It is not neccessary to use all the tables.
SELECT scientific_pitch FROM table_name_33 WHERE helmholtz_pitch = "d"
CREATE TABLE INST, Here is a database schema( table schema);
What is the scientific pitch when the Helmholtz pitch is D?It is not neccessary to use all the tables.
SELECT Target FROM table WHERE Antibody = rituximab
CREATE TABLE INST, Here is a database schema( table schema);
What's the target of the antibody rituximab?.It is not neccessary to use all the tables.
SELECT series FROM table_14345690_15 WHERE main_presenter = "Caroline Flack"
CREATE TABLE INST, Here is a database schema( table schema);
What series have Caroline Flack as a main presenter?It is not neccessary to use all the tables.
SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_55 WHERE location = "tennessee"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the average 1st prize for tennesseeIt is not neccessary to use all the tables.
SELECT Name FROM company ORDER BY Sales_in_Billion
CREATE TABLE INST, Here is a database schema( table schema);
List the names of companies by ascending number of sales.It is not neccessary to use all the tables.
SELECT date FROM table_name_22 WHERE uci_rating = "1.1" AND race_name = "omloop van de vlaamse scheldeboorden"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1?It is not neccessary to use all the tables.
SELECT MIN(vinto_municipality) FROM table_2509113_2 WHERE language = "Spanish"
CREATE TABLE INST, Here is a database schema( table schema);
If the language is Spanish what is the Vinto Municipality minimum?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Place = t5 AND Score = 73-69-68=210
CREATE TABLE INST, Here is a database schema( table schema);
Who placed in t5 and scored 73-69-68=210?.It is not neccessary to use all the tables.
SELECT SUM(wins) FROM table_name_82 WHERE points = 26 AND rank < 27
CREATE TABLE INST, Here is a database schema( table schema);
Points of 26 and a Rank smaller than 27 had what sum of wins?It is not neccessary to use all the tables.
SELECT SUM(goals) FROM table_name_71 WHERE rank > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the total Goals with Rank larger than 10?It is not neccessary to use all the tables.
SELECT # FROM table WHERE Creators = Bill Finger Edmond Hamilton Dick Sprang , et al.
CREATE TABLE INST, Here is a database schema( table schema);
Name the # for bill finger edmond hamilton dick sprang , et al..It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Player = Shorts
CREATE TABLE INST, Here is a database schema( table schema);
Name the position for shorts.It is not neccessary to use all the tables.
SELECT Airport FROM table WHERE Country = france AND City = montpellier
CREATE TABLE INST, Here is a database schema( table schema);
What is the Airport when France was the country, and Montpellier was the city?.It is not neccessary to use all the tables.
SELECT circuit FROM table_name_79 WHERE date = "10 may" AND name = "targa florio"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the circuit for 10 may for targa florioIt is not neccessary to use all the tables.
SELECT Writer(s) FROM table WHERE Airdate = September 11, 1972
CREATE TABLE INST, Here is a database schema( table schema);
Who was the writer who wrote the episode that was aired on September 11, 1972?.It is not neccessary to use all the tables.
SELECT "Manager" FROM table_64956 WHERE "Current Club" = 'atlético baleares'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the manager of the Atl tico Baleares?It is not neccessary to use all the tables.
SELECT stadium FROM table_name_25 WHERE result = "w 20–16"
CREATE TABLE INST, Here is a database schema( table schema);
What Stadium had a Result of w 20–16?It is not neccessary to use all the tables.
SELECT MIN(season) FROM table_1004033_1 WHERE team = "MetroStars"
CREATE TABLE INST, Here is a database schema( table schema);
When did the Metrostars have their first Rookie of the Year winner?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Opponent = indiana state college
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date with an Opponent that is indiana state college?.It is not neccessary to use all the tables.
SELECT winner FROM table_28601467_1 WHERE result = "Scotland won on points table" AND runner_up = "[[|]] 4 points"
CREATE TABLE INST, Here is a database schema( table schema);
What are all the winning records when the result is Scotland won on points table and the Runner-Up result is [[|]] 4 points?It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Originalairdate = 25 april 1993
CREATE TABLE INST, Here is a database schema( table schema);
What is Written By, when Originalairdate is 25 April 1993?.It is not neccessary to use all the tables.
SELECT Won FROM table WHERE Tries against = 54
CREATE TABLE INST, Here is a database schema( table schema);
What was the amount won with tries against at 54?.It is not neccessary to use all the tables.
SELECT COUNT(no_in_series) FROM table_2409041_4 WHERE no_in_season = 11
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of number in the season for 11It is not neccessary to use all the tables.
SELECT Finish FROM table WHERE Year(s) won = 1991
CREATE TABLE INST, Here is a database schema( table schema);
What is Finish, when Year(s) Won is "1991"?.It is not neccessary to use all the tables.
SELECT d_44_√ FROM table_name_19 WHERE d_47_√ = "r 7"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number for D 44 √ when D 47 √ is r 7?It is not neccessary to use all the tables.
SELECT SUM(lost) FROM table_name_6 WHERE matches > 26 AND points = 62 AND draw > 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the losses that a match score larger than 26 a points score of 62 and a draw greater than 5?It is not neccessary to use all the tables.
SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
CREATE TABLE INST, Here is a database schema( table schema);
For all employees who have the letters D or S in their first name, show me the trend about employee_id over hire_date with a line chart.It is not neccessary to use all the tables.
SELECT Rd FROM table WHERE Name = Indianapolis 500
CREATE TABLE INST, Here is a database schema( table schema);
Which Rd took place at the Indianapolis 500?.It is not neccessary to use all the tables.
SELECT COUNT Laps FROM table WHERE Team = team player's AND Grid = 9 AND Points > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10?.It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Position = 2nd AND Event = junior race
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of year for 2nd position for junior race.It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE Candidates = John Murray (DR) 50.4% George Denison (DR) 49.6% AND Result = Retired Democratic-Republican hold
CREATE TABLE INST, Here is a database schema( table schema);
Who were the incumbent(s) in the election featuring john murray (dr) 50.4% george denison (dr) 49.6% with a result of a retired democratic-republican hold?.It is not neccessary to use all the tables.
SELECT MIN Crowd FROM table WHERE Home team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest crowd for a game when Melbourne is the home team?.It is not neccessary to use all the tables.
SELECT MIN(season) FROM table_245694_4 WHERE us_open_cup = "Round of 32"
CREATE TABLE INST, Here is a database schema( table schema);
Name the least season for round of 32It is not neccessary to use all the tables.
SELECT date FROM table_name_71 WHERE away_team = "richmond"
CREATE TABLE INST, Here is a database schema( table schema);
What day is richmond the away side?It is not neccessary to use all the tables.
SELECT incumbent FROM table_1341472_12 WHERE district = "Georgia 2"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the incumbent of district Georgia 2?It is not neccessary to use all the tables.
SELECT Thursday Day Five FROM table WHERE Friday Day Six = პარასკევი p'arask'evi
CREATE TABLE INST, Here is a database schema( table schema);
What is thursday day five when friday day six is პარასკევი p'arask'evi?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Events = 31
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank where the events is 31?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Anxiety state NOS" AND prescriptions.route = "ORAL"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose diagnoses short title is anxiety state nos and drug route is oral?It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Competition = scottish cup AND Date = 29.02.2000
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended the Scottish Cup on 29.02.2000?.It is not neccessary to use all the tables.
SELECT "Party" FROM table_38425 WHERE "Seats won" < '21' AND "Percent of seats" = '0' AND "Votes cast" = '69757'
CREATE TABLE INST, Here is a database schema( table schema);
Which party won less than 21 seats, has 0 percent of seats, and 69757 votes cast?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Hometown = Salto
CREATE TABLE INST, Here is a database schema( table schema);
What country is the contestant from Salto from?.It is not neccessary to use all the tables.
SELECT game FROM table_name_29 WHERE result = "113-106"
CREATE TABLE INST, Here is a database schema( table schema);
Which game has a result of 113-106?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Record = 45–21–4
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has a Record of 45–21–4?.It is not neccessary to use all the tables.
SELECT martial_art_style FROM table_14937957_1 WHERE city = "Rio de Janeiro"
CREATE TABLE INST, Here is a database schema( table schema);
Which martial arts style was shown in Rio de Janeiro?It is not neccessary to use all the tables.
SELECT language FROM table_name_19 WHERE package_option = "qualsiasi" AND television_service = "sky primafila 10"
CREATE TABLE INST, Here is a database schema( table schema);
What language is used when the service is sky primafila 10 and the package/option is qualsiasi?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Margin of victory = 2 strokes AND Tournament = women's british open
CREATE TABLE INST, Here is a database schema( table schema);
What is To par, when Margin of Victory is "2 Strokes", and when Tournament is "Women's British Open"?.It is not neccessary to use all the tables.
SELECT MIN Rank by average FROM table WHERE Total = 425 AND Place > 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank by average is the lowest one that has a Total of 425, and a Place larger than 1?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_12 WHERE home_team = "perth wildcats"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away team that played home team of Perth Wildcats?It is not neccessary to use all the tables.
SELECT Lost FROM table WHERE Draw < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many games did they lose when they tied less than 2 games?.It is not neccessary to use all the tables.
SELECT COUNT(points) FROM table_name_95 WHERE drawn < 2 AND team = "paulistano" AND against < 15
CREATE TABLE INST, Here is a database schema( table schema);
What number of Points are shown for Team Paulistano where the Drawn is less than 2 and the Against is less than 15?It is not neccessary to use all the tables.
SELECT Monarchs served FROM table WHERE Name = stanley baldwin (1st ministry)
CREATE TABLE INST, Here is a database schema( table schema);
What monarch(s) did Stanley Baldwin (1st ministry) serve?.It is not neccessary to use all the tables.
SELECT AVG(capacity), MIN(capacity), MAX(capacity) FROM cinema WHERE openning_year >= 2011
CREATE TABLE INST, Here is a database schema( table schema);
Show the average minimum and maximum capacity for all the cinemas opened in year 2011 or later.It is not neccessary to use all the tables.
SELECT Current Club FROM table WHERE No = 6
CREATE TABLE INST, Here is a database schema( table schema);
Name the current club for number 6.It is not neccessary to use all the tables.
SELECT record FROM table_name_78 WHERE arena = "palasport olimpico"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record at Palasport Olimpico?It is not neccessary to use all the tables.
SELECT MIN Week FROM table WHERE Opponent = pittsburgh steelers AND Attendance > 47,727
CREATE TABLE INST, Here is a database schema( table schema);
Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727?.It is not neccessary to use all the tables.
SELECT Location/Attendance FROM table WHERE Date = february 2
CREATE TABLE INST, Here is a database schema( table schema);
What was the location of the game on February 2?.It is not neccessary to use all the tables.
SELECT result_f___a FROM table_name_70 WHERE date = "5 august 1990"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result F-A on 5 August 1990?It is not neccessary to use all the tables.
SELECT round FROM table_27973624_1 WHERE prize_money = "£7,500"
CREATE TABLE INST, Here is a database schema( table schema);
What is the round when the prize money is £7500?It is not neccessary to use all the tables.
SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "Red" AND T2.price > 50
CREATE TABLE INST, Here is a database schema( table schema);
What are the wines that have prices higher than 50 and made of Red color grapes?It is not neccessary to use all the tables.
SELECT segment_b FROM table_15187735_10 WHERE segment_a = "s Dress Form"
CREATE TABLE INST, Here is a database schema( table schema);
Name the segment b for s dress formIt is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Title = "The Kissing Game"
CREATE TABLE INST, Here is a database schema( table schema);
When "the kissing game" is the title who is the director?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team score = 25.17 (167)
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game when the home team scored 25.17 (167)?.It is not neccessary to use all the tables.
SELECT Season # FROM table WHERE Written by = Michael Poryes
CREATE TABLE INST, Here is a database schema( table schema);
What season features writer Michael Poryes?.It is not neccessary to use all the tables.
SELECT original_artist FROM table_name_39 WHERE week__number = "top 9"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Original artist when the week number is top 9?It is not neccessary to use all the tables.
SELECT class FROM table_name_74 WHERE call_sign = "wmhn"
CREATE TABLE INST, Here is a database schema( table schema);
Name the class with call sign of wmhnIt is not neccessary to use all the tables.
SELECT Country FROM table WHERE Year = 1993
CREATE TABLE INST, Here is a database schema( table schema);
What country had a film in 1993?.It is not neccessary to use all the tables.
SELECT Pick FROM table WHERE Round = 7 AND Player = don waddell
CREATE TABLE INST, Here is a database schema( table schema);
What is the pick of player don waddell from round 7?.It is not neccessary to use all the tables.
SELECT Callsign FROM table WHERE Power (kW) = 5kw AND Branding = sonshine radio cotabato
CREATE TABLE INST, Here is a database schema( table schema);
What is the callsign of the 5kW Sonshine Radio Cotabato?.It is not neccessary to use all the tables.
SELECT municipality FROM table_name_34 WHERE party = "lega friuli-vg" AND election < 2011
CREATE TABLE INST, Here is a database schema( table schema);
Which municipality has a party of Lega Friuli-VG that won elections before 2011?It is not neccessary to use all the tables.
SELECT AVG(votes) FROM table_name_15 WHERE governorate = "hewler"
CREATE TABLE INST, Here is a database schema( table schema);
Which Votes has a Governorate of hewler?It is not neccessary to use all the tables.
SELECT days, _hours, _minutes FROM table_name_81 WHERE dates = "21 – 26 october"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Days hours minutes for 21 – 26 October?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Teams = fc sète olympique de marseille
CREATE TABLE INST, Here is a database schema( table schema);
Which name is on the of fc sète olympique de marseille?.It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_73 WHERE award = "venice film festival" AND title = "lust, caution"
CREATE TABLE INST, Here is a database schema( table schema);
How many years have an Award of venice film festival and a Title of lust caution?It is not neccessary to use all the tables.
SELECT AVG Races FROM table WHERE Podiums < 2 AND Position = 19th AND Season < 2009
CREATE TABLE INST, Here is a database schema( table schema);
How many races have less than 2 podiums and 19th position before 2009?.It is not neccessary to use all the tables.
SELECT MAX(week) FROM table_name_13 WHERE attendance = 43 OFFSET 430
CREATE TABLE INST, Here is a database schema( table schema);
In what Week was the Attendance 43430?It is not neccessary to use all the tables.
SELECT COUNT(score_in_the_final) FROM table_2201724_2 WHERE year = 1963
CREATE TABLE INST, Here is a database schema( table schema);
How many different final scores were there in 1963?It is not neccessary to use all the tables.
SELECT SUM Pick FROM table WHERE Round > 8 AND Name = kenny fells AND Overall > 297
CREATE TABLE INST, Here is a database schema( table schema);
Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297?.It is not neccessary to use all the tables.
SELECT launched FROM table_name_91 WHERE completed = "13 september 1934"
CREATE TABLE INST, Here is a database schema( table schema);
Name the launched for 13 september 1934 completionIt is not neccessary to use all the tables.
SELECT PBA team FROM table WHERE Player = paolo mendoza
CREATE TABLE INST, Here is a database schema( table schema);
Name the PBA team for paolo mendoza.It is not neccessary to use all the tables.
SELECT MIN N, Golosov FROM table WHERE N, Laakso-Taagepera > 10.64
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest value for N, Golosov, when N, Laakso-Taagepera is greater than 10.64?.It is not neccessary to use all the tables.
SELECT SUM Lane FROM table WHERE Nationality = iceland
CREATE TABLE INST, Here is a database schema( table schema);
How many lanes have a Nationality of iceland?.It is not neccessary to use all the tables.
SELECT builder FROM table_20236726_2 WHERE wd_no = 22
CREATE TABLE INST, Here is a database schema( table schema);
Name the builder for wd number being 22It is not neccessary to use all the tables.
SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa'
CREATE TABLE INST, Here is a database schema( table schema);
Sum the amount for all the payments processed with Visa by each year using a bar chart.It is not neccessary to use all the tables.
SELECT COUnT AS transfer_window FROM table_17596418_4 WHERE moving_from = "Crystal palace"
CREATE TABLE INST, Here is a database schema( table schema);
How many transfer windows coming from Crystal Palace?It is not neccessary to use all the tables.
SELECT SUM Cuts made FROM table WHERE Top-25 < 6 AND Top-5 > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0?.It is not neccessary to use all the tables.
SELECT record FROM table_name_90 WHERE game < 79
CREATE TABLE INST, Here is a database schema( table schema);
What is the record for a game lower than 79?It is not neccessary to use all the tables.
SELECT Second FROM table WHERE Fourth = isabelle brayley
CREATE TABLE INST, Here is a database schema( table schema);
Who was in Second Place with Isabelle Brayley came in Fourth?.It is not neccessary to use all the tables.
SELECT COUNT Time FROM table WHERE Visiting team = Louisiana-Monroe
CREATE TABLE INST, Here is a database schema( table schema);
How many times was Louisiana-Monroe a visiting team?.It is not neccessary to use all the tables.
SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%'
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Duration = 4:57
CREATE TABLE INST, Here is a database schema( table schema);
Which of the titles have a duration time of 4:57?.It is not neccessary to use all the tables.
SELECT Building FROM table WHERE Status = proposed AND Floors = 32
CREATE TABLE INST, Here is a database schema( table schema);
what is a building that is proposed and will have 32 floors?.It 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 shows as the Time/Retired for Grid 8?.It is not neccessary to use all the tables.
SELECT MAX Census 2006 population FROM table WHERE LGA Name = Opobo/Nkoro
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum 2006 census population of LGA name Opobo/Nkoro?.It is not neccessary to use all the tables.
SELECT State FROM table WHERE Appointment = jul 12, 2001
CREATE TABLE INST, Here is a database schema( table schema);
What state has an appointment for jul 12, 2001?.It is not neccessary to use all the tables.
SELECT location FROM table_name_77 WHERE callsign = "dwrj-fm"
CREATE TABLE INST, Here is a database schema( table schema);
Where is the place that has a Callsign of DWRJ-FM?It is not neccessary to use all the tables.
SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = "Zhang Nan Zhao Yunlei" AND tour = "All England Super Series"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the womens doubles when the mixed doubles were zhang nan zhao yunlei on the tour all england super series?It is not neccessary to use all the tables.
SELECT MIN Opp. Points FROM table WHERE Location = Knoxville
CREATE TABLE INST, Here is a database schema( table schema);
How many points did the opponents score at the game in Knoxville?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Date = wednesday, 25 february 1998
CREATE TABLE INST, Here is a database schema( table schema);
Which Home team is on Wednesday, 25 february 1998?.It is not neccessary to use all the tables.