sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MIN(touchdowns) FROM table_name_81 WHERE points = 5 AND field_goals > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Touchdowns is the lowest one that has Points of 5 and a Field goals larger than 0?It is not neccessary to use all the tables.
SELECT d_42_√ FROM table_name_14 WHERE d_46_√ = "majority→"
CREATE TABLE INST, Here is a database schema( table schema);
What's the D 42 √ when D 46 √ is majority→?It is not neccessary to use all the tables.
SELECT Software_Platform, COUNT(*) FROM device GROUP BY Software_Platform
CREATE TABLE INST, Here is a database schema( table schema);
Bar chart x axis software platform y axis the total numberIt is not neccessary to use all the tables.
SELECT MAX(br_no) FROM table_name_39 WHERE secr_no = 765
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest BR number with a SECR number of 765?It is not neccessary to use all the tables.
SELECT Water FROM table WHERE Metal = contracting
CREATE TABLE INST, Here is a database schema( table schema);
Which Water has a Metal of contracting?.It is not neccessary to use all the tables.
SELECT Part 3 FROM table WHERE Class = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is part 1 of the verb in class 4.It is not neccessary to use all the tables.
SELECT Name FROM mountain ORDER BY Name
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of mountains in ascending alphabetical order?It is not neccessary to use all the tables.
SELECT 2nd leg FROM table WHERE Team #1 = Iraklis
CREATE TABLE INST, Here is a database schema( table schema);
What's the 2nd leg result in the round where team #1 is Iraklis?.It is not neccessary to use all the tables.
SELECT Remarks FROM table WHERE NATO reporting name = SAWHOUSE
CREATE TABLE INST, Here is a database schema( table schema);
Name the remarks for sawhouse.It is not neccessary to use all the tables.
SELECT time FROM table_name_14 WHERE year = 2009
CREATE TABLE INST, Here is a database schema( table schema);
What was the time for 2009?It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Course = sunset ridge cc
CREATE TABLE INST, Here is a database schema( table schema);
What is the year when the course is sunset ridge cc?.It is not neccessary to use all the tables.
SELECT position FROM table_1708014_1 WHERE winnings = "$4,228,889"
CREATE TABLE INST, Here is a database schema( table schema);
Which position offers winnings of $4228889?It is not neccessary to use all the tables.
SELECT start FROM table_name_84 WHERE laps = 182
CREATE TABLE INST, Here is a database schema( table schema);
Where was the starting position when there were 182 laps?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = weserstadion , bremen
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Venue is "Weserstadion , Bremen"?.It is not neccessary to use all the tables.
SELECT goals FROM table_name_4 WHERE years_active = "2006"
CREATE TABLE INST, Here is a database schema( table schema);
How many goals did a player active since 2006 have?It is not neccessary to use all the tables.
SELECT college_junior_club_team__league_ FROM table_name_12 WHERE round = 2 AND position = "d"
CREATE TABLE INST, Here is a database schema( table schema);
What college or league did the round 2 pick with d position come from?It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Places = 233 AND SP+FS < 27
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank when 233 shows for places and SP+FS smaller than 27?.It is not neccessary to use all the tables.
SELECT SUM("Core #") FROM table_8119 WHERE "TDP (W)" < '85.3'
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of core# with a TDP less than 85.3?It is not neccessary to use all the tables.
SELECT ergative FROM table_name_56 WHERE nominative = "chven-i"
CREATE TABLE INST, Here is a database schema( table schema);
With a nominative of chven-i what is the ergative?It is not neccessary to use all the tables.
SELECT real_life_eventual_outcome FROM table_243664_1 WHERE currently¹_part_of = "Amtrak"
CREATE TABLE INST, Here is a database schema( table schema);
Name the real life for eventual outcome is amtrakIt is not neccessary to use all the tables.
SELECT spouse FROM table_name_38 WHERE birth = "30 may 1653"
CREATE TABLE INST, Here is a database schema( table schema);
Which Spouse has a Birth of 30 may 1653?It is not neccessary to use all the tables.
SELECT record FROM table_name_26 WHERE opponent = "cleveland cavaliers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record for the opponent the Cleveland Cavaliers?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Opposition = surrey AND Wicket = 2nd
CREATE TABLE INST, Here is a database schema( table schema);
In what Venue was Surrey the Opposition in the 2nd Wicket?.It is not neccessary to use all the tables.
SELECT MAX Weight FROM table WHERE Position = fullback
CREATE TABLE INST, Here is a database schema( table schema);
Position of fullback has what highest weight?.It is not neccessary to use all the tables.
SELECT "1995" FROM table_62773 WHERE "1990" = 'lq'
CREATE TABLE INST, Here is a database schema( table schema);
What is 1995 Grand Slam Tournament if 1990 is LQ?It is not neccessary to use all the tables.
SELECT Crowd FROM table WHERE Home team score = 10.10 (70)
CREATE TABLE INST, Here is a database schema( table schema);
What was the crowd size when the home team scored 10.10 (70)?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_15 WHERE date = "10/29/1932"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance on 10/29/1932?It is not neccessary to use all the tables.
SELECT opponent FROM table_21350934_2 WHERE attendance = "N/A"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent when the attendance is n/a?It is not neccessary to use all the tables.
SELECT SUM(minutes) FROM table_name_73 WHERE rank > 7 AND club = "real madrid"
CREATE TABLE INST, Here is a database schema( table schema);
What are the minutes of the Player from Real Madrid Club with a Rank of 7 or larger?It is not neccessary to use all the tables.
SELECT COUNT Province FROM table WHERE Evening Gown = 8.49
CREATE TABLE INST, Here is a database schema( table schema);
How many provinces have evening gown score of 8.49.It is not neccessary to use all the tables.
SELECT Total FROM table WHERE Set 2 = 24:22
CREATE TABLE INST, Here is a database schema( table schema);
What is the Total of Set 2 of 24:22?.It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Match > 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Points from a Match that is larger than 18?.It is not neccessary to use all the tables.
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31854) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31854) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day')
CREATE TABLE INST, Here is a database schema( table schema);
what are the new drugs prescribed to patient 31854 today compared to that yesterday?It is not neccessary to use all the tables.
SELECT MAX Pick FROM table WHERE School = auburn
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest pick for a player from auburn?.It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_79 WHERE venue = "arden street oval"
CREATE TABLE INST, Here is a database schema( table schema);
At the match which took place in arden street oval how much did the away team score?It is not neccessary to use all the tables.
SELECT Spacecraft FROM table WHERE Launch complex = LC34
CREATE TABLE INST, Here is a database schema( table schema);
What spacecraft was launched from the LC34 launch complex? .It is not neccessary to use all the tables.
WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", TagName, COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id = p.OwnerUserId WHERE LOWER(Location) LIKE '%iran%' AND TagName = '##tagName:string##' GROUP BY u.Id, TagName) SELECT * FROM USER_BY_TAG WHERE rank <= 1000 ORDER BY UpVotes DESC
CREATE TABLE INST, Here is a database schema( table schema);
Top User Of a Peticular Tag In Iran.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Took Office = 1976
CREATE TABLE INST, Here is a database schema( table schema);
Which deputy took office in 1976?.It is not neccessary to use all the tables.
SELECT district FROM table_1342331_5 WHERE incumbent = "John E. Miller"
CREATE TABLE INST, Here is a database schema( table schema);
what's the district with incumbent being john e. millerIt is not neccessary to use all the tables.
SELECT rank FROM table_name_15 WHERE country = "italy"
CREATE TABLE INST, Here is a database schema( table schema);
What is Italy's rank?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_96 WHERE away_team = "essendon"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the home team of the game against Essendon?It is not neccessary to use all the tables.
SELECT COUNT Last appearance FROM table WHERE Team = San Francisco 49ers
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of last appearance where team is san francisco 49ers.It is not neccessary to use all the tables.
SELECT "Away team score" FROM table_52932 WHERE "Away team" = 'south melbourne'
CREATE TABLE INST, Here is a database schema( table schema);
What was South Melbourne's away team score?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_71 WHERE venue = "mcg"
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the home team for mcg venueIt is not neccessary to use all the tables.
SELECT entered_office FROM table_name_43 WHERE election = "jun. 1959"
CREATE TABLE INST, Here is a database schema( table schema);
When did the party elected in jun. 1959 enter office?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score = 71-71-69-71=282
CREATE TABLE INST, Here is a database schema( table schema);
What is Place, when Score is "71-71-69-71=282"?.It is not neccessary to use all the tables.
SELECT COUNT Block FROM table WHERE Weight < 85 AND Height > 187
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Block for the Player with less than 85 Weight and more than 187 Height?.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Draws = 9
CREATE TABLE INST, Here is a database schema( table schema);
Which clubs had draws of 9?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Away team = armthorpe welfare
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team that played against Armthorpe Welfare?.It is not neccessary to use all the tables.
SELECT 2009 FROM table WHERE 2004 = 107
CREATE TABLE INST, Here is a database schema( table schema);
what is 2009 when 2004 is 107?.It is not neccessary to use all the tables.
SELECT MAX(number_of_jews__wjc_) FROM table_name_1 WHERE rank___wjc__ = 6 AND rank__arda_ > 8
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?It is not neccessary to use all the tables.
SELECT method FROM table_name_98 WHERE round = 1 AND time = "0:28"
CREATE TABLE INST, Here is a database schema( table schema);
Which Method has a Round of 1 and a Time of 0:28?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 4.4 (28)
CREATE TABLE INST, Here is a database schema( table schema);
Which away team has a Home team score of 4.4 (28)?.It is not neccessary to use all the tables.
SELECT Rider FROM table WHERE Bike = honda cbr1000rr AND Laps < 22 AND Time = +2 laps
CREATE TABLE INST, Here is a database schema( table schema);
Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15794) AND prescriptions.drug = 'd5w' AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month')
CREATE TABLE INST, Here is a database schema( table schema);
during this month patient 15794 had been prescribed d5w?It is not neccessary to use all the tables.
SELECT SUM(losses) FROM table_name_56 WHERE team = "montreal hockey club" AND goals_against > 15
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the losses by the Montreal Hockey Club who have more than 15 Goals Against?It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Crowd > 24,000
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team's score at the game that had a crowd larger than 24,000?.It is not neccessary to use all the tables.
SELECT sample_pk, growst FROM sampledata15
CREATE TABLE INST, Here is a database schema( sampledata15);
in which state was a specific sample grown?. It is not neccessary to use all the tables.
SELECT team_1 FROM table_name_7 WHERE team_2 = "(g14)morolo"
CREATE TABLE INST, Here is a database schema( table schema);
What is the team 1 with a (g14)morolo team 2?It is not neccessary to use all the tables.
SELECT MAX(pos) FROM table_name_64 WHERE team = "circle bar racing" AND car__number < 14
CREATE TABLE INST, Here is a database schema( table schema);
Which Pos has a Team of circle bar racing and a Car # smaller than 14?It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Written by = John Brown AND Title = "Rain of Terror"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the director of the episode "rain of terror" that was written by John Brown?.It is not neccessary to use all the tables.
SELECT high_points FROM table_23248940_6 WHERE game = 14
CREATE TABLE INST, Here is a database schema( table schema);
Who are all high points in game 14?It is not neccessary to use all the tables.
SELECT team FROM table_name_74 WHERE rank = 10
CREATE TABLE INST, Here is a database schema( table schema);
Which team is ranked #10?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Tournament = canada f7, toronto
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the match at the tournament in canada f7, toronto?.It is not neccessary to use all the tables.
SELECT "Affiliation" FROM table_74431 WHERE "Player" = 'Kevan George'
CREATE TABLE INST, Here is a database schema( table schema);
What university was Kevan George affiliated with?It is not neccessary to use all the tables.
SELECT time FROM table_name_68 WHERE event = "legacy fighting championship 12"
CREATE TABLE INST, Here is a database schema( table schema);
How long was the time for the Legacy Fighting Championship 12?It is not neccessary to use all the tables.
SELECT * FROM election
CREATE TABLE INST, Here is a database schema( table schema);
Show all the information about election.It is not neccessary to use all the tables.
SELECT Win % FROM table WHERE 2003 = atp world tour finals
CREATE TABLE INST, Here is a database schema( table schema);
What is the win % of the 2003 atp world tour finals?.It is not neccessary to use all the tables.
SELECT Pos. FROM table WHERE Height = m (ft 10in) AND Date of Birth = 1983-05-29
CREATE TABLE INST, Here is a database schema( table schema);
What is Pos., when Height is "m (ft 10in)", and when Date of Birth is "1983-05-29"?.It is not neccessary to use all the tables.
SELECT 2nd leg FROM table WHERE Team 2 = san francisco
CREATE TABLE INST, Here is a database schema( table schema);
What's the 2nd leg for team 2 san francisco?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Tie no = 12
CREATE TABLE INST, Here is a database schema( table schema);
What away team has 12 as the tie no.?.It is not neccessary to use all the tables.
SELECT COUNT(total_number_of_students) FROM table_142950_1 WHERE vice_chancellor = "Professor Edward Acton"
CREATE TABLE INST, Here is a database schema( table schema);
How many members have professor edward acton as vice-chancellor?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_41 WHERE grid = 4
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the time/retired for grid 4It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Year born < 1985 AND Height < 2.02
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player born before 1985 who is less than 2.02 tall?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_1 WHERE surface = "grass"
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent used a grass surface?It is not neccessary to use all the tables.
SELECT points FROM table_name_62 WHERE club = "blaengarw rfc"
CREATE TABLE INST, Here is a database schema( table schema);
what is the points when the club blaengarw rfc?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Score = 2–0 AND Home team = wolverhampton wanderers
CREATE TABLE INST, Here is a database schema( table schema);
What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2–0?.It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Production code = E0208
CREATE TABLE INST, Here is a database schema( table schema);
The episode with the production code E0208 is directed by who?.It is not neccessary to use all the tables.
SELECT Opponent in the final FROM table WHERE Tournament = kuwait
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent during the tournament in Kuwait?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game < 78 AND Score = 114–109 (ot)
CREATE TABLE INST, Here is a database schema( table schema);
What was the record for less than 78 games and a score of 114–109 (ot)?.It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_85 WHERE laps < 62 AND constructor = "ferrari"
CREATE TABLE INST, Here is a database schema( table schema);
What time did the ferrari car that finished 62 laps have?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Sport = academics
CREATE TABLE INST, Here is a database schema( table schema);
Which date had a sport of Academics?.It is not neccessary to use all the tables.
SELECT draws FROM table_name_61 WHERE losses > 8 AND points = 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of draws for the team with more than 8 losses and 13 points?It is not neccessary to use all the tables.
SELECT classification FROM table_2266990_2 WHERE title = "Fish Rap Live!"
CREATE TABLE INST, Here is a database schema( table schema);
What classifications does Fish Rap live! has?It is not neccessary to use all the tables.
SELECT number FROM table_name_22 WHERE position = "skaters"
CREATE TABLE INST, Here is a database schema( table schema);
Which number plays the skaters position?It is not neccessary to use all the tables.
SELECT MAX Points 1 FROM table WHERE Goal Difference = +28 AND Lost > 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the most points 1 when the goal difference is +28 and lost is larger than 12?.It is not neccessary to use all the tables.
SELECT position FROM table_name_6 WHERE player = "ryan russell"
CREATE TABLE INST, Here is a database schema( table schema);
What Position is Ryan Russell?It is not neccessary to use all the tables.
SELECT AVG(goal_ratio) FROM table_name_71 WHERE goals > 1 AND games > 161 AND debut_in_europe < 1985
CREATE TABLE INST, Here is a database schema( table schema);
What's the average goal ratio with Goals larger than 1 Games larger than 161 and a Debut in Europe smaller than 1985?It is not neccessary to use all the tables.
SELECT AVG(gold) FROM table_name_79 WHERE rank < 3 AND bronze < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Gold when the rank is less than 3 and the bronze is less than 1?It is not neccessary to use all the tables.
SELECT City FROM table WHERE Venue = peterson gym
CREATE TABLE INST, Here is a database schema( table schema);
Peterson Gym is in what city?.It is not neccessary to use all the tables.
SELECT Catalog FROM table WHERE Label = grilled cheese
CREATE TABLE INST, Here is a database schema( table schema);
What is the catalog number for the Grilled Cheese label?.It is not neccessary to use all the tables.
SELECT Pick FROM table WHERE Overall < 297 AND College = alabama
CREATE TABLE INST, Here is a database schema( table schema);
what is the pick when the overall is less than 297 and the college is alabama?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_52 WHERE date = "april 25"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE HOME TEAM ON APRIL 25?It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Played > 18
CREATE TABLE INST, Here is a database schema( table schema);
How many Points have a Played larger than 18?.It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Original title = El nido
CREATE TABLE INST, Here is a database schema( table schema);
Who directed El Nido?.It is not neccessary to use all the tables.
SELECT Drawn FROM table WHERE Lost = 14 AND Bonus Points = 12
CREATE TABLE INST, Here is a database schema( table schema);
What is Drawn, when Lost is 14, and when Bonus Points is 12?.It is not neccessary to use all the tables.
SELECT co_drivers FROM table_name_49 WHERE year > 2010
CREATE TABLE INST, Here is a database schema( table schema);
Who were the co-drivers in years after 2010?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Round = second round
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the second round?.It is not neccessary to use all the tables.
SELECT Entrant FROM table WHERE Year < 1953
CREATE TABLE INST, Here is a database schema( table schema);
Which entrant was present prior to 1953?.It is not neccessary to use all the tables.
SELECT COUNT(drawn) FROM table_name_70 WHERE position = 7 AND points > 18
CREATE TABLE INST, Here is a database schema( table schema);
How many Drawn have a Position of 7 and Points larger than 18?It is not neccessary to use all the tables.