sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
|---|---|---|
SELECT Decision FROM table WHERE Visitor = montreal
|
CREATE TABLE INST, Here is a database schema( table schema);
|
No Decision listed above has a visitor of Montreal..It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT /SDA" AND demographic.age < "89"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
give the number of patients whose primary disease is coronary artery disease/coronary artery bypass graft/sda and who were aged below 89 years.It is not neccessary to use all the tables.
|
SELECT series FROM table_name_31 WHERE final_placing = "9th" AND podiums = "2"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Series has a Final Placing of 9th and Podiums of 2?It is not neccessary to use all the tables.
|
SELECT COUNT Sort restore FROM table WHERE Births = 389
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the number of sort values associated with 389 births?.It is not neccessary to use all the tables.
|
SELECT record FROM table_2517159_1 WHERE name_of_bowl = "Cotton Bowl Classic"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the record for cotton bowl classicIt is not neccessary to use all the tables.
|
SELECT avg_finish FROM table_2169966_2 WHERE avg_start = "27.7"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was his average finish when his average start was 27.7?It is not neccessary to use all the tables.
|
SELECT Result FROM table WHERE Year (Ceremony) = 2010 (83rd)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Result of the 2010 (83rd) Ceremony?.It is not neccessary to use all the tables.
|
SELECT secretary FROM table_name_90 WHERE internal_co = "isabel voets"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Secretary has an Internal CO of isabel voets?It is not neccessary to use all the tables.
|
SELECT name FROM scientists ORDER BY name
|
CREATE TABLE INST, Here is a database schema( table schema);
|
List the names of all scientists sorted in alphabetical order.It is not neccessary to use all the tables.
|
SELECT COUNT(a.uid) FROM (SELECT OwnerUserId AS uid FROM Posts WHERE PostTypeId = 1 GROUP BY OwnerUserId HAVING COUNT(Id) = 4) AS a
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many users with 4 questions?.It is not neccessary to use all the tables.
|
SELECT SUM(pick__number) FROM table_name_16 WHERE pl_gp < 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the pick # of the player with a PI GP less than 0?It is not neccessary to use all the tables.
|
SELECT MIN(gfr_2006) FROM table_name_64 WHERE whites_as__percentage_of_pop = "95.80%" AND tfr_2006 > 2.14
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest total GFR that has 95.80% of the population as Whites and a TFR total larger than 2.14 in 2006?It is not neccessary to use all the tables.
|
SELECT "IHSAA Class" FROM table_14182 WHERE "County" = '10 clark' AND "Mascot" = 'mustangs'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the IHSAA class for the school in 10 Clark county with mascot of the Mustangs?It is not neccessary to use all the tables.
|
SELECT venue FROM table_name_22 WHERE home_team = "fitzroy"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Where did Fitzroy play as the home team?It is not neccessary to use all the tables.
|
SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "RUQ PAIN" AND demographic.dod_year < "2133.0"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is minimum age of patients whose primary disease is ruq pain and year of death is less than 2133?It is not neccessary to use all the tables.
|
SELECT competition FROM table_name_28 WHERE date = "28 march 2009"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
For what competition was the game played on 28 March 2009?It is not neccessary to use all the tables.
|
SELECT Results¹ FROM table WHERE Type of game = friendly AND City = belgrade AND Date = november 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
With the Type is game of friendly and the City Belgrade and November 2 as the Date what were the Results¹?.It is not neccessary to use all the tables.
|
SELECT Stadium FROM table WHERE Stadium capacity = 10,000 AND Team = kf drita
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Stadium, when Stadium Capacity is "10,000", and when Team is "KF Drita"?.It is not neccessary to use all the tables.
|
SELECT date FROM table_name_71 WHERE record = "38-22"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What date was the record 38-22?It is not neccessary to use all the tables.
|
SELECT Time/Retired FROM table WHERE Laps < 4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the time/retired when the laps is less than 4?.It is not neccessary to use all the tables.
|
SELECT AVG(number) FROM table_name_63 WHERE name = "byron geis" AND weight < 195
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name of byron geis and a Weight smaller than 195 involves what average number?It is not neccessary to use all the tables.
|
SELECT MIN Year FROM table WHERE Genre = action
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the earliest year when action was the genre?.It is not neccessary to use all the tables.
|
SELECT high_school FROM table_20785990_2 WHERE home_town = "Blue Island, IL"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the high school for the player who's hometown is Blue Island Il?It is not neccessary to use all the tables.
|
SELECT "Date" FROM table_35595 WHERE "Home team" = 'baltimore colts'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the date of the that was played with the Baltimore Colts at home?It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE January < 4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the score in January that was less than 4?.It is not neccessary to use all the tables.
|
SELECT song_name FROM song WHERE rating < (SELECT MAX(rating) FROM song WHERE genre_is = "blues")
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the names of all songs that have a lower rating than some song of blues genre?It is not neccessary to use all the tables.
|
SELECT winning_score FROM table_name_93 WHERE margin_of_victory = "4 strokes" AND tournament = "nec invitational"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?It is not neccessary to use all the tables.
|
SELECT attendance FROM table_name_97 WHERE final = "quarter (1)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the attendance for the final quarter (1)?It is not neccessary to use all the tables.
|
SELECT MIN(1996)[2] FROM table_name_80 WHERE 1950 > 80 AND 1960 = 196 AND 1990 > 131
|
CREATE TABLE INST, Here is a database schema( table schema);
|
1950 larger than 80 and a 1960 of 196 and a 1990 larger than 131 what is the lowest 1996[2]?It is not neccessary to use all the tables.
|
SELECT airport FROM table_name_56 WHERE iata = "sea"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Airport's IATA is SEA?It is not neccessary to use all the tables.
|
SELECT canadian_airdate FROM table_10935205_1 WHERE us_airdate = "8 August 2008"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
The U.S. airdate of 8 august 2008 also had canadian airdates of what?It is not neccessary to use all the tables.
|
SELECT MIN(ties) FROM table_name_10 WHERE losses = 7 AND games_played < 10
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the lowest number of ties when the losses is 7 and games played is less than 10?It is not neccessary to use all the tables.
|
SELECT To Par FROM table WHERE Year = 1998
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What score to par won in 1998?.It is not neccessary to use all the tables.
|
SELECT co_contestant__yaar_vs_pyaar_ FROM table_name_40 WHERE total_score_week = "48/60" AND date_performed = "august 14"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Co-contestant (Yaar vs. Pyaar) has a Total score/week of 48/60 and a Date performed of august 14?It is not neccessary to use all the tables.
|
SELECT Murder FROM table WHERE Forcible rape = 166
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the number of murders the year forcible rapes were at 166? .It is not neccessary to use all the tables.
|
SELECT administrative_district FROM table_name_76 WHERE pre_1009_province = "gwannae -do" AND post_1009_province = "seohae -do"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Administrative district has a Pre-1009 province of gwannae -do and a Post-1009 province of seohae -do?It is not neccessary to use all the tables.
|
SELECT COUNT(rank) FROM table_name_58 WHERE team = "roanne" AND games < 14
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total rank of team roanne which has less than 14 games?It is not neccessary to use all the tables.
|
SELECT college FROM table_name_19 WHERE pick > 6 AND position = "rb" AND round = 28
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which college with a position of rb had a pick larger than 6 in round 28?It is not neccessary to use all the tables.
|
SELECT opponent FROM table_name_64 WHERE time = "20:00 gmt" AND ground = "camp nou"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the Opponent playing at 20:00 GMT at Camp Nou?It is not neccessary to use all the tables.
|
SELECT attendance FROM table_name_64 WHERE home_team = "carlisle united"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the attendance of the match with Carlisle united as the home team?It is not neccessary to use all the tables.
|
SELECT home FROM table_name_89 WHERE visitor = "detroit" AND score = "4 – 1"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was home when Detroit was visiting with a score of 4 – 1?It is not neccessary to use all the tables.
|
SELECT high_points FROM table_17325580_6 WHERE team = "Washington"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is every high point when the team is Washington?It is not neccessary to use all the tables.
|
SELECT driver FROM table_name_10 WHERE tyre = "p" AND entrant = "officine alfieri maserati"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the driver when the tyre is p and the entrant is officine alfieri maserati?It is not neccessary to use all the tables.
|
SELECT COUNT(rank) FROM table_name_26 WHERE total > 2 AND bronze < 4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What number of rank has more than 2 medals in total with less than 4 bronze?It is not neccessary to use all the tables.
|
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-21388' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what were hospital admission times of patient 006-21388 during a year before?It is not neccessary to use all the tables.
|
SELECT COUNT("Current Status") FROM table_18788 WHERE "Station" = 'WJW-TV ++'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many entries are listed under 'current status' for the WJW-TV ++ Station?It is not neccessary to use all the tables.
|
SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'non-cardiac angiography - cerebral arteriogram')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY cost.patienthealthsystemstayid) AS t1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
tell me the maximum hospital cost that involves a non-cardiac angiography - cerebral arteriogram procedure in the previous year?It is not neccessary to use all the tables.
|
SELECT MIN(points) FROM table_name_85 WHERE game < 70 AND score = "4–8"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Points have a Game smaller than 70 and a Score of 4–8?It is not neccessary to use all the tables.
|
SELECT MAX(year) FROM table_name_95 WHERE venue = "narbonne , france"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the highest Year which has a Venue of narbonne france?It is not neccessary to use all the tables.
|
SELECT score FROM table_name_61 WHERE high_rebounds = "nolan (10)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Score when High Rebounds is "Nolan (10)"?It is not neccessary to use all the tables.
|
SELECT MAX(total) FROM table_name_41 WHERE type = "winter" AND athlete = "clara hughes"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest total medals winter athlete Clara Hughes has?It is not neccessary to use all the tables.
|
SELECT total FROM table_name_15 WHERE name = "carl robinson category:articles with hcards"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total when the name is Carl Robinson Category:Articles with hcards?It is not neccessary to use all the tables.
|
SELECT Height FROM table WHERE 2008 club = stade poitevin poitiers
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What shows for height for the 2008 club of Stade Poitevin Poitiers?.It is not neccessary to use all the tables.
|
SELECT player FROM table_name_1 WHERE country = "united states" AND score = 70 - 72 - 70 = 212
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Player when Country is United States and when Score is 70-72-70=212?It is not neccessary to use all the tables.
|
SELECT ACC_Regular_Season, ACC_Percent FROM basketball_match
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Create a pie chart showing acc_percent across acc regular season.It is not neccessary to use all the tables.
|
SELECT COUNT Long FROM table WHERE Avg/G > 0.2 AND Loss < 2 AND Gain < 8
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the total long for an avg/g over 0.2, fewer than 2 loss, and a gain less than 8?.It is not neccessary to use all the tables.
|
SELECT Tujunga FROM table WHERE Pasadena = 33%
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the percentage of Tujunja when Pasadena is 33%?.It is not neccessary to use all the tables.
|
SELECT COUNT(pos) FROM table_15530244_5 WHERE race_1 = "2"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the total number of positions for race 1 being 2It is not neccessary to use all the tables.
|
SELECT Lead FROM table WHERE Season = 2007-08
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which lead had a season of 2007-08?.It is not neccessary to use all the tables.
|
SELECT City FROM table WHERE Rank = 7
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What city ranked 7?.It is not neccessary to use all the tables.
|
SELECT MAX(game) FROM table_name_14 WHERE opponent = "@ pittsburgh penguins"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Game has an Opponent of @ pittsburgh penguins?It is not neccessary to use all the tables.
|
SELECT MIN Played FROM table WHERE Goals for = 47 AND Wins < 14
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest played number when goals for is 47, and wins is smaller than 14?.It is not neccessary to use all the tables.
|
SELECT Part 3 FROM table WHERE Class = 7b
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which part 3 has class 7b?.It is not neccessary to use all the tables.
|
SELECT MIN Points FROM table WHERE Year = 1978 AND Chassis = ensign n177
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177?.It is not neccessary to use all the tables.
|
SELECT AVG(worst_score) FROM table_name_81 WHERE best_dancer = "mario lopez" AND dance = "tango"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the average Worst score for Mario Lopez as the Best dancer and Tango as the Dance?It is not neccessary to use all the tables.
|
SELECT MAX(grid) FROM table_name_76 WHERE driver = "jack brabham" AND laps > 90
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was Jack Brabham's highest grid when his laps were more than 90?It is not neccessary to use all the tables.
|
SELECT final__bronze_medal_match FROM table_18602462_21 WHERE event = "Mixed Quad Singles"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When mixed quad singles is the event what is the final/bronze medal match?It is not neccessary to use all the tables.
|
SELECT SUM Crowd FROM table WHERE Home team score = 14.16 (100)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When the Home team scores 14.16 (100), what is the sum of the Crowds?.It is not neccessary to use all the tables.
|
SELECT Location FROM table WHERE Stadium = Moorabbin Oval
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the location of the Moorabbin Oval stadium?.It is not neccessary to use all the tables.
|
SELECT grand_prix FROM table_name_24 WHERE fastest_lap = "gerhard berger" AND pole_position = "jacques villeneuve"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position?It is not neccessary to use all the tables.
|
SELECT player FROM table_name_52 WHERE round > 5 AND school_club_team = "bethune-cookman"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Player has a Round larger than 5 and a School/Club Team of bethune-cookman?It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Opponents in the final = akgul amanmuradova nina bratchikova
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which date has opponents, Akgul Amanmuradova Nina Bratchikova, in the final?.It is not neccessary to use all the tables.
|
SELECT TV season FROM table WHERE Viewers (millions) = 10.73
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What year is the season with the 10.73 million views?.It is not neccessary to use all the tables.
|
SELECT MIN Against FROM table WHERE Played > 10
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest Against when the played is more than 10?.It is not neccessary to use all the tables.
|
SELECT COUNT Draw FROM table WHERE Artist = de spelbrekers AND Points < 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Can you tell me the total number of Draw that has the Artist of de spelbrekers, and the Points smaller than 0?.It is not neccessary to use all the tables.
|
SELECT nosawa_rongai FROM table_name_97 WHERE block_a = "petey williams"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the NOSAWA Rongai for petey williamsIt is not neccessary to use all the tables.
|
SELECT Winning driver FROM table WHERE Constructor = ferrari AND Race Name = xv grand prix de l'albigeois
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What driver won in the xv grand prix de l'albigeois in a vehicle by ferrari?.It is not neccessary to use all the tables.
|
SELECT MIN(touchdowns) FROM table_14342480_7
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the least amount of touchdowns scored on the chart?It is not neccessary to use all the tables.
|
SELECT Location Attendance FROM table WHERE High rebounds = B. Benjamin (10)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the location and attendance for the game where b. benjamin (10) had the high rebounds?.It is not neccessary to use all the tables.
|
SELECT Volume:Issue FROM table WHERE Weeks on Top > 1 AND Artist = peter cetera
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Volume:Issue that has Peter Cetera as the artist and was on top for longer than 1 week?.It is not neccessary to use all the tables.
|
SELECT McCain % FROM table WHERE Others % = 2.1%
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What percentage of voters chose McCain in the county where 2.1% of voters voted third party?.It is not neccessary to use all the tables.
|
SELECT Original air date FROM table WHERE Production code = 216
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the original air date for production code 216?.It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Home = detroit AND Visitor = chicago
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the date for the home detroit and visitor was chicago?.It is not neccessary to use all the tables.
|
SELECT MAX(area_km_2) FROM table_name_92 WHERE status = "village" AND census_ranking = "1,442 of 5,008" AND population < 1 OFFSET 778
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the area of the village with a census ranking of 1442 of 5008 and a population less than 1778?It is not neccessary to use all the tables.
|
SELECT District FROM table WHERE Name = mahidpur
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What district has an assembly segment named mahidpur?.It is not neccessary to use all the tables.
|
SELECT finish FROM table_name_67 WHERE start = "19"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the finish value for a start of 19?It is not neccessary to use all the tables.
|
SELECT Height FROM table WHERE Stories = 52
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How tall is the 52 story building?.It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Record = 17–25
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the date of the game with a record of 17–25?.It is not neccessary to use all the tables.
|
SELECT Home team FROM table 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 "Stepping" FROM table_6092 WHERE "Release Date" = 'june 5, 2007'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the stepping for the processor released June 5, 2007?It is not neccessary to use all the tables.
|
SELECT headquarters FROM table_10054296_1 WHERE member = "Alpha Nu Omega"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Where is the headquarters of Alpha Nu OmegaIt is not neccessary to use all the tables.
|
SELECT MAX(attendance) FROM table_name_17 WHERE loss = "hiller (3–2)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Attendance of the game with a Loss of Hiller (3–2)?It is not neccessary to use all the tables.
|
SELECT T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name
|
CREATE TABLE INST, Here is a database schema( table schema);
|
For those records from the products and each product's manufacturer, visualize a scatter chart about the correlation between code and revenue , and group by attribute name.It is not neccessary to use all the tables.
|
SELECT Tournament FROM table WHERE 2006 = a AND 2008 = 1r
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which tournament had a 2008 result of 1R?.It is not neccessary to use all the tables.
|
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-15837') AND patient.unitdischargetime IS NULL) AND intakeoutput.celllabel = 'intake (ml)-gastrostomy/enterostomy gastrostomy 20 fr. luq' AND intakeoutput.cellpath LIKE '%intake%' ORDER BY intakeoutput.intakeoutputtime LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the number of hours elapsed since the first time patient 007-15837 had a intake (ml)-gastrostomy/enterostomy gastrostomy 20 fr. luq intake on the current icu visit?It is not neccessary to use all the tables.
|
SELECT Original U.S. air date FROM table WHERE Viewers (millions) = 4.4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which US air date had 4.4 million viewers?.It is not neccessary to use all the tables.
|
SELECT label FROM table_name_84 WHERE region = "australia"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Label has the Region of Australia?It is not neccessary to use all the tables.
|
SELECT class_aAA FROM table_14603212_5 WHERE school_year = "2004-05"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are all the AAA classes in the school years of 2004-05?It is not neccessary to use all the tables.
|
SELECT Forward caste FROM table WHERE Scheduled Tribe = 0.90%
|
CREATE TABLE INST, Here is a database schema( table schema);
|
WHAT IS THE FORWARD CASTE WITH A SCHEDULED TRIBE OF 0.90%?.It is not neccessary to use all the tables.
|
SELECT Id AS "post_link" FROM Posts WHERE 'body' LIKE '<p>-1 %'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Get posts starting with '-1'.It is not neccessary to use all the tables.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.