sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'acidosis') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'fiber-optic bronchoscopy') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') | CREATE TABLE INST, Here is a database schema( table schema); | how many patients received fiber-optic bronchoscopy during the same month after having been diagnosed with acidosis, the last year?It is not neccessary to use all the tables. |
SELECT MIN Crowd FROM table WHERE Away team = hawthorn | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest amount of spectators when the away team was Hawthorn?.It is not neccessary to use all the tables. |
SELECT date FROM table_name_1 WHERE margin_of_victory = "4 strokes" | CREATE TABLE INST, Here is a database schema( table schema); | What is Date when Margin Of Victory is 4 Strokes?It is not neccessary to use all the tables. |
SELECT Qualifying end date FROM table WHERE Qualifying start date = Qualifying start date | CREATE TABLE INST, Here is a database schema( table schema); | What is the qualifying end date when the qualifying start date is qualifying start date?.It is not neccessary to use all the tables. |
SELECT Episode # FROM table WHERE Eliminated Contestant = govinda & david dhawan | CREATE TABLE INST, Here is a database schema( table schema); | What episode # has govinda & david dhawan as the eliminated contestant?.It is not neccessary to use all the tables. |
SELECT SUM(gold) FROM table_name_89 WHERE bronze > 15 AND silver < 197 AND nation = "saint lucia" AND total > 50 | CREATE TABLE INST, Here is a database schema( table schema); | What's the sum of Gold with a Bronze that's larger than 15 Silver that's smaller than 197 the Nation of Saint Lucia and has a Total that is larger than 50?It is not neccessary to use all the tables. |
SELECT player FROM table_name_5 WHERE goals > 0 AND tries < 12 | CREATE TABLE INST, Here is a database schema( table schema); | Which player has more than 0 goals and less than 12 tries?It is not neccessary to use all the tables. |
SELECT NTFA Div 1 FROM table WHERE Draws < 1 AND Wins = 15 | CREATE TABLE INST, Here is a database schema( table schema); | What is the NTFA Div 1 team that has 15 wins and less than 1 draw?.It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_58 WHERE tournament = "dunlop world challenge" | CREATE TABLE INST, Here is a database schema( table schema); | Name the outcome for dunlop world challengeIt is not neccessary to use all the tables. |
SELECT Year FROM table WHERE Country = Japan | CREATE TABLE INST, Here is a database schema( table schema); | What year is Japan the country?.It is not neccessary to use all the tables. |
SELECT "Rnd" FROM table_16286 WHERE "Date" = 'August 9' | CREATE TABLE INST, Here is a database schema( table schema); | Which rounds were held on August 9?It is not neccessary to use all the tables. |
SELECT MAX Bush# FROM table WHERE Bush% = 32.40% AND Total < 5,126 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of Bush with a 32.40% Bush % and a total less than 5,126?.It is not neccessary to use all the tables. |
SELECT Partnering FROM table WHERE Score = 4–6, 7–5, [10–8] | CREATE TABLE INST, Here is a database schema( table schema); | What is the partner with a score of 4–6, 7–5, [10–8]?.It is not neccessary to use all the tables. |
SELECT name FROM table_name_8 WHERE total = "8 (24)" | CREATE TABLE INST, Here is a database schema( table schema); | Which player has a total of 8 (24)?It is not neccessary to use all the tables. |
SELECT Year Joined FROM table WHERE School = western | CREATE TABLE INST, Here is a database schema( table schema); | In what year did the team from the Western school join the conference?.It is not neccessary to use all the tables. |
SELECT best_10_year_period FROM table_1710426_2 WHERE best_15_year_period = "Capablanca" | CREATE TABLE INST, Here is a database schema( table schema); | Which people had the best 10-year period when Capablanca had the best 15-year period?It is not neccessary to use all the tables. |
SELECT MIN Appearances FROM table WHERE Win % = 0.706 | CREATE TABLE INST, Here is a database schema( table schema); | What's listed as the lowest Appearances with a Win % of 0.706?.It is not neccessary to use all the tables. |
SELECT SUM(place) FROM table_name_47 WHERE televote_sms = "2.39%" | CREATE TABLE INST, Here is a database schema( table schema); | what is the place when the televote/sms is 2.39%?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.short_title = "Hemodialysis" | CREATE TABLE INST, Here is a database schema( table schema); | how many patients whose admission type is urgent and procedure short title is hemodialysis?It is not neccessary to use all the tables. |
SELECT School FROM table WHERE City = hillsboro | CREATE TABLE INST, Here is a database schema( table schema); | What school is in hillsboro city?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_64 WHERE result = "draw" AND opponent = "arema malang" | CREATE TABLE INST, Here is a database schema( table schema); | For the match against Arema Malang that ended in a draw what was the final score?It is not neccessary to use all the tables. |
SELECT AVG("Cuts made") FROM table_35978 WHERE "Tournament" = 'totals' AND "Wins" < '11' | CREATE TABLE INST, Here is a database schema( table schema); | Which Cuts made has a Tournament of totals, and Wins smaller than 11?It is not neccessary to use all the tables. |
SELECT theme FROM table_name_55 WHERE design = "sputnik design partners" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Theme with a Design with sputnik design partners?It is not neccessary to use all the tables. |
SELECT COUNT Large end FROM table WHERE Taper/ ft < 0.6000000000000001 | CREATE TABLE INST, Here is a database schema( table schema); | Which Large end has a Taper/ft smaller than 0.6000000000000001?.It is not neccessary to use all the tables. |
SELECT High rebounds FROM table WHERE Date = April 1 | CREATE TABLE INST, Here is a database schema( table schema); | Who had the most the most rebounds and how many did they have on April 1?.It is not neccessary to use all the tables. |
SELECT COUNT Laps FROM table WHERE Grid = 25 | CREATE TABLE INST, Here is a database schema( table schema); | How many laps for grid 25?.It is not neccessary to use all the tables. |
SELECT Theme Song(s) FROM table WHERE Romaji Title = yukan club | CREATE TABLE INST, Here is a database schema( table schema); | What is the Theme Song of the Yukan Club?.It is not neccessary to use all the tables. |
SELECT game FROM table_name_83 WHERE team = "phoenix" | CREATE TABLE INST, Here is a database schema( table schema); | What is the game number when the game was against phoenix?It is not neccessary to use all the tables. |
SELECT main_services FROM table_18118221_1 WHERE total_passengers__millions__2011_12 = "14.849" | CREATE TABLE INST, Here is a database schema( table schema); | What is the main service for the station with 14.849 million passengers 2011-12?It is not neccessary to use all the tables. |
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'seizures - suspected' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2103') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.gender = 'female' AND patient.age BETWEEN 30 AND 39 AND STRFTIME('%y', medication.drugstarttime) <= '2103') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t2.drugstarttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month') GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 3 | CREATE TABLE INST, Here is a database schema( table schema); | what are the three most frequent drugs prescribed to the seizures - suspected female patients 30s within 2 months after having been diagnosed with seizures - suspected until 2103?It is not neccessary to use all the tables. |
SELECT Women's singles FROM table WHERE Year = 1961 | CREATE TABLE INST, Here is a database schema( table schema); | Who won women's singles in 1961?.It is not neccessary to use all the tables. |
SELECT Born-Died FROM table WHERE Term start = 4 november 1943 | CREATE TABLE INST, Here is a database schema( table schema); | Which Born-Died has a Term start of 4 november 1943?.It is not neccessary to use all the tables. |
SELECT League position FROM table WHERE Result F – A = 2 – 0 AND Opponents = queens park rangers | CREATE TABLE INST, Here is a database schema( table schema); | What League position has a Result F – A of 2 – 0, and Opponents of queens park rangers?.It is not neccessary to use all the tables. |
SELECT Population FROM table WHERE Member countries = existing members (1973) | CREATE TABLE INST, Here is a database schema( table schema); | What is the Population of the nation that has a Member countries consisting of existing members (1973)?.It is not neccessary to use all the tables. |
SELECT home_team FROM table_name_48 WHERE result = "124-109" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Home Team in the game with a Result of 124-109?It is not neccessary to use all the tables. |
SELECT opposing_team FROM table_name_97 WHERE against = 3 AND date = "11 february 1950" | CREATE TABLE INST, Here is a database schema( table schema); | Which Opposing Team has an Against of 3 and a Date of 11 february 1950?It is not neccessary to use all the tables. |
SELECT Award FROM table WHERE Category = best new artist | CREATE TABLE INST, Here is a database schema( table schema); | Which award is for the category Best New Artist?.It is not neccessary to use all the tables. |
SELECT Floors FROM table WHERE Location = ljubljana AND Name = tr3 | CREATE TABLE INST, Here is a database schema( table schema); | Which Floors have a Location of ljubljana, and a Name of tr3?.It is not neccessary to use all the tables. |
SELECT status FROM table_name_86 WHERE date = "24/11/1979" | CREATE TABLE INST, Here is a database schema( table schema); | What is the status for 24/11/1979?It is not neccessary to use all the tables. |
SELECT MAX Founded FROM table WHERE School = Southern Vermont College | CREATE TABLE INST, Here is a database schema( table schema); | When was Southern Vermont College founded?.It is not neccessary to use all the tables. |
SELECT loss FROM table_name_4 WHERE opponent = "la new bears" AND save = "mac suzuki" | CREATE TABLE INST, Here is a database schema( table schema); | What was the loss of the game against with LA New Bears with a save of Mac Suzuki?It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Length = 2.40km AND Winner = s. loeb | CREATE TABLE INST, Here is a database schema( table schema); | What is the Name of the Special Stage with a 2.40km length and S. Loeb as Winner?.It is not neccessary to use all the tables. |
SELECT MIN(old_membership_total) FROM table_27671835_3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest number for old membership total?It is not neccessary to use all the tables. |
SELECT 2009 FROM table_name_64 WHERE 2003 = "2r" AND 2000 = "2r" | CREATE TABLE INST, Here is a database schema( table schema); | Who in 2009 has a 2003 2r and a 2000 2r?It is not neccessary to use all the tables. |
SELECT date FROM table_name_52 WHERE home_team = "wolverhampton wanderers" | CREATE TABLE INST, Here is a database schema( table schema); | When did the Wolverhampton Wanderers play at home?It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Loss = báez (5-5) | CREATE TABLE INST, Here is a database schema( table schema); | Which Opponent has a Loss of báez (5-5)?.It is not neccessary to use all the tables. |
SELECT to_par FROM table_name_90 WHERE year_s__won = "1978" | CREATE TABLE INST, Here is a database schema( table schema); | How many strokes off par was the winner in 1978?It is not neccessary to use all the tables. |
SELECT MIN Founded FROM table WHERE Club = bizerte athletic f.c. | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest founded that has bizerte athletic f.c. as the club?.It is not neccessary to use all the tables. |
SELECT "Role" FROM table_66717 WHERE "Team" = 'platense municipal zacatecoluca' AND "Tournament" = 'torneo fraternidad/uncaf club championship' | CREATE TABLE INST, Here is a database schema( table schema); | During the Tournament of Torneo Fraternidad/UNCAF Club championship, what is the Role of the Platense Municipal Zacatecoluca Team?It is not neccessary to use all the tables. |
SELECT co_singer FROM table_name_26 WHERE composer = "sukhwinder singh" | CREATE TABLE INST, Here is a database schema( table schema); | What co-singer has sukhwinder singh as the composer?It is not neccessary to use all the tables. |
SELECT score FROM table_name_6 WHERE player = "phil rodgers" | CREATE TABLE INST, Here is a database schema( table schema); | What did Phil Rodgers score?It is not neccessary to use all the tables. |
SELECT Money requested (£) FROM table WHERE Investing Dragon(s) = peter jones AND Episode = episode 2 | CREATE TABLE INST, Here is a database schema( table schema); | How much was requested from Investing Dragon Peter Jones request in episode 2?.It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_79 WHERE opponent = "yvonne vermaak" | CREATE TABLE INST, Here is a database schema( table schema); | What outcome has yvonne vermaak as the opponent?It is not neccessary to use all the tables. |
SELECT Margin FROM table WHERE Constituency = Periyakulam | CREATE TABLE INST, Here is a database schema( table schema); | What is the margin when periyakulam is the constituency?.It is not neccessary to use all the tables. |
SELECT Japanese FROM table WHERE Prefecture = iwate | CREATE TABLE INST, Here is a database schema( table schema); | WHich Japanese has a Prefecture of iwate?.It is not neccessary to use all the tables. |
SELECT date_of_birth FROM table_name_66 WHERE goals < 4 AND games > 1 AND years_at_club = "1945" AND player = "jim young" | CREATE TABLE INST, Here is a database schema( table schema); | what is the date of birth for the player with goals less than 4 games more than 1 years at club 1945 and named jim young?It is not neccessary to use all the tables. |
SELECT AVG(round) FROM table_name_65 WHERE position = "te" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average round for te position?It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8421) AND prescriptions.drug = 'd5w' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | CREATE TABLE INST, Here is a database schema( table schema); | how many times d5w has been prescribed to patient 8421 in this year?It is not neccessary to use all the tables. |
SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | Find the names of the regions which were affected by the storm that killed the greatest number of people.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_48 WHERE attendance = "40,070" | CREATE TABLE INST, Here is a database schema( table schema); | Which opponent had an attendance of 40070?It is not neccessary to use all the tables. |
SELECT "English" FROM table_6621 WHERE "Cardinal direction" = 'northwest' | CREATE TABLE INST, Here is a database schema( table schema); | What is the cardinal direction northwest in English?It is not neccessary to use all the tables. |
SELECT MAX Total FROM table WHERE Nation = algeria AND Bronze > 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the high total for algeria with over 2 bronzes?.It is not neccessary to use all the tables. |
SELECT avg(DISCOVERY_DATE) FROM Fires where FIRE_YEAR BETWEEN 2000 AND 2004 | CREATE TABLE INST, Here is a database schema( fires); | Average date of year that fire was discovered from 2000~2004?. It is not neccessary to use all the tables. |
SELECT qual_1 FROM table_name_49 WHERE best = "1:18.067" | CREATE TABLE INST, Here is a database schema( table schema); | What is the qual 1 for the best of 1:18.067?It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_74 WHERE loss = "westbrook (2-2)" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent at the game that had a loss of Westbrook (2-2)?It is not neccessary to use all the tables. |
SELECT call_sign FROM table_name_23 WHERE erp_w = 75 | CREATE TABLE INST, Here is a database schema( table schema); | Which Call sign has an ERP W of 75?It is not neccessary to use all the tables. |
SELECT MAX(area__km²_) FROM table_14532_1 WHERE region = "Tuscany" | CREATE TABLE INST, Here is a database schema( table schema); | What is the area of Tuscany?It is not neccessary to use all the tables. |
SELECT Season FROM table WHERE Big Ten = 2nd (386) | CREATE TABLE INST, Here is a database schema( table schema); | What is the Season with a Big Ten that is 2nd (386)?.It is not neccessary to use all the tables. |
SELECT Season FROM table WHERE Losses = 34 | CREATE TABLE INST, Here is a database schema( table schema); | Which season had 34 losses?.It is not neccessary to use all the tables. |
SELECT COUNT(yards) FROM table_name_90 WHERE in_20 = 32 | CREATE TABLE INST, Here is a database schema( table schema); | What number of Yards has 32 as an In 20?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_20 WHERE notes = "heptathlon" AND year = 1991 | CREATE TABLE INST, Here is a database schema( table schema); | Which Venue has a Notes of heptathlon, and a Year of 1991?It is not neccessary to use all the tables. |
SELECT 20 Questions FROM table WHERE Centerfold model = Cherie Witter | CREATE TABLE INST, Here is a database schema( table schema); | Name the 20 questions when centerfold model is cherie witter.It is not neccessary to use all the tables. |
SELECT Displacement FROM table WHERE Redline (rpm) > 4750 AND Year = 2005 | CREATE TABLE INST, Here is a database schema( table schema); | What is the displacement of the engine that has a Redline rpm higher than 4750, from 2005?.It is not neccessary to use all the tables. |
SELECT males FROM table WHERE percentage (%) = 87.5 | CREATE TABLE INST, Here is a database schema( table schema); | Which language do 87.5% of males speak?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Crowd > 30,000 | CREATE TABLE INST, Here is a database schema( table schema); | What venue featured a crowd of over 30,000?.It is not neccessary to use all the tables. |
SELECT board__cm_ FROM table_name_14 WHERE start = "1940" AND type = "theater" AND release > 2010 | CREATE TABLE INST, Here is a database schema( table schema); | What is the dimensions in centimeters of a theater board who started in 1940 who was released after 2010?It is not neccessary to use all the tables. |
SELECT province FROM table_name_72 WHERE established = 1870 | CREATE TABLE INST, Here is a database schema( table schema); | what province was established in 1870It is not neccessary to use all the tables. |
SELECT MAX(position) FROM table_name_16 WHERE against < 49 AND drawn = 4 | CREATE TABLE INST, Here is a database schema( table schema); | Which Position has an Against smaller than 49 and a Drawn of 4?It is not neccessary to use all the tables. |
SELECT score FROM table_name_16 WHERE tournament = "tournament players championship" | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the Tournament Players Championship?It is not neccessary to use all the tables. |
SELECT AVG(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = "Robinson R-22" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average total number of passengers of airports that are associated with aircraft "Robinson R-22"?It is not neccessary to use all the tables. |
SELECT CFL Team FROM table WHERE Position = OL | CREATE TABLE INST, Here is a database schema( table schema); | What team was in position OL?.It is not neccessary to use all the tables. |
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (semester.semester = 'FA' OR semester.semester = 'WN') AND course.department = 'EECS' AND program_course.category LIKE '%ULCS%' AND semester.year = 2016 | CREATE TABLE INST, Here is a database schema( table schema); | What classes during the Fall and Winter terms are upper-level electives ?It is not neccessary to use all the tables. |
SELECT City of license FROM table WHERE Frequency MHz < 102.3 AND ERP W = 25 | CREATE TABLE INST, Here is a database schema( table schema); | what is the city of license for the station with the frequency mhz less than 102.3 abd erp w of 25?.It is not neccessary to use all the tables. |
SELECT COUNT(*) AS answer FROM Users WHERE (DisplayName LIKE '%John%' OR DisplayName LIKE '%Ivan%') | CREATE TABLE INST, Here is a database schema( table schema); | Stackoverflow?.It is not neccessary to use all the tables. |
SELECT Candidates FROM table WHERE First elected = None (New seat) | CREATE TABLE INST, Here is a database schema( table schema); | When none (new seat) is the first elected who are the candidates?.It is not neccessary to use all the tables. |
SELECT years FROM table_name_6 WHERE roll > 296 AND area = "murupara" | CREATE TABLE INST, Here is a database schema( table schema); | Murupara has a roll greater than 296 for what years?It is not neccessary to use all the tables. |
SELECT tie_no FROM table_name_6 WHERE away_team = "scunthorpe united" | CREATE TABLE INST, Here is a database schema( table schema); | What is the tie no when scunthorpe united was the away team?It is not neccessary to use all the tables. |
SELECT directed_by FROM table_22835602_1 WHERE viewers__in_millions_ = "1.945" | CREATE TABLE INST, Here is a database schema( table schema); | List all directors from episodes with viewership of 1.945 million.It is not neccessary to use all the tables. |
SELECT Name, AVG(Price) FROM Products GROUP BY Name ORDER BY Name DESC | CREATE TABLE INST, Here is a database schema( table schema); | Return a histogram on what are the names and prices of all products in the store?, show bars in desc order please.It is not neccessary to use all the tables. |
SELECT nature_of_incident FROM table_name_62 WHERE location = "kabul" AND date = "2004-01-28" | CREATE TABLE INST, Here is a database schema( table schema); | What is the nature of the incident in Kabul on 2004-01-28?It is not neccessary to use all the tables. |
WITH TagScores AS (SELECT PostTags.TagId, SUM(5 - 2 * Votes.VoteTypeId) AS Score FROM Posts, Votes, PostTags WHERE Posts.ParentId = PostTags.PostId AND Votes.PostId = Posts.Id AND Votes.VoteTypeId BETWEEN 2 AND 3 AND Posts.OwnerUserId = @UserId AND Posts.CommunityOwnedDate IS NULL GROUP BY PostTags.TagId) SELECT * FROM TagScores | CREATE TABLE INST, Here is a database schema( table schema); | Try to answer these questions, to increase your tag score.It is not neccessary to use all the tables. |
SELECT SUM Attendance FROM table WHERE Date = december 21, 1986 AND Week < 16 | CREATE TABLE INST, Here is a database schema( table schema); | What was the Attendance on December 21, 1986 before Week 16?.It is not neccessary to use all the tables. |
SELECT MIN Crowd FROM table WHERE Away team score = 7.19 (61) | CREATE TABLE INST, Here is a database schema( table schema); | What was the lowest crowd size when the away team scored 7.19 (61)?.It is not neccessary to use all the tables. |
SELECT Candidates FROM table WHERE First elected = 1910 | CREATE TABLE INST, Here is a database schema( table schema); | Who were the candidates when the winner was first elected in 1910?.It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Game > 31 AND Date > 30 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the opponent for a game over 31 and a date over 30?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Home team = collingwood | CREATE TABLE INST, Here is a database schema( table schema); | What date did Collingwood play as the home team?.It is not neccessary to use all the tables. |
SELECT attendance FROM table_name_12 WHERE date = "october 22, 2000" | CREATE TABLE INST, Here is a database schema( table schema); | what is the attendance when the date is october 22, 2000?It is not neccessary to use all the tables. |
SELECT attendance FROM table_name_6 WHERE date = "new zealand scores in bold" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Attendance of New Zealand Scores in bold?It is not neccessary to use all the tables. |
SELECT Director FROM table WHERE Title = hamateur night | CREATE TABLE INST, Here is a database schema( table schema); | Who directed hamateur night?.It is not neccessary to use all the tables. |
SELECT no9 FROM table_name_85 WHERE no6 = "paulo" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the no. 9 team that has a no. 6 player of paulo?It is not neccessary to use all the tables. |