sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT date FROM table_name_14 WHERE score = "105-128"
CREATE TABLE INST, Here is a database schema( table schema);
On what Date was the Score 105-128?It is not neccessary to use all the tables.
SELECT Name FROM actor WHERE Age <> 20
CREATE TABLE INST, Here is a database schema( table schema);
List the name of actors whose age is not 20.It is not neccessary to use all the tables.
SELECT D.O.B. FROM table WHERE Surname = maat
CREATE TABLE INST, Here is a database schema( table schema);
When was Maat born?.It is not neccessary to use all the tables.
SELECT State FROM table WHERE Title = marquis AND Name = jing
CREATE TABLE INST, Here is a database schema( table schema);
In what state did Jing have the title of Marquis?.It is not neccessary to use all the tables.
SELECT score FROM table_name_88 WHERE high_assists = "joel przybilla (4)"
CREATE TABLE INST, Here is a database schema( table schema);
For the game where Joel Przybilla (4) received high assists what was the final score?It is not neccessary to use all the tables.
SELECT name FROM media_types
CREATE TABLE INST, Here is a database schema( table schema);
List all media types.It is not neccessary to use all the tables.
SELECT nfl_team FROM table_16729063_1 WHERE college = "Mississippi"
CREATE TABLE INST, Here is a database schema( table schema);
What team has draft picks from Mississippi?It is not neccessary to use all the tables.
SELECT Points for FROM table WHERE Tries against = 30
CREATE TABLE INST, Here is a database schema( table schema);
What were the points for when there were 30 tries against?.It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Title = deacon of s. maria in via lata
CREATE TABLE INST, Here is a database schema( table schema);
What is the Nationality of the Deacon of S. Maria in Via Lata?.It is not neccessary to use all the tables.
SELECT LosingTeam FROM table WHERE Score = 24-12
CREATE TABLE INST, Here is a database schema( table schema);
Which losing team had a score of 24-12?.It is not neccessary to use all the tables.
SELECT Overall FROM table WHERE Transition = josh sims
CREATE TABLE INST, Here is a database schema( table schema);
Who played as overall when Josh Sims was transition?.It is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE Pick # = 16
CREATE TABLE INST, Here is a database schema( table schema);
To which college/junior/club team did the player that was Pick 16 belong?.It is not neccessary to use all the tables.
SELECT commissioned_or_completed_ * _ FROM table_name_60 WHERE ship = "manhattan"
CREATE TABLE INST, Here is a database schema( table schema);
What date was the ship named Manhattan completed?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Oil Pattern = chameleon AND Event = lake county indiana classic
CREATE TABLE INST, Here is a database schema( table schema);
Name the Date which has a Oil Pattern of chameleon, and a Event of lake county indiana classic?.It is not neccessary to use all the tables.
SELECT New/Returning/Same Network FROM table WHERE Last Aired = 1982
CREATE TABLE INST, Here is a database schema( table schema);
Which New/Returning/Same Network has a Last Aired of 1982?.It is not neccessary to use all the tables.
SELECT AVG Laps FROM table WHERE Grid = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean number of laps when the grid was 8?.It is not neccessary to use all the tables.
SELECT COUNT Below 50% of median income FROM table WHERE Below 40% of median income = 10.4%
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of the population is below 50% of the median income in the region where 10.4% of the population earns below 40% of the median income?.It is not neccessary to use all the tables.
SELECT league_goals FROM table_name_66 WHERE league_cup_goals = "0" AND scorer = "bill dearden"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of league goals when Bill Dearden was the scorer and there was 0 league cup goals?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = momoko ueda
CREATE TABLE INST, Here is a database schema( table schema);
What was Momoko Ueda's place?.It is not neccessary to use all the tables.
SELECT conference AS Tournament FROM table_24248450_3 WHERE conference = "Big Sky conference"
CREATE TABLE INST, Here is a database schema( table schema);
What is the tournament called for the Big Sky Conference?It is not neccessary to use all the tables.
SELECT "Origin" FROM table_31727 WHERE "Final destination" = 'brandholmen'
CREATE TABLE INST, Here is a database schema( table schema);
What is the origin of the one whose final destination is Brandholmen?It is not neccessary to use all the tables.
SELECT points FROM table_20500097_1 WHERE poles > 1.0
CREATE TABLE INST, Here is a database schema( table schema);
How many points did he win in the race with more than 1.0 poles?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE District = South Carolina 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the party for south carolina 3?.It is not neccessary to use all the tables.
SELECT player FROM table_name_73 WHERE total = "154"
CREATE TABLE INST, Here is a database schema( table schema);
What is Player when Total is "154"?It is not neccessary to use all the tables.
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS Link, DisplayName, Reputation, Location FROM Users WHERE (LOWER(Location) LIKE '%hong%kong%' OR Location LIKE '% %') ORDER BY Reputation DESC LIMIT 50
CREATE TABLE INST, Here is a database schema( table schema);
Top SO users from Hong Kong.It is not neccessary to use all the tables.
SELECT Yellow 1.09% FROM table WHERE Brazil 100% = 0,43407
CREATE TABLE INST, Here is a database schema( table schema);
What's the Yellow fertility rate when Brazil is 0,43407?.It is not neccessary to use all the tables.
SELECT place FROM table_name_41 WHERE language = "croatian"
CREATE TABLE INST, Here is a database schema( table schema);
Where is Croatian spoken?It is not neccessary to use all the tables.
SELECT Kaz Hayashi FROM table WHERE BUSHI = yang (9:43)
CREATE TABLE INST, Here is a database schema( table schema);
Name the Kaz Hayashi which has BUSHI of yang (9:43).It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Guest = fk mogren
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance of the game that had an away team of FK Mogren?.It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_1859269_1 WHERE new_entries_this_round = "65"
CREATE TABLE INST, Here is a database schema( table schema);
If new entries this round is 65 what is the round?It is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE Player = Derek Black
CREATE TABLE INST, Here is a database schema( table schema);
What team did Derek Black Play for prior to being drafted?.It is not neccessary to use all the tables.
SELECT COUNT Division Five FROM table WHERE Division One = Westcott
CREATE TABLE INST, Here is a database schema( table schema);
When westcott is in division one how many leagues are in division 5?.It is not neccessary to use all the tables.
SELECT City FROM table WHERE Capacity = 41903
CREATE TABLE INST, Here is a database schema( table schema);
Which city has a capacity of 41903?.It is not neccessary to use all the tables.
SELECT "Away team" FROM table_74575 WHERE "Venue" = 'mcg'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team when the VFL played at MCG?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE U.S. viewers (million) = 0.88
CREATE TABLE INST, Here is a database schema( table schema);
What is the original air date of the episode that was watched by 0.88 million U.S. viewers? .It is not neccessary to use all the tables.
SELECT SUM(capacity__mw_) FROM table_name_31 WHERE size__mw_ = "0.85" AND wind_farm = "carrigh" AND turbines > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the capacities for Carrigh wind warm that has a size of 0.85 MW and more than 3 turbines?It is not neccessary to use all the tables.
SELECT SUM(runs) FROM table_name_82 WHERE batting_partners = "mahela jayawardene and thilan samaraweera"
CREATE TABLE INST, Here is a database schema( table schema);
How many runs did mahela jayawardene and thilan samaraweera have?It is not neccessary to use all the tables.
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40
CREATE TABLE INST, Here is a database schema( table schema);
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the average of employee_id over the hire_date bin hire_date by weekday by a bar chart.It is not neccessary to use all the tables.
SELECT SUM Wins FROM table WHERE Draws < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many wins are there when the draws are less than 0?.It is not neccessary to use all the tables.
SELECT record FROM table_name_78 WHERE opponent = "san francisco warriors"
CREATE TABLE INST, Here is a database schema( table schema);
What is Record when Opponent is San Francisco Warriors?It is not neccessary to use all the tables.
SELECT Flag FROM table WHERE Name = terkoeli
CREATE TABLE INST, Here is a database schema( table schema);
What is the flag for Terkoeli?.It is not neccessary to use all the tables.
SELECT Conf. FROM table WHERE Original NFL team = denver broncos
CREATE TABLE INST, Here is a database schema( table schema);
What conference did the player originally from the denver broncos play in?.It is not neccessary to use all the tables.
SELECT year__ceremony_ FROM table_name_62 WHERE result = "not nominated" AND film_title_used_in_nomination = "the color of fame"
CREATE TABLE INST, Here is a database schema( table schema);
What year has a not nominated result and a nomination title of "the color of fame"?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23724'))
CREATE TABLE INST, Here is a database schema( table schema);
is there any results of the microbiology test of patient 031-23724?It is not neccessary to use all the tables.
SELECT MAX Founded FROM table WHERE Enrollment = 696
CREATE TABLE INST, Here is a database schema( table schema);
What was the largest founded year for schools having enrollment of exactly 696?.It is not neccessary to use all the tables.
SELECT MIN Crowd FROM table WHERE Home team = richmond
CREATE TABLE INST, Here is a database schema( table schema);
What was the smallest crowd for the Richmond home team?.It is not neccessary to use all the tables.
SELECT SUM(freq) FROM table_name_55 WHERE owner = "wpw" AND day_power___w__ > 250
CREATE TABLE INST, Here is a database schema( table schema);
What is the WPW freq with a day power of 250?It is not neccessary to use all the tables.
SELECT SUM(pick) FROM table_name_32 WHERE name = "cecil martin" AND overall < 268
CREATE TABLE INST, Here is a database schema( table schema);
The player Cecil Martin with an overall less than 268 has what total pick?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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
i would like to arrange a flight from DENVER to PITTSBURGHIt is not neccessary to use all the tables.
SELECT "Home captain" FROM table_15457 WHERE "Venue" = 'melbourne cricket ground'
CREATE TABLE INST, Here is a database schema( table schema);
Which Home captain has a Venue of melbourne cricket ground?It is not neccessary to use all the tables.
SELECT prescriptions.drug_type, prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Amaryl"
CREATE TABLE INST, Here is a database schema( table schema);
What is the drug type and drug code of Amaryl?It is not neccessary to use all the tables.
SELECT MIN(games_played) FROM table_name_40 WHERE goals_conceded > 25 AND goals_scored > 17 AND position = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7?It is not neccessary to use all the tables.
SELECT original_air_date FROM table_13183076_3 WHERE written_by = "Peter Ocko"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Original air date for the episode written by Peter Ocko?It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE First elected = 1876
CREATE TABLE INST, Here is a database schema( table schema);
Who was the incumbent who was first elected in 1876?.It is not neccessary to use all the tables.
SELECT MIN Wins FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of wins of a team?.It is not neccessary to use all the tables.
SELECT Home Team FROM table WHERE Visiting Team = san francisco 49ers AND Attendance > 45,532 AND Date = september 30
CREATE TABLE INST, Here is a database schema( table schema);
When the san francisco 49ers are visiting with an attendance of more than 45,532 on September 30, who was the home team?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_98 WHERE home_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
What did fitzroy score at their home game?It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Time = 1:42.85
CREATE TABLE INST, Here is a database schema( table schema);
What is the average year with a 1:42.85 time?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_49 WHERE margin_of_victory = "playoff"
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament had a playoff with a margin of victory?It is not neccessary to use all the tables.
SELECT SUM Swimsuit FROM table WHERE Average = 9.733 AND Interview > 9.654
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Swimsuit scores where the average score is 9.733 and the interview score is higher than 9.654?.It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_33 WHERE position = "center" AND player = "denis arkhipov"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of rounds that Center position Denis Arkhipov have?It is not neccessary to use all the tables.
SELECT MAX(density) FROM table_2847477_2 WHERE area = 1512
CREATE TABLE INST, Here is a database schema( table schema);
What is the density of the place with an area of 1512?It is not neccessary to use all the tables.
SELECT isbn FROM table_name_42 WHERE first_edition = "may 2011"
CREATE TABLE INST, Here is a database schema( table schema);
What is the ISBN of the book with a first edition in May 2011?It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_14655757_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest pick number?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2175"
CREATE TABLE INST, Here is a database schema( table schema);
give the number of married patients who were admitted before the year 2175.It is not neccessary to use all the tables.
SELECT 2007 FROM table WHERE Tournament = olympic games
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 2007 at the Olympic Games as tournament..It is not neccessary to use all the tables.
SELECT "Region" FROM table_7553 WHERE "Date" = 'april 30, 2004' AND "Catalog" = 'nebdj058'
CREATE TABLE INST, Here is a database schema( table schema);
What region is dated April 30, 2004, and cataloged Nebdj058?It is not neccessary to use all the tables.
SELECT per_capita_income FROM table_1840495_2 WHERE place = "Pigeon Creek"
CREATE TABLE INST, Here is a database schema( table schema);
For Pigeon Creek what is the per capita income?It is not neccessary to use all the tables.
SELECT Arabs 2011 FROM table WHERE Province = Nunavut
CREATE TABLE INST, Here is a database schema( table schema);
If the province is Nunavut, what is the Arabs 2011 amount?.It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Turbines < 17 AND Location = county laois
CREATE TABLE INST, Here is a database schema( table schema);
What is the type of turbine having fewer than 17 units and located in County Laois?.It is not neccessary to use all the tables.
SELECT COUNT(react) FROM table_name_13 WHERE lane = 5
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the total number of React that has the Lane of 5?It is not neccessary to use all the tables.
SELECT mascot FROM table_name_34 WHERE enrollment < 627 AND ihsaa_class = "aa" AND school = "eastern pekin"
CREATE TABLE INST, Here is a database schema( table schema);
What's the mascot of Eastern Pekin having less than 627 enrolled and an AA for their IHSAA Class?It is not neccessary to use all the tables.
SELECT Time/Retired FROM table 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 CBS airdate FROM table WHERE Episode < 70 AND Airdate (USA) = 1 april 2005
CREATE TABLE INST, Here is a database schema( table schema);
What is the CBS airdate of the episode with a number under 70 with a USA airdate of 1 April 2005?.It is not neccessary to use all the tables.
SELECT MIN Points FROM table WHERE Rider = stéphane mertens
CREATE TABLE INST, Here is a database schema( table schema);
Rider of stéphane mertens had what lowest points?.It is not neccessary to use all the tables.
SELECT Entrant FROM table WHERE Chassis = maserati 250f AND Year = 1954
CREATE TABLE INST, Here is a database schema( table schema);
What entrant had a chassis of Maserati 250f in 1954?.It is not neccessary to use all the tables.
SELECT steals FROM table_25342713_5 WHERE rebounds = 87
CREATE TABLE INST, Here is a database schema( table schema);
If the rebounds are at 87 what are the amount of steals?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 7-1
CREATE TABLE INST, Here is a database schema( table schema);
When was the score 7-1?.It is not neccessary to use all the tables.
SELECT "Captain" FROM table_29695 WHERE "Shirt sponsor" = 'N/A'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the captain when teh shirt sponsor is n/a?It is not neccessary to use all the tables.
SELECT Part 2 FROM table WHERE Verb meaning = to leap
CREATE TABLE INST, Here is a database schema( table schema);
Which part 2 has a verb that means to leap?.It is not neccessary to use all the tables.
SELECT Scoring average FROM table WHERE Best finish = T35
CREATE TABLE INST, Here is a database schema( table schema);
Name the scoring average for best finsih being t35.It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Opponent = new england patriots
CREATE TABLE INST, Here is a database schema( table schema);
How many people attended the game played with the New England Patriots as opponents?.It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_81 WHERE date = "4 february 2003"
CREATE TABLE INST, Here is a database schema( table schema);
How many attended the game on 4 February 2003?It is not neccessary to use all the tables.
SELECT "Away team score" FROM table_32241 WHERE "Venue" = 'lake oval'
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team's score in the match at Lake Oval?It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Name = one south broad
CREATE TABLE INST, Here is a database schema( table schema);
What is the total time for one south broad?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_47 WHERE date = "7 january 1956" AND away_team = "accrington stanley"
CREATE TABLE INST, Here is a database schema( table schema);
For the match played on 7 January 1956 with away team of Accrington Stanley who was the home team?It is not neccessary to use all the tables.
SELECT Year(s) won FROM table WHERE Total < 285 AND Player = tom watson
CREATE TABLE INST, Here is a database schema( table schema);
Which Year(s) won has a Total smaller than 285, and a Player of tom watson?.It is not neccessary to use all the tables.
SELECT T1.school_district, MAX(T1.t_fed_rev / T3.average_scale_score) FROM finrev_fed_17 AS T1 JOIN finrev_fed_key_17 AS T2 ON T1.state_code = T2.state_code JOIN ndecoreexcel_math_grade8 AS T3 ON T2.state = T3.state
CREATE TABLE INST, Here is a database schema( table schema);
School with highest ratio of total revenue and average scoresIt is not neccessary to use all the tables.
SELECT opponent FROM table_name_80 WHERE record = "2–0"
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has a Record of 2–0?It is not neccessary to use all the tables.
SELECT representative FROM table_name_76 WHERE party = "whig"
CREATE TABLE INST, Here is a database schema( table schema);
Name the representative for party of whigIt is not neccessary to use all the tables.
SELECT COUNT Draws FROM table WHERE Matches < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Draws with less than 4 matches?.It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE Game = 80
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high assists in game 80?.It is not neccessary to use all the tables.
SELECT "Event" FROM table_6120 WHERE "Record" = '2-0'
CREATE TABLE INST, Here is a database schema( table schema);
What event did he have a 2-0 record?It is not neccessary to use all the tables.
SELECT SUM Enrollment FROM table WHERE School = south central (union mills)
CREATE TABLE INST, Here is a database schema( table schema);
Enrollment that has a School of south central (union mills) has what sum?.It is not neccessary to use all the tables.
SELECT Last Performance FROM table WHERE Status = past AND Style = ballet AND Name = tommy batchelor
CREATE TABLE INST, Here is a database schema( table schema);
what last performance has past status, ballet as style and tommy batchelor?.It is not neccessary to use all the tables.
SELECT COUNT Nickerie FROM table WHERE Marowijne = 4.7%
CREATE TABLE INST, Here is a database schema( table schema);
Name the nickerie for marowijne being 4.7%.It is not neccessary to use all the tables.
SELECT COUNT(position_in_table) FROM table_26914759_3 WHERE incoming_manager = "Gary Megson"
CREATE TABLE INST, Here is a database schema( table schema);
How many teams had gary megson as an incoming managerIt is not neccessary to use all the tables.
SELECT country FROM table_name_69 WHERE transfer_window = "summer" AND moving_from = "belgrano"
CREATE TABLE INST, Here is a database schema( table schema);
What is the country of the player moving from belgrano with a summer transfer window?It is not neccessary to use all the tables.
SELECT score FROM table_name_56 WHERE country = "united states" AND to_par = "+4"
CREATE TABLE INST, Here is a database schema( table schema);
What is Score when Country is "United States" and when To Par is "+4"?It is not neccessary to use all the tables.
SELECT AVG(gold) FROM table_name_9 WHERE nation = "luxembourg"
CREATE TABLE INST, Here is a database schema( table schema);
Luxembourg received how many gold medals?It is not neccessary to use all the tables.