sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MAX Loses FROM table WHERE Points Against < 956 AND Club = high park demons AND Points < 16
CREATE TABLE INST, Here is a database schema( table schema);
What are the highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16?.It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_41 WHERE bronze = 21 AND silver > 10
CREATE TABLE INST, Here is a database schema( table schema);
How much Rank has a Bronze of 21 and a Silver larger than 10?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_3 WHERE place = "t6" AND country = "united states" AND player = "leonard thompson"
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par for Leonard Thompson from the United States with a place of T6?It is not neccessary to use all the tables.
SELECT COUNT Location FROM table WHERE Institution = Elon University
CREATE TABLE INST, Here is a database schema( table schema);
How many locations does Elon University have?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 22-53
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when the record was 22-53?.It is not neccessary to use all the tables.
SELECT player FROM table_name_87 WHERE pick__number > 47
CREATE TABLE INST, Here is a database schema( table schema);
Which player has a pick# over 47?It is not neccessary to use all the tables.
SELECT SUM(laps) FROM table_name_20 WHERE grid = 18
CREATE TABLE INST, Here is a database schema( table schema);
How many laps were completed in grid 18?It is not neccessary to use all the tables.
SELECT First elected FROM table WHERE Party = republican AND District = california 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the First elected that has a republican party and california 4?.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_42 WHERE round = "2" AND college = "kansas state" AND pick = "19"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of the player from Round 2 Pick 19 from College of Kansas State?It is not neccessary to use all the tables.
SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.admityear >= "2175"
CREATE TABLE INST, Here is a database schema( table schema);
find the minimum age of patients who were admitted in emergency in or after the year 2175.It is not neccessary to use all the tables.
SELECT MIN(crowd) FROM table_name_47 WHERE home_team = "richmond"
CREATE TABLE INST, Here is a database schema( table schema);
What was the smallest crowd size for a home game for Richmond?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'BOSTON' AND flight.from_airport = airport_service.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
flight will start from BOSTONIt is not neccessary to use all the tables.
SELECT Part 3 FROM table WHERE Class = 7a
CREATE TABLE INST, Here is a database schema( table schema);
What is the part 3 of the word in class 7a?.It is not neccessary to use all the tables.
SELECT outcomes FROM table_name_32 WHERE launch_date = "march 18, 1964; 14:50 gmt"
CREATE TABLE INST, Here is a database schema( table schema);
Which Outcome has a Launch Date of march 18 1964; 14:50 gmt?It is not neccessary to use all the tables.
SELECT holding FROM table_11944282_1 WHERE allied_unrelated = "Many"
CREATE TABLE INST, Here is a database schema( table schema);
what is the integrated in which the holding allied-unrelated is many?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_8 WHERE opponent_in_the_final = "silke meier"
CREATE TABLE INST, Here is a database schema( table schema);
In which tournament was Silke Meier the opponent in the final?It is not neccessary to use all the tables.
SELECT COUNT Horse- power FROM table WHERE Warship = Cochrane
CREATE TABLE INST, Here is a database schema( table schema);
How many different horse-powers does the Cochrane have?.It is not neccessary to use all the tables.
SELECT player FROM table_name_67 WHERE place = "t8"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player with a t8 place?It is not neccessary to use all the tables.
SELECT MAX # FROM table WHERE U.S. viewers (millions) = 0.49
CREATE TABLE INST, Here is a database schema( table schema);
What number episode in the season was watched by 0.49 million U.S. viewers? .It is not neccessary to use all the tables.
SELECT comparative FROM table_name_71 WHERE name = "pictar"
CREATE TABLE INST, Here is a database schema( table schema);
Which Comparative has a Name of pictar?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Home team score = 6.20 (56)
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team that had a score of 6.20 (56).It is not neccessary to use all the tables.
SELECT MIN Avg. Finish FROM table WHERE Position = 40th AND Top 5 > 0
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE LOWEST AVERAGE FINISH FOR 40TH POSITION, WITH A TOP 5 LARGER THAN 0?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-40255')) AND diagnosis.diagnosisname = 'hepatic dysfunction - moderate' ...
CREATE TABLE INST, Here is a database schema( table schema);
did patient 006-40255 since 2103 receive the diagnosis of hepatic dysfunction - moderate?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 16.19 (115)
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team when the home team scored 16.19 (115)?.It is not neccessary to use all the tables.
SELECT POSITION, AVG(Points) FROM player GROUP BY POSITION
CREATE TABLE INST, Here is a database schema( table schema);
List the position of players and the average number of points of players of each position.It is not neccessary to use all the tables.
SELECT record_label FROM table_name_63 WHERE album = "rambo"
CREATE TABLE INST, Here is a database schema( table schema);
Which Record label has an Album of rambo?It is not neccessary to use all the tables.
SELECT formed_from FROM table_name_58 WHERE type = "4-cor"
CREATE TABLE INST, Here is a database schema( table schema);
Name the formed that has type of 4-corIt is not neccessary to use all the tables.
SELECT (SELECT "pos" FROM table_203_142 WHERE "rider" = 'alex polita') < (SELECT "pos" FROM table_203_142 WHERE "rider" = 'lorenzo lanzi')
CREATE TABLE INST, Here is a database schema( table schema);
did alex polita finish above or below lorenzo lanzi ?It is not neccessary to use all the tables.
SELECT score FROM table_27723526_10 WHERE team = "Portland"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game against portland?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_71 WHERE crowd > 13 OFFSET 557
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team when the crowd was larger than 13557?It is not neccessary to use all the tables.
SELECT COUNT(viewers__millions_) FROM table_11253290_2 WHERE rank__night_ = 11
CREATE TABLE INST, Here is a database schema( table schema);
How many times was the rank (night) 11?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Venue = princes park
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the away team in the match at Princes Park?.It is not neccessary to use all the tables.
SELECT frequency FROM table_name_50 WHERE power__kw_ = "10kw" AND call_sign = "dyfr"
CREATE TABLE INST, Here is a database schema( table schema);
What's the frequency of the call sign DYFR with 10KW of power?It is not neccessary to use all the tables.
SELECT MAX(first_issued) FROM table_name_26 WHERE color = "green"
CREATE TABLE INST, Here is a database schema( table schema);
When was Color of green last issued?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_36 WHERE venue = "south end grounds"
CREATE TABLE INST, Here is a database schema( table schema);
Which team did the Boston Beaneaters host at the South End Grounds?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Height = 6-2
CREATE TABLE INST, Here is a database schema( table schema);
Which player is 6-2?.It is not neccessary to use all the tables.
SELECT player FROM table_name_38 WHERE country = "united states" AND score = 71 - 72 = 143
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player from the United States with a score of 71-72=143?It is not neccessary to use all the tables.
SELECT country FROM table_name_88 WHERE icao = "wadd"
CREATE TABLE INST, Here is a database schema( table schema);
What is the country of the airport with ICAO of WADD?It is not neccessary to use all the tables.
SELECT High 10 Profile FROM table WHERE High Profile = 160
CREATE TABLE INST, Here is a database schema( table schema);
What is the high 10 profile when high profile is 160?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_83 WHERE ground = "colonial stadium" AND date = "friday, 2 march"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Away team which have a Ground of colonial stadium on friday 2 march?It is not neccessary to use all the tables.
SELECT score FROM table_name_65 WHERE date = "10 july 2011"
CREATE TABLE INST, Here is a database schema( table schema);
What is Score when Date is 10 July 2011?It is not neccessary to use all the tables.
SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005
CREATE TABLE INST, Here is a database schema( table schema);
Which venue resulted in 2nd before 2005?It is not neccessary to use all the tables.
SELECT from_club FROM table_name_49 WHERE date = "20 oct. 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Which From club has a Date of 20 oct. 2008?It is not neccessary to use all the tables.
SELECT Driver FROM table WHERE Constructor = maserati AND Laps < 18 AND Grid < 14 AND Time/Retired = oil leak
CREATE TABLE INST, Here is a database schema( table schema);
Who drove the maserati under 18 laps with an oil leak that had a grid of under 14?.It is not neccessary to use all the tables.
SELECT seats_in_hamburgische_bürgerschaft FROM table_name_83 WHERE ideology = "green politics"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS?It is not neccessary to use all the tables.
SELECT competition FROM table_name_96 WHERE date = "30 december 2005"
CREATE TABLE INST, Here is a database schema( table schema);
What is Competition when Date is 30 December 2005?It is not neccessary to use all the tables.
SELECT % YES FROM table WHERE YES votes = 35270
CREATE TABLE INST, Here is a database schema( table schema);
What is the yes percentage in the measure that had 35270 yes votes? .It is not neccessary to use all the tables.
SELECT opponent FROM table_14863869_1 WHERE date = "September 23, 1984"
CREATE TABLE INST, Here is a database schema( table schema);
List all opponents in the September 23 1984 game?It is not neccessary to use all the tables.
SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia'
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of stadiums that some Australian swimmers have been to.It is not neccessary to use all the tables.
SELECT studio_host FROM table_name_57 WHERE channel = "fox sports net west" AND play_by_play = "chick hearn"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the studio host for the game broadcasted by Fox Sports Net west and has Chick Hearn as the play by play commentator ?It is not neccessary to use all the tables.
SELECT Tuesday FROM table WHERE Series = Celebrity Big Brother 8
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Tuesday presenter of Celebrity Big Brother 8?.It is not neccessary to use all the tables.
SELECT v.CreationDate, v.BountyAmount FROM Votes AS v RIGHT JOIN Posts AS p ON v.PostId = p.Id WHERE VoteTypeId IN (8, 9) AND OwnerUserId = '##UserID##'
CREATE TABLE INST, Here is a database schema( table schema);
rep from bounty for user.It is not neccessary to use all the tables.
SELECT MAX Years FROM table WHERE Tournament = Rome
CREATE TABLE INST, Here is a database schema( table schema);
What is the most years that tournaments held in Rome have lasted?.It is not neccessary to use all the tables.
SELECT MIN CPC Blend Kazakhstan FROM table WHERE Draugen North Sea = 17
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest CPC Blend Kazakhstan number when Draugen North Sea is 17?.It is not neccessary to use all the tables.
SELECT championship FROM table_22834834_3 WHERE score_in_the_final = "6–7 (9–11) , 6–4, 7–5, 4–6, 4–6"
CREATE TABLE INST, Here is a database schema( table schema);
Which championship has a final score of 6–7 (9–11) 6–4 7–5 4–6 4–6?It is not neccessary to use all the tables.
SELECT MAX(pick__number) FROM table_10812938_5 WHERE college = "New Mexico"
CREATE TABLE INST, Here is a database schema( table schema);
What's the pick number of the player from New Mexico?It is not neccessary to use all the tables.
SELECT doctor_who_episode FROM table_name_51 WHERE original_airdate__uk_ = "dvd only"
CREATE TABLE INST, Here is a database schema( table schema);
Which Doctor Who episode has a Original airdate (UK) of dvd only?It is not neccessary to use all the tables.
SELECT MAX Wins FROM table WHERE Byes > 2
CREATE TABLE INST, Here is a database schema( table schema);
For the teams that had more than 2 Byes, what was the highest number of Wins?.It is not neccessary to use all the tables.
SELECT SUM Played FROM table WHERE Lost > 14 AND Drawn = 8 AND Team = ipatinga
CREATE TABLE INST, Here is a database schema( table schema);
How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga?.It is not neccessary to use all the tables.
SELECT third FROM table_name_23 WHERE second = "xu xiaoming"
CREATE TABLE INST, Here is a database schema( table schema);
Who is third to Xu Xiaoming at second?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_36 WHERE tie_no = "3"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team for the game that has a Tie value of 3?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Competition = europe/africa zone, group i, round robin AND Result = win AND Year < 1998
CREATE TABLE INST, Here is a database schema( table schema);
What location did the team win before 1998 in the europe/africa zone, group i, round robin?.It is not neccessary to use all the tables.
SELECT COUNT("% growth (2000\u20132008)") FROM table_72125 WHERE "Nation" = 'Uganda'
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of percentage growth 2000-2008 of uganda?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM country WHERE GovernmentForm = "Republic"
CREATE TABLE INST, Here is a database schema( table schema);
How many countries have a republic as their form of government?It is not neccessary to use all the tables.
SELECT date FROM table_name_60 WHERE home_team = "rochdale"
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Home team of rochdale?It is not neccessary to use all the tables.
SELECT "Title" FROM table_70880 WHERE "Leading lady" = 'ann rutherford' AND "Director" = 'joseph kane'
CREATE TABLE INST, Here is a database schema( table schema);
In which title was Ann Rutherford the leading lady for Joseph Kane?It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Nation = germany AND Total > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the Rank of the Nation of Germany when the Total is more than 2?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Location = boston garden AND Record = 58-23
CREATE TABLE INST, Here is a database schema( table schema);
Location of boston garden, and a Record of 58-23 involved what opponent?.It is not neccessary to use all the tables.
SELECT Democrat: Christine Gregoire FROM table WHERE Lead Margin = 4 AND Republican: Dino Rossi = 44%
CREATE TABLE INST, Here is a database schema( table schema);
What was the percentage democrat Christine Gregoire was polling when the republican Dino Rossi was polling at 44% and the lead margin was 4?.It is not neccessary to use all the tables.
SELECT directed_by FROM table_20704243_6 WHERE original_air_date = "July15,2012"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode that aired on july152012?It is not neccessary to use all the tables.
SELECT "Venue" FROM table_54545 WHERE "Away team score" = '13.14 (92)'
CREATE TABLE INST, Here is a database schema( table schema);
Where did the away team score 13.14 (92)?It is not neccessary to use all the tables.
SELECT cfl_team FROM table_10812938_5 WHERE college = "St. Francis Xavier"
CREATE TABLE INST, Here is a database schema( table schema);
What's the team of the player from St. Francis Xavier College?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_54 WHERE home_team = "collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
What was Collingwood's score as the home team?It is not neccessary to use all the tables.
SELECT name FROM technician ORDER BY age
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of the technicians by ascending order of age?It is not neccessary to use all the tables.
SELECT MIN(no_of_counties) FROM table_278229_1 WHERE commandery = "Yidu 宜都"
CREATE TABLE INST, Here is a database schema( table schema);
When yidu 宜都 is the commandery what is the lowest number of countries?It is not neccessary to use all the tables.
SELECT COUNT Crowd FROM table WHERE Home team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What was the crowd attendance when the home team was Melbourne?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Surface = hard AND Date = 24 september 2011
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a Surface of hard, and a Date of 24 september 2011?.It is not neccessary to use all the tables.
SELECT Position in table FROM table WHERE Replaced by = sergio bueno
CREATE TABLE INST, Here is a database schema( table schema);
What is Position in Table, when Replaced By is "Sergio Bueno"?.It is not neccessary to use all the tables.
SELECT coombe_road FROM table_name_17 WHERE selsdon = "evening peak"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Coombe Road time with a Selsdon evening peak?It is not neccessary to use all the tables.
SELECT Date of appointment FROM table WHERE Team = aek AND Replaced by = christos kassianos
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of appointment for Christos Kassianos who belonged to AEK?.It is not neccessary to use all the tables.
SELECT COUNT Arabic form FROM table WHERE Morphological category = 1st. plur. perfect
CREATE TABLE INST, Here is a database schema( table schema);
How many Arabic forms are there for the 1st. plur. perfect category?.It is not neccessary to use all the tables.
SELECT COUNT Silver FROM table WHERE Gold > 0 AND Bronze > 1
CREATE TABLE INST, Here is a database schema( table schema);
Gold larger than 0, and a Bronze larger than 1 includes what total number of silver?.It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_96 WHERE against < 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the points of all teams that had against scores less than 14?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Game > 76 AND April = 6
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent in a game higher than 76 on April 6?.It is not neccessary to use all the tables.
SELECT Into Service FROM table WHERE Number = DH1
CREATE TABLE INST, Here is a database schema( table schema);
Name the into service for dh1.It is not neccessary to use all the tables.
SELECT College, COUNT(*) FROM submission GROUP BY College
CREATE TABLE INST, Here is a database schema( table schema);
Show different colleges along with the number of authors of submission from each college.It is not neccessary to use all the tables.
SELECT completed FROM table_name_31 WHERE laid_down = "23 march 1926"
CREATE TABLE INST, Here is a database schema( table schema);
when was the ship completed that was laid down on 23 march 1926?It is not neccessary to use all the tables.
SELECT us_viewers__millions_ FROM table_29545336_2 WHERE written_by = "Matt Pelfrey"
CREATE TABLE INST, Here is a database schema( table schema);
How many million U.S. viewers was written by Matt Pelfrey?It is not neccessary to use all the tables.
SELECT competition FROM table_name_84 WHERE goal = 3
CREATE TABLE INST, Here is a database schema( table schema);
What type of Competition has a Goal of 3?It is not neccessary to use all the tables.
SELECT "Result" FROM table_68347 WHERE "H / A" = 'h' AND "Round" = 'r6 replay'
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for an H/A of H and a round value of R6 replay?It is not neccessary to use all the tables.
SELECT genitive_1 FROM table_name_57 WHERE genitive_3 = "*n(i)-ia"
CREATE TABLE INST, Here is a database schema( table schema);
Which Genitive 1 has a Genitive 3 of *n(i)-ia?It is not neccessary to use all the tables.
SELECT meas. num FROM table WHERE % YES = 58.29%
CREATE TABLE INST, Here is a database schema( table schema);
What numbered measure had a 58.29% yes%?.It is not neccessary to use all the tables.
SELECT "Score" FROM table_7988 WHERE "Game" < '20' AND "Team" = 'portland'
CREATE TABLE INST, Here is a database schema( table schema);
What was the score against Portland in game numbers under 20?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE High points = hoffman (16)
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a High points of hoffman (16)?.It is not neccessary to use all the tables.
SELECT first_name, last_name, salary FROM employees WHERE salary < 6000
CREATE TABLE INST, Here is a database schema( table schema);
List the full name (first and last name) and salary for those employees who earn below 6000.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_18 WHERE date = "october 9, 1966"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the game played against on October 9 1966?It is not neccessary to use all the tables.
SELECT decision FROM table_name_14 WHERE visitor = "boston bruins"
CREATE TABLE INST, Here is a database schema( table schema);
Name the decision for boston bruins visitorIt is not neccessary to use all the tables.
SELECT country FROM table_name_39 WHERE player = "josé maría olazábal"
CREATE TABLE INST, Here is a database schema( table schema);
What is josé maría olazábal's country?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_46 WHERE score = "1–1" AND home_team = "merthyr tydfil"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Away team of the Merthyr Tydfil Home game with a Score of 1–1?It is not neccessary to use all the tables.
SELECT MIN(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-81471')) AND lab.labname = 'paco2' AND STRFTIME('%y', lab.labresulttime) <= '2...
CREATE TABLE INST, Here is a database schema( table schema);
give me patient 018-81471's daily minimum paco2 until 2104.It is not neccessary to use all the tables.